/* css/style.css */
/* Contains ALL global styles, variables, component styles, and non-responsive section styles */
/* Extracted DIRECTLY and COMPLETELY from your provided HTML's <style> block (non-@media parts) */

:root {
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;

    --secondary-300: #a78bfa;
    --secondary-400: #8b5cf6; /* Added for gradient example */
    --secondary-600: #7c3aed;
    --secondary-900: #581c87;

    --dark-50: #f8fafc;
    --dark-100: #f1f5f9;
    --dark-200: #e2e8f0;
    --dark-300: #cbd5e1;
    --dark-400: #94a3b8;
    --dark-500: #64748b;
    --dark-600: #475569;
    --dark-700: #334155;
    --dark-800: #1e293b;
    --dark-900: #0f172a;

    --gradient-primary: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    --gradient-hero: linear-gradient(135deg, var(--dark-900) 0%, var(--primary-900) 50%, var(--secondary-900) 100%);
    --gradient-text: linear-gradient(135deg, var(--primary-600), var(--secondary-600));

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark-800);
    overflow-x: hidden;
    background: var(--dark-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Dark theme base */
body.dark-theme {
    color: var(--dark-200);
    background: var(--dark-900);
}
body.dark-theme .header {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    border-bottom-color: rgba(51, 65, 85, 0.5);
}
body.dark-theme .header.scrolled {
    background: rgba(15, 23, 42, 0.95);
}
body.dark-theme .logo-text {
     background: linear-gradient(135deg, var(--primary-300), var(--secondary-300));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}
body.dark-theme .logo-tagline {
    color: var(--dark-400);
}
body.dark-theme .nav-link {
    color: var(--dark-300);
}
body.dark-theme .nav-link:hover,
body.dark-theme .nav-link.active { /* Ensure active also uses dark theme colors */
    color: var(--primary-300);
}
body.dark-theme .nav-link::after {
    background: linear-gradient(135deg, var(--primary-300), var(--secondary-300));
}
body.dark-theme .mobile-menu {
    background: rgba(15, 23, 42, 0.98); /* Slightly more opaque */
    border-bottom-color: rgba(51, 65, 85, 0.5);
}
body.dark-theme .mobile-nav-link {
    color: var(--dark-300);
}
body.dark-theme .mobile-nav-link:hover,
body.dark-theme .mobile-nav-link.active {
    color: var(--primary-300);
    background-color: var(--dark-700);
}
body.dark-theme .theme-toggle,
body.dark-theme .mobile-menu-toggle {
    border-color: var(--dark-600);
    color: var(--primary-100); /* Use a lighter color for icons */
}
body.dark-theme .theme-toggle:hover,
body.dark-theme .mobile-menu-toggle:hover {
    background: var(--dark-700);
    border-color: var(--dark-500);
}
/* Ensure sections with inline white/light backgrounds get overridden */
body.dark-theme section[style*="background: white"],
body.dark-theme section[style*="background: var(--dark-50)"] {
    background: var(--dark-800) !important; /* More specific dark background for sections */
}
body.dark-theme section[style*="background: var(--dark-50);"] {
     background: var(--dark-850, #111827) !important; /* A slightly lighter dark if --dark-50 was used for section bg */
}


body.dark-theme .section-badge {
    background: var(--primary-800);
    color: var(--primary-100);
}
body.dark-theme .section-title,
body.dark-theme .feature-title,
body.dark-theme .competency-title,
body.dark-theme .project-title,
body.dark-theme .team-name {
    color: var(--dark-100);
}
body.dark-theme .section-subtitle,
body.dark-theme .feature-description,
body.dark-theme .competency-description,
body.dark-theme .project-description,
body.dark-theme .team-bio,
body.dark-theme .expertise-list {
    color: var(--dark-400);
}
body.dark-theme .feature-card,
body.dark-theme .competency-card,
body.dark-theme .project-card,
body.dark-theme .team-card {
    background: var(--dark-800); /* Slightly lighter than main dark bg */
    border-color: var(--dark-700);
}
body.dark-theme .feature-highlights li {
    color: var(--dark-300);
}
body.dark-theme .feature-highlights li i { /* Assuming FontAwesome checkmark */
    color: var(--secondary-300);
}
body.dark-theme .tech-tag {
    background: var(--primary-700); /* Darker background for tags */
    color: var(--primary-100);
}
body.dark-theme .project-impact,
body.dark-theme .team-expertise { /* Team expertise section */
    background: var(--dark-700); /* Darker than card background */
    border-left-color: var(--primary-500); /* Keep primary accent */
}
body.dark-theme .project-impact-title,
body.dark-theme .expertise-title {
    color: var(--dark-200);
}
body.dark-theme .project-impact-text,
body.dark-theme .expertise-list {
    color: var(--dark-400);
}
/* Ensure contact form inputs are styled for dark mode if not already handled by pseudo-classes */
body.dark-theme .form-input {
    background: rgba(30, 41, 59, 0.5); /* var(--dark-800) with opacity */
    border-color: var(--dark-600);
    color: var(--dark-100);
}
body.dark-theme .form-input::placeholder {
    color: var(--dark-400);
}
body.dark-theme .form-input:focus {
    border-color: var(--primary-400);
    background: rgba(30, 41, 59, 0.7);
}
body.dark-theme .form-label {
    color: var(--dark-100);
}



.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    visibility: visible;
}
.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}
.loading-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.hexquant-loader {
    position: relative;
    width: 100px;
    height: 100px;
}
.hex-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100px;
    height: 100px;
}
.hex {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    animation: hexPulse 2s ease-in-out infinite;
}
.hex:nth-child(1) { animation-delay: 0s; }
.hex:nth-child(2) { animation-delay: 0.2s; }
.hex:nth-child(3) { animation-delay: 0.4s; }
.hex:nth-child(4) { animation-delay: 0.6s; }
.hex:nth-child(5) { animation-delay: 0.8s; }
.hex:nth-child(6) { animation-delay: 1s; }
.hex:nth-child(7) { animation-delay: 1.2s; }

