:root {
    --navy: #0a192f;
    --navy-light: #112240;
    --gold: #c5a059;
    --platinum: #e6f1ff;
    --text-gray: #8892b0;
}

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

body {
    background-color: var(--navy);
    color: var(--platinum);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navigation Fix --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: rgba(10, 25, 47, 0.95);
    display: flex;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

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

/* --- Enhanced Navbar --- */
.logo img {
    height: 125px;
    /* Increased for better visibility */
    width: auto;
    transition: 0.3s;
}

.d-desktop {
    display: inline-flex;
}

.btn-nav-whatsapp {
    background: #c5a059;
    color: white !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    gap: 8px;
    align-items: center;
}

/* Premium Hover Effect for Chat Now */
.btn-nav-whatsapp {
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    /* Smooth, high-end transition */
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-nav-whatsapp:hover {
    background-color: #d4b475 !important;
    /* Slightly lighter gold */
    transform: translateY(-2px);
    /* Subtle lift */
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.4);
    /* Premium gold glow */
    letter-spacing: 0.5px;
    /* Slight expansion for "Intelligence" feel */
}

/* Optional: Add a subtle shine sweep */
.btn-nav-whatsapp::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 100%);
    transform: skewX(-25deg);
    transition: 0.7s;
}

.btn-nav-whatsapp:hover::after {
    left: 150%;
}


/* --- Mobile Hamburger UI --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.bar {
    width: 28px;
    height: 3px;
    background-color: var(--gold);
    transition: 0.4s;
}



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

.nav-links a {
    text-decoration: none;
    color: var(--platinum);
    font-weight: 400;
    transition: 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: all 0.3s ease;
}

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

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

.btn-nav {
    background: var(--gold);
    color: var(--navy) !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
}

/* --- Hero Section  --- */
.hero {
    height: 100vh;
    min-height: 600px;
    /* Ensures enough space on short phones */
    padding-top: 120px;
    /* Increased from 80px to prevent cropping */
    display: flex;
    align-items: center;
    background: radial-gradient(circle at center, #112240 0%, #0a192f 100%);
}

/* Creating a Digital Network/Grid feel */
.hero-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(197, 160, 89, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(197, 160, 89, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.hero-visual-overlay {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.1) 0%, transparent 70%);
    top: -10%;
    right: -10%;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 10s infinite alternate;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(197, 160, 89, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(197, 160, 89, 0.07) 1px, transparent 1px);
    background-size: 80px 80px;
    /* Larger grid for desktop */
    mask-image: radial-gradient(circle at 50% 50%, black, transparent 90%);
    pointer-events: none;
    z-index: 1;
}

/* 2. Global Glow - This makes the gold orb show on Desktop */
.hero::after {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.15) 0%, transparent 70%);
    top: 10%;
    right: -10%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

/* Glassmorphism Effect for Trust */
.hero-glass-card {
    background: rgba(17, 34, 64, 0.4);
    backdrop-filter: blur(10px);
    padding: 60px;
    border-radius: 20px;
    border: 1px solid rgba(197, 160, 89, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero h1 {
    font-size: 4.2rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Subtle Animation for the Glow */
@keyframes float {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(-50px, 50px);
    }
}


.text-gold {
    color: var(--gold);
}

.badge {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 10px;
}

/* --- Buttons --- */
.hero-btns {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
    padding: 15px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    /* Needed for the shimmer effect */
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    /* Premium timing */
}



.btn-primary:hover {
    background-color: #d4b475;
    /* Lighter gold on hover */
    transform: translateY(-3px);
    /* Subtle lift */
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
    /* Gold glow */
}

/* Shimmer shine effect */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 100%);
    transform: skewX(-25deg);
    transition: 0.7s;
}

.btn-primary:hover::before {
    left: 150%;
}

.btn-secondary {
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 15px 30px;
    border-radius: 4px;
    text-decoration: none;
    position: relative;
    background: transparent;
    z-index: 1;
    transition: all 0.4s ease;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gold);
    z-index: -1;
    transition: all 0.4s ease;
}

.btn-secondary:hover {
    color: var(--navy);
    /* Text turns dark when button fills */
    border-color: var(--gold);
    transform: translateY(-3px);
}

.btn-secondary:hover::after {
    height: 100%;
}

/* --- Sections --- */
.section {
    padding: 100px 0;
}

/* --- High-End Process Section --- */
#how-we-work {
    background: radial-gradient(circle at bottom right, #112240, #0a192f);
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-top: 60px;
    position: relative;
}

