/* FAST AOS Implementation - Optimized for Speed */
@media (prefers-color-scheme: dark) {
    /* Team section */
    #team,
    #team h2,
    #team h3,
    #team p,
    #team .team-member-name,
    #team .team-member-role {
        color: black; /* safe text color */
    }

    #team .team-card {
        background-color: white; /* safe background */
    }
    #team .team-stats .stat-item span{
        color: black;
    }
    #technologies,
    #technologies h2,
    #technologies h3,
    #technologies p,
    #technologies .skill-name , .faq .container .section-title , .faq .container .section-description , #contact .container .contact-methods .contact-method .contact-content .contact-label , #contact .container .contact-methods .contact-method .contact-content .contact-desc {
        color: black; /* ensures text is readable */
    }

    #technologies .tech-card {
        background-color: white; /* optional: ensures good contrast */
    }

    /* You can add Skills & FAQ later similarly */
}

[data-aos] {
    /* Start visible for safety, allow AOS to take over */
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* Faster transitions */
    /* Hardware acceleration for smooth animations */
    will-change: opacity, transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Allow AOS to hide elements when properly initialized */
body.aos-init [data-aos]:not(.aos-animate) {
    opacity: 0;
}

body.aos-init [data-aos].aos-animate {
    opacity: 1;
}

/* Emergency fallback - if AOS fails to load */
body.aos-fallback [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: all 0.3s ease !important;
}

/* Fast easing curves for responsive animations */
[data-aos][data-aos-easing="ease-out"] {
    transition-timing-function: ease-out;
}

/* Enhanced card animations */
.expertise-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Icon animations */
.card-icon {
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.card-icon:hover {
    transform: scale(1.1);
}

/* Pulse animation for data analysis icon */
@keyframes enterprisePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.card-icon[data-aos="pulse"] {
    animation: enterprisePulse 2.5s infinite;
}

/* Reduced motion preference support (accessibility) */
@media (prefers-reduced-motion: reduce) {
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}

/* Mobile optimization - show immediately on small screens */
@media (max-width: 768px) {
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}



/* CSS Custom Properties */
:root {
    /* Colors */
    --primary-color: #007AFF;
    --secondary-color: #5856D6;
    --accent-color: #FF9500;
    --success-color: #34C759;
    --error-color: #FF3B30;
    
    --text-primary: #1D1D1F;
    --text-secondary: #515154;
    --text-tertiary: #8E8E93;
    
    --background-primary: #FFFFFF;
    --background-secondary: #F2F2F7;
    --background-tertiary: #FAFAFA;
    
    --surface-primary: #FFFFFF;
    --surface-secondary: rgba(255, 255, 255, 0.8);
    --surface-elevated: rgba(255, 255, 255, 0.95);
    
    --border-color: rgba(0, 0, 0, 0.1);
    --border-subtle: rgba(0, 0, 0, 0.05);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.15s ease-out;
    --transition-normal: 0.25s ease-out;
    --transition-slow: 0.35s ease-out;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;
    --z-toast: 1070;
}

/* Dark mode variables */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #FFFFFF;
        --text-secondary: #EBEBF5;
        --text-tertiary: #8E8E93;
        
        --background-primary: #000000;
        --background-secondary: #1C1C1E;
        --background-tertiary: #2C2C2E;
        
        --surface-primary: #1C1C1E;
        --surface-secondary: rgba(28, 28, 30, 0.8);
        --surface-elevated: rgba(28, 28, 30, 0.95);
        
        --border-color: rgba(255, 255, 255, 0.1);
        --border-subtle: rgba(255, 255, 255, 0.05);
    }
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-primary);
    overflow-x: hidden;
}

/* Loading Screen - 2025 Modern Design */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
}

.loading-content {
    text-align: center;
    position: relative;
    z-index: 2;
    animation: loadingFadeIn 0.8s ease-out;
}

.loading-brand {
    margin-bottom: 3rem;
}

.loading-logo {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

.loading-tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.8;
    animation: taglineFade 1.2s ease-out 0.3s both;
}

.loading-animation {
    margin: 2.5rem 0;
    position: relative;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: spinRing 2s linear infinite;
}

