:root {
    --bg-color: #F1F1F1;
    --text-color: #1E1E1E;
    --title-color: #1E1E1E;
    --text-muted: #555555;
    --radius-lg: 24px;
    --radius-md: 16px;
    --font-main: 'Poppins', sans-serif;
    --container-width: min(1200px, 90vw);
    --spacing-section: 80px;
    --spacing-card: 40px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: #555; border-radius: 4px; }

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1 { font-size: clamp(2.5rem, 4vw, 4rem); line-height: 1; font-weight: 700; margin-bottom: 1.5rem; letter-spacing: -2px; color: var(--title-color); }
h2 { font-size: clamp(2rem, 3.5vw, 3.5rem); font-weight: 600; margin-bottom: 1.5rem; letter-spacing: -1px; color: var(--title-color); }
h3 { font-size: 1.8rem; font-weight: 500; margin-bottom: 1rem; color: var(--title-color); }
p { font-size: 1.1rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 1.5rem; font-weight: 400; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   GLASS NAVIGATION BAR
   ========================================================================== */

.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 5000;
    background: rgba(241, 241, 241, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: background 0.3s ease;
}

.glass-nav .nav-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.glass-nav .nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.glass-nav .nav-logo img {
    height: 28px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.glass-nav .nav-logo:hover img {
    opacity: 0.7;
}

.glass-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.glass-nav .nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s ease;
    letter-spacing: 0.02em;
    padding: 6px 14px;
    border-radius: 50px;
}

.glass-nav .nav-links a:hover {
    color: var(--title-color);
}

.glass-nav .nav-links a.active {
    color: #fff;
    background: var(--title-color);
    padding: 8px 20px;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--title-color);
    border-radius: 2px;
    transition: 0.3s;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 64px;
}

.hero-section .container {
    width: 100%;
}

.hero-greeting {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    color: var(--title-color);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 680px;
    font-weight: 400;
}

/* ==========================================================================
   HERO VIDEO
   ========================================================================== */

.hero-video-section {
    padding: 0 0 var(--spacing-section);
}

.hero-video {
    width: 100%;
    display: block;
    border-radius: var(--radius-lg);
}

/* ==========================================================================
   CASE STUDIES SECTION
   ========================================================================== */

.case-studies-section {
    padding: var(--spacing-section) 0;
}

.case-studies-section .section-title {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 3rem;
    color: var(--title-color);
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1), box-shadow 0.5s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 474px;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.project-card-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    order: 2;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #C5C5C5;
}

.project-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
    margin: auto;
}

.project-card:hover .project-card-image img {
    transform: scale(1.03);
}

.project-card-content {
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    order: 1;
}

.project-card-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.project-card-tags span {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.project-card-tags .tag-dot::before {
    content: '\00B7';
    margin-right: 0.5rem;
}

.project-card-title {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 600;
    color: var(--title-color);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.project-card-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    max-width: 700px;
}

.project-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--title-color);
    transition: gap 0.3s ease;
}

.project-card:hover .project-card-cta {
    gap: 12px;
}

.project-card-cta i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.project-card:hover .project-card-cta i {
    transform: translateX(4px);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-section {
    padding: var(--spacing-section) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.giant-contact-title {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 0.95;
    margin-bottom: 1.5rem;
    color: var(--title-color);
    letter-spacing: -2px;
}

.large-desc {
    font-size: 1.3rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.contact-form {
    background: #fff;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.form-group { margin-bottom: 1.25rem; }

.form-group input,
.form-group textarea {
    background: var(--bg-color);
    border: 1px solid #ddd;
    padding: 1.1rem 1.4rem;
    border-radius: 50px;
    color: var(--text-color);
    width: 100%;
    font-family: var(--font-main);
    transition: 0.3s;
    font-size: 0.95rem;
}

.form-group textarea {
    border-radius: 20px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--title-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30,30,30,0.06);
}

.submit-btn {
    background: var(--title-color);
    color: #fff;
    border: none;
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s;
    font-family: var(--font-main);
}

.submit-btn:hover {
    opacity: 0.85;
    transform: scale(1.01);
}

/* ==========================================================================
   COMPACT FOOTER
   ========================================================================== */

.compact-footer {
    background: var(--title-color);
    color: #fff;
    padding: 3rem 0 2rem;
    margin-top: var(--spacing-section);
}

.compact-footer .footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.compact-footer .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
}

.compact-footer .footer-cta h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.compact-footer .footer-cta p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0;
    line-height: 1.5;
}

.compact-footer .footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.compact-footer .footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s ease;
}

.compact-footer .footer-links a:hover {
    background: #fff;
    color: var(--title-color);
    border-color: #fff;
}

.compact-footer .footer-links a i {
    font-size: 0.75rem;
}

.compact-footer .footer-bottom-bar {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.compact-footer .footer-bottom-bar p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    margin: 0;
}

.compact-footer .footer-bottom-bar .dev-credit {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.25);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.primary-btn {
    background: var(--title-color);
    color: #fff;
    border: 1px solid var(--title-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    transition: 0.3s;
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-main);
}

.primary-btn:hover {
    background: transparent;
    color: var(--title-color);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
    :root {
        --spacing-section: 40px;
    }

    .hero-section {
        min-height: auto;
        padding-top: 90px;
        padding-bottom: 1.5rem;
    }

    .hero-greeting {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
        margin-bottom: 1rem;
    }

    .hero-description {
        margin-bottom: 0;
    }

    .project-list {
        gap: 2rem;
    }

    .hero-video-section {
        padding: 0 0 2rem;
    }

    .hero-video {
        border-radius: 0;
    }

    .hero-video-section .container {
        padding: 0;
        max-width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .giant-contact-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

    .compact-footer .footer-top {
        flex-direction: column;
    }

    .compact-footer .footer-bottom-bar {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .project-card {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .project-card-image {
        order: 1;
        height: 260px;
        padding: 1rem;
        background: #E8E8E8;
    }

    .project-card-image img {
        border-radius: 12px;
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: 100%;
        object-fit: contain;
        margin: auto;
    }

    .project-card-content {
        order: 2;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .glass-nav .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background: rgba(241, 241, 241, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem 24px;
        gap: 0;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        align-items: center;
        text-align: center;
    }

    .glass-nav .nav-links.open {
        display: flex;
    }

    .glass-nav .nav-links li {
        width: 100%;
    }

    .glass-nav .nav-links a {
        display: block;
        padding: 0.75rem 0;
        font-size: 1rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        text-align: center;
    }

    .nav-hamburger {
        display: flex;
    }

    .hero-section {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
        border-radius: 16px;
    }
}

@media (max-width: 450px) {
    .hero-greeting {
        font-size: 2rem;
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 1rem;
    }

    .project-card-title {
        font-size: 1.3rem;
    }
}
