/* ---- CSS Variables ---- */
:root {
    /* Colors */
    --color-primary: #0A192F;
    /* Deep Blue */
    --color-primary-light: #112240;
    --color-accent: #D4AF37;
    /* Gold Accent */
    --color-accent-hover: #C5A017;
    --color-text-main: #333333;
    --color-text-muted: #666666;
    --color-bg-light: #F8F9FA;
    --color-white: #FFFFFF;

    /* Typography */
    --font-primary: 'Outfit', sans-serif;

    /* Reduced Spacing for compact look */
    --space-xs: 4px;
    --space-sm: 10px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 50px;

    /* Shadows & Border Radius */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 14px;
    /* Reduced base font size slightly for a tighter layout */
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-main);
    line-height: 1.5;
    background-color: var(--color-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1140px;
    /* Reduced max-width slightly */
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-xxl) 0;
}

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

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

.text-left {
    text-align: left;
}

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

.mt-3 {
    margin-top: var(--space-md);
}

.mt-4 {
    margin-top: var(--space-lg);
}

.mt-5 {
    margin-top: var(--space-xl);
}

.mb-4 {
    margin-bottom: var(--space-lg);
}

.mb-5 {
    margin-bottom: var(--space-xl);
}

.mr-2 {
    margin-right: 8px;
}

.img-fluid {
    width: 100%;
    height: auto;
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-primary);
    line-height: 1.2;
    font-weight: 600;
}

.section-title {
    font-size: 2.15rem;
    margin-bottom: var(--space-sm);
    text-align: center;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
}

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

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    border-color: var(--color-white);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
}

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

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

.btn-whatsapp {
    background-color: #25D366;
    color: var(--color-white);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ---- Header (Transparent Glass on Normal Position -> Pure White on Scroll) ---- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-header {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.header-logo-img {
    max-height: 48px;
    border-radius: 6px;
    border: 1.5px solid var(--color-accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: var(--transition-normal);
}

.company-name {
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.8px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.company-name::after {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--color-accent);
    margin-top: 2px;
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.8);
}

/* ---- Scrolled State (Pure White Background & Deep Navy Text) ---- */
.header.scrolled {
    background: rgba(255, 255, 255, 0.96) !important;
    padding: 8px 0;
    border-bottom: 1px solid rgba(10, 25, 47, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.header.scrolled .header-logo-img {
    max-height: 40px;
}

.header.scrolled .company-name {
    color: var(--color-primary) !important;
    /* Deep Navy Blue */
    text-shadow: none !important;
}

.header.scrolled .nav-link {
    color: var(--color-primary) !important;
    text-shadow: none !important;
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: var(--color-accent) !important;
}

.header.scrolled .menu-toggle {
    color: var(--color-primary) !important;
}

.nav {
    display: none;
}

@media (min-width: 992px) {
    .nav {
        display: block;
    }
}

.nav-list {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--color-white);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition-normal);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-normal);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.header-actions .btn {
    display: none;
}

@media (min-width: 768px) {
    .header-actions .btn {
        display: inline-flex;
    }
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    display: block;
}

@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }
}

/* ---- Mobile Menu ---- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-white);
    z-index: 2000;
    transition: right var(--transition-normal);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-inner {
    padding: var(--space-xl) var(--space-lg);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.close-menu {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
}

.mobile-nav-link {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-primary);
}

.mobile-nav-link:hover {
    color: var(--color-accent);
}

/* ---- Hero Section ---- */
.hero {
    position: relative;
    min-height: 100vh;
    /* Fills screen entirely */
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: zoomOut 20s ease-out infinite alternate;
}

@keyframes zoomOut {
    0% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.92) 0%, rgba(10, 25, 47, 0.65) 60%, rgba(10, 25, 47, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    color: var(--color-white);
    max-width: 720px;
    position: relative;
    z-index: 2;
    margin-top: 20px;
    opacity: 1 !important;
    /* Ensure content is immediately visible on load */
    transform: none !important;
    animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    color: var(--color-white);
    margin-bottom: var(--space-sm);
    line-height: 1.15;
    font-weight: 700;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-title span {
    color: var(--color-accent);
    background: linear-gradient(135deg, #D4AF37 0%, #FFF099 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: var(--space-lg);
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    align-items: center;
}

/* Hero Bottom Key Highlights Bar */
.hero-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    z-index: 2;
    padding: 16px 0;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    text-align: center;
}

.hero-stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--color-white);
}

