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

:root {
    /* JetBrains-inspired color palette */
    --bg-primary: #0D1117;
    --bg-secondary: #161B22;
    --bg-tertiary: #21262D;
    --bg-card: #30363D;
    --text-primary: #F0F6FC;
    --text-secondary: #8B949E;
    --text-muted: #656D76;
    --accent-primary: #6B57FF;
    --accent-secondary: #FF318C;
    --accent-tertiary: #00D8FF;
    --accent-quaternary: #FF6B35;
    --accent-success: #3FB950;
    --accent-warning: #FFA500;
    --accent-purple: #8A4FFF;
    --accent-blue: #4F8AFF;
    --accent-green: #00E6B8;
    --accent-pink: #FF4F8A;
    --border-color: #30363D;
    --border-bright: #F78166;
    --shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.5);
    --shadow-color: 0 8px 24px rgba(107, 87, 255, 0.15);
    --gradient-primary: linear-gradient(135deg, #6B57FF 0%, #FF318C 100%);
    --gradient-secondary: linear-gradient(135deg, #00D8FF 0%, #3FB950 100%);
    --gradient-tertiary: linear-gradient(135deg, #FF6B35 0%, #FFA500 100%);
    --gradient-quaternary: linear-gradient(135deg, #8A4FFF 0%, #4F8AFF 100%);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-color);
    border: 1px solid transparent;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #7B67FF 0%, #FF429C 100%);
}

.btn-secondary {
    background: rgba(107, 87, 255, 0.1);
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(107, 87, 255, 0.2);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-color);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* JetBrains-style Gradient Layers */
.gradient-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.layer-1 {
    background: linear-gradient(313deg, #FF318C 10.26%, #6B57FF 91.89%);
    opacity: 0.05;
    animation: gradientShift1 20s ease-in-out infinite;
}

.layer-2 {
    background: linear-gradient(135deg, #00D8FF 0%, #3FB950 50%, #FF6B35 100%);
    opacity: 0.04;
    animation: gradientShift2 25s ease-in-out infinite reverse;
}

.layer-3 {
    background: linear-gradient(45deg, #8A4FFF 0%, #00E6B8 50%, #FF4F8A 100%);
    opacity: 0.03;
    animation: gradientShift3 30s ease-in-out infinite;
}

/* Hero SVG */
.hero-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Advanced SVG Animations */
.animated-shapes .shape-1 {
    animation: morphShape1 15s ease-in-out infinite;
}

.animated-shapes .shape-2 {
    animation: morphShape2 18s ease-in-out infinite reverse;
}

.animated-shapes .shape-3 {
    animation: pulseGlow 12s ease-in-out infinite;
}

.animated-shapes .shape-4 {
    animation: pulseGlow 14s ease-in-out infinite reverse;
}

/* Istanbul Background Animations */
.hills-1 {
    animation: hillsFloat1 25s ease-in-out infinite;
}

.hills-2 {
    animation: hillsFloat2 30s ease-in-out infinite reverse;
}

.bosphorus-bridge {
    animation: bridgeGlow 20s ease-in-out infinite;
}

/* Mosque Animations */
.mosque-1 {
    animation: mosqueFloat1 18s ease-in-out infinite;
}

.mosque-2 {
    animation: mosqueFloat2 22s ease-in-out infinite reverse;
}

.mosque-3 {
    animation: mosqueFloat3 20s ease-in-out infinite;
}

.mosque-4 {
    animation: mosqueFloat1 16s ease-in-out infinite reverse;
}

/* Turkish Pattern Animation */
.ottoman-grid {
    animation: ottomanPattern 35s linear infinite;
}

.iznik-grid {
    animation: iznikPattern 40s linear infinite reverse;
}

/* Istanbul Floating Elements */
.tulip-1 {
    animation: tulipSway1 12s ease-in-out infinite;
}

.tulip-2 {
    animation: tulipSway2 14s ease-in-out infinite reverse;
}

.crescent-1 {
    animation: crescentFloat1 15s ease-in-out infinite;
}

.crescent-2 {
    animation: crescentFloat2 18s ease-in-out infinite reverse;
}

.crescent-3 {
    animation: crescentFloat1 20s ease-in-out infinite;
}

.star-1 {
    animation: starTwinkle1 10s ease-in-out infinite;
}

.star-2 {
    animation: starTwinkle2 12s ease-in-out infinite reverse;
}

.mini-minaret-1 {
    animation: minaretSway1 16s ease-in-out infinite;
}

.mini-minaret-2 {
    animation: minaretSway2 18s ease-in-out infinite reverse;
}

/* Connection Network */
.network-line-1 {
    stroke-dasharray: 10, 5;
    animation: networkFlow1 8s linear infinite;
}

.network-line-2 {
    stroke-dasharray: 15, 10;
    animation: networkFlow2 10s linear infinite reverse;
}

.node-1 {
    animation: nodePulse 3s ease-in-out infinite;
}

.node-2 {
    animation: nodePulse 3s ease-in-out infinite 1s;
}

.node-3 {
    animation: nodePulse 3s ease-in-out infinite 2s;
}

/* Particle System */
.particle-1 { animation: particleFloat1 6s ease-in-out infinite; }
.particle-2 { animation: particleFloat2 7s ease-in-out infinite 0.5s; }
.particle-3 { animation: particleFloat3 8s ease-in-out infinite 1s; }
.particle-4 { animation: particleFloat1 9s ease-in-out infinite 1.5s; }
.particle-5 { animation: particleFloat2 10s ease-in-out infinite 2s; }
.particle-6 { animation: particleFloat3 11s ease-in-out infinite 2.5s; }
.particle-7 { animation: particleFloat1 12s ease-in-out infinite 3s; }
.particle-8 { animation: particleFloat2 13s ease-in-out infinite 3.5s; }

/* Advanced Keyframes */
@keyframes gradientShift1 {
    0%, 100% { transform: translateX(0%) rotate(0deg) scale(1); }
    33% { transform: translateX(-5%) rotate(1deg) scale(1.02); }
    66% { transform: translateX(5%) rotate(-1deg) scale(0.98); }
}

@keyframes gradientShift2 {
    0%, 100% { transform: translateY(0%) rotate(0deg) scale(1); }
    50% { transform: translateY(-3%) rotate(0.5deg) scale(1.01); }
}

@keyframes gradientShift3 {
    0%, 100% { transform: translate(0%, 0%) rotate(0deg); }
    25% { transform: translate(2%, -1%) rotate(0.2deg); }
    75% { transform: translate(-2%, 1%) rotate(-0.2deg); }
}

@keyframes morphShape1 {
    0%, 100% { d: path("M0,0 Q200,100 400,50 T800,100 L800,300 Q600,250 400,300 T0,250 Z"); }
    50% { d: path("M0,0 Q250,80 450,70 T850,120 L850,280 Q650,230 450,280 T0,230 Z"); }
}

@keyframes morphShape2 {
    0%, 100% { d: path("M1200,800 Q1000,700 800,750 T400,700 L400,500 Q600,550 800,500 T1200,550 Z"); }
    50% { d: path("M1200,800 Q950,720 750,770 T350,720 L350,480 Q550,530 750,480 T1200,530 Z"); }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

/* Istanbul Background Animations */
@keyframes hillsFloat1 {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 1; }
    50% { transform: translateY(-8px) scale(1.01); opacity: 0.8; }
}

@keyframes hillsFloat2 {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.6; }
    50% { transform: translateY(5px) scale(0.99); opacity: 0.8; }
}

@keyframes bridgeGlow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes mosqueFloat1 {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    50% { transform: translateY(-3px) rotate(0.2deg) scale(1.01); }
}

@keyframes mosqueFloat2 {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    33% { transform: translateY(-2px) rotate(-0.1deg) scale(1.005); }
    66% { transform: translateY(2px) rotate(0.1deg) scale(0.995); }
}

@keyframes mosqueFloat3 {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    25% { transform: translateY(-4px) rotate(0.3deg) scale(1.01); }
    75% { transform: translateY(2px) rotate(-0.2deg) scale(0.99); }
}

@keyframes ottomanPattern {
    0% { transform: translateX(0) translateY(0) rotate(0deg); }
    100% { transform: translateX(30px) translateY(30px) rotate(0.5deg); }
}

@keyframes iznikPattern {
    0% { transform: translateX(0) translateY(0) rotate(0deg); }
    100% { transform: translateX(20px) translateY(20px) rotate(-0.3deg); }
}

/* Istanbul Floating Element Animations */
@keyframes tulipSway1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    50% { transform: translate(-5px, -8px) rotate(-2deg) scale(1.05); }
}

@keyframes tulipSway2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(3px, -5px) rotate(1deg) scale(1.02); }
    66% { transform: translate(-3px, -3px) rotate(-1deg) scale(0.98); }
}

@keyframes crescentFloat1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-12px) rotate(5deg); opacity: 1; }
}

