:root {
    --bg-color: #050505;
    --surface-color: #121212;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --accent-glow: rgba(99, 102, 241, 0.5);
    --border-color: #27272a;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --curve: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    position: relative;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.03) 0%, transparent 40%);
    z-index: -2;
    pointer-events: none;
    animation: bgDrift 20s ease-in-out infinite alternate;
}

@keyframes bgDrift {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(1%, 1%);
    }
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #ffffff;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.03);
    border-color: transparent;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    font-weight: 300;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.btn-primary {
    display: inline-block;
    padding: 0.8rem 2rem;
    /* Thinner */
    background: var(--text-primary);
    color: var(--bg-color);
    border-radius: 50px;

    font-weight: 600;
    border: 2px solid var(--text-primary);
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(5, 5, 5, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hamburger {
    display: none;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.logo .accent {
    color: #6366f1;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links .btn-primary {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    color: var(--bg-color);
}

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


/* Hero Section */
/* Hero Section */
.hero {
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    position: relative;
    padding: 7rem 0 5rem;
    /* Reduced to pull content up on desktop */
}



.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
}

.hero-intro {
    font-size: 4.8rem;
    /* Unified Size */
    font-weight: 700;
    color: #6366f1;
    /* Purple */
    margin-bottom: 0.5rem;
    line-height: 1.1;
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    letter-spacing: -0.04em;
}



.hero-intro .word {
    display: inline-block;
    opacity: 0;
    animation: slideDownWord 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.hero-intro .word:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-intro .word:nth-child(2) {
    animation-delay: 0.25s;
}

.hero-intro .word:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes slideDownWord {
    from {
        opacity: 0;
        transform: translateY(-60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Intro Animation Handled by Word Spans */



.hero-content h1 {
    font-size: 4.8rem;
    /* Big title line */
    letter-spacing: -0.02em;
    margin-bottom: 0px;
    line-height: 1.1;
    color: #fff;
    /* White as requested */
    font-weight: 700;
}




.glitch-text {
    position: relative;
}

.hero-content .subtitle {
    font-size: 1.15rem;
    /* Slightly smaller */
    margin-top: 1.5rem;
    /* Reduced */
    max-width: 500px;
    line-height: 1.6;
}


.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    /* Reduced */
}



.stat-item .counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-item span {
    font-size: 2.5rem;
    font-weight: 700;
    color: #6366f1;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    /* Reduced */
    align-items: center;
}




.btn-secondary {
    padding: 0.8rem 2rem;
    /* Thinner */

    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.hero-visual {
    position: relative;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gradient-sphere {
    width: 300px;
    height: 300px;
    background: var(--accent-gradient);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    position: absolute;
    animation: pulse 5s ease-in-out infinite alternate;
}

.glass-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 50px;
    /* Fully rounded pill shape */
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    /* Prevent text wrapping */
}

/* Desktop Positions for 4 badges */
/* 1st badge (child 2) - Top Right */
.glass-card:nth-child(2) {
    top: 12%;
    right: -2%;
}

/* 2nd badge (child 3) - Middle Right-ish (Balanced) */
.glass-card:nth-child(3) {
    top: 38%;
    right: 25%;
}

/* 3rd badge (child 4) - Middle Left-ish (Balanced) */
.glass-card:nth-child(4) {
    bottom: 30%;
    right: 0%;
}

/* 4th badge (child 5) - Bottom Right-ish (Balanced) */
.glass-card:nth-child(5) {
    bottom: 15%;
    /* Lifted up slightly from 8% */
    right: 15%;
}


/* Mobile Badge Styles */
@media (max-width: 768px) {
    .glass-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin: 0.5rem;
        display: inline-flex;
        width: auto;
    }

    .hero-visual {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-content: center;
        min-height: auto;
        padding-top: 2rem;
    }

    .gradient-sphere {
        position: absolute;
        width: 200px;
        height: 200px;
        z-index: 0;
    }
}



.glass-card i {
    font-size: 1.5rem;
    color: #6366f1;
}

/* Sections Spacing */
.bento-section,
.work,
.process-section {
    padding: 10rem 0;
    /* Increased for healthy space */
}


/* Services Detailed Grid */
.services-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-detail-card {
    background: rgba(24, 24, 27, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--curve);
    padding: 3rem 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.05), transparent);
    z-index: 0;
}

.service-detail-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(24, 24, 27, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.service-detail-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.service-detail-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.service-features li i {
    color: #6366f1;
    font-size: 0.8rem;
}


/* Process Section */
.process-section {
    padding: 8rem 0;
    background: var(--bg-color);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 4rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: #6366f1;
    transition: var(--transition);
}

.step-item:hover .step-icon {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.1);
}

.step-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

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

/* My Projects (Gallery Grid) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--curve);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: #6366f1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-image {
    height: 250px;
    width: 100%;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.card-content p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

.btn-visit {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    /* bit small */
    background: #6366f1;
    /* Purple button */
    color: #fff;
    /* white text */
    border-radius: 50px;
    /* rounded corner */
    font-weight: 500;
    text-align: center;
    margin-top: auto;
    border: none;
    font-size: 0.85rem;
    transition: none;
    /* remove hover effect (requested) */
    width: fit-content;
}

.btn-visit:hover {
    /* keeping it purple and white as requested */
    background: #6366f1;
    color: #fff;
    transform: none;
}

@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        gap: 3rem;
    }

    .process-steps::before {
        width: 2px;
        height: 100%;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    padding: 8rem 2rem;
    align-items: center;
}

.contact-info-pills {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.info-pill {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    /* Rectangular as requested */
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    width: 100%;
    /* Full width for stacking or flex-basis */
}

@media (min-width: 769px) {
    .contact-info-pills {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .info-pill {
        width: auto;
    }
}

.info-pill:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: #6366f1;
    transform: translateY(-5px);
}


.contact-form-card {
    background: rgba(18, 18, 18, 0.6);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: var(--curve);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-form-card .form-group label {
    font-weight: 600;
    color: #fff;
}

/* Page Headers */
.page-header {
    padding: 12rem 0 6rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.page-header h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    padding-bottom: 8rem;
}

.contact-text h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.email-link {
    font-size: 1.5rem;
    color: #6366f1;
    text-decoration: underline;
}

.contact-form {
    background: var(--surface-color);
    padding: 3rem;
    border-radius: var(--curve);
    border: 1px solid var(--border-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    /* Bold white as requested */
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 1.1rem;
    color: var(--text-primary);
    border-radius: 12px;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 3rem;
}

.form-group select option {
    background: var(--surface-color);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
}

.full-width {
    width: 100%;
    text-align: center;
    cursor: pointer;
}

/* Form Status Messages */
.form-status {
    margin: 1rem 0;
    padding: 0;
    border-radius: 8px;
    font-size: 0.95rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
    animation: slideDown 0.3s ease-out;
}

.form-status.success,
.form-status.error {
    display: flex;
    padding: 1rem;
}

.form-status.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.form-status.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.form-status i {
    font-size: 1.2rem;
}

.form-status a {
    color: inherit;
    text-decoration: underline;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    /* Allow vertical scrolling */
    background-color: rgba(5, 5, 5, 0.85);
    /* Dark semi-transparent background */
    backdrop-filter: blur(10px);
    /* Premium blur effect */
    animation: fadeIn 0.3s ease-out;
    padding: 2rem 1rem;
    /* Space for mobile/small screens */
}

.modal.active {
    display: flex;
    align-items: flex-start;
    /* Start from top if content is long */
    justify-content: center;
}

.modal-content {
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid var(--border-color);
    padding: 0;
    /* Changed to 0 to accommodate the banner */
    border-radius: var(--curve);
    width: 100%;
    max-width: 650px;
    /* Slightly wider for two-column rows */
    position: relative;
    margin: auto;
    overflow: hidden;
    /* Important for banner border-radius */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-banner {
    height: 6px;
    width: 100%;
    background: var(--accent-gradient);
}

.modal .contact-form,
.modal .modal-header {
    padding-left: 3rem;
    padding-right: 3rem;
}

.modal .modal-header {
    padding-top: 3rem;
}

.modal .contact-form {
    padding-bottom: 3rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0px;
    /* Managed by form-group */
}

.form-row .form-group {
    flex: 1;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}


.tag-optional {
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: 4px;
    opacity: 0.8;
}



.modal.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-header p {
    color: var(--text-secondary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Button disabled state */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Footer */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

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

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a:hover {
    color: #6366f1;
    transform: translateY(-2px);
    display: inline-block;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.05);
        opacity: 0.7;
    }
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

.delay-1 {
    animation-delay: 1s;
    transition-delay: 0.1s;
}

.delay-2 {
    animation-delay: 2s;
    transition-delay: 0.2s;
}

.delay-3 {
    animation-delay: 3s;
    transition-delay: 0.3s;
}

.delay-4 {
    animation-delay: 4s;
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

.delay-6 {
    transition-delay: 0.6s;
}


@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes animatePopIn {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-pop-in {
    animation: animatePopIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Scroll Animations */
.fade-in,
.fade-in-up,
.reveal-text {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.fade-in.visible,
.reveal-text.visible {
    opacity: 1;
}

.fade-in-up {
    transform: translateY(50px);
}

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

/* Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-intro,
    .hero-content h1 {
        font-size: 3.5rem;
    }



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

    .services-detailed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero {
        padding: 8.5rem 0 3rem;
        /* Increased top to clear navbar, reduced bottom */
    }


    .hero-intro,
    .hero-content h1 {
        font-size: 2.4rem;
        /* Balanced, readable size */
        justify-content: center;
        width: 100%;
    }

    .hero-intro {
        margin-bottom: 0.2rem;
    }

    .hero-content .subtitle {
        margin-top: 1rem;
        font-size: 1rem;
    }

    .hero-stats {
        display: flex;
        justify-content: center;
        gap: 2rem;
        margin-top: 2rem;
    }

    .stat-item .counter,
    .stat-item span {
        font-size: 1.8rem;
    }



    .hero-cta {
        display: flex;
        flex-direction: row;
        /* Side by side */
        gap: 0.8rem;
        justify-content: center;
        margin-top: 1.5rem;
        width: 100%;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: auto;
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        flex: 1;
        max-width: 160px;
        text-align: center;
    }



    .services-detailed-grid {
        grid-template-columns: 1fr;
    }


    .project-row,
    .project-row.reverse {
        flex-direction: column;
        gap: 2rem;
    }

    .project-image {
        width: 100%;
        height: 250px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-text {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-text h2,
    .contact-text h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    .contact-info-pills {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .info-pill {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        justify-content: center !important;
        display: flex !important;
        text-align: center;
    }

    /* Hamburger Menu */
    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        -webkit-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
        background-color: var(--text-primary);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        display: block;
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background-color: var(--surface-color);
        width: 100%;
        height: 100vh;
        /* Full screen */
        text-align: center;
        transition: 0.3s;
        padding-top: 8rem;
        /* Space for logo/close button */
        z-index: 1000;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 2rem 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    /* Hide custom cursor on mobile */
    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    body {
        cursor: auto;
    }

    .hero-visual {
        min-height: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin-top: 3rem;
        padding-bottom: 2rem;
    }

    .glass-card {
        display: flex;
        flex-direction: column;
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin: 0;
        transform: none;
        justify-content: center;
        text-align: center;
        padding: 1.5rem 1rem;
    }

    .glass-card i {
        margin-bottom: 0.5rem;
    }

    /* Form Mobile Fixes */
    .contact-form-card {
        padding: 1.5rem !important;
    }

    /* Remove nested padding so form doesn't look squashed */
    .contact-form-card .contact-form {
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

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

    .form-group label {
        text-align: center;
        width: 100%;
        display: block;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1rem;
        font-size: 16px;
        /* Prevents iOS auto-zoom on focus */
        height: 3.5rem;
        /* Taller, premium feel */
        text-align: center !important;
        /* Center placeholder and text */
        width: 100%;
    }

    .form-group textarea {
        height: auto;
        min-height: 120px;
    }

    .btn-primary.full-width {
        padding: 1.2rem;
        font-size: 1rem;
    }


    .modal-content {
        padding: 0;
        margin: 10px;
        width: calc(100% - 20px);
    }

    .modal-header {
        padding: 1.5rem 1rem 0;
        margin-bottom: 1rem;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }
}

/* Cursor Fix when Modal is Open - Show default cursor for easier form interaction */
body.modal-open {
    cursor: auto !important;
}

body.modal-open .cursor-dot,
body.modal-open .cursor-outline {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}