/* InzpireX - Educational Kits Platform
   Design Direction: Modern Tech-Educational with Circuit Board Aesthetics
   A blend of technical precision and approachable warmth */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    /* Primary Colors - Deep Cyan/Blue */
    --primary-900: #064e5b;
    --primary-800: #0a6073;
    --primary-700: #0e7490;
    --primary-600: #0891b2;
    --primary-500: #06b6d4;
    
    /* Accent Colors - Energetic Teal/Mint */
    --accent-500: #14b8a6;
    --accent-400: #2dd4bf;
    --accent-300: #5eead4;
    --accent-200: #99f6e4;
    
    /* Neutrals */
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    
    /* Functional */
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    
    /* Shadows */
    --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-glow: 0 0 40px rgba(45, 212, 191, 0.15);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--slate-50);
    color: var(--slate-800);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--slate-900);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
    color: var(--slate-600);
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* Circuit Board Background Pattern */
.circuit-bg {
    background-color: var(--slate-900);
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(45, 212, 191, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(14, 116, 144, 0.05) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg stroke='%232dd4bf' stroke-opacity='0.04' stroke-width='1'%3E%3Cpath d='M30 0v60M0 30h60M15 0v30h30M45 30v30M0 15h30v30M30 15h30'/%3E%3Ccircle cx='30' cy='30' r='3'/%3E%3Ccircle cx='15' cy='30' r='2'/%3E%3Ccircle cx='45' cy='30' r='2'/%3E%3Ccircle cx='30' cy='15' r='2'/%3E%3Ccircle cx='30' cy='45' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

.navbar.scrolled .nav-link {
    color: var(--slate-700);
}

.navbar.scrolled .nav-link:hover {
    color: var(--primary-600);
}

/* .navbar.scrolled .logo-text {
    color: var(--primary-700);
}

.navbar.scrolled .logo-accent {
    color: var(--accent-500);
} */

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
}

/* .logo-text {
    color: white;
    transition: color var(--transition-base);
}

.logo-accent {
    color: var(--accent-400);
    transition: color var(--transition-base);
} */

.logo {
    display: flex;
    align-items: center;
    /* Removed gap: 0.5rem; if the image includes all logo elements */
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem; /* This font size is for the *link* but doesn't affect the img */
    font-weight: 700;
}

/* NEW: Styles for the image logo */
.logo-img {
    height: 40px; /* Set a specific height for the logo */
    width: auto; /* Maintain aspect ratio */
    transition: filter var(--transition-base);
}

/* NEW: Adjust logo appearance when scrolled (assuming the original image is white) */
.navbar.scrolled .logo-img {
    /* Example: Invert the color or apply a duotone effect if needed. 
       If your logowhite.jpg is only white, a simple filter might not be enough
       and you might need a second logo image (logodark.jpg). 
       However, we'll try to change it to black using filter brightness/invert. 
       A dark logo image is typically better for this transition. */
    filter: brightness(0); /* This will turn a white logo completely black */
    /* Alternatively, if you want a subtle tint, use sepia/hue-rotate/saturate */
}

/* Note: Delete the obsolete logo-text, logo-accent, and logo-icon styles as mentioned in 'Deletions' */

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-600), var(--accent-400));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    color: var(--slate-200);
    position: relative;
    padding: 0.25rem 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-400);
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-400);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-500), var(--accent-400));
    color: var(--slate-900);
    box-shadow: 0 4px 14px rgba(45, 212, 191, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 212, 191, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-700);
    border: 2px solid var(--primary-700);
}

.btn-outline:hover {
    background: var(--primary-700);
    color: white;
}

/* Mobile Navigation */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    transition: all var(--transition-base);
}

.navbar.scrolled .mobile-toggle span {
    background: var(--slate-700);
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--slate-900);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 2rem;
        transition: right var(--transition-slow);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        color: var(--slate-200) !important;
        font-size: 1.25rem;
    }
    
    .nav-cta {
        width: 100%;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.3);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-400);
    margin-bottom: 1.5rem;
}

.hero-title {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent-400), var(--accent-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    color: var(--slate-400);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-image-container {
    position: relative;
    aspect-ratio: 1;
    max-width: 550px;
    margin-left: auto;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-800), var(--primary-900));
    border-radius: var(--radius-2xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--slate-400);
    font-size: 0.875rem;
    border: 1px solid rgba(45, 212, 191, 0.2);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.hero-image-placeholder svg {
    width: 80px;
    height: 80px;
    opacity: 0.5;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.floating-card-1 {
    top: 10%;
    left: -10%;
    animation: float 6s ease-in-out infinite;
}

.floating-card-2 {
    bottom: 15%;
    right: -5%;
    animation: float 6s ease-in-out infinite 2s;
}

.floating-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.floating-card-icon.blue {
    background: rgba(14, 116, 144, 0.1);
    color: var(--primary-600);
}

.floating-card-icon.teal {
    background: rgba(45, 212, 191, 0.1);
    color: var(--accent-500);
}

.floating-card-text {
    font-size: 0.8125rem;
}

.floating-card-title {
    font-weight: 600;
    color: var(--slate-900);
}

.floating-card-subtitle {
    color: var(--slate-500);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-image-container {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .floating-card {
        display: none;
    }
}

/* Section Styles */
.section {
    padding: 6rem 1.5rem;
}

.section-dark {
    background: var(--slate-900);
    color: white;
}

.section-light {
    background: white;
}

.section-gray {
    background: var(--slate-100);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 4rem;
}

.section-label {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-500);
    margin-bottom: 0.75rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-dark .section-title {
    color: white;
}

.section-description {
    font-size: 1.125rem;
}

.section-dark .section-description {
    color: var(--slate-400);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--slate-200);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.1), rgba(45, 212, 191, 0.1));
    color: var(--primary-600);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-description {
    font-size: 0.9375rem;
}