@keyframes hexPulse {
    0%, 100% {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1);
    }
    50% {
        background: rgba(255, 255, 255, 0.8);
        transform: scale(1.1);
    }
}
.loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1.5rem;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-400), var(--secondary-300));
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Header */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0; /* Ensure it spans full width from left */
    z-index: 50; /* From your HTML */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8); /* var(--dark-200) with opacity */
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    padding: 0.75rem 0; /* Default padding */
}
.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0; /* Reduced padding on scroll */
}
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.logo-link:hover {
    transform: scale(1.05);
}
.logo {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
}
.logo img {
    width: 28px;
    height: 28px;
}
.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    margin-left: 1rem;
}
.logo-tagline {
    display: block;
    font-size: 0.75rem;
    color: var(--dark-500);
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-left: 1rem;
    margin-top: -0.25rem;
}
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}
.nav-link {
    text-decoration: none;
    color: var(--dark-700);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.25rem 0;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-600);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-family: var(--font-main);
}
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}
.btn-outline-white {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}
.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}
.btn-xl {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 1rem;
}
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    border-radius: 0.5rem;
}
.btn.disabled, .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}


/* Theme Toggle & Mobile Menu Toggle */
.theme-toggle, .mobile-menu-toggle {
    padding: 0.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    background: transparent;
    border: 1px solid var(--dark-300);
    color: var(--dark-700);
}
.theme-toggle:hover, .mobile-menu-toggle:hover {
    background: var(--dark-100);
    border-color: var(--dark-400);
}
.hamburger-icon {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}
.hamburger-icon .line {
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: all 0.3s ease;
    border-radius: 1px;
}
.mobile-menu-toggle.open .line1 { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.open .line2 { opacity: 0; transform: translateX(-10px); }
.mobile-menu-toggle.open .line3 { transform: translateY(-7px) rotate(-45deg); }


/* Mobile Menu */
.mobile-menu {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--dark-200);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease;
    height: 100vh;
    overflow-y: auto;
    padding-top: 60px; /* Default, JS will adjust */
}
.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}
.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--dark-700);
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 0.5rem;
    text-align: center;
}
.mobile-nav-link:hover, .mobile-nav-link.active {
    color: var(--primary-600);
    background-color: var(--primary-50);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 70px; /* Initial offset for header */
    text-align: center;
}
.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    pointer-events: none;
}
.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 12s ease-in-out infinite alternate;
    opacity: 0.5;
}
.floating-element-1 { top: 15%; left: 10%; width: 80px; height: 80px; animation-delay: 0s; }
.floating-element-2 { top: 65%; right: 12%; width: 120px; height: 120px; opacity: 0.4; animation-delay: -2s; }
.floating-element-3 { bottom: 25%; left: 18%; width: 60px; height: 60px; animation-delay: -4s; }
.floating-element-4 { top: 8%; right: 35%; width: 90px; height: 90px; opacity: 0.6; animation-delay: -6s; }
.floating-element-5 { bottom: 12%; right: 8%; width: 70px; height: 70px; animation-delay: -8s; }