@keyframes crescentFloat2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.5; }
    25% { transform: translateY(-8px) rotate(-3deg); opacity: 0.8; }
    75% { transform: translateY(8px) rotate(3deg); opacity: 0.7; }
}

@keyframes starTwinkle1 {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
    50% { transform: scale(1.3) rotate(180deg); opacity: 1; }
}

@keyframes starTwinkle2 {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.4; }
    33% { transform: scale(1.2) rotate(120deg); opacity: 0.9; }
    66% { transform: scale(0.8) rotate(240deg); opacity: 0.6; }
}

@keyframes minaretSway1 {
    0%, 100% { transform: translateX(0px) rotate(0deg); }
    50% { transform: translateX(-2px) rotate(-0.5deg); }
}

@keyframes minaretSway2 {
    0%, 100% { transform: translateX(0px) rotate(0deg); }
    33% { transform: translateX(1px) rotate(0.3deg); }
    66% { transform: translateX(-1px) rotate(-0.3deg); }
}

/* Sharp Rotation Animations */
@keyframes sharpRotate1 {
    0% { transform: rotate(0deg) translateX(0px) translateY(0px); }
    25% { transform: rotate(90deg) translateX(20px) translateY(-10px); }
    50% { transform: rotate(180deg) translateX(0px) translateY(-20px); }
    75% { transform: rotate(270deg) translateX(-20px) translateY(-10px); }
    100% { transform: rotate(360deg) translateX(0px) translateY(0px); }
}

