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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #FAF9F6;
    color: #333;
}

/* --- Colors & Typography --- */
.teal { color: #1C7C8C; }
h1, .tagline { font-family: 'Playfair Display', serif; }

/* --- Header & Video Background --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden; /* This chops off the zoomed watermark */
    display: flex;
    flex-direction: column;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08); /* zooms in slightly to hide watermark */
    pointer-events: none; /* Stops users from clicking or pausing */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Darkens the video */
}

/* --- Navigation Bar (Fixed & Glassy) --- */
.navbar {
    position: fixed; /* Sticks it to the screen */
    top: 0;
    left: 0;
    width: 100%; /* Makes sure it stretches all the way across */
    height: 60px;
    
    /* The Premium Glass Effect */
    background-color: #D9D9D9; /* Dark semi-transparent background */
    backdrop-filter: blur(10px); /* Blurs whatever is behind the navbar */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle bottom border */
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px; /* Slightly thinner padding so it doesn't take up too much screen space */
    z-index: 9999; /* Keeps it in front of everything */
    color: white;
    transition: all 0.3s ease;
}

/* --- New Image Logo Styles (Header) --- */
.logo-link {
    display: flex; /* Centers the image vertically in the link target */
    align-items: center;
    text-decoration: none;
}

.logo-img {
    max-height: 50px; /* Set your ideal logo height here */
    width: auto; /* Keeps the aspect ratio from the image */
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: black;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #1C7C8C;
}