@keyframes float {
    0% { transform: translateY(0px) translateX(0px) rotate(0deg) scale(0.9); }
    50% { transform: translateY(-25px) translateX(15px) rotate(180deg) scale(1.1); }
    100% { transform: translateY(0px) translateX(0px) rotate(360deg) scale(0.9); }
}
.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    max-width: 900px;
    margin: 0 auto;
}
.hero-title {
    font-family: var(--font-headings, 'Inter'); /* Use Poppins if defined in :root, else Inter */
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease; /* Base transition for JS 'loaded' */
}
.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.8rem); /* Slightly smaller max */
    font-weight: 500; /* Was 600 */
    margin-bottom: 2rem;
    color: var(--primary-100);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem); /* Consistent with subtitle */
    line-height: 1.7; /* Was 1.8 */
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens if needed */
    gap: 1.5rem;
    align-items: center;
    justify-content: center; /* Center buttons */
    margin-bottom: 3rem; /* Was 4rem */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.hero-trust-indicators {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    margin-top: 2.5rem; /* Ensure some space from buttons */
}
.trust-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem; /* Increased gap */
}
.trust-stat {
    text-align: center;
    min-width: 120px; /* Ensure items don't get too squished */
}
.stat-number {
    font-size: 1.75rem; /* Larger numbers */
    font-weight: 700;
    color: var(--primary-300);
    line-height: 1;
    margin-bottom: 0.25rem;
}
.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase; /* Added for style */
    letter-spacing: 0.5px;
}
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem; /* Slightly higher */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    position: relative;
    margin: 0 auto 0.5rem;
}
.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}
@keyframes scroll {
    0% { opacity: 0; top: 6px; }
    50% { opacity: 1; top: 16px; }
    100% { opacity: 0; top: 26px; }
}


/* Section Styles */
.section {
    padding: 5rem 0; /* Consistent padding */
    position: relative;
}
.section-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    background: var(--primary-100);
    color: var(--primary-700);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: var(--font-main);
    letter-spacing: 0.5px;
}
.section-badge i { /* Style for FontAwesome icons in badges */
    margin-right: 0.5rem;
    font-size: 0.9em; /* Relative to badge font size */
}
.section-title {
    font-family: var(--font-headings, 'Inter');
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark-900);
}
.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.7;
    color: var(--dark-600);
    max-width: 800px;
    margin: 0 auto 3rem auto;
}


/* Feature Cards (Used for About Us "Why Choose" and potentially Services) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.feature-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--dark-100);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0.8; /* Slight transparency */
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}
.feature-card:hover::before {
    opacity: 1;
}
.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
    background: var(--gradient-primary); /* Fallback if specific gradients not set */
}
.feature-icon i { /* For FontAwesome icons */
    color: white;
    font-size: 1.8rem;
}
.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}
.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-900);
    margin-bottom: 0.75rem;
}
.feature-description {
    color: var(--dark-600);
    line-height: 1.7;
    margin-bottom: 1.5rem; /* Increased margin */
    flex-grow: 1;
}
.feature-highlights {
    list-style: none;
    padding: 0; /* Reset padding */
    margin-top: auto;
}
.feature-highlights li {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--dark-700);
    margin-bottom: 0.5rem;
}
.feature-highlights li i {
    color: var(--primary-500); /* Consistent checkmark color */
    margin-right: 0.5rem;
    font-size: 0.9rem; /* Slightly smaller check */
}


