/* 
   COLORS:
   Background primary: #F8FAFC
   White sections: #FFFFFF
   Primary text: #0F172A
   Secondary text: #64748B
   Borders/dividers: #E2E8F0
   Primary accent: #3B82F6
   Button hover: #2563EB
*/

:root {
    --bg-primary: #F8FAFC;
    --bg-white: #FFFFFF;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --border-color: #E2E8F0;
    --accent-primary: #3B82F6;
    --accent-hover: #2563EB;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ===================================
   RESET & BASICS
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.container-small {
    max-width: 800px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    font-weight: 500;
}

.section-white {
    background-color: var(--bg-white);
}

section {
    padding: 8rem 0;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: 9999px; /* Pill shape for modern look */
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.875rem 1.75rem;
    border: none;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
    background-color: var(--bg-white);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
}

.btn-outline:hover {
    border-color: var(--text-primary);
}

.btn-small {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.btn-text {
    background: transparent;
    color: var(--accent-primary);
    padding: 0;
    font-weight: 500;
}

.btn-text:hover {
    color: var(--accent-hover);
}

.btn-full {
    width: 100%;
}

/* ===================================
   HEADER
   =================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 32px;
    width: auto;
    display: block;
}

.text-logo {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    background: linear-gradient(110deg, var(--text-primary) 0%, var(--text-primary) 40%, #cbd5e1 50%, var(--text-primary) 60%, var(--text-primary) 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine-logo 3.5s infinite linear;
}

.accent-dot {
    color: var(--accent-primary);
    background: linear-gradient(110deg, var(--accent-primary) 0%, var(--accent-primary) 40%, #bae6fd 50%, var(--accent-primary) 60%, var(--accent-primary) 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine-logo 3.5s infinite linear;
}

@keyframes shine-logo {
    0% { background-position: 100% center; }
    20% { background-position: 0% center; }
    100% { background-position: 0% center; }
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.main-nav a:hover {
    color: var(--text-primary);
}

/* ===================================
   1. HERO SECTION
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 5rem; /* offset header */
    overflow: hidden;
}

.hero-bg-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Clean background left for future scroll animation */
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-heading {
    font-size: clamp(3rem, 6vw, 5.5rem);
    letter-spacing: -0.04em;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-subheading {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
    max-width: 500px;
    margin-inline: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

/* ===================================
   2. STATEMENT SECTION
   =================================== */
.statement {
    text-align: center;
    padding: 12rem 0;
}

.statement-text {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    max-width: 1000px;
    margin: 0 auto;
    font-weight: 500;
}

/* ===================================
   3. SERVICES SECTION
   =================================== */
.services-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 768px) {
    .services-list {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 6rem;
    }
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-item p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
}

/* ===================================
   4. PORTFOLIO SECTION
   =================================== */
.portfolio-grid {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.portfolio-item {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.portfolio-image-wrapper {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    background: var(--border-color); /* placeholder color before load */
}

.portfolio-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.03);
}

.portfolio-meta h4 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.portfolio-meta p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ===================================
   5. HOW IT WORKS SECTION
   =================================== */
.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }
}

