/* Page Transitions */
body {
    opacity: 0;
    animation: pageFadeIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth navbar link transitions */
.nav-link {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Remove default blue focus outline but keep accessible focus style */
.nav-link:focus,
.nav-link:focus-visible,
.nav-link:active,
.nav-logo a:focus,
.nav-logo a:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Custom subtle focus state for accessibility */
.nav-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link:hover::before {
    left: 100%;
}

/* Smooth section transitions */
section {
    opacity: 0;
    transform: translateY(20px);
    animation: sectionFadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

section:nth-child(1) { animation-delay: 0.2s; }
section:nth-child(2) { animation-delay: 0.3s; }
section:nth-child(3) { animation-delay: 0.4s; }
section:nth-child(4) { animation-delay: 0.5s; }
section:nth-child(5) { animation-delay: 0.6s; }

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

/* Smooth card hover effects */
.service-card, .portfolio-card, .case-study {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover, .portfolio-card:hover, .case-study:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

/* Portfolio card click effect */
.portfolio-card {
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.portfolio-card.card-clicked {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.4), 
                0 0 60px rgba(118, 75, 162, 0.3);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

/* Card CTA styling */
.card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.click-hint {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.card-cta i {
    color: var(--gradient-primary);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

/* Hover effects for card CTA */
.portfolio-card:hover .card-cta {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.portfolio-card:hover .card-cta i {
    transform: translateX(3px);
}

/* Subtle highlight effect for active/hovered cards */
.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.2), 
                0 0 30px rgba(118, 75, 162, 0.1);
}

.portfolio-card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    pointer-events: none;
    border-radius: inherit;
}

/* Enhanced button transitions */
.btn {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Professional breathing effect for CTA buttons */
.cta-section .cta-button {
    animation: professionalPulse 2s ease-in-out infinite !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.cta-section .cta-button:hover {
    animation: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

@keyframes professionalPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* CSS Variables for Theme */
:root {
    /* Light theme colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f5f7fa;
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #ccc;
    --border-color: #ddd;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    --card-bg: #ffffff;
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --navbar-shadow: rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hero: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --gradient-stats: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

[data-theme="dark"] {
    /* Dark theme colors */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #666;
    --border-color: #444;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.4);
    --card-bg: #2d2d2d;
    --navbar-bg: rgba(26, 26, 26, 0.95);
    --navbar-shadow: rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hero: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    --gradient-stats: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.btn-outline {
    background: transparent;
    color: #333;
    border: 2px solid #ddd;
}

.btn-outline:hover {
    background: #333;
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    margin-left: 1rem;
    order: 2;
}

.theme-toggle-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.theme-toggle-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    color: white;
    transform: scale(1.05) translateY(-2px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3), 0 0 20px rgba(118, 75, 162, 0.2);
}

.theme-toggle-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* Hide default Font Awesome glyph so only our icon shows */
.theme-toggle-btn i::before {
    content: none !important;
}

/* Use favicon.png as theme icon instead of font icon */
.theme-toggle-btn #theme-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    background: url('logo/favicon.png') center/contain no-repeat;
}

/* Light mode styling */
[data-theme="light"] .theme-toggle-btn {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.7) 0%, 
        rgba(118, 75, 162, 0.65) 50%,
        rgba(139, 92, 246, 0.6) 100%);
    border: 1px solid rgba(102, 126, 234, 0.5);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.35), 
                0 2px 12px rgba(118, 75, 162, 0.30),
                0 1px 4px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

[data-theme="light"] .theme-toggle-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.25), 0 0 25px rgba(118, 75, 162, 0.15);
}

/* Dark mode styling */
[data-theme="dark"] .theme-toggle-btn {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .theme-toggle-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4), 0 0 25px rgba(118, 75, 162, 0.3);
}

/* Rotate for dark mode to imply night */
[data-theme="dark"] #theme-icon {
    transform: rotate(180deg);
}

/* Enhanced icon animations */
.theme-toggle-btn:hover #theme-icon {
    transform: translateY(-2px) scale(1.1);
    filter: brightness(1.2);
}

.theme-toggle-btn:hover i {
    transform: rotate(20deg);
}

