@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* Core Root Variables & Design System Tokens */
:root {
    --bg-primary: #faf9f7;
    --bg-secondary: #E8E8E8;
    --bg-card: #FFFFFF;
    --accent: #BCA371;
    --accent-hover: #4A423D;
    --accent-glow: rgba(188, 163, 113, 0.2);
    --text-primary: #4A423D;
    --text-secondary: #6B625D;
    --border-color: #E8E8E8;
    --border-glow: #D1D1D1;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-blur: blur(16px);
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.75rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

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

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.py-5 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.section-subtitle {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    margin-bottom: 3rem;
}

/* Navigation & Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(250, 249, 247, 0.95) 0%, rgba(250, 249, 247, 0.7) 60%, rgba(250, 249, 247, 0) 100%);
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(74, 66, 61, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: var(--transition-smooth);
}

.site-header.scrolled .header-container {
    padding: 5px 0;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

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

.header-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #0A0D14;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(188, 163, 113, 0.35);
    color: #0A0D14;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* Mobile Offcanvas Drawer */
.offcanvas-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 1100;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    box-shadow: -10px 0 30px rgba(74, 66, 61, 0.08);
    transition: var(--transition-smooth);
}

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

.offcanvas-close {
    align-self: flex-end;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

.offcanvas-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.offcanvas-link {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    background: radial-gradient(circle at 80% 20%, #ffffff 0%, var(--bg-primary) 100%);
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 100px;
}

.hero-overlay-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(var(--border-color) 1px, transparent 1px), linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.15;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 5;
    background: rgb(255 255 255 / 45%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 16px;
    /* max-width: 640px; */
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px rgba(74, 66, 61, 0.08);
}

.hero-title {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

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

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #0A0D14;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(188, 163, 113, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-glow);
}

/* Services Grid & Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(188, 163, 113, 0.4);
    box-shadow: 0 15px 35px rgba(74, 66, 61, 0.08);
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(188, 163, 113, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.75rem;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-wrapper {
    background: var(--accent);
    color: #0A0D14;
}

.service-title {
    margin-bottom: 12px;
    font-size: 1.35rem;
}

.service-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.service-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link i {
    transition: var(--transition-smooth);
}

.service-card:hover .service-link i {
    transform: translateX(4px);
}

/* Statistics & Counters */
.counter-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    text-align: center;
}

.counter-item h3 {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.counter-item p {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* Case Studies Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 450px;
    border: 1px solid var(--border-color);
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 13, 20, 0.95) 0%, rgba(10, 13, 20, 0.4) 60%, transparent 100%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition-smooth);
}