/* Competencies Section (Used for Services) */
.competencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Slightly larger minmax */
    gap: 2.5rem;
    margin-top: 3rem;
}
.competency-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--dark-100);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}
.competency-card:hover {
    transform: translateY(-6px); /* Less lift than feature card */
    box-shadow: var(--shadow-xl);
}
.competency-icon {
    width: 4.5rem; /* Slightly smaller */
    height: 4.5rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    /* font-size: 1.5rem; From template, but icon itself will have size */
}
.competency-icon i {
    font-size: 1.8rem; /* For FontAwesome icons */
    line-height: 1; /* Prevent extra space */
}
.competency-title {
    font-size: 1.4rem; /* Was 1.5rem */
    font-weight: 700;
    color: var(--dark-900);
    margin-bottom: 0.5rem;
}
.competency-subtitle {
    font-size: 0.95rem; /* Was 1rem */
    color: var(--primary-600);
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: var(--font-main); /* Ensure Inter */
}
.competency-description {
    color: var(--dark-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}
.tech-tag {
    background: var(--primary-50);
    color: var(--primary-700);
    padding: 0.35rem 0.85rem; /* Adjusted padding */
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1; /* Ensure consistent height */
}

/* Projects Section (Portfolio) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); /* Min width was 400px */
    gap: 2.5rem;
    margin-top: 3rem;
}
.project-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--dark-100);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl); /* Was 2xl */
}
.project-image {
    width: 100%;
    height: 220px; /* Was 200px */
    background: var(--gradient-primary); /* Fallback gradient */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    background-size: cover;
    background-position: center center;
    position: relative; /* For overlay if needed */
}
.project-image::before { /* Subtle overlay for better text readability on image if needed */
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 50%);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.project-card:hover .project-image::before {
    opacity: 0.4;
}
.project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Make content area grow */
}
.project-title {
    font-size: 1.35rem; /* Was 1.25rem */
    font-weight: 700;
    color: var(--dark-900);
    margin-bottom: 0.75rem;
}
.project-description {
    color: var(--dark-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Allow description to take space */
}
.project-impact {
    background: var(--primary-50);
    border-left: 4px solid var(--primary-500);
    padding: 1rem;
    border-radius: 0.75rem; /* Was 0.5rem */
    margin-bottom: 1.5rem; /* Added margin */
}
.project-impact-title {
    font-weight: 600;
    color: var(--dark-800);
    margin-bottom: 0.35rem; /* Was 0.25rem */
    font-size: 0.9rem; /* Was 0.875rem */
    display: flex; /* For icon alignment */
    align-items: center;
}
.project-impact-title i { margin-right: 8px; font-size: 0.9em; } /* Icon in impact title */
.project-impact-text {
    color: var(--dark-600);
    font-size: 0.875rem;
}
.project-card .btn-sm { /* Button at the bottom */
    margin-top: auto; /* Push to bottom */
    align-self: flex-start; /* Align to left if needed */
}

/* Team Section */
.team-header {
    text-align: center;
    margin-bottom: 3rem; /* Was 4rem */
}
.team-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--dark-100);
    text-align: center;
    transition: all 0.3s ease;
}
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}
.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-primary); /* Fallback */
    background-size: cover;
    background-position: center center;
    display: flex; /* Only if text fallback is used */
    align-items: center; /* Only if text fallback is used */
    justify-content: center; /* Only if text fallback is used */
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    border: 4px solid white;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
.team-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-900);
    margin-bottom: 0.25rem; /* Was 0.5rem */
}
.team-role {
    font-size: 1rem;
    color: var(--primary-600);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: var(--font-main);
}
.team-bio {
    color: var(--dark-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem; /* Slightly smaller bio */
}
.team-expertise {
    background: var(--dark-100); /* Was --dark-50, make it lighter */
    border-radius: 0.75rem;
    padding: 1.25rem; /* More padding */
    margin-bottom: 1.5rem;
    text-align: left; /* Align expertise text left */
}
.expertise-title {
    font-weight: 600;
    color: var(--dark-800);
    margin-bottom: 0.75rem; /* More space */
    font-size: 0.9rem; /* Was 0.875rem */
}
.expertise-list {
    color: var(--dark-700); /* Darker text for expertise */
    font-size: 0.875rem;
    line-height: 1.6;
}
.expertise-list span {
    display: flex; /* Use flex for icon alignment */
    align-items: center;
    margin-bottom: 0.35rem;
}
.expertise-list i {
    color: var(--primary-600); /* Icon color */
    margin-right: 8px;
    font-size: 0.85em; /* Relative to text */
    min-width: 16px; /* Ensure space for icon */
}


/* Contact Section */
.contact-section {
    background: var(--gradient-hero);
    color: white;
}
.contact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.contact-form {
    background: rgba(255, 255, 255, 0.08); /* Less opaque */
    border-radius: 1.5rem;
    padding: 2.5rem; /* More padding */
    backdrop-filter: blur(15px); /* Softer blur */
    border: 1px solid rgba(255, 255, 255, 0.15); /* Less visible border */
    margin-top: 3rem;
}
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}
.form-label {
    display: block;
    font-weight: 500; /* Was 600 */
    margin-bottom: 0.75rem; /* More space */
    color: var(--primary-100); /* Lighter label */
    font-size: 0.9rem;
}
.form-input, textarea.form-input { /* Combined for consistency */
    width: 100%;
    padding: 0.85rem 1.1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Less visible border */
    background: rgba(255, 255, 255, 0.05); /* More transparent */
    color: white;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    font-family: var(--font-main);
    font-size: 0.95rem;
}
textarea.form-input {
    resize: vertical;
    min-height: 120px;
}
.form-input:focus, textarea.form-input:focus {
    outline: none;
    border-color: var(--primary-400);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(var(--primary-400-rgb, 96, 165, 250), 0.3); /* Add focus ring with primary color */
}
.form-input::placeholder, textarea.form-input::placeholder {
    color: rgba(255, 255, 255, 0.6); /* Lighter placeholder */
}
#form-status-message {
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
    min-height: 20px;
}
#form-status-message.success { color: var(--secondary-300); }
#form-status-message.error { color: #ff9e80; } /* Softer red for dark bg errors */


