:root {
    --primary: #c4a06b; /* Warm Gold */
    --secondary: #1a1a1a; /* Deep Charcoal */
    --black: #0d0d0d;
    --white: #f5f5f5;
    --gray-light: #e0e0e0;
    --gray-dark: #333333;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--secondary);
    background-color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Use safe area insets for modern mobile devices */
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-family: 'Prata', serif;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

h1 { font-size: 5rem; line-height: 1.1; margin-bottom: 25px; }
h2 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 30px; }

span {
    color: var(--primary);
    font-style: italic;
}

section {
    padding: 100px 0;
}

.section-subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.section-title {
    margin-bottom: 40px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

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

.bg-black {
    background-color: var(--black);
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    color: var(--white);
}

.bg-dark-accent {
    background-color: #151515;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    color: var(--white);
}

/* NAVBAR */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    transition: var(--transition);
    background-color: transparent;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 15px 0;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

#navbar.scrolled .logo, #navbar.scrolled .nav-links a {
    color: var(--black);
}

#navbar.scrolled .menu-toggle span {
    background-color: var(--black);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
    position: relative;
}

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

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

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

/* MOBILE MENU TOGGLE */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
    transition: var(--transition);
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

/* HERO SECTION */
#hero {
    height: 100vh;
    height: 100dvh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* For parallax */
    background: url('assets/hero.png') center/cover no-repeat;
    z-index: -2;
    transform: translateY(0);
    will-change: transform;
    opacity: 0.8;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(13, 13, 13, 0.4) 0%, rgba(13, 13, 13, 0.9) 100%);
    z-index: -1;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 968px) {
    #navbar { 
        padding: 15px 0;
        background-color: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
    #navbar .logo, #navbar .nav-links a {
        color: var(--black);
    }
    #navbar .menu-toggle span {
        background-color: var(--black);
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background-color: rgba(13, 13, 13, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: 0.5s cubic-bezier(0.8, -0.4, 0.2, 1.4);
        z-index: 1000;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        overscroll-behavior: contain;
    }

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

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
        transition: 0.5s ease forwards;
        transition-delay: calc(0.1s * var(--i, 1));
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -7px); }

    .hero-content h1 { 
        font-size: clamp(2.5rem, 10vw, 4rem); 
        letter-spacing: 1px;
    }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-img { height: 350px; border-radius: 15px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .service-card { padding: 25px; border-radius: 12px; }
    .footer-content { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-brand p { margin: 20px auto; }
    
    /* Ensure no horizontal overflow ever */
    .container { width: 92%; }
}

@media (max-width: 576px) {
    .section-title { font-size: 2.1rem; }
    .hero-content h1 { font-size: 2.4rem; }
    .hero-btns { flex-direction: column; width: 100%; }
    .btn { text-align: center; padding: 15px 30px; width: 100%; border-radius: 50px; }
    .services-grid { grid-template-columns: 1fr; gap: 20px; }
    .portfolio-grid { grid-template-columns: 1fr; gap: 20px; }
    .stats { flex-direction: row; flex-wrap: wrap; justify-content: space-around; gap: 20px; }
    .stat-item { flex: 1 1 40%; }
}

.hero-content {
    text-align: left;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--gray-light);
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 18px 40px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--black);
}

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

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(196, 160, 107, 0.05);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--black);
}

/* ABOUT SECTION */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about-grid.reverse {
    grid-template-columns: 1.2fr 1fr;
}

.about-grid.reverse .about-img-container {
    order: 2;
}

.about-grid.reverse .about-text {
    order: 1;
}

@media (max-width: 968px) {
    .about-grid.reverse .about-img-container { order: 1; }
    .about-grid.reverse .about-text { order: 2; }
}

.about-img {
    height: 600px;
    background: url('assets/about.png') center/cover no-repeat;
    position: relative;
    box-shadow: 20px 20px 0px var(--primary);
    border-radius: 4px;
}

@media (max-width: 968px) {
    .about-img {
        height: 300px;
        box-shadow: 10px 10px 0px var(--primary);
        margin-bottom: 20px;
    }
}

.stats {
    display: flex;
    gap: 50px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* SERVICES SECTION */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    padding: 40px;
    background-color: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: var(--primary);
    transition: var(--transition);
    z-index: 0;
}

.service-card:hover::before {
    height: 100%;
}