.flow-item {
    background: rgba(17, 34, 64, 0.6);
    backdrop-filter: blur(10px);
    padding: 50px 30px;
    border: 1px solid rgba(197, 160, 89, 0.1);
    /* Very subtle gold border */
    border-top: 4px solid var(--gold);
    border-radius: 4px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    z-index: 1;
}

/* Hover "Depth" Effect */
.flow-item:hover {
    transform: translateY(-10px);
    border-color: rgba(197, 160, 89, 0.5);
    background: rgba(17, 34, 64, 0.9);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.flow-icon {
    font-size: 0.9rem;
    color: var(--gold);
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 50px;
}

.flow-item h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--platinum);
}

.flow-item p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
}

.flow-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.flow-item.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* --- Statistics Section --- */
.stats {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy) 100%);
    padding: 100px 0;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.stat-card {
    text-align: center;
    padding: 20px;
    flex: 1;
    min-width: 200px;
}

.stat-card h2 {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: baseline;
}

/* Suffix for % or + symbols */
.suffix {
    font-size: 2rem;
    color: var(--gold);
    margin-left: 2px;
    font-weight: 600;
}

.stat-card p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-gray);
    font-weight: 600;
}

/* --- Premium About Section --- */
.about-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-visual {
    flex: 1;
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: visible;
}

.image-wrapper img {
    width: 100%;
    border-radius: 8px;
    filter: grayscale(30%) contrast(110%);
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--navy-light);
    padding: 30px;
    border-left: 4px solid var(--gold);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.experience-badge .gold-text {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.about-content {
    flex: 1.2;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--platinum);
    margin-bottom: 20px;
    font-weight: 600;
}

.about-features {
    margin: 30px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- Premium Portfolio Section --- */
.portfolio-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.portfolio-item {
    text-align: center;
    perspective: 1000px;
    /* Enables 3D effect */
}

.mobile-frame {
    width: 260px;
    /* Typical mobile ratio */
    height: 520px;
    margin: 0 auto 25px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    border: 8px solid #112240;
    /* Mock phone bezel */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    background: var(--navy-light);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s ease;
}

.mobile-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.frame-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 60%, rgba(10, 25, 47, 0.9));
    opacity: 0;
    transition: 0.4s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 30px;
}

.view-tag {
    background: var(--gold);
    color: var(--navy);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Premium Hover State */
.portfolio-item:hover .mobile-frame {
    transform: translateY(-20px) rotateX(10deg) rotateY(-5deg);
    /* Slight 3D tilt */
    box-shadow: 0 50px 80px rgba(0, 0, 0, 0.6);
    border-color: var(--gold);
}

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

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item h3 {
    font-size: 1.4rem;
    color: var(--platinum);
    font-family: 'Playfair Display', serif;
}


/* Form */
/* --- Premium Form Upgrade --- */
.premium-form {
    background: var(--navy-light);
    padding: 50px;
    border-radius: 12px;
    border: 1px solid rgba(197, 160, 89, 0.1);
    /* Very subtle gold border */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    margin: 40px auto 0;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 5px;
}

/* --- Premium Form Upgrade --- */
.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(17, 34, 64, 0.4);
    /* Glass Effect */
    backdrop-filter: blur(10px);
    padding: 60px;
    border-radius: 20px;
    border: 1px solid rgba(197, 160, 89, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.input-field {
    flex: 1;
    margin-bottom: 20px;
    position: relative;
}

.premium-form input,
.premium-form select,
.premium-form textarea {
    width: 100%;
    padding: 18px 20px;
    background: rgba(10, 25, 47, 0.7);
    border: 1px solid rgba(197, 160, 89, 0.15);
    border-radius: 8px;
    color: var(--platinum);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

/* Subtle Gold Focus */
.premium-form input:focus,
.premium-form select:focus,
.premium-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(17, 34, 64, 0.9);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.05);
}

.premium-form .input-field:not(.form-row .input-field) {
    width: 100%;
}

/* Custom Dropdown Styling */
.premium-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23c5a059' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
}

/* --- Typography Alignment Fix --- */
.premium-form input,
.premium-form select,
.premium-form textarea,
.premium-form button {
    font-family: 'Inter', sans-serif;
    /* Forces the page font onto form elements */
}

.premium-form textarea::placeholder {
    font-family: 'Inter', sans-serif;
    color: var(--text-gray);
    opacity: 0.8;
}

.premium-form button.full-width {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Submit Button Elevation */
.full-width {
    width: 100%;
    padding: 20px;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 800;
}

/* --- Premium Footer Section --- */
.premium-footer {
    background: #071224;
    /* Slightly darker than your navy for depth */
    padding: 80px 0 40px;
    border-top: 1px solid rgba(197, 160, 89, 0.15);
    color: var(--text-gray);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 100px;
    margin-bottom: 25px;
    filter: brightness(1.1);
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.footer-col h4 {
    color: var(--platinum);
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-gray);
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--gold);
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-3px);
}