.nav-btn, .btn {
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.nav-btn {
    background-color: #1C7C8C;
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
}

.nav-btn:hover { background-color: white; color: #1C7C8C; }

/* --- Main Header Content --- */
.hero-content {
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
    color: white;
    padding: 0 20px;
    margin-top: -50px; /* pull up slightly */
}

.hero-content h1 {
    font-size: 5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.5rem;
    font-style: italic;
    color: #1C7C8C;
    margin-bottom: 30px;
}

/* --- Buttons --- */
.buttons { display: flex; gap: 20px; }

.btn {
    padding: 12px 32px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
}

.btn.primary {
    background-color: #1C7C8C;
    color: white;
    border: none;
}
.btn.primary:hover { background-color: #135a66; }

.btn.outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}
.btn.outline:hover { background-color: white; color: black; }

/* --- Animations --- */
.animate-fade-down { animation: fadeDown 1s ease forwards; }
.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* --- "We Manage" Services Section --- */
.services-section {
    padding: 100px 20px;
  background-color: #D9D9D9;
  text-align: center;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #333;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-top: 10px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

.accent-line {
    width: 60px;
    height: 3px;
    background-color: #1C7C8C; /* Teal Accent */
    margin: 20px auto 0;
}

/* --- CSS Grid Layout --- */
.services-grid {
    display: grid;
    /* This automatically creates columns that fit the screen size! */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Service Cards Base (Hidden and pushed down) --- */
.service-card {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    /* Hide the cards initially */
    opacity: 0; 
    transform: translateY(80px); 
    border-bottom: 4px solid transparent;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* The slow-motion transition (0.8s is buttery smooth) */
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1); 
}

/* --- The Visible State (Triggered by JavaScript) --- */
.service-card.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- The Hover Effect (Only works after it's visible) --- */
.service-card.show:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(28, 124, 140, 0.15);
    border-bottom: 4px solid #1C7C8C;
}

/* --- Staggered Delay (Makes them pop up one after the other) --- */
.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }
.service-card:nth-child(4) { transition-delay: 0.4s; }
.service-card:nth-child(5) { transition-delay: 0.5s; }
.service-card:nth-child(6) { transition-delay: 0.6s; }

/* --- Parallax Call To Action --- */
/* --- Desktop Base (Screen sizes larger than 768px) --- */
.parallax-cta {
    position: relative;
    
    /* We are changing fixed height to padding/min-height for better flexibility */
    min-height: 400px; 
    padding: 100px 20px; /* Ensures text has safe spacing vertically and horizontally */

    /* The 'magic' parallax effect only applies to large screens */
    background-image: url('assets/images/cta-bg.png'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    box-sizing: border-box; /* Crucial so padding doesn't add to the width */
}

/* --- Mobile Responsiveness (Screens 768px and smaller) --- */
@media (max-width: 768px) {
    .parallax-cta {
        /* 1. Reduce padding so the section isn't too large on small screens */
        padding: 60px 20px;
        min-height: 300px; /* Slightly shorter section on mobile */

        /* 2. IMPORTANT: Disable Parallax for Mobile */
        /* Parallax attachment 'fixed' often creates performance lag or display */
        /* bugs on iOS and Android. Setting it to 'scroll' is best practice. */
        background-attachment: scroll; 
    }
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay so the white text is easy to read */
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.cta-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
}

/* --- Footer Section --- */
.site-footer {
    background-color: #171716; /* Sleek dark gray/black */
    color: #fff;
    padding: 60px 20px 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

/* --- New Image Logo Styles (Footer) --- */
.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Keep left alignment */
    gap: 15px; /* Space between logo and subtitle */
}

.footer-logo-img {
    max-height: 70px; /* Thinner for the footer */
    width: auto;
    display: block;
}

.footer-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #1C7C8C; /* Teal Accent from image_0.png */
    font-size: 1rem;
}

.footer-contact h3, .footer-social h3 {
    color: #1C7C8C;
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #ccc;
    font-size: 0.95rem;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 600;
}

.social-icons a:hover {
    color: #1C7C8C;
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #777;
    font-size: 0.9rem;
}

/* --- Magic Cursor Stars --- */
.magic-star {
    position: fixed; /* Fixed so it follows the mouse over the whole screen */
    width: 8px;
    height: 8px;
    background-color: #1C7C8C; /* Your premium teal accent color */
    border-radius: 50%;
    pointer-events: none; /* VERY IMPORTANT: This stops the stars from blocking your clicks! */
    box-shadow: 0 0 10px #1C7C8C, 0 0 20px #1C7C8C; /* Gives it that shiny glow */
    z-index: 9999; /* Keeps it above everything else */
    animation: sparkleFade 0.8s linear forwards;
}

@keyframes sparkleFade {
    0% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    100% {
        transform: scale(0) translateY(40px); /* Shrinks and falls down */
        opacity: 0;
    }
}

/* --- Premium Scroll Progress Bar --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%; /* Starts at 0 */
    height: 4px;
    background-color: #1C7C8C;
    z-index: 10000; /* Keeps it above everything, even the cursor stars */
    box-shadow: 0 0 10px #1C7C8C;
    transition: width 0.1s ease-out;
}

/* --- Typewriter Blinking Cursor --- */
#typewriter::after {
    content: '|';
    animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- Smooth Scrolling for the whole page --- */
html {
    scroll-behavior: smooth;
}

/* --- Clickable Footer Links --- */
.contact-link {
    color: #ccc; /* Keeps it matching the other footer text */
    text-decoration: none; /* Removes the ugly default underline */
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #1C7C8C; /* Turns premium teal when you hover over it */
}

/* --- Social Media Icons & Hover Automation --- */
.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.social-btn {
    color: #ccc;
    /* This custom timing creates a "bouncy" spring effect */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    display: inline-block;
}

/* Base animation: Bounces up and scales slightly larger */
.social-btn:hover {
    transform: translateY(-8px) scale(1.15);
}

/* Instagram Colors & Glow */
.social-btn.insta:hover {
    color: #E1306C;
    filter: drop-shadow(0 5px 15px rgba(225, 48, 108, 0.5));
}

/* TikTok Colors & Glow */
.social-btn.tiktok:hover {
    color: palegoldenrod;
    filter: drop-shadow(0 5px 15px rgba(0, 242, 254, 0.5));
}

/* Twitter/X Colors & Glow */
.social-btn.twitter:hover {
    color: #1DA1F2;
    filter: drop-shadow(0 5px 15px rgba(29, 161, 242, 0.5));
}

/* --- Hamburger Icon (Desktop: Base Styles, Hidden) --- */
/* This MUST sit above the @media query */
.hamburger {
    display: none; /* Hidden on big screens */
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 10001; /* Keeps it above the slide-out menu */
}

.hamburger .bar {
    width: 30px;
    height: 3px;
    background-color: black;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* =========================================
   MOBILE RESPONSIVENESS (Phones & Tablets) 
   ========================================= */
@media (max-width: 768px) {
    
    /* 1. Shrink Navbar Padding & Fix Logo */
    .navbar {
        padding: 15px 20px;
    }
    .logo-img {
        max-height: 35px; /* Shrunk down for mobile header */
    }
    .nav-btn {
        padding: 8px 16px;
        font-size: 14px;
        color: #171716;
    }

    /* --- Hamburger Menu (Mobile: Visible) --- */
    /* This overrides the display:none from the desktop rules */
    .hamburger {
        display: flex;
        
    }

    /* The Slide-Out Menu */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hides it completely off the right side of the screen */
        width: 70%; /* Takes up 70% of the phone screen */
        height: 100vh;
        background-color:rgba(217, 217, 217, 0.9); /* Dark premium background */
        backdrop-filter: blur(15px); /* Glassy blur */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0); /* Smooth slide */
        z-index: 10000;
    }

    /* When JavaScript adds the "active" class, it slides into view */
    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        font-size: 1.5rem;
        font-weight: 600;
        letter-spacing: 2px;
    }

    /* --- Hamburger Twist Animation into an 'X' --- */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0; /* Hides the middle line */
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* 2. Scale down the massive Hero Text */
    .hero-content h1 {
        font-size: 3rem; /* Shrunk down from 5rem */
        margin-top: 40px;
    }
    .subtitle {
        font-size: 1rem;
    }
    .tagline {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    /* 3. Stack the Hero Buttons */
    .buttons {
        flex-direction: column; /* Stacks them vertically instead of side-by-side */
        gap: 15px;
        width: 100%;
        max-width: 280px;
    }
    .btn {
        width: 100%; /* Makes buttons full-width on mobile */
    }

    /* 4. Fix Section Paddings and Titles */
    .services-section {
        padding: 60px 15px;
    }
    .section-title {
        font-size: 2rem;
    }
    .section-subtitle {
        font-size: 1rem;
    }

    /* 5. Scale the Call-to-Action Banner */
    .parallax-cta {
        height: 300px;
    }
    .cta-content h2 {
        font-size: 2rem;
    }
    .cta-content p {
        font-size: 1rem;
    }

    /* 6. Center and Stack the Footer */
    .footer-content {
        flex-direction: column; /* Stacks the 3 columns into 1 */
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    
    .footer-logo {
        align-items: center; /* Center the image in the centered footer column */
    }
    
    .footer-logo-img {
        max-height: 45px; /* Thinner for the mobile footer */
    }

    .social-icons {
        justify-content: center; /* Centers the glowing icons */
    }
    
    /* --- Force the order of the Navbar items on Mobile (NOW CORRECTLY INSIDE MEDIA QUERY) --- */
    .logo-link {
        order: 1; /* Keeps logo image on the far left */
    }

    .nav-btn {
        order: 2; /* Moves the button to the middle */
        margin-left: auto; /* Pushes the button to the right side... */
        margin-right: 20px; /* ...but keeps a nice space between it and the hamburger */
        padding: 8px 16px;
        font-size: 14px;
    }

    .hamburger {
        order: 3; /* Forces the hamburger to the far right edge! */
        display: flex;
    }
} /* <--- This curly bracket perfectly closes the Mobile section, keeping your orders inside! */