/* Active state for better feedback */
.theme-toggle-btn:active {
    transform: scale(0.95) translateY(1px);
    transition: all 0.1s ease;
}

/* Add a subtle pulse animation for the icon */
#theme-icon {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Light mode icon enhancement */
[data-theme="light"] #theme-icon {
    filter: drop-shadow(0 2px 6px rgba(102, 126, 234, 0.3));
}

/* Dark mode icon enhancement */
[data-theme="dark"] #theme-icon {
    filter: drop-shadow(0 2px 6px rgba(102, 126, 234, 0.5));
}

/* Navigation */
.navbar {
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
    box-shadow: 0 2px 20px var(--navbar-shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Full-width overlay behind navbar contents in light mode for stronger logo contrast */
/* Light Mode Navbar Enhancement - Fixed for scroll */
body:not([data-theme="dark"]) .navbar {
    position: fixed !important;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.7) 0%, 
        rgba(118, 75, 162, 0.65) 25%,
        rgba(139, 92, 246, 0.6) 50%,
        rgba(59, 130, 246, 0.55) 75%,
        rgba(102, 126, 234, 0.65) 100%) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(102, 126, 234, 0.4) !important;
    box-shadow: 0 4px 32px rgba(102, 126, 234, 0.35), 
                0 2px 16px rgba(118, 75, 162, 0.30),
                0 1px 4px rgba(0, 0, 0, 0.15) !important;
}

body:not([data-theme="dark"]) .navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.35) 0%, 
        rgba(118, 75, 162, 0.3) 25%,
        rgba(139, 92, 246, 0.25) 50%,
        rgba(59, 130, 246, 0.2) 75%,
        rgba(102, 126, 234, 0.3) 100%) !important;
    pointer-events: none;
    border-radius: 0 0 16px 16px;
}

