/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Enhanced Scroll reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(60px);
    filter: blur(5px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-80px) rotateY(-15deg);
    filter: blur(3px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0) rotateY(0deg);
    filter: blur(0px);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(80px) rotateY(15deg);
    filter: blur(3px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0) rotateY(0deg);
    filter: blur(0px);
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.6) rotateZ(-5deg);
    filter: blur(4px);
    transition: all 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-scale.revealed {
    opacity: 1;
    transform: scale(1) rotateZ(0deg);
    filter: blur(0px);
}

/* Staggered animation delays */
.scroll-reveal:nth-child(1) { transition-delay: 0ms; }
.scroll-reveal:nth-child(2) { transition-delay: 100ms; }
.scroll-reveal:nth-child(3) { transition-delay: 200ms; }
.scroll-reveal:nth-child(4) { transition-delay: 300ms; }

.scroll-reveal-left:nth-child(1) { transition-delay: 0ms; }
.scroll-reveal-left:nth-child(2) { transition-delay: 150ms; }
.scroll-reveal-left:nth-child(3) { transition-delay: 300ms; }

.scroll-reveal-right:nth-child(1) { transition-delay: 0ms; }
.scroll-reveal-right:nth-child(2) { transition-delay: 150ms; }
.scroll-reveal-right:nth-child(3) { transition-delay: 300ms; }

.scroll-reveal-scale:nth-child(1) { transition-delay: 0ms; }
.scroll-reveal-scale:nth-child(2) { transition-delay: 200ms; }
.scroll-reveal-scale:nth-child(3) { transition-delay: 400ms; }
.scroll-reveal-scale:nth-child(4) { transition-delay: 600ms; }

/* CSS Variables for Theme */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-tertiary: #777;
    --border-color: rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --accent-gradient: linear-gradient(135deg, #1a1a1a, #333);
}

[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-tertiary: #aaaaaa;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(0, 0, 0, 0.3);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --accent-gradient: linear-gradient(135deg, #ffffff, #cccccc);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px var(--shadow-color);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-brand {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
    outline: none;
    border: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--text-primary);
    outline: none;
}

.nav-link:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.theme-toggle:hover {
    background: var(--glass-bg);
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Hero Background Effects */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.tech-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    color: rgba(26, 26, 26, 0.15);
    animation: float 8s ease-in-out infinite;
    transition: all 0.3s ease;
}

[data-theme="dark"] .tech-icon {
    color: rgba(255, 255, 255, 0.12);
}

.tech-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

[data-theme="dark"] .tech-icon svg {
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.05));
}

.tech-icon:hover {
    transform: scale(1.1);
    color: rgba(26, 26, 26, 0.25);
}

[data-theme="dark"] .tech-icon:hover {
    color: rgba(255, 255, 255, 0.2);
}

.tech-icon-1 {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.tech-icon-2 {
    top: 25%;
    right: 12%;
    animation-delay: 1s;
}

.tech-icon-3 {
    top: 45%;
    left: 5%;
    animation-delay: 2s;
}

.tech-icon-4 {
    top: 65%;
    right: 20%;
    animation-delay: 3s;
}

.tech-icon-5 {
    top: 75%;
    left: 15%;
    animation-delay: 4s;
}

.tech-icon-6 {
    top: 35%;
    right: 5%;
    animation-delay: 5s;
}

.tech-icon-7 {
    top: 55%;
    left: 25%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Section Background Animations */
.section-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.section {
    position: relative;
}

.section .container {
    position: relative;
    z-index: 2;
}

/* About Section - Floating Circles */
.about-bg .floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--text-primary), var(--text-secondary));
    opacity: 0.05;
    animation: floatCircle 12s ease-in-out infinite;
}

.circle-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.circle-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 20%;
    animation-delay: 3s;
}

.circle-3 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 10%;
    animation-delay: 6s;
}

.circle-4 {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 25%;
    animation-delay: 9s;
}