.footer-email {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    margin-top: 15px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-legal a {
    color: var(--text-gray);
    text-decoration: none;
    margin-left: 20px;
    transition: 0.3s;
}

.footer-legal a:hover {
    color: var(--gold);
}

/* --- Fix for Underlines on Social Icons --- */
.footer-socials a {
    text-decoration: none !important;
    /* Removes the underline */
    display: flex;
    /* Ensures icon alignment stays centered */
    outline: none;
    /* Removes focus ring in some browsers */
}

/* Also ensure no underline appears on hover */
.footer-socials a:hover {
    text-decoration: none !important;
}

/* WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: white;
    z-index: 100;
    text-decoration: none;
}

/* Hamburger Animation Classes */
.rotate-down {
    transform: translateY(9px) rotate(45deg);
}

.fade-out {
    opacity: 0;
}

.rotate-up {
    transform: translateY(-9px) rotate(-45deg);
}

/* Ensure the bars have a smooth transition */
.bar {
    transition: all 0.4s ease-in-out;
}

/* --- Thank You Page Styles --- */
.thank-you-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.thank-you-hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    background: radial-gradient(circle at center, #112240 0%, #0a192f 100%);
    position: relative;
}

.thank-you-card {
    background: rgba(17, 34, 64, 0.4);
    backdrop-filter: blur(15px);
    padding: 60px;
    border-radius: 20px;
    border: 1px solid rgba(197, 160, 89, 0.15);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.success-icon {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.thank-you-card h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.thank-you-card p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.thank-you-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.expedite-note {
    border-top: 1px solid rgba(197, 160, 89, 0.1);
    padding-top: 25px;
}

.expedite-note p {
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 0;
}

/* --- Legal Pages Styling --- */
.legal-hero {
    background: radial-gradient(circle at center, #112240 0%, #0a192f 100%);
    padding: 150px 0 20px;
    text-align: center;
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

.legal-hero h1 {
    font-size: 3.5rem;
    margin-top: 10px;
}

.legal-content {
    background: var(--navy);
    line-height: 1.8;
    padding-top: 0px;
}

.legal-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.legal-wrapper h2 {
    color: var(--platinum);
    font-size: 1.5rem;
    margin: 40px 0 20px;
    font-family: 'Inter', sans-serif;
    /* Cleaner for long text */
}

.legal-wrapper p {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.legal-cta {
    margin-top: 60px;
    padding: 30px;
    background: var(--navy-light);
    border-left: 3px solid var(--gold);
    border-radius: 4px;
}

.legal-footer-action {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
    text-align: center;
}

.legal-footer-action .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.legal-footer-action .btn-secondary:hover {
    transform: translateX(-5px);
    /* Subtle premium movement hint */
}

/* --- Portfolio Page Specifics --- */
.filter-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: var(--platinum);
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 9/16;
    /* Mobile LP feel */
    border: 1px solid rgba(197, 160, 89, 0.1);
    transition: transform 0.4s ease, opacity 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, var(--navy));
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

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

/* --- Brands Showcase --- */
.brands-showcase {
    padding: 80px 0;
    background: rgba(17, 34, 64, 0.3);
    border-top: 1px solid rgba(197, 160, 89, 0.1);
    margin-top: 60px;
}

.brands-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 50px;
    color: var(--platinum);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    /* 6 per row on desktop */
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.brand-item {
    width: 100%;
    max-width: 140px;
    filter: grayscale(100%) brightness(0.8);
    /* Muted by default */
    opacity: 0.6;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* --- Interactive Hover Effect --- */
.brand-item:hover {
    filter: grayscale(0%) brightness(1.2);
    opacity: 1;
    transform: scale(1.15) translateY(-5px);
    /* Subtle Gold Glow */
    filter: drop-shadow(0 0 10px rgba(197, 160, 89, 0.4));
}

/* --- 404 Error Page Styling --- */
.error-page .error-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
    /* Forces content below the fixed navbar */
    position: relative;
    overflow: hidden;
}

.error-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

/* This makes the '404' big but transparent so it doesn't look messy */
.error-code {
    font-size: clamp(8rem, 20vw, 15rem);
    /* Responsive sizing */
    font-weight: 800;
    line-height: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gold);
    opacity: 0.05;
    /* Very subtle ghost effect */
    z-index: -1;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
}

.error-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.error-hero p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

@media (max-width: 768px) {

    /* --- 1. NAVIGATION --- */
    .navbar {
        height: auto;
        padding: 10px 0;
    }

    .logo img {
        height: 90px;
        width: auto;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 75%;
        /* Slightly wider for better text fit */
        background: var(--navy-light);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease;
        box-shadow: -10px 0 20px rgba(0, 0, 0, 0.5);
    }

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

    .d-desktop {
        display: none;
    }

    /* --- 2. HERO SECTION --- */
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 0 60px 0;
        /* Increased top padding to clear logo */
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        z-index: 2;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 2.8rem);
        line-height: 1.2;
    }

    .hero::before {
        background-size: 40px 40px;
    }

    .hero::after {
        width: 250px;
        height: 250px;
        top: 15%;
        left: 50%;
        transform: translateX(-50%);
        filter: blur(40px);
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        /* Full width looks more premium on mobile */
        max-width: 300px;
        text-align: center;
    }

    /* --- 3. ABOUT SECTION --- */
    .about-container {
        flex-direction: column;
        gap: 50px;
    }

    .about-visual {
        order: 2;
    }

    .experience-badge {
        right: 0;
        bottom: 0;
        padding: 20px;
    }

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

    /* --- 4. PORTFOLIO SECTION --- */
    .portfolio-preview-grid {
        gap: 50px;
    }

    .mobile-frame {
        width: 240px;
        /* Adjusted for better balance */
        height: 480px;
    }

    /* --- 5. STATISTICS SECTION --- */
    .stats-grid {
        flex-direction: column;
        gap: 40px;
    }

    .stat-card {
        width: 100%;
    }

    .stat-card h2 {
        font-size: 3rem;
    }

    /* --- 6. CONTACT FORM --- */
    .contact-wrapper {
        padding: 40px 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
        /* Added gap to separate stacked inputs */
        margin-bottom: 15px;
    }

    .premium-form {
        padding: 20px;
    }

    /* style.css */

    /* Highlight valid inputs with a subtle gold glow */
    .premium-form input:focus:valid,
    .premium-form select:focus:valid,
    .premium-form textarea:focus:valid {
        border-color: var(--gold);
        box-shadow: 0 0 8px rgba(197, 160, 89, 0.2);
    }

    /* Highlight invalid inputs when they are not empty */
    .premium-form input:not(:placeholder-shown):invalid {
        border-color: #ff4d4d;
        background-color: rgba(255, 77, 77, 0.05);
    }

    /* Optional: Add a small error message style if you want to show text below inputs */
    .error-hint {
        color: #ff4d4d;
        font-size: 0.75rem;
        margin-top: 5px;
        display: none;
    }

    .thank-you-card {
        padding: 40px 20px;
    }

    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }

    .thank-you-actions .btn-primary,
    .thank-you-actions .btn-secondary {
        width: 100%;
    }

    .premium-footer {
        padding: 60px 0 30px;
        text-align: center;
        /* Center all text for a balanced look */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        /* Stack into 1 column */
        gap: 40px;
        /* Space between the stacked sections */
        margin-bottom: 40px;
    }

    .footer-logo img {
        height: 80px;
        /* Slightly smaller logo for mobile */
        margin: 0 auto 20px;
        /* Center the logo image */
    }

    .footer-socials {
        justify-content: center;
        /* Center the icons */
        margin-top: 15px;
    }

    .footer-col h4 {
        margin-bottom: 20px;
        font-size: 1rem;
        position: relative;
        display: inline-block;
    }

    /* Add a small gold underline under headers to separate sections */
    .footer-col h4::after {
        content: '';
        display: block;
        width: 30px;
        height: 2px;
        background: var(--gold);
        margin: 8px auto 0;
    }

    .footer-links li {
        margin-bottom: 15px;
        /* Bigger tap targets for fingers */
    }

    .footer-bottom {
        flex-direction: column;
        /* Stack Copyright and Legal links */
        gap: 20px;
        padding-top: 30px;
    }

    .footer-legal {
        display: flex;
        justify-content: center;
        gap: 20px;
    }

    .footer-legal a {
        margin: 0;
        /* Clear desktop margins */
        font-size: 0.8rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(1, 1fr);
        /* 1 Column on Mobile */
    }

    .filter-controls {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 per row on mobile */
        gap: 30px;
    }

    .brands-title {
        font-size: 1.4rem;
    }

    .error-hero h1 {
        font-size: 2.2rem;
    }

    .error-actions {
        flex-direction: column;
        padding: 0 40px;
    }

    .error-code {
        font-size: 10rem;
        top: 40%;
    }
}