/* Keep navbar content above overlay */
.nav-container {
    position: relative;
    z-index: 1;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-container .nav-menu {
    order: 1;
}

.nav-container .hamburger {
    order: 3;
}

.nav-logo h2 {
    display: none;
}

.nav-logo img {
    height: 48px; /* +10% more */
    width: auto;
    display: block;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
    transform: translateY(-5px); /* fine-tune: about 0.5 line up */
}

/* Improve white logo contrast in light mode */
body:not([data-theme="dark"]) .nav-logo {
    background: transparent; /* rely on full-width overlay instead */
}

/* Preserve original clean look in dark mode */
[data-theme="dark"] .nav-logo {
    background: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item {
    position: relative;
    z-index: 10;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    display: block;
    padding: 0.5rem 0;
    z-index: 10;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
}

/* Light mode navbar links - white text for readability with gradient overlay */
body:not([data-theme="dark"]) .nav-link {
    color: white;
}

body:not([data-theme="dark"]) .nav-link:hover,
body:not([data-theme="dark"]) .nav-link.active {
    color: #f0f0f0;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Mobile menu in light mode - dark text on light background */
@media (max-width: 768px) {
    body:not([data-theme="dark"]) .nav-menu .nav-link {
        color: #1e293b;
        font-weight: 500;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
    }
    
    body:not([data-theme="dark"]) .nav-menu .nav-link:hover {
        color: #667eea;
        text-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
        transform: translateY(-1px);
    }
    
    body:not([data-theme="dark"]) .nav-menu .nav-link.active {
        color: #667eea;
        font-weight: 600;
        text-shadow: 0 0 12px rgba(102, 126, 234, 0.4);
    }
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #667eea;
}

/* Light mode active link underline - white for visibility */
body:not([data-theme="dark"]) .nav-link.active::after {
    background: white;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: var(--gradient-hero);
    min-height: 100vh;
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
}

/* Homepage hero background with subtle overlay */
body.homepage .hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%), url('logo/bg.jpg') center/cover no-repeat fixed;
}

/* Improve hero text readability on image and align to the right */
body.homepage .hero-title,
body.homepage .hero-description {
    color: #fff;
}
body.homepage .hero-container .hero-content {
    text-align: right;
    margin-left: auto;
}
body.homepage .hero-cta {
    justify-content: flex-end;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

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

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic {
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.hero-graphic i {
    font-size: 6rem;
    color: white;
}

/* Services Snapshot */
.services-snapshot {
    padding: 80px 0;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

/* Override background when inside hero-services-wrapper */
.hero-services-wrapper .services-snapshot {
    background: none;
    margin-top: 4rem; /* push "How We Power Your Success" and cards down ~4 lines */
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: var(--bg-secondary);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Stats Section */
.stats {
    padding: 40px 0;
    background: var(--gradient-stats);
    color: white;
}

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

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--bg-secondary);
    text-align: center;
    transition: background-color 0.3s ease;
}

.cta-content h2 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

/* Page Header */
.page-header {
    padding: 120px 0 60px;
    background: var(--gradient-hero);
    text-align: center;
    transition: background 0.3s ease;
}

/* Override background when inside hero-services-wrapper */
.hero-services-wrapper .page-header {
    background: none;
}

/* Single seamless background for hero and services */
.hero-services-wrapper {
    background: #f8fafc url('logo/bg.jpg');
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}


.hero-services-wrapper .page-header {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    padding: 8rem 0 4rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-services-wrapper .page-header h1 {
    color: #ffffff;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.55), 0 4px 14px rgba(0, 0, 0, 0.5), 0 10px 28px rgba(0, 0, 0, 0.4);
    -webkit-text-stroke: 0.8px rgba(0, 0, 0, 0.28);
    font-weight: 800;
    letter-spacing: 0.2px;
    position: relative;
    display: block;
    margin-bottom: 0.75rem;
}

.hero-services-wrapper .page-header p {
    color: white;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6), 0 2px 10px rgba(0, 0, 0, 0.45), 0 8px 22px rgba(0, 0, 0, 0.35);
    font-weight: 500;
    line-height: 1.55;
    max-width: 60ch;
    position: relative;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Center the hero text within the header container */
.hero-services-wrapper .page-header .container {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Remove halos to prevent layout side effects */

.hero-services-wrapper .section-title {
    color: white;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

/* Removed overlay container; using text-only depth for a cleaner look */

.hero-services-wrapper .service-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(245,248,255,0.9));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.18);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.8) inset,
        0 6px 14px rgba(17, 24, 39, 0.08),
        0 18px 40px rgba(17, 24, 39, 0.12),
        0 40px 80px rgba(17, 24, 39, 0.08);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
}

.hero-services-wrapper .service-card:hover {
    background: linear-gradient(145deg, rgba(255,255,255,1), rgba(245,248,255,0.98));
    transform: translateY(-8px) scale(1.01);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.9) inset,
        0 10px 20px rgba(17, 24, 39, 0.10),
        0 24px 60px rgba(17, 24, 39, 0.16),
        0 50px 110px rgba(17, 24, 39, 0.12);
}

/* Gradient aura border for hero service cards */
.hero-services-wrapper .service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px; /* border thickness */
    background: linear-gradient(135deg, rgba(102,126,234,0.7), rgba(139,92,246,0.7), rgba(14,165,233,0.6));
    -webkit-mask: 
        linear-gradient(#000 0 0) content-box, 
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0.25;
    transition: opacity 0.35s ease;
}

.hero-services-wrapper .service-card:hover::after {
    opacity: 0.9;
}

/* Soft top highlight for depth */
.hero-services-wrapper .service-card::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -10%;
    right: -10%;
    height: 55%;
    background: radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,0.45), rgba(255,255,255,0) 60%);
    pointer-events: none;
}

/* Icon ring upgrade for hero cards */
.hero-services-wrapper .service-icon {
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, rgba(102,126,234,0.95), rgba(139,92,246,0.95));
    border: 2px solid rgba(255,255,255,0.6);
    box-shadow: 0 10px 25px rgba(102,126,234,0.35), 0 4px 12px rgba(139,92,246,0.25);
}