.spinner-ring:nth-child(1) {
    border-top-color: var(--primary-color);
    animation-duration: 1.5s;
}

.spinner-ring:nth-child(2) {
    border-right-color: var(--secondary-color);
    animation-duration: 2s;
    animation-direction: reverse;
    width: 90%;
    height: 90%;
    top: 5%;
    left: 5%;
}

.spinner-ring:nth-child(3) {
    border-bottom-color: var(--accent-color);
    animation-duration: 2.5s;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
}

.loading-progress {
    width: 200px;
    height: 3px;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 3px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    animation: progressLoad 3s ease-in-out infinite;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8));
    animation: progressShine 1.5s ease-in-out infinite;
}

.loading-status {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-top: 1.5rem;
    font-weight: 500;
    animation: statusPulse 2s ease-in-out infinite;
}

/* Background Particles */
.loading-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.bg-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
}

.bg-particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.bg-particle:nth-child(2) {
    top: 60%;
    right: 15%;
    animation: float 8s ease-in-out infinite 1s;
    background: var(--secondary-color);
}

.bg-particle:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation: float 7s ease-in-out infinite 2s;
    background: var(--accent-color);
}

.bg-particle:nth-child(4) {
    top: 40%;
    right: 30%;
    animation: float 9s ease-in-out infinite 0.5s;
}

.bg-particle:nth-child(5) {
    bottom: 20%;
    right: 10%;
    animation: float 5s ease-in-out infinite 1.5s;
    background: var(--secondary-color);
}

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

@keyframes logoGlow {
    from {
        filter: brightness(1) drop-shadow(0 0 0 transparent);
    }
    to {
        filter: brightness(1.1) drop-shadow(0 0 20px rgba(0, 122, 255, 0.3));
    }
}

@keyframes taglineFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 0.8;
        transform: translateY(0);
    }
}

@keyframes spinRing {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes progressLoad {
    0%, 100% {
        width: 0;
        transform: translateX(-100%);
    }
    50% {
        width: 100%;
        transform: translateX(0);
    }
     75% {
        width: 100%;
        transform: translateX(0);
    }
}

@keyframes progressShine {
    0%, 100% {
        opacity: 0;
        transform: translateX(-20px);
    }
    50% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
}

/* Mobile loading screen optimization */
@media (max-width: 768px) {
    .loading-logo {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .loading-tagline {
        font-size: 0.875rem;
        padding: 0 1rem;
    }
    
    .loading-spinner {
        width: 60px;
        height: 60px;
    }
    
    .loading-progress {
        width: 150px;
    }
    
    .loading-status {
        font-size: 0.8rem;
        padding: 0 1rem;
    }
    
    .bg-particle {
        width: 3px;
        height: 3px;
    }
}

/* Fallback for browsers that don't support background-clip */
@supports not (-webkit-background-clip: text) {
    .loading-logo {
        color: var(--primary-color);
        background: none;
        -webkit-text-fill-color: initial;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--surface-elevated);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: var(--z-fixed);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo a {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    letter-spacing: -0.01em;
    background: transparent;
    outline: none;
    min-height: 40px;
}

/* Professional hover state */
.nav-logo a:hover {
    color: var(--primary-color);
}

/* Minimal active state */
.nav-logo a:active {
    color: #0051D5;
    transition: color 0.1s ease;
}

/* Clean focus state for accessibility */
.nav-logo a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-normal);
    position: relative;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    overflow: hidden;
}

/* Enhanced hover effect with background and transform */
.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(88, 86, 214, 0.1));
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: var(--radius-sm);
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.15);
}

.nav-link:hover::before {
    opacity: 1;
}

/* Active state with stronger visual feedback */
.nav-link.active {
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.12), rgba(88, 86, 214, 0.12));
    font-weight: var(--font-weight-semibold);
    box-shadow: inset 0 1px 3px rgba(0, 122, 255, 0.2);
}

/* Pressed/Active click state */
.nav-link:active {
    transform: translateY(0);
    box-shadow: inset 0 2px 4px rgba(0, 122, 255, 0.3);
    transition: all 0.1s ease;
}

