/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@800;900&display=swap');
/* For the big text */

:root {
    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    --text-main: #1B4D3E;
    /* CHANGED: Algae Green for main text */
    /* CHANGED: Dark text for contrast on light bg */
    --text-dark: #1B4D3E;
    /* Dark Green for inside white cards */

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --font-display: 'Montserrat', sans-serif;

    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    /* Animated Gradient Background - Subtle Elegant Yellows/Golds */
    background: linear-gradient(-45deg, #fffbf0, #fff3e0, #ffe082, #eec04b);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    overflow-x: hidden;
    width: 100%;
    line-height: 1.6;
    min-height: 100vh;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #0e3524;
    /* Darker Algae Green for headings */
    /* Ensure headings are dark */
}

a {
    text-decoration: none;
    transition: var(--transition);
    color: #1B4D3E;
}

a:hover {
    color: #bfa15f;
    /* Muted Gold hover */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(27, 77, 62, 0.5);
    /* Algae Green scrollbar */
    /* Darker scrollbar for light theme */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(27, 77, 62, 0.8);
}

/* Navbar */
/* Navbar */
.navbar {
    padding: 1.5rem 2rem;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.6);
    /* Darker tint initially */
    backdrop-filter: blur(10px);
    /* Glass effect */
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    /* almost black on scroll */
    backdrop-filter: blur(20px);
    /* Strong blur */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    padding: 0;
    margin: 0;
}

.navbar-brand img {
    height: 85px;
    /* Increased from 60px */
    width: auto;
    transition: var(--transition);
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff !important;
    /* White links for contrast */
    margin: 0 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    text-shadow: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #d4af37;
    /* Gold underline */
    transition: var(--transition);
}

.nav-link:hover {
    color: #d4af37 !important;
    /* Gold on Hover */
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-custom {
    background: #1B4D3E;
    /* Algae Green Button */
    /* Dark button */
    backdrop-filter: blur(5px);
    color: white;
    padding: 10px 30px;
    border: 1px solid #1B4D3E;
    border-radius: 50px;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(27, 77, 62, 0.2);
}

.btn-custom:hover {
    background: #d4af37;
    /* Gold on hover */
    border-color: #d4af37;
    color: #0e3524;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

/* Glassmorphism Cards & Sections */
.glass-card {
    background: rgba(255, 255, 255, 0.65);
    /* Lighter for readability */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    /* Softer shadow */
    padding: 2rem;
    color: var(--text-dark);
}

.card {
    background: rgba(255, 255, 255, 0.9);
    /* Solid-ish for readability */
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(27, 77, 62, 0.1);
    /* Greenish shadow */
}

.card h4 {
    color: #0e3524;
    font-weight: 700;
}

.card .text-muted {
    color: #5c7c64 !important;
    /* Muted Green */
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    padding-top: 160px;
    /* Offset for Taller Fixed Navbar (Logo=85px + Padding) */
}

.spotlight-text {
    font-family: var(--font-display);
    font-size: 10vw;
    /* Massive size */
    line-height: 0.85;
    font-weight: 900;
    text-transform: uppercase;
    color: transparent;
    /* Fallback */

    /* THE MAGIC: Image inside text */
    background-image: url('../resources/hero-video.webp');
    background-size: cover;
    background-position: center;
    -webkit-background-clip: text;
    background-clip: text;

    /* Optional: Drop shadow to make it pop against the colorful bg */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));

    margin-bottom: 1rem;
    position: relative;
    z-index: 2;

    /* Subtle movement of the background image inside the text */
    animation: textBgMove 20s ease-in-out infinite alternate;
}