@keyframes sharpRotate2 {
    0% { transform: rotate(0deg) translateX(0px) translateY(0px) scale(1); }
    50% { transform: rotate(180deg) translateX(-15px) translateY(15px) scale(1.3); }
    100% { transform: rotate(360deg) translateX(0px) translateY(0px) scale(1); }
}

@keyframes sharpRotate3 {
    0% { transform: rotate(0deg) translateX(0px) translateY(0px); }
    33% { transform: rotate(120deg) translateX(25px) translateY(-15px); }
    66% { transform: rotate(240deg) translateX(-25px) translateY(-15px); }
    100% { transform: rotate(360deg) translateX(0px) translateY(0px); }
}

/* Pentagon Float Animations */
@keyframes pentagonFloat1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    20% { transform: translate(12px, -8px) rotate(72deg) scale(1.1); }
    40% { transform: translate(18px, 12px) rotate(144deg) scale(0.9); }
    60% { transform: translate(-8px, 18px) rotate(216deg) scale(1.15); }
    80% { transform: translate(-18px, -8px) rotate(288deg) scale(0.85); }
}

@keyframes pentagonFloat2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(-15px, 10px) rotate(90deg) scale(1.2); }
    75% { transform: translate(15px, -10px) rotate(270deg) scale(0.8); }
}

@keyframes networkFlow1 {
    0% { stroke-dashoffset: 0; opacity: 0.8; }
    100% { stroke-dashoffset: -30; opacity: 0.4; }
}

@keyframes networkFlow2 {
    0% { stroke-dashoffset: 0; opacity: 0.6; }
    100% { stroke-dashoffset: -50; opacity: 0.3; }
}

@keyframes nodePulse {
    0%, 100% { opacity: 0.8; r: 3; }
    50% { opacity: 1; r: 5; }
}

@keyframes particleFloat1 {
    0%, 100% { transform: translateY(0px) translateX(0px); opacity: 0.7; }
    33% { transform: translateY(-20px) translateX(10px); opacity: 0.9; }
    66% { transform: translateY(15px) translateX(-8px); opacity: 0.5; }
}

@keyframes particleFloat2 {
    0%, 100% { transform: translateY(0px) translateX(0px) scale(1); opacity: 0.6; }
    50% { transform: translateY(-25px) translateX(-12px) scale(1.3); opacity: 1; }
}

@keyframes particleFloat3 {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); opacity: 0.8; }
    25% { transform: translateY(-15px) translateX(15px) rotate(90deg); opacity: 0.4; }
    75% { transform: translateY(10px) translateX(-15px) rotate(270deg); opacity: 1; }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    text-align: center;
    z-index: 10;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

/* Services Section */
.services {
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

/* Section Backgrounds */
.section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Section Dots */
.section-dots {
    position: absolute;
    width: 100%;
    height: 100%;
}

.section-dot {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--accent-primary);
    opacity: 0.3;
    animation: sectionDotPulse 4s ease-in-out infinite;
}