/* Ripple effect on click */
.nav-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.nav-link:active::after {
    width: 120px;
    height: 120px;
    transition: width 0.1s ease, height 0.1s ease;
}

.nav-link.cta-button {
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 20px;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    font-weight: 500;
    font-size: 14px;
    box-shadow: none;
    overflow: hidden;
    text-transform: none;
    letter-spacing: -0.01em;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
    min-height: 44px;
}

/* Apple-style hover effect - subtle and clean */
.nav-link.cta-button:hover {
    background: #0051D5;
    color: white;
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

/* Animate the chat icon on hover - subtle Apple-style */
.nav-link.cta-button:hover::first-letter {
    animation: none;
}

/* Apple-style pressed state */
.nav-link.cta-button:active {
    transform: scale(0.98);
    background: #004494;
    box-shadow: none;
    transition: all 0.1s ease;
}

@keyframes chatBounce {
    /* Remove bouncy animation */
}

/* CTA button pressed state - Apple style */
.nav-link.cta-button:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.6);
    transition: all 0.1s ease;
    background: #004499;
}

/* Apple-style focus state - minimal and clean */
.nav-link.cta-button:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.25);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    position: relative;
    background: transparent;
    border: none;
    outline: none;
}

/* Hamburger hover effect */
.hamburger:hover {
    background: rgba(0, 122, 255, 0.1);
    transform: scale(1.05);
}

/* Hamburger active/pressed effect */
.hamburger:active {
    transform: scale(0.95);
    background: rgba(0, 122, 255, 0.2);
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-normal);
    border-radius: 1px;
    transform-origin: center;
}

/* Enhanced hamburger animation */
.hamburger:hover span {
    background: var(--primary-color);
}

.hamburger.active {
    background: rgba(0, 122, 255, 0.15);
}

.hamburger.active span {
    background: var(--primary-color);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Section */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-4xl);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--spacing-4xl) 0;
    background: linear-gradient(135deg, var(--background-primary) 0%, var(--background-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary);
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-lg);
}

.hero-visual {
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.code-preview {
    background: var(--surface-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--border-color);
}

.code-header {
    background: var(--background-secondary);
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.code-title {
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
}

.code-content {
    padding: var(--spacing-lg);
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

.code-line {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-xs);
}

.line-number {
    color: var(--text-tertiary);
    margin-right: var(--spacing-md);
    min-width: 20px;
    text-align: right;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.tech-badge {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-tertiary);
    border-radius: 12px;
    position: relative;
}

.scroll-mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 6px;
    background: var(--text-tertiary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        opacity: 0;
    }
    10% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(15px);
        opacity: 0;
    }
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    min-height: 48px;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: #0056CC;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text-primary);
    padding: var(--spacing-md) var(--spacing-xl);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-fast);
    cursor: pointer;
    font-size: 1rem;
    min-height: 48px;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* About Section */
.about {
    padding: var(--spacing-4xl) 0;
    background: var(--background-primary);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.expertise-card {
    background: var(--surface-primary);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    text-align: center;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    display: block;
}

.expertise-card h4 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

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

/* Team Section - Modern Design */
.team {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f7ff 100%);
    position: relative;
    overflow: hidden;
}

.team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 100, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 200, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.team-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    margin: 3rem auto 0;
    width: 90%;
    max-width: 1400px;
    padding: 1rem;
}

.team-cards::-webkit-scrollbar {
    height: 6px;
}

.team-cards::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.team-cards::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

/* Apple-inspired Team Card */
.team-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.7);
    transform: translateY(0);
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0071e3, #34a853);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.05);
}

.team-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 1.75rem;
    position: relative;
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    border: 6px solid white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: linear-gradient(135deg, #f5f7ff 0%, #f0f2ff 100%);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    filter: grayscale(0%);
    transform: scale(1);
}

.team-card:hover .team-avatar {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.team-card:hover .team-avatar img {
    transform: scale(1.08);
    filter: grayscale(0%);
}

.status-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.team-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    text-align: center;
}