@keyframes floatCircle {
    0%, 100% { transform: translateY(0px) translateX(0px) scale(1); }
    33% { transform: translateY(-30px) translateX(20px) scale(1.1); }
    66% { transform: translateY(20px) translateX(-15px) scale(0.9); }
}

/* Services Section - Geometric Shapes */
.services-bg .geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.geo-shape {
    position: absolute;
    opacity: 0.08;
    animation: rotateShape 15s linear infinite;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid var(--text-primary);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.square-1 {
    width: 60px;
    height: 60px;
    background: var(--text-secondary);
    top: 15%;
    right: 15%;
    animation-delay: 3s;
}

.triangle-2 {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 50px solid var(--text-tertiary);
    top: 70%;
    left: 20%;
    animation-delay: 6s;
}

.hexagon-1 {
    width: 50px;
    height: 50px;
    background: var(--text-primary);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    top: 60%;
    right: 25%;
    animation-delay: 9s;
}

.square-2 {
    width: 40px;
    height: 40px;
    background: var(--text-secondary);
    transform: rotate(45deg);
    top: 40%;
    left: 50%;
    animation-delay: 12s;
}

@keyframes rotateShape {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Founders Section - Particles */
.founders-bg .particle-field {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--text-primary);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleMove 20s linear infinite;
}

.particle-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.particle-2 {
    top: 30%;
    left: 80%;
    animation-delay: 3s;
}

.particle-3 {
    top: 60%;
    left: 20%;
    animation-delay: 6s;
}

.particle-4 {
    top: 80%;
    left: 70%;
    animation-delay: 9s;
}

.particle-5 {
    top: 20%;
    left: 50%;
    animation-delay: 12s;
}

.particle-6 {
    top: 70%;
    left: 40%;
    animation-delay: 15s;
}

@keyframes particleMove {
    0% { transform: translateY(0px) translateX(0px); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

/* Contact Section - Wave Lines */
.contact-bg .wave-lines {
    position: absolute;
    width: 100%;
    height: 100%;
}

.wave-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--text-primary), transparent);
    opacity: 0.1;
    animation: waveMove 8s ease-in-out infinite;
}

.line-1 {
    top: 20%;
    animation-delay: 0s;
}

.line-2 {
    top: 40%;
    animation-delay: 2s;
}

.line-3 {
    top: 60%;
    animation-delay: 4s;
}

.line-4 {
    top: 80%;
    animation-delay: 6s;
}

@keyframes waveMove {
    0%, 100% { transform: translateX(-100%) scaleX(1); }
    50% { transform: translateX(100%) scaleX(1.5); }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23f1f3f4" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.2;
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px var(--shadow-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: linear-gradient(
        90deg,
        var(--text-primary) 0%,
        var(--text-primary) 45%,
        rgba(255, 255, 255, 0.3) 50%,
        var(--text-primary) 55%,
        var(--text-primary) 100%
    );
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 8s ease-in-out infinite;
}

.hero-title:hover {
    transform: scale(1.02);
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.4),
        0 0 20px rgba(255, 255, 255, 0.2);
    filter: brightness(1.1);
    animation: shimmerFast 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes shimmerFast {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-tertiary);
    margin-bottom: 40px;
    font-weight: 500;
}

.typewriter-cursor {
    display: inline-block;
    margin-left: 2px;
    animation: blink 1s infinite;
    font-weight: 300;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin: 48px 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--shadow-color);
    transition: transform 0.3s ease;
    min-width: 120px;
}