.service-card h3, .service-card p, .service-card .service-icon {
    position: relative;
    z-index: 1;
}

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

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* TESTIMONIALS SECTION */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.testimonial-card {
    padding: 50px;
    border-left: 3px solid var(--primary);
    background-color: #1a1a1a;
    transition: var(--transition);
}

.testimonial-card:hover {
    background-color: #222;
    transform: scale(1.02);
}

.testimonial-card p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.8;
}

.testimonial-card cite {
    font-weight: 600;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-size: 0.8rem;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.portfolio-item {
    height: 450px;
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    cursor: pointer;
}

#port-1 { background-image: url('assets/portfolio1.png'); }
#port-2 { background-image: url('assets/portfolio2.png'); }
#port-3 { background-image: url('assets/portfolio3.png'); }
#port-4 { background-image: url('assets/portfolio4.png'); }

.port-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transition: var(--transition);
}

.portfolio-item:hover .port-overlay {
    bottom: 0;
}

/* FOOTER */
.footer {
    background-color: var(--black);
    padding: 100px 0 50px;
    border-top: 1px solid var(--gray-dark);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
}

.footer-nav-col h3 {
    font-size: 1rem;
    margin-bottom: 25px;
    color: var(--primary);
}

.footer-nav-col ul {
    list-style: none;
}

.footer-nav-col ul li {
    margin-bottom: 12px;
}

.footer-nav-col ul li a {
    color: var(--gray-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-nav-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-brand p {
    margin-top: 20px;
    max-width: 300px;
    color: var(--gray-light);
}

.footer-contact h3, .footer-social h3 {
    font-size: 1rem;
    margin-bottom: 25px;
    color: var(--primary);
}

.footer-contact p {
    margin-bottom: 10px;
    color: var(--gray-light);
}

.footer-social .social-links {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* WHY CHOOSE US */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.feature-item {
    text-align: center;
    padding: 30px;
}

.feature-item i {
    width: 40px;
    height: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

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

/* ANIMATIONS */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s, transform 1s;
}

.animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 968px) {
    .features-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 576px) {
    .footer-content { grid-template-columns: 1fr; }
    .nav-links { display: flex; }
    #navbar .nav-links { display: none; } /* Hide the side menu on mobile in favor of bottom nav? No, keep it for secondary links. Let's hide it IF the toggle is clicked. */
    .services-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    section { padding: 60px 0; }
    .hero-content h1 { font-size: 2.5rem; }
    .stat-number { font-size: 2rem; }
    .testimonial-card { padding: 30px 20px; }
}

/* MOBILE NAV BAR */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: none;
    justify-content: space-around;
    padding: 12px 10px calc(12px + env(safe-area-inset-bottom, 15px));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1100;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

@media (max-width: 968px) {
    .mobile-nav {
        display: flex;
    }
    body {
        padding-bottom: 80px; /* Space for the bottom nav */
    }
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    gap: 5px;
    transition: var(--transition);
}

.mobile-nav-item i {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
}

.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item.active i {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.mobile-nav-item:active {
    transform: scale(0.92);
}

/* UI Enhancements for app feel */
.service-card, .portfolio-item, .testimonial-card {
    border-radius: 12px;
}

/* PROGRESS BAR */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    width: 0%;
    z-index: 2000;
    transition: width 0.1s;
}

/* PROCESS STEPS */
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-top: 60px;
}

.step {
    position: relative;
    padding: 30px;
}

.step-num {
    font-family: 'Prata', serif;
    font-size: 4rem;
    color: rgba(196, 160, 107, 0.1);
    position: absolute;
    top: -20px;
    left: 0;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

/* PARTNERS */
.partners-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    opacity: 0.6;
}

.partner-logo {
    font-family: 'Prata', serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* FLOATING CTA */
.floating-cta {
    position: fixed;
    right: 30px;
    bottom: 100px; /* Above mobile nav */
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: var(--transition);
}

.floating-cta:hover {
    transform: scale(1.1);
}

@media (max-width: 968px) {
    .process-steps { grid-template-columns: 1fr; gap: 30px; }
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
}

/* Fix for mobile scroll animations being too aggressive */
@media (max-width: 768px) {
    .animate-on-scroll {
        transform: translateY(20px);
        transition: opacity 0.8s, transform 0.8s;
    }
}