.team-role {
    color: #1d1d1f;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    line-height: 1.5;
    letter-spacing: -0.01em;
    opacity: 0.8;
}

.team-description {
    color: #1d1d1f;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3.6em;
    flex-grow: 1;
    font-weight: 400;
    opacity: 0.8;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.team-stats {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

.stat-item {
    text-align: center;
    padding: 0 0.5rem;
    min-width: 80px;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1d1d1f;
    display: block;
    line-height: 1.2;
    font-feature-settings: 'tnum';
    letter-spacing: -0.02em;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 0.6rem;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .team-card {
        padding: 1.5rem 1.25rem;
    }
}

@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 2rem;
    }
    
    .team-card {
        padding: 1.25rem 1rem;
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        width: 100%;
        padding: 0 1.25rem;
        max-width: 100%;
        gap: 1.5rem;
        max-width: 500px;
        margin: 2rem auto 0;
    }
    
    .team-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .team-avatar {
        width: 140px;
        height: 140px;
    }
    
    .team-role {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

@media (max-width: 768px) {
    .team {
        padding: 3rem 0;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        margin: 0 auto;
        margin-right: auto;
    }
}

/* Work/Portfolio Section */
.work {
    padding: var(--spacing-4xl) 0;
    background: var(--background-primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

.portfolio-card {
    background: var(--surface-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-content {
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.portfolio-actions {
    margin-top: auto;
    padding-top: var(--spacing-lg);
}

.portfolio-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.portfolio-card.featured {
    grid-column: span 2;
}

.portfolio-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-badge {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-text {
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-preview {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.preview-header {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.preview-content h4 {
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.preview-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.portfolio-content {
    padding: var(--spacing-xl);
}

.portfolio-category {
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
    min-height: 2rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.project-status {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    flex-shrink: 0;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
}

.status-text {
    font-size: 0.75rem;
    color: var(--success-color);
    font-weight: var(--font-weight-medium);
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    min-height: 3rem;
}

.portfolio-metrics {
    margin-bottom: var(--spacing-lg);
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.metric-value {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--success-color);
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    min-height: 2rem;
    align-items: flex-start;
}

.tech-tag {
    background: var(--background-secondary);
    color: var(--text-secondary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
}

.portfolio-results {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.result-metric {
    background: var(--surface-secondary);
    color: var(--text-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
}

.portfolio-result {
    color: var(--success-color);
    font-weight: var(--font-weight-semibold);
    font-size: 0.875rem;
}

/* Services/Methodology Section */
.services {
    padding: var(--spacing-4xl) 0;
    background: var(--background-secondary);
}

.methodology-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 30px;
    top: 60px;
    bottom: -48px;
    width: 2px;
    background: var(--border-color);
}

.timeline-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.timeline-content {
    flex: 1;
    background: var(--surface-primary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}

.timeline-content h4 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.timeline-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.feature-tag {
    background: var(--background-secondary);
    color: var(--text-secondary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
}

/* Technologies Section */
.technologies {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    position: relative;
    overflow: hidden;
}

.technologies::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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 fill='%23e0e6ff' fill-opacity='0.5'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 1;
}

.technologies .container {
    position: relative;
    z-index: 2;
}

.technologies .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.technologies .section-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.technologies .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.technologies .section-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.skill-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.skill-item.team-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.skill-icon {
    font-size: 1.5rem;
    margin-right: 0.8rem;
    min-width: 30px;
    text-align: center;
}

.skill-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    flex-grow: 1;
}

.skill-percent {
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(41, 98, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.85rem;
    min-width: 50px;
    text-align: right;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background-color: #f0f2f7;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    position: relative;
    transition: width 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
    width: 0;
    opacity: 0;
    animation: fillBar 1.2s forwards 0.3s;
}

.skill-level::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.5) 50%, 
        rgba(255,255,255,0) 100%);
    animation: shine 3s infinite;
    opacity: 0.5;
}

@keyframes fillBar {
    from { width: 0; opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes shine {
    0% { transform: translateX(-100%) skewX(-15deg); }
    100% { transform: translateX(100%) skewX(-15deg); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .technologies {
        padding: 4rem 0;
    }
    
    .technologies .section-title {
        font-size: 2rem;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }
    
    .skill-item {
        padding: 1.25rem;
    }
}

/* Contact Section */
.contact {
    padding: var(--spacing-4xl) 0;
    background: var(--background-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: start;
}

.contact-info h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.contact-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-2xl);
}

.contact-methods {
    margin-top: var(--spacing-2xl);
}

.contact-method h4 {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-label {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    display: block;
}

.contact-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: block;
}

.contact-form-container {
    background: var(--surface-primary);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
}

.contact-form h4 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.contact-form > p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: var(--background-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
}

.checkbox-label:hover {
    background: var(--background-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-right: var(--spacing-sm);
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    position: relative;
    margin-right: var(--spacing-sm);
    transition: all var(--transition-fast);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.form-error {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
    display: block;
}

.form-success {
    background: var(--success-color);
    color: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.success-icon {
    font-size: 1.25rem;
}

.btn-loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Team Skills */
.team-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.2rem 0 1.5rem;
    justify-content: center;
}

.skill-tag {
    display: inline-block;
    background-color: #f5f7ff;
    color: #1a56db;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1px solid #e0e7ff;
    pointer-events: none;
    text-transform: none;
    letter-spacing: 0.3px;
    opacity: 0.9;
    margin: 0.15rem;
}

.skill-tag:nth-child(2n) {
    background-color: #f0f4ff;
    color: #1e40af;
    border-color: #dbeafe;
}

.skill-tag:nth-child(3n) {
    background-color: #f8fafc;
    color: #4b5563;
    border-color: #e5e7eb;
}

.skill-tag:nth-child(4n) {
    background-color: #f9fafb;
    color: #1f2937;
    border-color: #e5e7eb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .team-skills {
        gap: 0.4rem;
        margin: 1rem 0;
    }
    
    .skill-tag {
        font-size: 0.65rem;
        padding: 0.3rem 0.7rem;
    }
    
    /* Stats responsive */
    .team-stats {
        padding-top: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .stat-item {
        min-width: 65px;
        padding: 0 0.25rem;
    }
    
    .stat-number {
        font-size: 0.9rem;
    }
    
    .stat-label {
        font-size: 0.55rem;
    }
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: var(--background-primary);
    padding: var(--spacing-2xl) 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-xs);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: var(--spacing-xl);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-3xl);
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-3xl);
    }
    
    .portfolio-card.featured {
        grid-column: span 1;
    }
    
    .tech-categories {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--surface-elevated);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--spacing-xl);
        border-top: 1px solid var(--border-subtle);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        gap: var(--spacing-md);
    }
    
    /* Enhanced mobile nav links */
    .nav-menu .nav-link {
        padding: var(--spacing-md) var(--spacing-lg);
        border-radius: var(--radius-md);
        width: 100%;
        text-align: center;
        font-size: 1.1rem;
        background: transparent;
        border: 1px solid transparent;
        margin: var(--spacing-xs) 0;
    }
    
    .nav-menu .nav-link:hover {
        background: linear-gradient(135deg, rgba(0, 122, 255, 0.15), rgba(88, 86, 214, 0.15));
        border-color: rgba(0, 122, 255, 0.3);
        transform: translateY(-1px);
    }
    
    .nav-menu .nav-link:active {
        transform: translateY(0);
        background: linear-gradient(135deg, rgba(0, 122, 255, 0.25), rgba(88, 86, 214, 0.25));
    }
    
    /* Apple-style mobile CTA button */
    .nav-menu .nav-link.cta-button {
        margin-top: var(--spacing-lg);
        padding: 16px 24px;
        font-size: 16px;
        font-weight: 500;
        text-transform: none;
        letter-spacing: -0.01em;
        border: none;
        box-shadow: none;
        border-radius: 20px;
        min-height: 48px;
    }
    
    .nav-menu .nav-link.cta-button:hover {
        transform: none;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
        border-color: transparent;
        background: #0051D5;
    }
    
    .nav-menu .nav-link.cta-button:active {
        transform: scale(0.98);
        background: #004494;
        box-shadow: none;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Professional mobile logo */
    .nav-logo a {
        font-size: 1.5rem;
        padding: 4px 6px;
        min-height: 36px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .timeline-item::after {
        display: none;
    }
    
    .timeline-number {
        align-self: flex-start;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        max-width: 100%;
        padding: 0 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--spacing-3xl);
        text-align: center;
    }
    
    .footer-sections {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .contact-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .benefit-card {
        padding: var(--spacing-xl);
    }
    
    .footer-sections {
        grid-template-columns: 1fr;
    }
    
    .contact-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .faq-question {
        padding: var(--spacing-lg);
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 var(--spacing-lg) var(--spacing-lg);
    }

    .nav-container {
        padding: 0 var(--spacing-md);
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero {
        padding: var(--spacing-3xl) 0;
    }
    
    .section-header {
        margin-bottom: var(--spacing-3xl);
    }
    
    .expertise-grid,
    .team-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-categories {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container {
        padding: var(--spacing-lg);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-scroll-indicator,
    .loading-screen {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .section-title {
        font-size: 18pt;
    }
    
    .section-subtitle {
        font-size: 14pt;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Why Choose Us Section */
.why-choose-us {
    padding: var(--spacing-5xl) 0;
    background: var(--background-primary);
}

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

.benefit-card {
    padding: var(--spacing-2xl);
    background: var(--surface-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    text-align: left;
    transition: all var(--transition-normal);
}

.benefit-card:hover {
    border-color: var(--border-color);
    transform: translateY(-2px);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    background: var(--background-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* FAQ Section - Modern Design */
.faq {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f7ff 100%);
    position: relative;
    overflow: hidden;
}

.faq::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 100, 255, 0.03) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

.faq .section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 1;
}

.faq .section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1a202c;
    position: relative;
    display: inline-block;
}

.faq .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.faq .section-description {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 100, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 200, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.faq .section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.faq .section-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.faq .section-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    perspective: 1000px;
}

.faq-item {
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform-style: preserve-3d;
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }

.faq-item:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
}

.faq-item.active {
    border: 1px solid rgba(0, 122, 255, 0.2);
    box-shadow: 0 15px 40px -10px rgba(0, 122, 255, 0.15);
    transform: translateY(-3px);
}

.faq-question {
    width: 100%;
    padding: 1.75rem 2rem;
    background: transparent;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a202c;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.faq-question::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-question:hover {
    background: rgba(0, 122, 255, 0.02);
    color: var(--primary-color);
}

.faq-question:hover::before {
    height: 100%;
}

.faq-question.active {
    background: rgba(0, 122, 255, 0.03);
    color: var(--primary-color);
    padding-bottom: 1.5rem;
}

.faq-question.active::before {
    height: 100%;
}

.faq-icon {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--primary-color);
    min-width: 28px;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1.5rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(0, 122, 255, 0.1);
    width: 36px;
    height: 36px;
    position: relative;
    z-index: 1;
}

.faq-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.faq-question:hover .faq-icon {
    color: white;
    transform: scale(1.1);
}

.faq-question:hover .faq-icon::before {
    opacity: 1;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg) scale(1.1);
    color: white;
}

.faq-question.active .faq-icon::before {
    opacity: 1;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), padding 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4a5568;
    padding: 0 2rem;
    border-left: 3px solid transparent;
    margin-left: 2rem;
    transform: translateY(-10px);
    opacity: 0;
}

.faq-answer.active {
    max-height: 800px;
    padding: 0 2rem 2rem 2.5rem;
    margin-left: 2rem;
    border-left: 3px solid var(--primary-color);
    transform: translateY(0);
    opacity: 1;
    animation: fadeIn 0.5s ease-out forwards;
}

.faq-answer p {
    color: #4a5568;
    line-height: 1.8;
    margin: 0;
    padding: 0.5rem 0 0;
    font-weight: 400;
    position: relative;
}

.faq-answer p::before {
    content: '→';
    color: var(--primary-color);
    margin-right: 0.75rem;
    display: inline-block;
    transform: translateX(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.faq-answer.active p::before {
    transform: translateX(0);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq {
        padding: 4rem 1.5rem;
    }
    
    .faq .section-title {
        font-size: 2.2rem;
    }
    
    .faq .section-description {
        font-size: 1.1rem;
    }
    
    .faq-question {
        padding: 1.5rem;
        font-size: 1.1rem;
    }
    
    .faq-answer {
        padding: 0 1.5rem;
        margin-left: 1.5rem;
    }
    
    .faq-answer.active {
        padding: 0 1.5rem 1.5rem 2rem;
        margin-left: 1.5rem;
    }
}

/* Contact Section */
.contact {
    padding: var(--spacing-4xl) 0;
    background: var(--background-primary);
    position: relative;
    overflow: hidden;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info {
    grid-column: 1 / 2;
}

.contact-form-container {
    grid-column: 2 / 3;
    margin-top: 0;
}

.contact-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* Contact Steps */
.contact-steps {
    margin: 2.5rem 0;
}

.contact-step {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.contact-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 3.5rem;
    bottom: -2rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), rgba(0, 0, 0, 0.1));
}

.step-number {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 1.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.step-content h4 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-content p {
    color: var(--text-secondary);
    margin: 0 0 1rem;
}

.step-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.step-features span {
    background-color: rgba(0, 0, 0, 0.03);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Contact Methods */
.contact-methods {
    margin-top: 3rem;
}

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

.contact-methods > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.contact-method {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    padding: 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: rgba(0, 122, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    flex-shrink: 0;
    color: var(--primary-color);
}

.contact-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.contact-content {
    flex: 1;
}

.contact-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: block;
}

/* Responsive */
@media (max-width: 1200px) {
    .contact-content {
        grid-template-columns: 1fr 1.5fr;
    }
    
    .contact-form-container {
        grid-column: 2 / 3;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info,
    .contact-form-container {
        grid-column: auto;
        width: 100%;
    }
    
    .contact {
        padding: 4rem 0;
    }
    
    .contact-header h2 {
        font-size: 2rem;
    }
    
    .step-features {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
}

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

.contact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
    padding: var(--spacing-xl) 0;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    display: block;
    margin-bottom: var(--spacing-xs);
}

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

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--background-secondary);
    border-radius: var(--radius-md);
    color: var(--primary-color);
    margin-right: var(--spacing-md);
    flex-shrink: 0;
}

.contact-content {
    flex: 1;
}

.form-header {
    margin-bottom: var(--spacing-xl);
}

.form-header h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.form-header p {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Footer Updates */
.footer {
    background: #1a1d24;
    color: #ffffff;
    padding: 5rem 0 0;
    position: relative;
    overflow: hidden;
    border-top: none;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.1);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    background-size: 200% 100%;
    animation: gradientBG 10s ease infinite;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.footer-brand h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.footer-brand p {
    color: #b0b8c5;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 400px;
    font-size: 1.05rem;
    font-weight: 400;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 12px;
    color: #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    background: #2b6cb0;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link svg {
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-left: 2rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    color: #ffffff;
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

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

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.footer-section li {
    margin: 0;
    position: relative;
    padding-left: 1.5rem;
}

.footer-section li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-section a {
    color: #b0b8c5;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: block;
    position: relative;
    font-weight: 400;
}

.footer-section a:hover {
    color: #4dabf7;
    transform: translateX(5px);
}

.footer-section li:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-section li:not(:has(a)) {
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding: 1.75rem 0;
    position: relative;
    z-index: 1;
    background: #14171c;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-bottom p {
    color: #a0aec0;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 400;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

.footer-legal a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-legal a:hover {
    color: #4dabf7;
}

.footer-legal a:hover::after {
    width: 100%;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1.5fr;
    }
    
    .footer-sections {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 2rem;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 4rem 0 0;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-sections {
        grid-template-columns: 1fr;
        margin-left: 0;
        gap: 2.5rem;
    }
    
    .footer-section h4 {
        margin-bottom: 1.25rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-legal {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem 1.5rem;
    }
}

/* Animation for gradient background */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --border-subtle: #666666;
        --text-secondary: #000000;
        --text-tertiary: #333333;
    }
}