.project-category {
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 8px;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.project-client {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

.project-card:hover .project-overlay {
    background: linear-gradient(to top, rgba(10, 13, 20, 0.98) 0%, rgba(10, 13, 20, 0.6) 50%, rgba(10, 13, 20, 0.2) 100%);
}

/* Team Showcase */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    transition: var(--transition-smooth);
}

.team-img-wrapper {
    height: 320px;
    overflow: hidden;
    position: relative;
}

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

.team-socials {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 20px;
    display: flex;
    gap: 16px;
    transition: var(--transition-smooth);
}

.team-social-link {
    color: var(--text-secondary);
}

.team-social-link:hover {
    color: var(--accent);
}

.team-card:hover {
    transform: translateY(-6px);
    border-color: rgba(188, 163, 113, 0.2);
}

.team-card:hover .team-img {
    transform: scale(1.05);
}

.team-card:hover .team-socials {
    bottom: 20px;
}

.team-info {
    padding: 24px;
}

.team-name {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.team-role {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

/* Blog Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.blog-card-img {
    height: 240px;
    width: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.blog-card-content {
    padding: 30px;
}

.blog-meta {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 12px;
}

.blog-card-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card-excerpt {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(188, 163, 113, 0.25);
}

.blog-card:hover .blog-card-img {
    transform: scale(1.04);
}

/* Contact & Info Panel */
.contact-section-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(188, 163, 113, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.25rem;
}

.contact-details h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.contact-details p {
    font-size: 0.95rem;
}

.contact-form-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.form-input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10B981;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* Footer Styling */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
}

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

.footer-col h5 {
    font-size: 1.15rem;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link:hover {
    color: var(--accent);
    padding-left: 4px;
}

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

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

/* Dynamic Details Page Layouts */
.inner-header {
    background: linear-gradient(rgba(10, 13, 20, 0.8), rgba(10, 13, 20, 0.8)), url('/ikvti/pattern-bg03.png');
    background-size: cover;
    padding: 120px 0 80px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.inner-header h1 {
    font-size: 2.75rem;
    margin-bottom: 12px;
    color: #ffffff !important;
}

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

.details-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.sidebar-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

/* Top Utility Bar & Dropdowns */
.header-top {
    border-bottom: 1px solid var(--border-color);
    background: rgba(250, 249, 247, 0.65);
    backdrop-filter: var(--glass-blur);
    font-size: 0.8rem;
    padding: 10px 0;
    position: relative;
    z-index: 1010;
    transition: var(--transition-smooth);
}

.site-header.scrolled .header-top {
    display: none;
}

.top-menu {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-menu .has-dropdown {
    position: relative;
}

.top-menu .dropdown-submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(74, 66, 61, 0.08);
    list-style: none;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1020;
    margin-top: 8px;
}

.top-menu .has-dropdown:hover .dropdown-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.top-menu .dropdown-submenu.align-right {
    left: auto;
    right: 0;
    transform: translateY(10px);
}

.top-menu .has-dropdown:hover .dropdown-submenu.align-right {
    transform: translateY(0);
}

.top-menu .dropdown-submenu li a {
    display: block;
    padding: 8px 16px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.8rem;
    line-height: 1.35;
    transition: var(--transition-smooth);
    text-align: left;
}

.top-menu .dropdown-submenu li a:hover {
    background: var(--bg-secondary);
    color: var(--accent);
    padding-left: 20px;
}

.top-menu .has-dropdown>a {
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-smooth);
}

.top-menu .has-dropdown>a:hover {
    color: var(--accent);
}

/* Responsive Media Queries */
@media (max-width: 991px) {
    .header-top {
        display: none;
    }

    .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .contact-section-grid {
        grid-template-columns: 1fr;
    }

    .footer-columns {
        grid-template-columns: 1fr 1fr;
    }

    .details-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 767px) {
    .footer-columns {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* Mega Menu Custom Styling */
.has-dropdown {
    position: relative;
}

/* Mega Menu / Submenu Dropdown Container styling */
.dropdown-submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 280px; 
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(74, 66, 61, 0.08);
    border-radius: 12px;
    padding: 16px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.dropdown-submenu.align-right {
    left: auto;
    right: 0;
    transform: translateY(15px);
}

.has-dropdown:hover .dropdown-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.has-dropdown:hover .dropdown-submenu.align-right {
    transform: translateY(0);
}

.dropdown-submenu li a {
    display: block;
    padding: 10px 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-smooth);
}

.dropdown-submenu li a:hover {
    color: var(--accent);
    background: rgba(188, 163, 113, 0.05);
    padding-left: 28px;
}

/* Interactive PAN Structure styles */
.structure-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(74, 66, 61, 0.03);
    margin-bottom: 40px;
}

.structure-title {
    font-size: 1.75rem;
    margin-bottom: 24px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 12px;
    display: inline-block;
}

.staff-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.staff-table th {
    text-align: left;
    padding: 16px 20px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: 2px solid var(--border-color);
}

.staff-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.staff-row {
    transition: var(--transition-smooth);
}

.staff-row:hover {
    background: rgba(188, 163, 113, 0.03);
}

/* Staff Interactive Name */
.staff-interactive-name {
    position: relative;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: inline-block;
    transition: var(--transition-smooth);
}

.staff-interactive-name:hover {
    color: var(--accent);
}

.staff-photo-popup {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 180px;
    height: 220px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 30px rgba(74, 66, 61, 0.15);
    border-radius: 14px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    pointer-events: none;
}

.staff-photo-popup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-interactive-name:hover .staff-photo-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* For the last 4 rows, pop upwards to prevent clipping at the bottom */
.staff-row:nth-last-child(-n+4) .staff-photo-popup {
    top: auto;
    bottom: 120%;
    transform: translateX(-50%) translateY(10px);
}

.staff-row:nth-last-child(-n+4) .staff-interactive-name:hover .staff-photo-popup {
    transform: translateX(-50%) translateY(0);
}

/* Download Cards */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 8px 24px rgba(74, 66, 61, 0.02);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(188, 163, 113, 0.1);
    border-color: var(--accent);
}

.download-card-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.download-card h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.download-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--text-primary);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    text-align: center;
}