@media (min-width: 1024px) {
    .process-steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.process-step {
    position: relative;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Process Animation States */
.process-step::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    height: 1px;
    width: 0%;
    background-color: var(--text-primary);
    z-index: 0;
}

.process-step.active::before {
    width: 100%;
    transition: width 0.6s ease-in-out;
}

.process-step.completed::before {
    width: 100%;
}

.step-num {
    position: absolute;
    top: -0.75rem;
    left: 0;
    background: var(--bg-white);
    padding-right: 0.5rem;
    font-size: 0.875rem;
    font-family: monospace;
    color: var(--text-secondary);
    z-index: 1;
    transition: color 0.4s ease;
}

.process-step h3,
.process-step p {
    opacity: 0.4;
    transition: opacity 0.5s ease;
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.process-step p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Active & Completed States */
.process-step.active h3,
.process-step.active p,
.process-step.completed h3,
.process-step.completed p {
    opacity: 1;
}

.process-step.active .step-num,
.process-step.completed .step-num {
    color: var(--text-primary);
    font-weight: 600;
}

.process-step.completed .step-num::after {
    content: '\2713';
    display: inline-block;
    margin-left: 0.35rem;
    color: var(--accent-primary);
    font-size: 0.8rem;
    opacity: 0;
    animation: popIn 0.3s ease-out forwards;
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* ===================================
   6. PRICING SECTION
   =================================== */
.pricing-list {
    display: flex;
    flex-direction: column;
}

.pricing-row {
    display: flex;
    flex-direction: column;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.pricing-row:first-child {
    border-top: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .pricing-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.pricing-info h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.pricing-info p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
}

.pricing-features {
    margin-top: 1.25rem;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.pricing-features li {
    margin-bottom: 0.4rem;
}

.pricing-action {
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .pricing-action {
        margin-top: 0;
    }
}

/* ===================================
   7. CONTACT SECTION
   =================================== */
.contact-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    margin-top: -3rem; /* pull up closer to h2 */
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .form-row {
        flex-direction: row;
    }
    .form-group {
        flex: 1;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

input, select, textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px; /* subtle modern corners vs pill */
    background: var(--bg-white);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

textarea {
    resize: vertical;
}

.hidden {
    display: none;
}

.form-success-msg {
    margin-top: 1rem;
    padding: 1rem;
    background: #ecfdf5; /* subtle green */
    color: #065f46;
    border-radius: 4px;
    font-size: 0.875rem;
    text-align: center;
}

/* ===================================
   8. FOOTER
   =================================== */
.site-footer {
    padding: 6rem 0 2rem;
    color: var(--text-secondary);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.05em;
    background: linear-gradient(110deg, var(--text-primary) 0%, var(--text-primary) 40%, #cbd5e1 50%, var(--text-primary) 60%, var(--text-primary) 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine-logo 3.5s infinite linear;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-links {
        flex-direction: row;
        gap: 3rem;
    }
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    font-size: 0.875rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
}

/* ===================================
   LANGUAGE SWITCHER
   =================================== */
.lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem;
    transition: color 0.2s ease;
    font-family: inherit;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn svg {
    margin-top: 1px;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 80px;
    z-index: 200;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform-origin: top right;
}

.lang-dropdown.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-5px);
    display: flex; /* keep flex, use opacity to hide */
}

.lang-option {
    background: transparent;
    border: none;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.lang-option:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* ===================================
   HIGHLIGHT ANIMATION
   =================================== */
.marker-highlight {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.marker-highlight::before {
    content: '';
    position: absolute;
    bottom: 0.05em;
    left: -0.1em;
    right: -0.1em;
    height: 45%;
    background-color: #FDE68A;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.6s ease-in;
    border-radius: 4px 8px 3px 6px;
}

.statement.in-view .marker-highlight::before {
    transform: scaleX(1);
    transition: transform 0.8s ease-out;
}

/* ===================================
   RESPONSIVE DESIGN (MOBILE-FIRST POLISH)
   =================================== */

/* Mobile Menu Button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 102; /* Ensure toggle stays on top when menu is open */
}

@media (max-width: 768px) {
    /* Header & Navigation */
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 1rem;
        right: 1rem;
        bottom: 1rem;
        left: auto;
        width: calc(100vw - 2rem);
        max-width: 350px;
        height: calc(100vh - 2rem);
        background: var(--bg-white);
        border-radius: 20px;
        border: 1px solid rgba(226, 232, 240, 0.8);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        opacity: 0;
        pointer-events: none;
        transform: translateX(120%);
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
        z-index: 101;
    }

    .main-nav.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }

    .main-nav a {
        font-size: 1.25rem;
    }
    
    .lang-switcher {
        font-size: 1.25rem;
    }

    body.nav-open {
        overflow: hidden;
    }

    /* Hero Section */
    .hero {
        padding-top: 6rem;
    }

    .hero-heading {
        font-size: clamp(2.25rem, 10vw, 3rem);
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    /* General Spacing */
    section {
        padding: 4.5rem 0; /* Tighter vertical rhythm */
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .contact-subtitle {
        margin-top: -1.5rem;
        margin-bottom: 2.5rem;
        font-size: 1.1rem;
    }

    /* Statement Section */
    .statement {
        padding: 4rem 0;
    }

    .statement-text {
        font-size: clamp(2rem, 8vw, 2.75rem);
        line-height: 1.25;
    }

    /* Contact Form & Input Fields */
    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Process section on mobile */
    .process-steps {
        gap: 3rem; /* Tighter gap on mobile */
    }
    
    .process-step::before {
        display: none; /* Hide horizontal animation line when vertical */
    }
    
    .step-num {
        position: relative;
        top: 0;
        display: inline-block;
        margin-bottom: 0.5rem;
        background: transparent;
        padding-right: 0;
    }

    .process-step {
        border-top: none; 
        padding-top: 0;
    }

    /* Footer adjustments */
    .footer-inner {
        flex-direction: column;
        gap: 2.5rem;
        align-items: center;
        text-align: center;
    }

    .footer-heading {
        font-size: 1.125rem;
        margin-bottom: 1.25rem;
        color: var(--text-primary);
        font-weight: 400;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    /* Portfolio */
    .portfolio-grid {
        gap: 3rem;
    }

    .portfolio-img {
        aspect-ratio: 4 / 3;
    }

    /* Mobile UX Fluidity overrides */
    body {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: none;
    }

    /* Logo animations now enabled on mobile natively */

    /* Inside the mobile menu, position the logo beautifully */
    .mobile-nav-logo {
        display: block;
        position: absolute;
        top: 2rem;
        left: 2rem; /* Keep it aligned elegantly with edge */
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        transition-delay: 0.2s;
    }

    .main-nav.open .mobile-nav-logo {
        opacity: 1;
        transform: translateY(0);
    }
    .mobile-nav-footer {
        position: absolute;
        bottom: 2rem;
        left: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        color: var(--text-secondary);
        opacity: 0;
        transform: translateY(15px);
        transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        transition-delay: 0.3s;
    }
    
    .main-nav.open .mobile-nav-footer {
        opacity: 1;
        transform: translateY(0);
    }
    
    .mobile-nav-footer a {
        transition: color 0.2s ease;
        text-decoration: none;
    }

    .footer-email {
        font-size: 0.85rem !important;
        font-weight: 400;
        letter-spacing: 0.02em;
    }

    .footer-socials {
        display: flex;
        gap: 1.5rem;
    }
    
    .footer-socials a {
        font-size: 0.65rem !important;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        font-weight: 500;
    }
    
    .mobile-nav-footer a:hover {
        color: var(--text-primary);
    }
}

/* Ensure mobile header components stay hidden on desktop natively */
@media (min-width: 769px) {
    .mobile-nav-logo, .mobile-nav-footer {
        display: none;
    }
}