.hero-services-wrapper .service-icon i {
    font-size: 2.1rem;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* Subtle float animation for hero cards */
@keyframes floatUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.hero-services-wrapper .service-card {
    animation: floatUpDown 6s ease-in-out infinite;
}

.hero-services-wrapper .service-card:nth-child(2) { animation-delay: 1s; }
.hero-services-wrapper .service-card:nth-child(3) { animation-delay: 2s; }

/* Ensure readability on hover over vibrant aura in light mode */
body:not([data-theme="dark"]) .hero-services-wrapper .service-card:hover h3,
body:not([data-theme="dark"]) .hero-services-wrapper .service-card:hover p {
    color: #0f172a; /* slate-900 */
}

/* Override dark mode text colors for service cards on background */
[data-theme="dark"] .hero-services-wrapper .service-card h3 {
    color: #1a202c;
}

[data-theme="dark"] .hero-services-wrapper .service-card p {
    color: #4a5568;
}

[data-theme="dark"] .hero-services-wrapper .service-card .service-icon {
    color: #667eea;
}

/* Ensure proper z-index for content */
.hero-services-wrapper .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Mission Section */
.mission {
    padding: 80px 0;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mission-statement {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.mission-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.highlight i {
    color: #667eea;
    font-size: 1.2rem;
}

.mission-image {
    display: flex;
    justify-content: center;
}

.mission-graphic {
    width: 250px;
    height: 250px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.mission-graphic i {
    font-size: 4rem;
    color: white;
}

/* Team Section */
.team {
    padding: 80px 0;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

/* Expandable Team Cards */
.team-member.expandable {
    position: relative;
    overflow: hidden;
}

.expand-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.expand-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.expand-icon {
    transition: transform 0.3s ease;
}

.member-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    margin-top: 1rem;
}

.member-details.expanded {
    max-height: 2000px;
    opacity: 1;
}

.team-member.expanded {
    transform: scale(1.02);
    box-shadow: 0 15px 35px var(--shadow-hover);
}

.member-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

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

.member-stats .stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.3rem;
}

.member-stats .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.member-sections {
    display: grid;
    gap: 1.5rem;
}

.member-section {
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.member-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.member-section h4 i {
    color: #667eea;
    font-size: 1rem;
}

.member-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Responsive adjustments for expandable cards */
@media (max-width: 768px) {
    .member-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .member-section {
        padding: 1rem;
    }
    
    .team-member.expanded {
        transform: none;
    }
    
    /* Team member responsive adjustments */
    .member-details.expanded {
        max-height: 2500px;
    }
    
    .member-stats {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.8rem;
        padding: 1rem;
    }
    
    .member-sections {
        gap: 1rem;
    }
    
    .member-section {
        padding: 1rem;
    }
}

/* Talent Portal Hero Hierarchy */
.talent-portal-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.talent-portal-subtitle {
    font-size: 2rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 1.5rem;
    text-align: center;
}

.talent-portal-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
}

/* Talent Portal Sign In Button */
.talent-portal-signin-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.talent-signin-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.talent-signin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.talent-signin-btn:hover::before {
    left: 100%;
}

.talent-signin-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.talent-signin-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.talent-signin-btn i {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Why Insynqs Title Styling */
.why-insynqs-title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
}

/* Responsive adjustments for talent portal sign in */
@media (max-width: 768px) {
    .talent-portal-title {
        font-size: 2.5rem;
    }
    
    .talent-portal-subtitle {
        font-size: 1.5rem;
    }
    
    .talent-portal-description {
        font-size: 1.1rem;
    }
    
    .talent-signin-btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .why-insynqs-title {
        font-size: 2.5rem !important;
    }
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.team-member {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.member-photo {
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.member-photo i {
    font-size: 3rem;
    color: white;
}

.member-title {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.member-email {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.member-email i {
    font-size: 0.8rem;
}

.member-bio {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.member-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.expertise-tag {
    background: #e9ecef;
    color: #667eea;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Why Us Section */
.why-us {
    padding: 80px 0;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-item {
    text-align: center;
    padding: 2rem;
}

.why-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.why-icon i {
    font-size: 2rem;
    color: white;
}

/* Services Detailed */
.services-detailed {
    padding: 80px 0;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card-detailed {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card-detailed:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-hover);
}

.service-card-detailed .service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-card-detailed .service-icon i {
    font-size: 1.5rem;
    color: white;
}

.service-card-detailed h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card-detailed p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.service-detail {
    margin-bottom: 4rem;
    padding: 3rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.service-icon-large {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.service-icon-large i {
    font-size: 3rem;
    color: white;
}

.service-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.service-benefits h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.service-benefits ul {
    list-style: none;
    margin-bottom: 2rem;
}

.service-benefits li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.service-benefits i {
    color: #667eea;
}

.service-process h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.step-number {
    width: 30px;
    height: 30px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.grant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.grant-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.grant-amount {
    display: block;
    color: #667eea;
    font-weight: 600;
    margin-top: 0.5rem;
}

.process-timeline {
    position: relative;
    padding-left: 2rem;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #667eea;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: #667eea;
    border-radius: 50%;
}

.timeline-content h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

/* Confidentiality Notice */
.confidentiality-notice {
    padding: 40px 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.notice-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.notice-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    padding: 1rem 2rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: background-color 0.3s ease;
}

/* Case Studies */
.case-studies {
    padding: 80px 0;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.case-study {
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 3rem;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.case-content {
    padding: 3rem;
}

.case-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.case-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.case-icon i {
    font-size: 2rem;
    color: white;
}

.case-title h2 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.case-category {
    background: #e9ecef;
    color: #667eea;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.case-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.case-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.result-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.case-challenges h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.case-challenges ul {
    list-style: none;
}

.case-challenges li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.case-challenges li:last-child {
    border-bottom: none;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.author-company {
    color: #667eea;
    font-size: 0.9rem;
}

/* Contact */
.contact {
    padding: 80px 0;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.contact-details i {
    color: #667eea;
    width: 16px;
}

.testimonial-quote {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px var(--shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-quote blockquote {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.testimonial-quote cite {
    color: #667eea;
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* FAQ */
.faq {
    padding: 80px 0;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.faq-item h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 60px 0 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.footer-section h3,
.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Footer brand: logo image with light-mode contrast */
.footer-brand {
    display: inline-flex;
    align-items: center;
}
.footer-brand img {
    height: 95px;
    width: auto;
    display: block;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.25));
    transform: translateX(-84px) translateY(-25px);
}
body:not([data-theme="dark"]) .footer-brand {
    background: transparent;
}
[data-theme="dark"] .footer-brand {
    background: transparent;
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Move footer text up to sit in transparent space of logo */
.footer-section:first-child p {
    margin-top: -1.2rem;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #667eea;
}

/* Full-width overlay in light mode for the entire footer */
/* Light Mode Footer Enhancement */
body:not([data-theme="dark"]) .footer {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.65) 0%, 
        rgba(118, 75, 162, 0.6) 25%,
        rgba(139, 92, 246, 0.55) 50%,
        rgba(59, 130, 246, 0.5) 75%,
        rgba(102, 126, 234, 0.6) 100%);
    border-top: 1px solid rgba(102, 126, 234, 0.4);
    box-shadow: 0 -4px 32px rgba(102, 126, 234, 0.3), 
                0 -2px 16px rgba(118, 75, 162, 0.25),
                0 -1px 4px rgba(0, 0, 0, 0.12);
}

body:not([data-theme="dark"]) .footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.3) 0%, 
        rgba(118, 75, 162, 0.25) 25%,
        rgba(139, 92, 246, 0.2) 50%,
        rgba(59, 130, 246, 0.15) 75%,
        rgba(102, 126, 234, 0.25) 100%);
    pointer-events: none;
    border-radius: 16px 16px 0 0;
}

/* Make footer text readable over overlay in light mode */
body:not([data-theme="dark"]) .footer,
body:not([data-theme="dark"]) .footer .footer-section h3,
body:not([data-theme="dark"]) .footer .footer-section h4,
body:not([data-theme="dark"]) .footer .footer-section p,
body:not([data-theme="dark"]) .footer .footer-bottom,
body:not([data-theme="dark"]) .footer .footer-section ul li a {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Enhanced footer text styling for light mode */
body:not([data-theme="dark"]) .footer .footer-section h3 {
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

body:not([data-theme="dark"]) .footer .footer-section h4 {
    color: #f1f5f9;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

body:not([data-theme="dark"]) .footer .footer-section a {
    color: #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body:not([data-theme="dark"]) .footer .footer-section ul li a:hover {
    color: #cbd5ff;
    text-shadow: 0 0 8px rgba(203, 213, 255, 0.6);
    transform: translateY(-1px);
}

/* Footer Contact Info Styling */
.footer .contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer .contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.9rem;
}

.footer .contact-info i {
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
}

.footer .contact-info a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer .contact-info a:hover {
    color: #cbd5ff;
    text-shadow: 0 0 8px rgba(203, 213, 255, 0.6);
    transform: translateY(-1px);
}

/* Light mode footer contact info */
body:not([data-theme="dark"]) .footer .contact-info a {
    color: #e2e8f0;
}

body:not([data-theme="dark"]) .footer .contact-info a:hover {
    color: #cbd5ff;
    text-shadow: 0 0 8px rgba(203, 213, 255, 0.6);
    transform: translateY(-1px);
}

/* Footer copyright text white in light mode */
body:not([data-theme="dark"]) .footer-bottom {
    color: #ffffff !important;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body:not([data-theme="dark"]) .footer-bottom p {
    color: #ffffff !important;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Office address styling with dark mode support */
.office-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.office-address {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    transition: color 0.3s ease;
}

/* Seamless contact information styling */
.contact-info-seamless {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow);
}

.contact-method i {
    color: #667eea;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.contact-method span {
    color: var(--text-primary);
    font-weight: 500;
}

/* Contact page intro text */
.contact-intro {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Contact Info Section - Match form styling */
.contact-info-section h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 700;
}

.contact-info-section .contact-intro {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-info-section .contact-info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contact-info-section .contact-info-card:hover {
    border-color: var(--gradient-primary);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.contact-info-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateX(5px);
}

.contact-method i {
    font-size: 1.2rem;
    color: var(--gradient-primary);
    min-width: 20px;
    transition: all 0.3s ease;
}

.contact-method:hover i {
    color: white;
    transform: scale(1.1);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-method:hover .contact-label {
    color: rgba(255, 255, 255, 0.8);
}

.contact-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-method:hover .contact-value {
    color: white;
}

.office-method {
    border: 2px solid var(--gradient-primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.office-method i {
    color: var(--gradient-primary);
    font-size: 1.3rem;
}

/* Contact CTA section */
.contact-cta {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contact-cta h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-cta p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Responsive contact info */
@media (max-width: 768px) {
    .contact-info-seamless {
        gap: 0.8rem;
    }
    
    .contact-method {
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .contact-cta {
        margin-top: 1.5rem;
        padding: 1rem;
    }
}

/* Portfolio Sub-Navigation */
.portfolio-sub-nav {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Add padding to portfolio pages to account for fixed sub-nav */
.projects-page .page-header,
.industries-page .page-header,
.partners-page .page-header {
    padding-top: 180px;
    margin-top: 0;
}

.sub-nav-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.sub-nav-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.sub-nav-tab:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

.sub-nav-tab.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.sub-nav-tab i {
    font-size: 1.1rem;
}

/* Responsive sub-navigation */
@media (max-width: 768px) {
    .sub-nav-tabs {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .sub-nav-tab {
        justify-content: center;
        padding: 1rem;
    }
}

/* Portfolio Overview Cards */
.portfolio-overview {
    padding: 80px 0;
    background: var(--bg-primary);
}

.portfolio-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--shadow);
    text-align: center;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-hover);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.card-icon i {
    font-size: 2rem;
    color: white;
}

.portfolio-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.portfolio-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.card-stats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-stats .stat {
    background: var(--gradient-primary);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.card-button {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Responsive portfolio cards */
@media (max-width: 768px) {
    .portfolio-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .portfolio-card {
        padding: 1.5rem;
    }
    
    .card-stats {
        flex-direction: column;
        align-items: center;
    }
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--card-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }
    
    /* Footer responsive adjustments */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand img {
        height: 80px;
        transform: translateX(0) translateY(0);
        margin: 0 auto;
    }
    
    .footer-section:first-child p {
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }
    
    /* Tablet navbar adjustments */
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .nav-logo img {
        height: 45px;
    }

    .theme-toggle {
        order: 3;
        margin-left: 0;
        margin-right: 1rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .mission-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-cta {
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    /* Responsive background adjustments */
    .hero-services-wrapper {
        min-height: 80vh;
        background-size: 100% 100%;
        background-position: center center;
    }
    
    .hero-services-wrapper .page-header {
        padding: 6rem 0 3rem;
    }
    
    .hero-services-wrapper .page-header h1 {
        font-size: 2.5rem;
    }
    
    .hero-services-wrapper .page-header p {
        font-size: 1.1rem;
    }
    
    /* Services section responsive adjustments */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .services-snapshot {
        padding: 60px 0;
    }
    
    .hero-services-wrapper .services-snapshot {
        margin-top: 3rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .service-card,
    .team-member,
    .case-content {
        padding: 1.5rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }

    /* Extra small screens - minimal margins */
    .hero-services-wrapper {
        min-height: 70vh;
        background-size: 100% 100%;
        background-position: center center;
    }
    
    .hero-services-wrapper .page-header {
        padding: 4rem 0 2rem;
    }
    
    .hero-services-wrapper .page-header h1 {
        font-size: 2rem;
    }
    
    .hero-services-wrapper .page-header p {
        font-size: 1rem;
    }
    
    /* Mobile services section adjustments */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .services-snapshot {
        padding: 40px 0;
    }
    
    .hero-services-wrapper .services-snapshot {
        margin-top: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    /* Mobile team member adjustments */
    .member-details.expanded {
        max-height: 3000px;
    }
    
    .member-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.8rem;
    }
    
    .member-section {
        padding: 0.8rem;
    }
    
    .member-section h4 {
        font-size: 1rem;
    }
    
    .member-section p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Mobile navbar adjustments */
    .nav-logo img {
        height: 40px;
    }
    
    .nav-menu {
        top: 70px;
        padding: 1.5rem 0;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    /* Mobile footer adjustments */
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-brand img {
        height: 70px;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .footer-section p,
    .footer-section ul li a {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.team-member,
.case-study {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Smooth transitions for all elements */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Override transitions for specific elements that shouldn't transition */
.nav-link::after,
.btn,
.theme-toggle-btn,
.hamburger .bar {
    transition: none;
}

/* Restore specific transitions */
.nav-link {
    transition: color 0.3s ease;
}

.btn {
    transition: all 0.3s ease;
}

.theme-toggle-btn {
    transition: all 0.3s ease;
}

.hamburger .bar {
    transition: 0.3s;
}

/* Industries Page */
.industries {
    padding: 80px 0;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.industries-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.industry-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.industry-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow-hover);
}

.industry-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.industry-icon i {
    font-size: 2.5rem;
    color: white;
}

.industry-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.industry-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.industry-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.feature-tag {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.industry-stats {
    display: flex;
    gap: 1rem 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    justify-content: center;
}

/* Ensure industry stat chips don't hug the card edge and wrap nicely */
.industry-stats .stat {
    padding: 0.35rem 0.6rem;
    border-radius: 9999px;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.15);
    white-space: nowrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.3rem;
}

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

/* Industry Success Stories */
.industry-success {
    padding: 80px 0;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.success-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.success-story {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.success-story:hover {
    transform: translateY(-5px);
}

.success-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-icon i {
    font-size: 1.8rem;
    color: white;
}

.success-story h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.success-story p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Blog Page */
.featured-post {
    padding: 80px 0;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.featured-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
}

.featured-content h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    line-height: 1.2;
}

.featured-excerpt {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.featured-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.featured-graphic {
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.featured-graphic i {
    font-size: 6rem;
    color: white;
}

.blog-posts {
    padding: 80px 0;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.blog-post {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 8px 25px var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: 1px solid var(--border-color);
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow-hover);
}

.post-header {
    padding: 2rem 2rem 1rem;
}

.post-category {
    background: var(--bg-secondary);
    color: #667eea;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
}

.blog-post h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-meta span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-meta i {
    color: #667eea;
    font-size: 0.8rem;
}

.post-content {
    padding: 0 2rem 2rem;
}

.post-content h4 {
    color: var(--text-primary);
    margin: 2rem 0 1rem;
    font-size: 1.2rem;
}

.post-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.post-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Newsletter */
.newsletter {
    padding: 80px 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.newsletter-content h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    background: white;
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
}

/* Responsive Blog */
@media (max-width: 768px) {
    .featured-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Network & Partners Page */
.partners-overview {
    padding: 80px 0;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.overview-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.partners-section {
    padding: 80px 0;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.partner-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow-hover);
}

.partner-logo {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.partner-logo i {
    font-size: 2.5rem;
    color: white;
}

.partner-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.partner-type {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.partner-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.partner-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.partner-stats .stat {
    text-align: center;
}

.partner-stats .stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.3rem;
}

.partner-stats .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Funding Partners */
.funding-partners {
    padding: 80px 0;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.funding-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.funding-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: 1px solid var(--border-color);
}

.funding-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-hover);
}

.funding-logo {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.funding-logo i {
    font-size: 2rem;
    color: white;
}

.funding-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.funding-amount {
    color: #667eea;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.funding-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.funding-focus {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.focus-tag {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* Global Partners */
.global-partners {
    padding: 80px 0;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.global-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.global-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.global-card:hover {
    transform: translateY(-5px);
}

.global-logo {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.global-logo i {
    font-size: 1.8rem;
    color: white;
}

.global-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.global-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Success Metrics */
.success-metrics {
    padding: 80px 0;
    background: var(--gradient-primary);
    color: white;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.metric-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
}

.metric-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.metric-icon i {
    font-size: 1.8rem;
    color: white;
}

.metric-card h3 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.metric-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* Responsive Network */
@media (max-width: 768px) {
    .partners-grid,
    .funding-grid,
    .global-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partner-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Contact Page Header Enhancement */
.contact-page-header {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.1) 0%, 
        rgba(139, 92, 246, 0.1) 50%, 
        rgba(59, 130, 246, 0.1) 100%);
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.contact-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('logo/bg.jpg') center/cover;
    opacity: 0.1;
    z-index: -1;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.header-logo {
    flex-shrink: 0;
}

.header-logo img {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.header-logo img:hover {
    transform: scale(1.05);
}

.header-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 500px;
}

/* Contact Page Professional Enhancements */
.contact {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.contact-form-section {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.contact-form-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-info-section {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.contact-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.contact-info-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-info-card {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.contact-info-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.contact-method:hover {
    background: linear-gradient(135deg, rgba(102,126,234,0.12), rgba(139,92,246,0.12));
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(102, 126, 234, 0.25);
}

/* Light mode: make hover vibrant and text readable */
body:not([data-theme="dark"]) .contact-method:hover {
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.65),
        rgba(139, 92, 246, 0.6));
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 24px rgba(102, 126, 234, 0.35), 0 6px 16px rgba(139, 92, 246, 0.25);
}

body:not([data-theme="dark"]) .contact-method:hover .contact-label,
body:not([data-theme="dark"]) .contact-method:hover .contact-value {
    color: #1e293b; /* slate-800 for strong readability */
    text-shadow: none;
}

body:not([data-theme="dark"]) .contact-method:hover i {
    color: #0ea5e9; /* cyan-500 accent for icons on hover */
}

.contact-method i {
    font-size: 1.4rem;
    color: var(--primary-color);
    width: 1.5rem;
    text-align: center;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    color: var(--text-secondary);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.contact-method:hover .contact-value {
    color: var(--text-primary);
}

.contact-cta {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.1) 0%, 
        rgba(139, 92, 246, 0.1) 100%);
    padding: 1.25rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.contact-cta h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-cta p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Contact Social Link */
.contact-social {
    margin: 0.5rem 0 0.25rem;
}

.contact-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-social-link i {
    font-size: 1.1rem;
}

.contact-social-link:hover {
    text-decoration: underline;
}

/* FAQ Section Enhancement */
.faq {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive Design for Contact Page */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .header-logo img {
        height: 80px;
    }
    
    .header-text h1 {
        font-size: 2.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-section,
    .contact-info-section {
        padding: 2rem;
    }
}

/* Contact heading icon */
.contact-heading-icon {
    color: var(--primary-color);
    margin-right: 0.5rem;
}