.download-btn:hover {
    background: var(--accent);
    color: #ffffff;
}

/* Inner Page Header Overrides (For Transparent States overlaying dark inner-headers) */
.site-header.header-inner-page:not(.scrolled) {
    background: transparent !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.site-header.header-inner-page:not(.scrolled) .header-top {
    background: rgba(10, 13, 20, 0.25) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.site-header.header-inner-page:not(.scrolled) .hotline {
    color: rgba(255, 255, 255, 0.85) !important;
}

.site-header.header-inner-page:not(.scrolled) .top-menu .has-dropdown > a {
    color: rgba(255, 255, 255, 0.85) !important;
}

.site-header.header-inner-page:not(.scrolled) .top-menu .has-dropdown > a:hover {
    color: var(--accent) !important;
}

.site-header.header-inner-page:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

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

.site-header.header-inner-page:not(.scrolled) .nav-link i {
    color: rgba(255, 255, 255, 0.6) !important;
}

.site-header.header-inner-page:not(.scrolled) .header-btn {
    background: #ffffff !important;
    color: #0A0D14 !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15) !important;
}

.site-header.header-inner-page:not(.scrolled) .header-btn:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #0A0D14 !important;
}

.site-header.header-inner-page:not(.scrolled) .mobile-toggle {
    color: #ffffff !important;
}

/* Dynamically convert the header branding logo to pure white for dark backgrounds */
.site-header.header-inner-page:not(.scrolled) img[alt*="Logo"] {
    filter: brightness(0) invert(1) !important;
}

/* Make padding: 20px 0; null for inner header pages when not scrolled */
.site-header.header-inner-page:not(.scrolled) .header-container {
    padding: 0 !important;
}

/* ==========================================
   PREMIUM INTERACTIONS & ANIMATIONS SYSTEM
   ========================================== */

/* 1. Page Transition Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0b0d14;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-bar {
    width: 150px;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-top: 24px;
    overflow: hidden;
    position: relative;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: 10px;
    animation: loadProgress 1.4s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes loadProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes pulseLogo {
    0%, 100% {
        transform: scale(1);
        filter: brightness(0) invert(1) drop-shadow(0 0 0px rgba(188, 163, 113, 0));
    }
    50% {
        transform: scale(1.05);
        filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(188, 163, 113, 0.35));
    }
}

/* 2. Custom Mouse Cursor Follower (Desktop Only) */
.mouse-follower {
    width: 18px;
    height: 18px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10100;
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                height 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                background 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                border-color 0.3s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    mix-blend-mode: difference;
}

.mouse-follower.hovering {
    width: 50px;
    height: 50px;
    background: rgba(188, 163, 113, 0.12);
    border-color: rgba(188, 163, 113, 0.8);
    box-shadow: 0 0 15px rgba(188, 163, 113, 0.2);
    mix-blend-mode: normal;
}

@media (max-width: 991px) {
    .mouse-follower {
        display: none !important;
    }
}

/* 3. Smooth Scroll-Reveal Transitions */
.reveal {
    opacity: 0;
    transform: translateY(35px) scale(0.98);
    transition: opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1), 
                transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
    will-change: transform, opacity;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 4. Interactive Card hover micro-animations */
.service-card, .team-card, .blog-card, .project-card, .download-card {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.service-card:hover, .team-card:hover, .blog-card:hover, .download-card:hover {
    transform: translateY(-8px) scale(1.01) !important;
}

.project-card:hover {
    transform: scale(1.02) !important;
}