/* DESKTOP-FIRST CRITICAL CSS */


:root {
    --dark-bg: #121212;
    --dark-card: #1e1e1e;
    --dark-border: #333333;
    --primary: #8f00ace3;
    --secondary: #03dac6;
    --accent: #8b27ceb9;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
}

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

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container - Desktop first */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header - Desktop optimized */
header {
    background-color: rgba(18, 18, 18, 0.98);
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--dark-border);
    height: 80px; /* Fixed height for scroll offset calculation */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

/* Mobile menu toggle - HIDDEN ON DESKTOP */
.menu-toggle {
    display: none; /* Hidden by default for desktop */
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

/* Desktop navigation */
.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}

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

.nav-links a:hover:after {
    width: 100%;
}

/* Desktop video hero */
.video-hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: 80px; /* Offset for fixed header */
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0) 0%,
        rgba(0, 0, 0, 0) 100%,
        rgba(255, 255, 255, 0) 50%,
        rgba(18, 18, 18, 0.9) 70%,
        rgba(18, 18, 18, 0.95) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    padding: 3rem;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

/* Desktop buttons */
.btn {
    display: inline-block;
    background: var(--primary);
    color: #121212;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(187, 134, 252, 0.3);
}

.btn:hover {
    background: #a45ff9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(187, 134, 252, 0.4);
}

/* All sections need padding-top to account for fixed header */
.portfolio, .services, .process, .testimonials, .contact {
    padding-top: 80px; /* Exact header height for perfect alignment */
    scroll-margin-top: 80px; /* Ensure smooth scroll lands exactly at header bottom */
}

/* Desktop portfolio grid */
.portfolio {
    padding-bottom: 6rem;
    background-color: #0a0a0a;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    padding-top: 20px; /* Small buffer for visual comfort */
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.section-title p {
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid var(--dark-border);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 2rem;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Desktop services */
.services {
    padding-bottom: 6rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.service-card {
    background: var(--dark-card);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--dark-border);
    transition: transform 0.3s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

/* Desktop process */
.process {
    background-color: #0a0a0a;
    padding-bottom: 6rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--primary);
    color: #121212;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

/* Desktop testimonials */
.testimonials {
    padding-bottom: 6rem;
}

.testimonials-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    background: var(--dark-card);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: none;
    border: 1px solid var(--dark-border);
}

.testimonial.active {
    display: block;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 1.3rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

/* ORIGINAL CONTACT FORM STYLES - Restored */
.contact {
    background: #0a0a0a;
    padding-bottom: 6rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--dark-card);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--dark-border);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--dark-border);
    border-radius: 5px;
    font-size: 1rem;
    background-color: #2a2a2a;
    color: var(--text-primary);
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Success/Error Messages */
.form-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
    display: block;
}

.form-message.error {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
    display: block;
}

/* ORIGINAL FOOTER & SOCIAL MEDIA STYLES - Restored */
footer {
    background: #0a0a0a;
    padding: 3rem 0 2rem;
    text-align: center;
    border-top: 1px solid var(--dark-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: color 0.3s;
    padding: 0.5rem;
}

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

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.video-modal.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 900px;
    background: var(--dark-card);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--dark-bg);
    border-bottom: 1px solid var(--dark-border);
}

.modal-title {
    font-size: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Thank You Modal */
.thank-you-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.thank-you-modal.active {
    display: flex;
}

.thank-you-content {
    background: var(--dark-card);
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: 15px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    border: 1px solid var(--primary);
    box-shadow: 0 10px 30px rgba(143, 0, 172, 0.3);
    animation: popup-appear 0.5s ease-out;
}

@keyframes popup-appear {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.thank-you-icon {
    font-size: clamp(3rem, 6vw, 4rem);
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.thank-you-content h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.thank-you-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.6;
}

.thank-you-btn {
    background: var(--primary);
    color: #121212;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(143, 0, 172, 0.4);
}

.thank-you-btn:hover {
    background: #a45ff9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(143, 0, 172, 0.5);
}

/* MOBILE STYLES - Loaded conditionally */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .portfolio-grid {
        gap: 1.5rem;
    }
    
    .portfolio-item {
        height: 280px;
    }
    
    .services-grid {
        gap: 2rem;
    }
    
    .contact-form {
        padding: 2.5rem 2rem;
    }
}

/* Tablet styles - SHOW MENU TOGGLE */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Mobile header adjustments */
    header {
        height: 70px; /* Smaller header height for mobile */
        padding: 1rem 0;
    }
    
    .video-hero {
        margin-top: 70px; /* Adjust for smaller mobile header */
        height: calc(100vh - 70px); /* Adjust height for mobile */
        min-height: 500px;
    }
    
    /* Adjust scroll margins for mobile header height - TITLE RIGHT UNDER HEADER */
    .portfolio, .services, .process, .testimonials, .contact {
        scroll-margin-top: 70px; /* Exact header height */
        padding-top: 70px; /* Exact header height */
    }
    
    /* Section title positioning - right under header */
    .section-title {
        padding-top: 10px; /* Minimal spacing */
        margin-bottom: 3rem;
    }
    
    /* SHOW THE MENU TOGGLE BUTTON */
    .menu-toggle {
        display: block !important; /* Force show on mobile */
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--dark-bg);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        gap: 1.5rem;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.1rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--dark-border);
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        padding: 0;
        margin-bottom: 2rem;
    }
    
    .portfolio, .services, .process, .testimonials, .contact {
        padding-bottom: 4rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .portfolio-item {
        height: 250px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        margin-top: 3rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .service-card, .testimonial {
        padding: 2rem 1.5rem;
    }
    
    .btn {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Mobile styles */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    header {
        height: 65px; /* Even smaller for very small screens */
        padding: 0.75rem 0;
    }
    
    .video-hero {
        margin-top: 65px;
        min-height: 450px;
    }
    
    /* Exact positioning for smallest screens */
    .portfolio, .services, .process, .testimonials, .contact {
        scroll-margin-top: 65px;
        padding-top: 65px;
    }
    
    .section-title {
        padding-top: 5px; /* Even smaller spacing */
    }
    
    .hero-content {
        padding: 1.5rem 0.75rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .portfolio-item {
        height: 220px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .contact-form {
        padding: 1.5rem 1rem;
    }
    
    .thank-you-content {
        padding: 2rem 1.5rem;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}

/* Optimize fonts for desktop */
@media (min-width: 1025px) {
    body {
        font-size: 18px;
    }
    
    h1, h2, h3 {
        letter-spacing: -0.5px;
    }
    
    
}