.dot-services-1 { top: 20%; left: 15%; background: var(--accent-primary); animation-delay: 0s; }
.dot-services-2 { top: 30%; right: 20%; background: var(--accent-secondary); animation-delay: 0.8s; }
.dot-services-3 { top: 70%; left: 25%; background: var(--accent-tertiary); animation-delay: 1.6s; }
.dot-services-4 { top: 60%; right: 30%; background: var(--accent-success); animation-delay: 2.4s; }
.dot-services-5 { top: 40%; left: 60%; background: var(--accent-quaternary); animation-delay: 3.2s; }
.dot-services-6 { top: 80%; right: 15%; background: var(--accent-blue); animation-delay: 4s; }

/* Section Shapes */
.section-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.section-rect {
    position: absolute;
    border-radius: 6px;
    opacity: 0.08;
    animation: sectionFloat 12s ease-in-out infinite;
}

.services-rect-1 {
    width: 40px;
    height: 40px;
    top: 15%;
    right: 10%;
    background: var(--gradient-primary);
    animation-delay: 0s;
}

.services-rect-2 {
    width: 60px;
    height: 30px;
    bottom: 25%;
    left: 15%;
    background: var(--gradient-secondary);
    animation-delay: 4s;
}

.section-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    animation: sectionFloat 15s ease-in-out infinite reverse;
}

.services-circle-1 {
    width: 80px;
    height: 80px;
    top: 50%;
    right: 20%;
    background: var(--gradient-tertiary);
}

@keyframes sectionDotPulse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.8); }
}

@keyframes sectionFloat {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-15px) translateX(10px); }
    66% { transform: translateY(10px) translateX(-10px); }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-color);
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(107, 87, 255, 0.05) 100%);
}

.service-icon {
    margin-bottom: var(--space-lg);
}

.service-card h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    font-size: 1.25rem;
}

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

/* Expertise Section */
.expertise {
    padding: var(--space-3xl) 0;
    background: var(--bg-primary);
}

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

.expertise-category {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all 0.3s ease;
}

.expertise-category:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.expertise-category h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    font-size: 1.25rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.tech-tag {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font-mono);
}

/* Customer Testimonials Section */
.testimonials {
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-2xl);
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-color);
    border-color: var(--accent-primary);
}

.testimonial-avatar {
    align-self: flex-start;
    margin-bottom: var(--space-md);
}

.avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-primary);
    filter: grayscale(100%) contrast(1.2) brightness(1.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover .avatar-img {
    filter: grayscale(100%) contrast(1.3) brightness(1.2);
    border-color: var(--accent-secondary);
    transform: scale(1.05);
}

.testimonial-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.testimonial-text p {
    font-style: italic;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    position: relative;
    padding-left: var(--space-lg);
}

.testimonial-text p::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: var(--accent-primary);
    font-family: Georgia, serif;
    opacity: 0.3;
}

.testimonial-rating {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: var(--accent-warning);
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.3);
}

.rating-text {
    font-size: 0.875rem;
    color: var(--accent-success);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.testimonial-author {
    margin-top: auto;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
}

.testimonial-author strong {
    display: block;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Clients Section */
.clients {
    padding: var(--space-3xl) 0;
    background: var(--bg-primary);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
}

.client-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    min-height: 120px;
    position: relative;
    overflow: hidden;
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.95) 100%);
    z-index: 1;
}

.client-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.client-card:hover::before {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(248, 250, 252, 0.98) 100%);
}

.client-logo-img {
    max-width: 140px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    filter: saturate(0.8) brightness(1.1);
}

.client-card:hover .client-logo-img {
    filter: saturate(1) brightness(1);
    transform: scale(1.02);
}

/* Contact Section */
.contact {
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
}

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

.contact-info h2 {
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

.contact-info p {
    font-size: 1.125rem;
    margin-bottom: var(--space-2xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
}

.contact-icon {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    font-size: 1rem;
}

.contact-item p {
    color: var(--text-secondary);
    margin: 0;
}

/* Contact Form */
.contact-form {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
}

.form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form input,
.form textarea {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form input:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form input::placeholder,
.form textarea::placeholder {
    color: var(--text-muted);
}

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

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: var(--space-2xl) 0;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    font-weight: 600;
    font-size: 1.125rem;
}

.footer-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
}

.footer p {
    color: var(--text-muted);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .avatar-img {
        width: 60px;
        height: 60px;
    }
    
    .testimonial-text p {
        font-size: 0.95rem;
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .container {
        padding: 0 var(--space-md);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .clients-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card,
    .expertise-category,
    .testimonial-card {
        padding: var(--space-lg);
    }
    
    .contact-form {
        padding: var(--space-lg);
    }
}

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

.service-card,
.expertise-category,
.testimonial-card,
.client-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scroll offset for fixed navbar */
section {
    scroll-margin-top: 80px;
}

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus,
.form input:focus,
.form textarea:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}