/* Footer */
.footer {
    background: var(--dark-900);
    color: var(--dark-300); /* Default text color for footer paragraphs */
    padding: 4rem 0 2rem; /* More top padding */
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); /* Slightly smaller min */
    gap: 2.5rem; /* More gap */
    margin-bottom: 3rem; /* More space before bottom */
}
.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600; /* Was 700 */
    margin-bottom: 1.25rem; /* More space */
    color: white;
    font-family: var(--font-headings, 'Inter');
}
.footer-section p, .footer-section a {
    color: var(--dark-300);
    text-decoration: none;
    line-height: 1.7;
    font-size: 0.9rem; /* Consistent font size for links/text */
}
.footer-section a:hover {
    color: var(--primary-400);
    text-decoration: underline; /* Add underline on hover */
}
.footer-section .logo-link { /* Ensure footer logo link is styled */
    margin-bottom: 1rem;
}
.footer-section .logo {
    background: var(--primary-600); /* Ensure footer logo has bg */
}
.footer-section .logo img {
    width: 22px; height: 22px; /* From your HTML */
}
.footer-section .logo-text { /* Ensure footer logo text uses dark theme variables if needed */
    color: white; /* Override gradient for simple white text */
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: unset;
    text-fill-color: unset;
}

.footer-bottom {
    border-top: 1px solid var(--dark-700);
    padding-top: 2rem; /* More space */
    text-align: center;
    color: var(--dark-400);
    font-size: 0.875rem; /* Consistent small text */
}
.footer-bottom .fa-heart {
    color: #ff6b6b; /* Red heart */
    animation: pulseHeart 1.5s infinite;
}
@keyframes pulseHeart {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}


/* Animation Classes */
.fade-in, .slide-in-left, .slide-in-right {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncier ease */
}
.fade-in { transform: translateY(40px); } /* Slightly more Y offset */
.slide-in-left { transform: translateX(-60px); }
.slide-in-right { transform: translateX(60px); }

.fade-in.visible,
.slide-in-left.visible,
.slide-in-right.visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}


/* Loading State for hero elements after page load */
body.loaded .hero-title,
body.loaded .hero-subtitle,
body.loaded .hero-description,
body.loaded .hero-buttons,
body.loaded .hero-trust-indicators,
body.loaded .scroll-indicator {
    opacity: 1;
    transform: translateY(0);
}
/* Apply transition delays using a consistent pattern if JS isn't handling it */
body.loaded .hero-title { transition-delay: 0.2s !important; }
body.loaded .hero-subtitle { transition-delay: 0.4s !important; }
body.loaded .hero-description { transition-delay: 0.6s !important; }
body.loaded .hero-buttons { transition-delay: 0.8s !important; }
body.loaded .hero-trust-indicators { transition-delay: 1.0s !important; }
body.loaded .scroll-indicator { transition-delay: 1.2s !important; }