.hero-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.2);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.hero-stat-text {
    text-align: left;
}

.hero-stat-text h5 {
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}

.hero-stat-text p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    margin: 0;
}


/* ---- Projects Section (Card Layout) ---- */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.project-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-status {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.project-content {
    padding: var(--space-md);
}

.project-name {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.project-location {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--space-sm);
}

.project-features span {
    font-size: 0.85rem;
    background: var(--color-bg-light);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.project-features span i {
    color: var(--color-accent);
}

/* ---- Project Details Page Layout ---- */
.project-main-image {
    position: relative;
}

.project-main-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.project-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .project-details-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.details-card {
    background-color: var(--color-bg-light);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-icon {
    font-size: 1.75rem;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.details-card h3 {
    font-size: 1.35rem;
    margin-bottom: var(--space-md);
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.custom-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1rem;
}

.custom-list li i {
    margin-top: 3px;
    font-size: 1.05rem;
}

/* ---- About Section ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
}

@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-text {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.stat-item {
    padding: var(--space-sm);
    background-color: var(--color-white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--color-accent);
}

.stat-number {
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: 2px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.about-image-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Features Section ---- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background-color: var(--color-white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(212, 175, 55, 0.3);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto var(--space-sm);
    transition: var(--transition-normal);
}

.feature-card:hover .feature-icon {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.feature-title {
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
}

.feature-text {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ---- Gallery Section ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    grid-auto-rows: 180px;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 220px;
    }

    .item-large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .item-wide {
        grid-column: span 2;
    }
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

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

.gallery-overlay i {
    color: var(--color-white);
    font-size: 1.75rem;
    transform: scale(0.5);
    transition: var(--transition-normal);
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* ---- Contact Section ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-desc {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-bottom: var(--space-lg);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.icon-box {
    width: 40px;
    height: 40px;
    background-color: var(--color-bg-light);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.contact-method h4 {
    margin-bottom: 2px;
    font-size: 1rem;
}

.contact-method p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.contact-form-wrapper {
    background-color: var(--color-white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.form-title {
    font-size: 1.35rem;
    margin-bottom: var(--space-md);
    text-align: center;
}

.form-group {
    margin-bottom: var(--space-sm);
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

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

textarea.form-control {
    resize: vertical;
}

/* ---- Footer ---- */
.footer {
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.7);
    padding-top: var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1.5fr;
    }
}

.footer-desc {
    font-size: 0.9rem;
    max-width: 300px;
}

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

.social-links a {
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

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

.footer-title {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
    position: relative;
    padding-bottom: 6px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 2px;
    background-color: var(--color-accent);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--color-accent);
    margin-top: 3px;
}

.footer-bottom {
    padding: var(--space-sm) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
}

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

/* ---- Animations & Scroll Reveal ---- */
.reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ---- Active Navigation State ---- */
.nav-link.active {
    color: var(--color-accent) !important;
}

.nav-link.active::after {
    width: 100%;
}

.mobile-nav-link.active {
    color: var(--color-accent) !important;
    font-weight: 700;
}

/* ---- Sub-page Hero / Header Banner ---- */
.page-hero {
    position: relative;
    padding: 130px 0 60px;
    background: linear-gradient(135deg, #0A192F 0%, #112240 100%);
    color: var(--color-white);
    text-align: center;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.15), transparent 60%);
    pointer-events: none;
}

.page-hero-title {
    color: var(--color-white);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.page-hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto 20px;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb a {
    color: var(--color-accent);
    transition: var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--color-white);
}

/* ---- Filter Tabs ---- */
.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: var(--space-xl);
}

.filter-btn {
    padding: 8px 20px;
    background: var(--color-white);
    border: 1px solid rgba(10, 25, 47, 0.15);
    color: var(--color-primary);
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-primary);
    color: var(--color-accent);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

/* ---- Accordion (Contact FAQs) ---- */
.accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: var(--space-md);
}

.accordion-item {
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition-normal);
}

.accordion-header {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--color-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    background: var(--color-white);
    transition: background 0.2s ease;
}

.accordion-header:hover {
    background: var(--color-bg-light);
}