@keyframes textBgMove {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.sub-hero-text {
    font-size: 1.5rem;
    color: #1B4D3E;
    /* Algae Green */
    /* CHANGED: Dark subtext */
    letter-spacing: 5px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 3rem;
    text-shadow: none;
    /* Removed white shadow */
    /* Removed white shadow */
}

/* Hero Social Icons */
.hero-social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    /* Adjusted gap */
    z-index: 10;
    position: relative;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    /* Big touch target */
    height: 70px;
    border-radius: 50%;
    /* Circular */
    font-size: 2rem;
    /* Large icon */
    color: #1B4D3E;
    /* Algae Green */
    background: rgba(255, 255, 255, 0.1);
    /* Subtle Glass */
    border: 2px solid #1B4D3E;
    /* Solid Border */
    backdrop-filter: blur(5px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.social-icon:nth-child(1) {
    animation-delay: 1s;
}

.social-icon:nth-child(2) {
    animation-delay: 1.2s;
}

.social-icon:nth-child(3) {
    animation-delay: 1.4s;
}

.social-icon:nth-child(4) {
    animation-delay: 1.6s;
}

.social-icon:hover {
    background: #1B4D3E;
    /* Fill with Green */
    color: #d4af37;
    /* Icon becomes Gold */
    border-color: #d4af37;
    /* Border becomes Gold */
    transform: translateY(-5px) rotate(360deg);
    /* Playful rotation */
    box-shadow: 0 10px 25px rgba(27, 77, 62, 0.4);
    /* Glow */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Backgrounds */
section {
    position: relative;
    z-index: 1;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.3);
    /* Slightly darker */
    backdrop-filter: blur(10px);
    padding: 60px 0 20px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
}

footer h5,
footer h1,
footer h2,
footer h3,
footer h4,
footer h6 {
    color: #ffffff !important;
    font-weight: 700;
    margin-bottom: 20px;
}

footer p,
footer li,
footer span,
footer div {
    color: #ffffff !important;
    opacity: 1 !important;
    /* Force full opacity */
}

footer a {
    color: #ffffff !important;
    opacity: 0.9;
    /* Slight transparency for links optionally, or 1. If user wants SAME, let's go 1 */
}

footer a:hover {
    color: #ffd700 !important;
    opacity: 1 !important;
    text-decoration: none;
}

footer .text-muted,
footer .text-white-50 {
    color: #ffffff !important;
    opacity: 1 !important;
    /* Override bootstrap opacity */
}

footer i {
    color: #ffffff !important;
}

/* Custom Toggler for Dark Navbar */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Responsiveness */
@media (max-width: 991px) {
    .spotlight-text {
        font-size: 15vw;
        /* Maximized for mobile */
        line-height: 1;
        /* Tighter line height */
        margin-bottom: 2rem;
        letter-spacing: -1px;
        /* Squeeze slightly to fit ARCHITECTS */
    }

    .sub-hero-text {
        font-size: 0.9rem;
        /* Smaller text */
        letter-spacing: 2px;
    }

    /* Adjust social icons for mobile */
    .hero-social-icons {
        gap: 0.8rem;
    }

    .navbar-brand img {
        max-height: 70px;
        /* Increased from 50px */
        /* Smaller logo on mobile */
        max-width: 100%;
        /* Prevent overflow */
    }

    .social-icon {
        width: 50px;
        /* Smaller touch target */
        height: 50px;
        font-size: 1.5rem;
        /* Smaller icon */
    }

    /* Fix Navbar layout on mobile */
    .navbar .container {
        display: flex;
        flex-wrap: wrap;
        /* Allow wrapping so menu drops down */
        justify-content: space-between;
        align-items: center;
    }

    .navbar-brand {
        font-size: 1.5rem;
        /* Slightly smaller to fit */
    }

    /* Mobile Menu Background */
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.85);
        /* Dark Glass Mobile Menu */
        backdrop-filter: blur(20px);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-collapse .nav-link {
        color: #ffffff !important;
    }
}

/* Testimonial Card Specifics */
.testimonial-card {
    border-left: 4px solid #bfa15f;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-family: var(--font-heading);
    font-size: 5rem;
    color: rgba(191, 161, 95, 0.2);
    position: absolute;
    top: -10px;
    right: 20px;
    line-height: 1;
}

/* Service Duality Hover */
.duality-card {
    transition: var(--transition);
    overflow: hidden;
}

.duality-card:hover img {
    transform: scale(1.05);
}

.duality-card img {
    transition: transform 0.6s ease;
}