.card-image {
    width: 100%;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--slate-100), var(--slate-200));
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-400);
    font-size: 0.75rem;
}

/* Feature Section */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-grid.reverse {
    direction: rtl;
}

.feature-grid.reverse > * {
    direction: ltr;
}

.feature-content {
    max-width: 540px;
}

.feature-title {
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--slate-200);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-500), var(--accent-400));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.feature-image-container {
    position: relative;
}

.feature-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary-800), var(--primary-900));
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-400);
    font-size: 0.875rem;
    border: 1px solid rgba(45, 212, 191, 0.2);
}

@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-grid.reverse {
        direction: ltr;
    }
}

/* Kit Cards */
.kit-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--slate-200);
}

.kit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.kit-image {
    width: 100%;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--slate-100), var(--slate-200));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-400);
    font-size: 0.75rem;
}

.kit-content {
    padding: 1.5rem;
}

.kit-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(45, 212, 191, 0.1);
    color: var(--accent-500);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 0.75rem;
}

.kit-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.kit-description {
    font-size: 0.875rem;
    color: var(--slate-500);
}

/* Tabs */
.tabs-container {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--slate-200);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    flex: 1;
    min-width: max-content;
    padding: 1rem 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--slate-500);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-500);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.tab-btn:hover {
    color: var(--primary-600);
    background: var(--slate-50);
}

.tab-btn.active {
    color: var(--primary-700);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-content {
    padding: 2rem;
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tab-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.1), rgba(45, 212, 191, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.tab-title {
    font-size: 1.5rem;
}

.tab-subtitle {
    color: var(--slate-500);
    font-size: 0.9375rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--slate-50);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.project-item:hover {
    background: var(--slate-100);
    transform: translateX(4px);
}

.project-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-600);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.project-name {
    font-size: 0.9375rem;
    color: var(--slate-700);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-400);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--slate-400);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 5rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-800), var(--primary-900));
    border-radius: var(--radius-2xl);
    margin: 0 1.5rem;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg stroke='%232dd4bf' stroke-opacity='0.05' stroke-width='1'%3E%3Cpath d='M30 0v60M0 30h60'/%3E%3Ccircle cx='30' cy='30' r='3'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.cta-title {
    color: white;
    margin-bottom: 1rem;
}

.cta-description {
    color: var(--slate-300);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--slate-700);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-md);
    background: var(--slate-50);
    color: var(--slate-800);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.1);
    background: white;
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
}

.form-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.form-message {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    display: none;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.1), rgba(45, 212, 191, 0.1));
    color: var(--primary-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.contact-info-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.contact-info-text {
    color: var(--slate-600);
    font-size: 0.9375rem;
}

.contact-info-text a {
    color: var(--primary-600);
}

.contact-info-text a:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    background: var(--slate-900);
    color: var(--slate-400);
    padding: 5rem 1.5rem 2rem;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--slate-800);
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo span {
    color: var(--accent-400);
}

.footer-tagline {
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-400);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--slate-800);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--accent-500);
    color: var(--slate-900);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* About Page Specific */
.about-hero {
    padding-top: 10rem;
    padding-bottom: 6rem;
}

.about-hero .hero-container {
    text-align: center;
}

.about-hero .hero-description {
    max-width: 680px;
    margin: 0 auto;
}

.value-card {
    text-align: center;
    padding: 2.5rem;
}

.value-card .card-icon {
    margin: 0 auto 1.25rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-500), var(--primary-600));
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-500);
    transform: translateX(-5px);
}

.timeline-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.team-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--slate-200), var(--slate-300));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-400);
    font-size: 3rem;
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-name {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--accent-500);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Page Banner */
.page-banner {
    padding: 10rem 1.5rem 4rem;
    text-align: center;
}

.page-banner .section-title {
    color: white;
    margin-bottom: 1rem;
}

.page-banner .section-description {
    max-width: 640px;
    margin: 0 auto;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-white { color: white; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }

/* Loading state */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Form Validation States */
.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input.error:focus,
.form-select.error:focus,
.form-textarea.error:focus {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Button Disabled State */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-600);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 100;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    background: var(--primary-700);
    transform: translateY(-3px);
}

/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--slate-900);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--slate-700);
    border-top-color: var(--accent-400);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Focus Visible for Accessibility */
:focus-visible {
    outline: 2px solid var(--accent-500);
    outline-offset: 2px;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    padding: 1rem;
    background: var(--primary-600);
    color: white;
    z-index: 10000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}