.accordion-icon {
    color: var(--color-accent);
    transition: transform var(--transition-normal);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 20px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.accordion-item.active .accordion-body {
    max-height: 250px;
    padding: 0 20px 16px 20px;
}

/* ---- Interactive Lightbox Modal ---- */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 25, 47, 0.92);
    backdrop-filter: blur(10px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.lightbox-container {
    position: relative;
    max-width: 900px;
    width: 100%;
    text-align: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    object-fit: contain;
}

.lightbox-caption {
    color: var(--color-white);
    margin-top: 14px;
    font-size: 1.1rem;
    font-weight: 500;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: var(--color-accent);
}

/* ---- Map Container ---- */
.map-container {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: 0;
    display: block;
}

/* ---- Badge Pill ---- */
.badge-pill {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(212, 175, 55, 0.15);
    color: var(--color-accent);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* ---- Lead Capture Popup Modal ---- */
.lead-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 25, 47, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3500;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lead-popup-overlay.active {
    display: flex;
    opacity: 1;
}

.lead-popup-card {
    background: var(--color-white);
    max-width: 520px;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.lead-popup-overlay.active .lead-popup-card {
    transform: translateY(0) scale(1);
}

.lead-popup-header {
    background: linear-gradient(135deg, #0A192F 0%, #112240 100%);
    color: var(--color-white);
    padding: 28px 24px 20px;
    text-align: center;
    position: relative;
}

.lead-popup-header h3 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.lead-popup-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.lead-popup-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--color-white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.2s ease;
}

.lead-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lead-popup-body {
    padding: 24px;
}

.popup-incentive-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 175, 55, 0.15);
    color: #997A15;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 16px;
}

/* ---- Lead Management CRM Dashboard Styles ---- */
.crm-header-bar {
    background: linear-gradient(135deg, #0A192F 0%, #112240 100%);
    color: var(--color-white);
    padding: 16px 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.crm-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.crm-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.crm-brand h1 {
    color: var(--color-white);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.crm-brand span {
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.crm-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.crm-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.crm-kpi-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-normal);
}

.crm-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.crm-kpi-info h4 {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.crm-kpi-info p {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.crm-kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.kpi-blue {
    background: rgba(10, 25, 47, 0.1);
    color: var(--color-primary);
}

.kpi-gold {
    background: rgba(212, 175, 55, 0.15);
    color: #997A15;
}

.kpi-green {
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
}

.kpi-purple {
    background: rgba(123, 31, 162, 0.1);
    color: #7b1fa2;
}

/* Filter & View Switch Toolbar */
.crm-toolbar {
    background: var(--color-white);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
}

.crm-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-bg-light);
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid #ddd;
    flex-grow: 1;
    max-width: 380px;
}

.crm-search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
}

.crm-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-toggle-btn {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid rgba(10, 25, 47, 0.2);
    background: var(--color-white);
    color: var(--color-primary);
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
}

.view-toggle-btn.active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* Kanban Board Layout */
.crm-kanban-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    align-items: start;
}

.crm-kanban-column {
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    padding: 14px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 480px;
}

.crm-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.crm-column-header h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.column-badge {
    background: rgba(10, 25, 47, 0.1);
    color: var(--color-primary);
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
}

.crm-lead-cards-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.crm-lead-card {
    background: var(--color-white);
    border-radius: var(--radius-sm);
    padding: 14px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-primary);
    transition: var(--transition-fast);
    cursor: pointer;
}

.crm-lead-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.crm-lead-card.stage-new {
    border-left-color: #0288d1;
}

.crm-lead-card.stage-contacted {
    border-left-color: #ed6c02;
}

.crm-lead-card.stage-visit {
    border-left-color: #9c27b0;
}

.crm-lead-card.stage-negotiation {
    border-left-color: #d32f2f;
}

.crm-lead-card.stage-closed {
    border-left-color: #2e7d32;
}

.lead-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.lead-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.lead-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.status-select {
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 0.8rem;
    font-family: inherit;
    outline: none;
    background: #fff;
}

.lead-quick-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #fff;
    transition: opacity 0.2s;
}

.btn-call {
    background: #0288d1;
}

.btn-wa {
    background: #25D366;
}

.btn-notes {
    background: var(--color-accent);
    color: #fff;
}

.lead-quick-btn:hover {
    opacity: 0.85;
}

/* Status Badges */
.status-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tag-new {
    background: #e1f5fe;
    color: #0288d1;
}