.stat-item:hover {
    transform: translateY(-8px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-cta {
    display: inline-block;
    padding: 16px 32px;
    background: var(--text-primary);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--text-primary);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.hero-cta:hover {
    background: transparent;
    color: var(--text-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 35px var(--shadow-color);
}

/* Section Styles */
.section {
    padding: 80px 0;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.section:nth-child(even) {
    background: var(--bg-secondary);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

/* About Section */
.about {
    background: #ffffff;
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Services Section */
.services {
    background: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 64px;
}

.service-card {
    background: white;
    padding: 48px 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    display: block;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.service-description {
    color: #666;
    line-height: 1.6;
}

/* Founders Section */
.founders {
    background: #ffffff;
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 64px;
}

.founder-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 24px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.founder-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.founder-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.founder-image {
    margin-bottom: 24px;
}

.founder-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.founder-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.founder-role {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 500;
}

.founder-bio {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

[data-theme="light"] .modal-overlay {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .modal-overlay {
    background: rgba(0, 0, 0, 0.8);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Content */
.modal-content {
    background: var(--bg-primary);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.7) translateY(50px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px var(--shadow-color);
    text-align: center;
    position: relative;
    color: var(--text-primary);
    scrollbar-width: thin;
    scrollbar-color: var(--text-secondary) transparent;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

/* Custom Scrollbar for Modal (WebKit browsers) */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    opacity: 0.3;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    opacity: 0.5;
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: scale(1.1);
}

/* Hide founder details in regular cards */
.founders-grid .founder-details {
    display: none;
}

/* Show founder details only in modal */
.modal-content .founder-details {
    display: block !important;
    text-align: left;
    margin-top: 32px;
    opacity: 1;
    visibility: visible;
}

/* Ensure modal founder card styling */
.modal-content .founder-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 20px 0;
    cursor: default;
    opacity: 1;
    transform: none;
    position: static;
    overflow: visible;
}

/* Ensure all modal text is visible */
.modal-content .founder-name,
.modal-content .founder-role,
.modal-content .founder-bio,
.modal-content .detail-section h4,
.modal-content .detail-section li,
.modal-content .detail-section p {
    color: var(--text-primary) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Modal founder image */
.modal-content .founder-image {
    margin-bottom: 20px;
}

.modal-content .founder-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--border-color);
}

.detail-section {
    margin-bottom: 20px;
}

.detail-section h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 4px;
}

.detail-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-section li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    padding-left: 16px;
    position: relative;
}

.detail-section li::before {
    content: '•';
    color: var(--text-primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.detail-section p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

/* Social Media Icons */
.social-media {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: #000000;
    transition: fill 0.3s ease;
}

[data-theme="dark"] .social-icon {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .social-icon svg {
    fill: #ffffff;
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-top: 64px;
}

.contact-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.contact-item {
    margin-bottom: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-form {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--text-primary);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.form-submit {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.form-submit:hover {
    background: var(--text-secondary);
    transform: translateY(-2px);
}

/* Airplane Icon Styling */
.airplane-icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
    transform: translateX(0) rotate(0deg);
}

/* Flying Animation */
.form-submit.sending {
    pointer-events: none;
    background: var(--text-secondary);
}

.airplane-icon.fly {
    animation: flyAway 1.5s ease-in-out forwards;
}

@keyframes flyAway {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    30% {
        transform: translateX(20px) translateY(-10px) rotate(15deg) scale(1.1);
        opacity: 1;
    }
    70% {
        transform: translateX(100px) translateY(-30px) rotate(25deg) scale(0.8);
        opacity: 0.7;
    }
    100% {
        transform: translateX(200px) translateY(-50px) rotate(35deg) scale(0.3);
        opacity: 0;
    }
}

/* Button text animation during sending */
.form-submit.sending .button-text {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 48px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    flex-direction: column;
}

.footer-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-social {
    display: flex;
    gap: 24px;
}

.social-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.social-link:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero {
        padding: 0 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .founders-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-container {
        padding: 0 16px;
    }
    
    .hero-cta {
        padding: 14px 28px;
        font-size: 14px;
    }
    
    .service-card {
        padding: 32px 24px;
    }
    
    .founder-card {
        padding: 32px 20px;
    }
    
    .contact-form {
        padding: 24px;
    }
}

/* Performance Optimizations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero {
        background: #ffffff;
    }
    
    .service-card,
    .founder-card,
    .contact-form {
        border: 2px solid #1a1a1a;
    }
}