.tag-contacted {
    background: #fff3e0;
    color: #ed6c02;
}

.tag-visit {
    background: #f3e5f5;
    color: #9c27b0;
}

.tag-negotiation {
    background: #ffebee;
    color: #d32f2f;
}

.tag-closed {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Table View */
.crm-table-container {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.crm-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
}

.crm-table th {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 12px 16px;
    font-weight: 600;
}

.crm-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.crm-table tr:hover td {
    background: var(--color-bg-light);
}

/* ---- Modern SaaS CRM App Layout & Sidebar ---- */
.crm-app-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: #F1F5F9;
    font-family: var(--font-primary);
}

.crm-sidebar {
    width: 250px;
    background: #0F172A;
    /* Slate 900 */
    color: #94A3B8;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: width 0.3s ease;
    border-right: 1px solid #1E293B;
}

.crm-sidebar-header {
    padding: 20px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #1E293B;
}

.crm-sidebar-logo {
    height: 34px;
    border-radius: 6px;
}

.crm-sidebar-brand {
    color: #F8FAFC;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.2;
}

.crm-sidebar-brand span {
    display: block;
    color: var(--color-accent);
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.crm-sidebar-menu {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.crm-sidebar-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748B;
    padding: 12px 10px 4px;
}

.crm-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #94A3B8;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.crm-sidebar-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.crm-sidebar-item:hover {
    background: #1E293B;
    color: #F8FAFC;
}

.crm-sidebar-item.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--color-accent);
    font-weight: 600;
}

.crm-sidebar-footer {
    padding: 16px;
    border-top: 1px solid #1E293B;
    font-size: 0.82rem;
    color: #64748B;
}

/* CRM Main Content Area */
.crm-main-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.crm-topbar {
    height: 64px;
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.crm-topbar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 6px 14px;
    border-radius: 20px;
    width: 320px;
}

.crm-topbar-search input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 0.88rem;
    color: #0F172A;
}

.shortcut-pill {
    background: #E2E8F0;
    color: #64748B;
    font-size: 0.72rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.crm-topbar-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar-circle {
    width: 36px;
    height: 36px;
    background: #0F172A;
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid rgba(212, 175, 55, 0.4);
}

/* Lead Intent Score Badges */
.lead-score-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.score-hot {
    background: #FEF2F2;
    color: #EF4444;
    border: 1px solid #FCA5A5;
}

.score-warm {
    background: #FFFBEB;
    color: #F59E0B;
    border: 1px solid #FCD34D;
}

.score-cold {
    background: #EFF6FF;
    color: #3B82F6;
    border: 1px solid #93C5FD;
}

/* Lead Tags */
.lead-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 6px 0;
}

.lead-tag {
    background: #F1F5F9;
    color: #475569;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* Trend Badges on KPIs */
.trend-badge {
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 4px;
}

.trend-up {
    color: #10B981;
}

.trend-down {
    color: #EF4444;
}

/* Activity Log History Timeline */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.timeline-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.85rem;
}

.timeline-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.timeline-content {
    background: #F8FAFC;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
    width: 100%;
}

.timeline-time {
    font-size: 0.75rem;
    color: #94A3B8;
    margin-bottom: 2px;
}

/* ---- Mobile Responsive CRM Dashboard Styles ---- */
@media (max-width: 991px) {
    .crm-app-wrapper {
        flex-direction: column;
    }

    .crm-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #1E293B;
    }

    .crm-sidebar-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
    }

    .crm-sidebar-item {
        flex: 1 1 auto;
        justify-content: center;
        font-size: 0.85rem;
        padding: 8px;
    }

    .crm-sidebar-label {
        width: 100%;
        padding: 4px 10px;
    }

    .crm-topbar {
        height: auto;
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .crm-topbar-search {
        width: 100%;
        max-width: 100%;
        order: 2;
    }

    .crm-topbar-user {
        width: 100%;
        justify-content: space-between;
        order: 1;
    }

    .crm-main-area header.crm-topbar,
    .crm-main-area main {
        padding: 16px;
    }

    #openAddModalBtn,
    #exportCsvBtnTop {
        flex-grow: 1;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .crm-sidebar-item {
        font-size: 0.8rem;
    }

    .crm-sidebar-item i {
        display: none;
        /* Icon-less on very small screens to save space */
    }

    .crm-brand h1 {
        font-size: 1.1rem;
    }
}