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

/* Enhanced Animations and Transitions */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

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

@keyframes slideInLeft {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 102, 204, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 102, 204, 0.6);
    }
}

/* Apply animations to elements */
.service-card {
    animation: slideInUp 0.6s ease-out;
}

.service-card:nth-child(2) {
    animation-delay: 0.1s;
}

.service-card:nth-child(3) {
    animation-delay: 0.2s;
}

.service-card:nth-child(4) {
    animation-delay: 0.3s;
}

.hero-badge {
    animation: pulse 3s ease-in-out infinite;
}

.central-hub:hover {
    animation: glow 2s ease-in-out infinite;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Offset fixed header for in-page anchor navigation */
section {
    scroll-margin-top: var(--navbar-height);
}

/* Enhanced focus states for accessibility */
.btn:focus,
.nav-link:focus {
    outline: 3px solid var(--accent-emerald);
    outline-offset: 2px;
}

/* Gradient text effects */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--surface-primary) 0%, var(--surface-secondary) 100%);
    min-height: 100vh;
}

/* CSS Variables for Vibrant Design */
:root {
    /* Primary Palette - Deep Ocean Blues */
    --primary-color: #0066cc;
    --primary-light: #3399ff;
    --primary-dark: #004499;
    --primary-gradient: linear-gradient(135deg, #0066cc 0%, #3399ff 100%);
    
    /* Secondary Palette - Energetic Purples */
    --secondary-color: #7c3aed;
    --secondary-light: #a855f7;
    --secondary-dark: #5b21b6;
    --secondary-gradient: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    
    /* Accent Colors - Vibrant Spectrum */
    --accent-emerald: #10b981;
    --accent-emerald-light: #34d399;
    --accent-orange: #f97316;
    --accent-orange-light: #fb923c;
    --accent-pink: #ec4899;
    --accent-pink-light: #f472b6;
    --accent-cyan: #06b6d4;
    --accent-cyan-light: #22d3ee;
    --accent-yellow: #eab308;
    --accent-yellow-light: #facc15;
    --accent-red: #dc2626;
    --accent-red-light: #ef4444;
    
    /* Neutral Palette - Warm Grays */
    --gray-50: #fafaf9;
    --gray-100: #f5f5f4;
    --gray-200: #e7e5e4;
    --gray-300: #d6d3d1;
    --gray-400: #a8a29e;
    --gray-500: #78716c;
    --gray-600: #57534e;
    --gray-700: #44403c;
    --gray-800: #292524;
    --gray-900: #1c1917;
    
    /* Semantic Colors */
    --success-color: var(--accent-emerald);
    --warning-color: var(--accent-yellow);
    --error-color: var(--accent-red);
    --info-color: var(--accent-cyan);
    
    /* Background Gradients */
    --bg-gradient-primary: linear-gradient(135deg, #0066cc 0%, #7c3aed 100%);
    --bg-gradient-secondary: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --bg-gradient-warm: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
    --bg-gradient-cool: linear-gradient(135deg, #06b6d4 0%, #7c3aed 100%);
    
    /* Themed Gradients */
    --hero-gradient: var(--bg-gradient-primary);
    --accent-gradient: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-cyan) 50%, var(--accent-pink) 100%);
    --dark-gradient: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);

    /* Accent Helper */
    --accent-color: var(--accent-emerald);
    
    /* Surface Colors */
    --surface-primary: #ffffff;
    --surface-secondary: var(--gray-50);
    --surface-elevated: #ffffff;
    --surface-overlay: rgba(255, 255, 255, 0.95);
    
    /* Text Colors */
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-500);
    --text-inverse: #ffffff;
    
    --container-max-width: 1200px;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    /* Fixed header height used for offsets */
    --navbar-height: 100px;
    --logo-height: 160px;
    --logo-overlap: 30px;
    --ribbon-height: 48px;
    --ribbon-max-width: 1400px;
    --ribbon-gap: 32px;
    --ribbon-inner-pad: 24px;
    --ribbon-edge-pad: 12px;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.875rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-inverse);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    width: 100%;
}

.btn-secondary:hover {
    color: var(--text-inverse);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

/* Navigation */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--navbar-height);
    background: transparent;
    backdrop-filter: blur(15px);
    z-index: 1100;
    padding: 0;
    display: flex;
    align-items: center;
    border-bottom: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    will-change: background-color, box-shadow;
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;
}

.nav-logo h2 {
    color: var(--gray-100); /* Lighter color for dark background */
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Ensure logo image does not make the navbar too tall */
.nav-logo img,
.footer-logo img,
.logo-img {
    height: var(--logo-height);
    width: auto;
    display: block;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

.nav-line {
    position: fixed;
    left: 0;
    right: 0;
    margin: 0 auto;
    transform: none;
    width: min(100%, var(--ribbon-max-width));
    height: var(--ribbon-height);
    top: calc((var(--navbar-height) / 2) + var(--logo-overlap) - (var(--ribbon-height) / 2));
    background: transparent;
    z-index: 1000;
    display: grid;
    grid-template-columns: 1fr calc(var(--logo-width) + var(--ribbon-gap)) 1fr;
    align-items: center;
    padding: 0 16px;
    box-sizing: border-box;
}

.nav-line::before,
.nav-line::after {
    content: '';
    position: absolute;
    top: 0;
    height: var(--ribbon-height);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 0;
}

.nav-line::before {
    left: var(--ribbon-inner-pad);
    width: calc((100% - var(--logo-width) - var(--ribbon-gap) - (2 * var(--ribbon-inner-pad))) / 2);
    border-top-left-radius: calc(var(--ribbon-height) / 2);
    border-bottom-left-radius: calc(var(--ribbon-height) / 2);
    border-top-right-radius: calc(var(--ribbon-height) / 2);
    border-bottom-right-radius: calc(var(--ribbon-height) / 2);
}

.nav-line::after {
    right: var(--ribbon-inner-pad);
    width: calc((100% - var(--logo-width) - var(--ribbon-gap) - (2 * var(--ribbon-inner-pad))) / 2);
    border-top-right-radius: calc(var(--ribbon-height) / 2);
    border-bottom-right-radius: calc(var(--ribbon-height) / 2);
    border-top-left-radius: calc(var(--ribbon-height) / 2);
    border-bottom-left-radius: calc(var(--ribbon-height) / 2);
}

.nav-line .nav-left,
.nav-line .nav-right {
    margin: 0;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.nav-line .nav-left { grid-column: 1; justify-content: center; padding-left: var(--ribbon-edge-pad); }
.nav-line .nav-right { grid-column: 3; justify-content: center; padding-right: var(--ribbon-edge-pad); }
.nav-line .nav-gap { grid-column: 2; }

.nav-line .nav-menu {
    gap: 1.5rem;
    align-items: center;
    height: var(--ribbon-height);
    padding: 0 var(--ribbon-inner-pad);
}

.nav-logo {
    position: relative;
    z-index: 1001;
    transform: translateY(var(--logo-overlap));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

/* Split menus and center logo on desktop */
.nav-left {
    position: relative;
    z-index: 901;
    margin-right: auto;
}

.nav-right {
    position: relative;
    z-index: 901;
    margin-left: auto;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-100);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.05em;
    transition: var(--transition);
    position: relative;
    text-transform: uppercase;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--gray-700);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: var(--hero-gradient);
    min-height: 50vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: calc(var(--navbar-height) + var(--logo-overlap) + 20px);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    min-height: 40vh;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
    padding-top: 2rem;
}

.hero-content {
    color: var(--text-inverse);
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.4));
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
}

.hero-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #ffffff;
    max-width: 500px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* New Stats Grid */
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    width: 100%;
    max-width: 520px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    margin: 0 auto 0.5rem;
    color: var(--primary-color);
}

.stat-card .stat-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-card .stat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Engineering Showcase */
.engineering-showcase {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    width: 100%;
    max-width: 520px;
    text-align: center;
}

.showcase-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin: 0 0 0.25rem 0;
}

.showcase-header p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 0.5rem 0;
}

.expertise-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.expertise-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.expertise-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.expertise-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 6px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.expertise-item span {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
}

/* Interactive Visual Element */
.hero-visual-element {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
}

.rotating-gear {
    position: relative;
    z-index: 2;
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(59, 130, 246, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    background: rgba(59, 130, 246, 0.6);
}

.particle-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    background: rgba(139, 92, 246, 0.6);
}

.particle-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
    background: rgba(245, 158, 11, 0.6);
}

.particle-4 {
    top: 10%;
    right: 30%;
    animation-delay: 1s;
    background: rgba(59, 130, 246, 0.4);
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic {
    width: 100%;
    max-width: 600px;
    height: auto;
}

.engineering-graphic {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

/* Section Styles */
section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

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

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

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-info {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.about-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.professional-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.company-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.qualifications {
    margin-bottom: 2rem;
}

.qualifications h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qualifications h4::before {
    content: '🎓';
    font-size: 1.2rem;
}

.qualification-item {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--primary-color);
    font-size: 0.95rem;
    color: var(--gray-700);
}

.expertise-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.expertise-category {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.expertise-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.expertise-category h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.expertise-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.expertise-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.expertise-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--gray-700);
    border-left: 3px solid var(--primary-color);
    transition: all 0.2s ease;
}

.expertise-item:hover {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    transform: translateX(3px);
}

.experience-highlight {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    margin-top: 2rem;
}

.experience-highlight h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.experience-highlight p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

/* Professional Profile Styles */
.professional-profile {
    margin-bottom: 2rem;
}

.profile-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.profile-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.current-role {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
}

.company {
    font-size: 1rem;
    color: var(--gray-600);
    margin: 0;
}

.profile-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.profile-badge svg {
    width: 20px;
    height: 20px;
}

.credentials {
    display: grid;
    gap: 1rem;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8fafc;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.2s ease;
}

.credential-item:hover {
    background: #e2e8f0;
    transform: translateX(3px);
}

.credential-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.credential-item span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-700);
}

/* Global Experience Styles */
.global-experience {
    margin-top: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.global-experience h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    text-align: center;
}

.experience-locations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.location-item:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.location-item .flag {
    font-size: 1.5rem;
}

.location-item span:last-child {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
}

/* Achievement Stats Styles */
.achievement-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

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

/* Responsive About Section */
@media (max-width: 768px) {
    :root {
        --logo-height: 110px;
        --navbar-height: 120px;
        --logo-overlap: 0px;
    }
    .about {
        padding: 60px 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .about-info {
        padding: 2rem;
    }
    
    .professional-title {
        font-size: 1.25rem;
    }
    
    .company-name {
        font-size: 1rem;
    }
    
    .expertise-list {
        grid-template-columns: 1fr;
    }
    
    .expertise-category {
        padding: 1.5rem;
    }
    
    .expertise-category h4 {
        font-size: 1.125rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .experience-highlight {
        padding: 1.5rem;
    }
    
    .experience-highlight h4 {
        font-size: 1.25rem;
    }
    
    /* Professional Profile Responsive */
    .profile-card {
        padding: 2rem;
    }
    
    .profile-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .profile-info h3 {
        font-size: 1.5rem;
    }
    
    .current-role {
        font-size: 1.125rem;
    }
    
    .credentials {
        gap: 0.75rem;
    }
    
    .credential-item {
        padding: 0.875rem 1rem;
    }
    
    .global-experience {
        padding: 1.5rem;
    }
    
    .experience-locations {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .achievement-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .about {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .about-info {
        padding: 1.5rem;
    }
    
    .expertise-category {
        padding: 1rem;
    }
    
    .expertise-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* Services Section */
.services {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(226, 232, 240, 0.5);
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-in-out;
}

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

.service-card:hover {
    background: var(--primary-gradient);
    color: var(--text-inverse);
    border: 1px solid var(--accent-emerald-light);
    border-radius: 24px;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        2px 4px 8px rgba(0, 0, 0, 0.1),
        0 8px 32px rgba(0, 102, 204, 0.15),
        0 16px 64px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

.service-card:hover .service-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--text-inverse);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.2);
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Service badge styling removed for uniformity */

.service-card:hover .service-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transform: scale(1.1) rotate(5deg);
    border-radius: 24px;
    box-shadow: 
        0 4px 16px rgba(255, 255, 255, 0.3),
        0 8px 32px rgba(0, 102, 204, 0.2);
}

.service-card:hover .service-icon::before {
    opacity: 1;
}

.service-icon i {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease-in-out;
    z-index: 1;
    position: relative;
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Mobile Touch States and Accessibility */
.service-card:focus,
.service-card:active {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    background: var(--primary-gradient);
    color: var(--text-inverse);
    border: 1px solid var(--accent-emerald-light);
    border-radius: 24px;
    transform: translateY(-4px) scale(1.01);
    box-shadow: 
        2px 4px 8px rgba(0, 0, 0, 0.1),
        0 8px 32px rgba(0, 102, 204, 0.15),
        0 16px 64px rgba(0, 0, 0, 0.08);
}

.service-card:focus .service-icon,
.service-card:active .service-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transform: scale(1.05) rotate(2deg);
    border-radius: 24px;
}

/* Cross-browser compatibility */
@supports not (backdrop-filter: blur(10px)) {
    .service-card:hover .service-icon,
    .service-card:focus .service-icon,
    .service-card:active .service-icon {
        background: rgba(255, 255, 255, 0.3);
    }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .service-card::before,
    .service-icon,
    .service-icon::before,
    .service-icon i {
        transition: none;
        animation: none;
    }
    
    .service-card:hover,
    .service-card:focus,
    .service-card:active {
        transform: none;
    }
    
    .service-card:hover .service-icon,
    .service-card:focus .service-icon,
    .service-card:active .service-icon {
        transform: none;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover {
        background: white;
        color: var(--text-primary);
        border: 1px solid rgba(226, 232, 240, 0.5);
        border-radius: 20px;
        transform: none;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    }
    
    .service-card:hover .service-icon {
        background: var(--secondary-gradient);
        transform: none;
        border-radius: 20px;
        backdrop-filter: none;
    }
    
    .service-card:active {
        background: var(--primary-gradient);
        color: var(--text-inverse);
        transform: scale(0.98);
    }
}

.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-emerald);
    color: var(--text-inverse);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
    transition: color 0.2s ease-in-out;
}

.service-card.featured h3 {
    color: var(--text-inverse);
}

.service-card:hover h3,
.service-card:focus h3,
.service-card:active h3 {
    color: var(--text-inverse);
}

.service-card p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 25px;
    transition: color 0.2s ease-in-out;
}

.service-card.featured p {
    color: rgba(255, 255, 255, 0.9);
}

.service-card:hover p,
.service-card:focus p,
.service-card:active p {
    color: rgba(255, 255, 255, 0.9);
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.service-features li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
    color: var(--gray-600);
    font-size: 0.9rem;
    transition: color 0.2s ease-in-out;
}

.service-card.featured .service-features li {
    color: rgba(255, 255, 255, 0.9);
}

.service-card:hover .service-features li,
.service-card:focus .service-features li,
.service-card:active .service-features li {
    color: rgba(255, 255, 255, 0.9);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--success-color);
    font-weight: bold;
    font-size: 0.9rem;
    transition: color 0.2s ease-in-out;
}

.service-card.featured .service-features li::before {
    color: var(--accent-color);
}

.service-card:hover .service-features li::before,
.service-card:focus .service-features li::before,
.service-card:active .service-features li::before {
    color: var(--accent-color);
}

.service-cta {
    margin-top: auto;
    padding-top: 20px;
}

.service-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.service-cta .btn-primary {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
}

.service-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}

.service-card:hover .service-cta .btn-primary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    color: var(--primary-color);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.service-card.featured .service-cta .btn-primary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-inverse);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.service-card.featured .service-cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Enhanced Services CTA Section */
.services-cta {
    margin-top: 80px;
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(0, 102, 204, 0.03) 0%, 
        rgba(124, 58, 237, 0.05) 25%, 
        rgba(16, 185, 129, 0.03) 50%, 
        rgba(6, 182, 212, 0.05) 75%, 
        rgba(0, 102, 204, 0.03) 100%);
    border-radius: 40px;
    padding: 80px 50px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.08),
        0 10px 40px rgba(0, 102, 204, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: ctaFloat 6s ease-in-out infinite;
}

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

.services-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        rgba(0, 102, 204, 0.1) 60deg,
        rgba(124, 58, 237, 0.1) 120deg,
        rgba(16, 185, 129, 0.1) 180deg,
        rgba(6, 182, 212, 0.1) 240deg,
        rgba(236, 72, 153, 0.1) 300deg,
        transparent 360deg
    );
    animation: ctaRotate 20s linear infinite;
    z-index: 1;
}

@keyframes ctaRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.services-cta::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: ctaPulse 4s ease-in-out infinite;
    z-index: 1;
}

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

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.services-cta h3 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 50%, 
        var(--accent-emerald) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 102, 204, 0.2);
    animation: ctaTextGlow 3s ease-in-out infinite alternate;
}

@keyframes ctaTextGlow {
    0% { filter: drop-shadow(0 0 10px rgba(0, 102, 204, 0.3)); }
    100% { filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.4)); }
}

.services-cta p {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin-bottom: 50px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-weight: 400;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.cta-buttons .btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 200px;
    justify-content: center;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cta-buttons .btn-primary {
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 100%);
    color: white;
    border: none;
    transform: translateY(0);
}

.cta-buttons .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.6s ease;
}

.cta-buttons .btn-primary:hover::before {
    left: 100%;
}

.cta-buttons .btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(0, 102, 204, 0.4),
        0 5px 15px rgba(124, 58, 237, 0.3);
}

.cta-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    backdrop-filter: blur(10px);
}

.cta-buttons .btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(0, 102, 204, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-buttons .btn svg {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.cta-buttons .btn:hover svg {
    transform: translateX(8px) rotate(15deg) scale(1.1);
}

/* Decorative Elements */
.cta-content::before {
    content: '✨';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: ctaSparkle 2s ease-in-out infinite;
}

@keyframes ctaSparkle {
    0%, 100% { transform: translateX(-50%) scale(1) rotate(0deg); }
    50% { transform: translateX(-50%) scale(1.2) rotate(180deg); }
}

.cta-content::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--accent-emerald), 
        var(--primary-color), 
        var(--secondary-color), 
        transparent);
    border-radius: 2px;
    animation: ctaUnderline 3s ease-in-out infinite;
}

@keyframes ctaUnderline {
    0%, 100% { width: 60px; opacity: 0.6; }
    50% { width: 120px; opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-cta {
        margin-top: 60px;
        padding: 60px 30px;
        border-radius: 30px;
    }
    
    .services-cta h3 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .services-cta p {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .cta-buttons .btn {
        min-width: 250px;
        padding: 16px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .services-cta {
        padding: 50px 20px;
        margin-top: 40px;
    }
    
    .services-cta h3 {
        font-size: 2rem;
    }
    
    .services-cta p {
        font-size: 1rem;
    }
    
    .cta-buttons .btn {
        min-width: 200px;
        padding: 14px 25px;
    }
}

/* High-performance optimizations */
.services-cta * {
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .services-cta,
    .services-cta::before,
    .services-cta::after,
    .cta-content::before,
    .cta-content::after,
    .services-cta h3,
    .cta-buttons .btn,
    .cta-buttons .btn svg {
        animation: none !important;
        transition: none !important;
    }
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    position: relative;
    overflow: hidden;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(34, 197, 94, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.gallery-section .section-header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 60px;
}

.gallery-section .section-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.gallery-section h2 {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-section p {
    color: #cbd5e1;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.gallery-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(168, 85, 247, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.gallery-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.9) contrast(1.1);
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.2);
}

/* Gallery Actions */
.gallery-actions {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
}

.view-more-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.view-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.view-more-btn svg {
    transition: transform 0.3s ease;
}

.view-more-btn:hover svg {
    transform: translateX(3px);
}

/* Gallery Item Animation */
.gallery-item {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease forwards;
}

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

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

/* Capabilities Section */
.capabilities {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.capabilities .section-header {
    margin-bottom: 0;
}

.capabilities::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, var(--accent-emerald-light) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, var(--accent-pink-light) 0%, transparent 50%);
    opacity: 0.1;
    pointer-events: none;
}

.capabilities-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.diagram-section {
    text-align: center;
    margin-bottom: 20px;
    position: relative; /* Ensure positioning context for background */
}

.diagram-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 60%);
    opacity: 0.05;
    transform: translate(-50%, -50%);
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
}

.diagram-title {
    font-size: 2.25rem; /* Larger title */
    font-weight: 800; /* Bolder */
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.diagram-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px; /* Slightly narrower for better focus */
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.engineering-diagram {
    width: 100%;
    height: auto;
    max-width: 950px;
    min-width: 600px;
    margin: 20px auto;
    position: relative;
    overflow: visible;
    display: block;
}

.engineering-diagram svg {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
}

.diagram-hub-and-nodes, .diagram-labels {
    opacity: 0;
    transform: scale(0.9);
    animation: fadeInScale 1.2s 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(1deg);
    }
    66% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

/* Central Hub */
.central-hub .hub-circle-bg {
    fill: var(--primary-color);
    filter: url(#dropShadow);
    transition: all 0.3s ease;
}

.central-hub:hover .hub-circle-bg {
    fill: var(--primary-light);
    filter: url(#dropShadow) brightness(1.1);
}

.central-hub .hub-circle {
    fill: var(--primary-color);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.central-hub:hover .hub-circle {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.central-hub .hub-circle-border {
    fill: none;
    stroke: var(--accent-emerald);
    stroke-width: 3;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.central-hub:hover .hub-circle-border {
    stroke: var(--accent-emerald-light);
    stroke-width: 4;
    opacity: 1;
}

.central-hub .hub-icon {
    fill: white;
    stroke: white;
    transform: scale(1.7);
    transform-box: fill-box;
    transform-origin: 50% 50%;
    pointer-events: none;
    opacity: 0.95;
}

/* Diagram Nodes */
.diagram-node .node-circle {
    fill: var(--surface-primary);
    stroke: var(--accent-emerald-light);
    stroke-width: 2;
    filter: url(#dropShadow);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.diagram-node:hover .node-circle {
    fill: var(--surface-secondary);
    stroke: var(--primary-light);
    transform: scale(1.15);
    filter: url(#dropShadow) brightness(1.05);
}

.diagram-node .node-icon {
    /* Keep icons centered relative to their own bounds */
    transform: none;
    transform-box: fill-box;
    transform-origin: 50% 50%;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
}

.diagram-node:hover .node-icon {
    transform: scale(1.08);
    filter: brightness(1.15);
}

/* Node-specific icon colors */
#node-crusher .node-icon path, #node-crusher .node-icon circle, #node-crusher .node-icon rect, #node-crusher .node-icon polyline {
    stroke: var(--accent-pink); fill: var(--accent-pink);
}

#node-alignments .node-icon { stroke: var(--accent-orange); fill: var(--accent-orange); }

#node-rebuilds .node-icon { stroke: var(--secondary-color); fill: var(--secondary-color); }

#node-conveyor .node-icon { stroke: var(--accent-emerald); fill: var(--accent-emerald); }

#node-commissioning .node-icon { stroke: var(--primary-light); fill: var(--primary-light); }

#node-asset .node-icon { stroke: var(--accent-yellow); fill: var(--accent-yellow); }

/* Diagram Labels */
.node-label {
    font-family: 'Inter', sans-serif;
    font-size: 18px; /* Larger font */
    font-weight: 700; /* Bolder */
    fill: var(--text-primary); /* Updated color */
    text-anchor: middle; /* default for top/bottom */
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Side-specific anchoring to prevent overlap with circles */
.diagram-labels .node-label-left { text-anchor: end; }
.diagram-labels .node-label-right { text-anchor: start; }
.diagram-labels .node-label-top { text-anchor: middle; }
.diagram-labels .node-label-bottom { text-anchor: middle; }

/* Optional small visual offset on mobile for readability */
@media (max-width: 768px) {
  .diagram-labels .node-label-left { transform: translateX(-4px); }
  .diagram-labels .node-label-right { transform: translateX(4px); }
}

.diagram-node:hover ~ .diagram-labels .node-label {
    opacity: 0.3;
    filter: blur(1.5px);
}

.diagram-node:hover + .node-label, 
.diagram-node:hover + g + .node-label, 
.diagram-node:hover + g + g + .node-label, 
.diagram-node:hover + g + g + g + .node-label, 
.diagram-node:hover + g + g + g + g + .node-label, 
.diagram-node:hover + g + g + g + g + g + .node-label {
    opacity: 1;
    filter: none;
    font-weight: 800;
}

/* Diagram Lines */
.diagram-lines {
    opacity: 0;
    animation: fadeIn 1.2s 1s ease forwards;
}

.diagram-line {
    stroke: var(--gray-300);
    stroke-width: 2;
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: drawLine 1.5s 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.diagram-node:hover ~ .diagram-lines .diagram-line {
    stroke: var(--gray-200);
}

#node-crusher:hover ~ .diagram-lines .line-crusher,
#node-alignments:hover ~ .diagram-lines .line-alignments,
#node-rebuilds:hover ~ .diagram-lines .line-rebuilds,
#node-conveyor:hover ~ .diagram-lines .line-conveyor,
#node-commissioning:hover ~ .diagram-lines .line-commissioning,
#node-asset:hover ~ .diagram-lines .line-asset {
    stroke: #4f46e5;
    stroke-width: 3;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Capability Icons */
.capability-icon {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.capability-icon:hover {
    transform: scale(1.15);
    filter: url(#dropShadow) brightness(1.1);
}

.capability-icon circle {
    transition: all 0.3s ease;
}

.capability-icon:hover circle {
    stroke-width: 4;
    r: 28;
}

/* Information Cards */
.info-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card:hover {
    transform: translateY(-5px) scale(1.02);
    filter: url(#dropShadow) brightness(1.05);
}

.info-card rect {
    transition: all 0.3s ease;
}

.info-card:hover rect {
    stroke-width: 3;
    rx: 12;
}

/* Connection Lines Animation */
.connection-lines line {
    stroke-dasharray: 5, 5;
    animation: dash 2s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -10;
    }
}

/* Central Hub Pulse Animation */
.engineering-diagram circle[cx="500"][cy="350"] {
    animation: centralPulse 3s ease-in-out infinite;
}

@keyframes centralPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Segment Glow Animation */
.segment-hover {
    animation: segmentGlow 6s ease-in-out infinite;
}

@keyframes segmentGlow {
    0%, 100% {
        filter: url(#dropShadow);
    }
    50% {
        filter: url(#dropShadow) drop-shadow(0 0 10px currentColor);
    }
}

/* Icon Floating Animation */
.capability-icon {
    animation: iconFloat 4s ease-in-out infinite;
}

.capability-icon:nth-child(1) { animation-delay: 0s; }
.capability-icon:nth-child(2) { animation-delay: 0.5s; }
.capability-icon:nth-child(3) { animation-delay: 1s; }
.capability-icon:nth-child(4) { animation-delay: 1.5s; }
.capability-icon:nth-child(5) { animation-delay: 2s; }
.capability-icon:nth-child(6) { animation-delay: 2.5s; }

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

/* Card Entrance Animation */
.info-card {
    animation: cardEntrance 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.2s; }
.info-card:nth-child(3) { animation-delay: 0.3s; }
.info-card:nth-child(4) { animation-delay: 0.4s; }
.info-card:nth-child(5) { animation-delay: 0.5s; }
.info-card:nth-child(6) { animation-delay: 0.6s; }

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

/* New Capability Cards Grid */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 35px;
}

.capability-card {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 8px 25px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.capability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.capability-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 35px 80px rgba(0, 0, 0, 0.15),
        0 15px 35px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.capability-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.capability-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    line-height: 1.3;
}

.capability-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.capability-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.capability-icon.crusher {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.capability-icon.alignment {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    box-shadow: 0 8px 25px rgba(234, 88, 12, 0.3);
}

.capability-icon.mill {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
}

.capability-icon.conveyor {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

.capability-icon.commissioning {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.3);
}

.capability-icon.asset {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    box-shadow: 0 8px 25px rgba(8, 145, 178, 0.3);
}

.capability-card:hover .capability-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.capability-details p {
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.capability-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.capability-features li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    color: var(--gray-600);
    line-height: 1.6;
    position: relative;
    padding-left: 25px;
}

.capability-features li:last-child {
    border-bottom: none;
}

.capability-features li::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 12px;
    color: var(--primary-color);
    font-size: 0.8rem;
    transform: scale(0.8);
}

.capability-features li strong {
    color: var(--gray-800);
    font-weight: 600;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="contactGrid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23contactGrid)"/></svg>');
    z-index: 1;
}

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

.contact .section-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.contact .section-header h2 {
    color: white;
}

.contact .section-description {
    color: rgba(255, 255, 255, 0.9);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.contact-details p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    line-height: 1.5;
}

.contact-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: white;
    text-decoration: underline;
}

.contact-cta {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    margin-top: 20px;
}

.contact-cta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.contact-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-form-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.form-header p {
    color: var(--gray-600);
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--gray-900);
}

.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(59, 130, 246, 0.1);
}

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

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.form-submit {
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.form-submit svg {
    transition: transform 0.3s ease;
}

.form-submit:hover svg {
    transform: translateX(5px);
}

/* Footer */
.footer {
    background: var(--dark-gradient);
    color: var(--text-inverse);
    padding: 3rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent-gradient);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--text-inverse);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--gray-300);
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--accent-emerald);
}

.footer-bottom {
    border-top: 1px solid var(--gray-600);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-300);
    margin: 0;
}

/* Responsive Design */

/* Laptop optimization (1024px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .hero {
        min-height: 45vh;
    }
    
    .hero-grid {
        min-height: 35vh;
        gap: 2rem;
        align-items: start;
    }
    
    .hero-left {
        gap: 0.75rem;
        padding-top: 0.75rem;
    }
    
    .hero-right {
        gap: 2rem;
        padding-top: 1.5rem;
    }

    /* Wider, shorter engineering showcase on laptops */
    .engineering-showcase {
        max-width: 520px;
        padding: 1.5rem 1.25rem;
    }

    /* Match stats grid width with showcase on laptops */
    .hero-stats-grid {
        max-width: 520px;
    }

    /* Two-column expertise layout to reduce height */
    .expertise-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: clamp(2rem, 4vw, 3rem);
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.4;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    
    .hero-left {
        order: 1;
        align-items: center;
    }
    
    .hero-right {
        order: 2;
    }
    
    .hero-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
    }
    
    .engineering-showcase {
        max-width: 100%;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    /* Gallery Section Responsive */
    .gallery-section h2 {
        font-size: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .gallery-image {
        height: 220px;
    }
    
    .view-more-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .capabilities-content {
        gap: 30px;
    }
    
    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .diagram-title {
        font-size: 1.75rem;
    }
    
    .diagram-description {
        font-size: 1rem;
        max-width: 600px;
    }
    
    .engineering-diagram {
        width: 95%;
        max-width: 800px;
        min-width: 500px;
        margin: 20px auto;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    .nav-line {
        background: transparent;
        height: 0;
        top: var(--navbar-height);
    }
    .nav-line::before,
    .nav-line::after {
        display: none;
    }
    
    .nav-left,
    .nav-right {
        position: fixed;
        left: 0;
        top: var(--navbar-height);
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        box-shadow: var(--box-shadow);
        padding: 2rem 0;
        height: calc(100vh - var(--navbar-height));
        z-index: 999;
    }

    .nav-left.active,
    .nav-right.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Ensure menu links are visible on the white slide-in panel */
    .nav-left.active .nav-link,
    .nav-right.active .nav-link {
        color: var(--gray-900);
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Overlay with blur effect when mobile menu is open */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.4);
        backdrop-filter: blur(8px);
        /* Ensures the overlay sits below the nav menus (z-index 999) but above page content */
        z-index: 950;
        pointer-events: none;
    }

    .nav-toggle {
        display: flex;
        position: fixed;
        right: 16px;
        top: calc(var(--navbar-height) / 2 - 14px);
        z-index: 1002;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .engineering-showcase {
        padding: 1.5rem;
    }
    
    .expertise-grid {
        gap: 0.75rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .engineering-showcase {
        padding: 1.25rem;
    }
    
    .expertise-item {
        padding: 0.5rem;
    }
    
    .expertise-icon {
        width: 28px;
        height: 28px;
    }
    
    .expertise-item span {
        font-size: 0.8rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .btn {
        padding: 0.875rem 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Gallery Section Mobile */
    .gallery-section {
        padding: 60px 0;
    }
    
    .gallery-section h2 {
        font-size: 2rem;
    }
    
    .gallery-section p {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .view-more-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }

    .capabilities-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .capability-card {
        padding: 20px;
    }
    
    .capability-header h3 {
        font-size: 1.3rem;
    }
    
    .engineering-diagram {
        width: 100%;
        max-width: 600px;
        min-width: 350px;
        margin: 15px auto;
    }
    
    .capability-node text {
        font-size: 10px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Center footer logo */
    .footer-logo img {
        margin: 0 auto;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .capability-item {
        flex-direction: column;
        text-align: center;
    }
    
    .capability-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .capability-header h3 {
        font-size: 1.2rem;
    }
    
    .capability-features {
        font-size: 0.85rem;
    }
    
    .engineering-diagram {
        margin: 10px auto;
        min-width: 300px;
    }
    
    .capability-node text {
        font-size: 8px;
    }

    .highlight-item {
        flex-direction: column;
        text-align: center;
    }

    .highlight-icon {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: calc(var(--navbar-height) + 40px) 0 60px;
    }

    .hero h1 {
        font-size: 2.25rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .hero-description {
        font-size: 1.05rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .hero-stats-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-visual-element {
        width: 150px;
        height: 150px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .contact-form-container {
        padding: 25px;
    }

    .contact-card {
        padding: 20px;
    }

    .capability-graphic {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .about {
        padding: 50px 0;
    }

    .services {
        padding: 60px 0;
    }

    .capabilities {
        padding: 80px 0;
    }

    .contact {
        padding: 80px 0;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== HERO PROFILE SECTION ===== */
.hero-profile {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a365d 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge svg {
    width: 16px;
    height: 16px;
    color: #ffd700;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 16px 0;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #cbd5e0;
    margin: 0 0 8px 0;
}

.hero-company {
    font-size: 1.1rem;
    color: #a0aec0;
    margin-bottom: 32px;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
    color: #e2e8f0;
}

.hero-description strong {
    color: #ffd700;
    font-weight: 700;
}

.hero-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(8px);
}

.highlight-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.highlight-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: white;
}

.highlight-text p {
    font-size: 0.95rem;
    color: #cbd5e0;
    margin: 0;
}

.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.profile-image-placeholder {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.profile-image-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.profile-image-placeholder svg {
    width: 80px;
    height: 80px;
    color: rgba(255, 255, 255, 0.7);
    z-index: 2;
    position: relative;
}

.achievement-badges {
    display: flex;
    gap: 16px;
}

.badge-item {
    text-align: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 80px;
    transition: all 0.3s ease;
}

.badge-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.badge-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 4px;
}

.badge-label {
    font-size: 0.85rem;
    color: #cbd5e0;
    font-weight: 600;
}

/* ===== STATS SHOWCASE ===== */
.stats-showcase {
    margin-bottom: 80px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    padding: 40px 32px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4299e1 100%);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4299e1 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.stat-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-800);
    display: block;
    margin-bottom: 12px;
}

.stat-description {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* ===== EXPERTISE SHOWCASE ===== */
.expertise-showcase {
    margin-bottom: 80px;
}

.expertise-showcase .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.expertise-showcase .section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.expertise-showcase .section-header p {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.expertise-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.expertise-category {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    padding: 40px 32px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.expertise-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-100);
}

.category-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4299e1 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.category-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.expertise-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expertise-list li {
    padding: 12px 0;
    color: var(--gray-700);
    font-weight: 500;
    position: relative;
    padding-left: 24px;
    transition: all 0.2s ease;
}

.expertise-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.expertise-list li:hover {
    color: var(--primary-color);
    padding-left: 28px;
}

/* ===== GLOBAL EXPERIENCE ===== */
.global-experience {
    margin-bottom: 20px;
}

.global-experience .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.global-experience .section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.global-experience .section-header p {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.experience-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    padding: 32px 24px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4299e1 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.experience-card:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.experience-flag {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
    position: relative;
    height: 60px;
    width: 80px;
    margin: 0 auto 16px auto;
}

.experience-flag .flag-icon {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.experience-flag .flag-fallback {
    display: none;
    font-size: 2.5rem;
}

/* Fallback for browsers that don't support SVG properly */
@supports not (clip-path: circle()) {
    .experience-flag .flag-icon {
        display: none;
    }
    
    .experience-flag .flag-fallback {
        display: block;
    }
}

.experience-card:hover .experience-flag .flag-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.experience-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 8px 0;
}

.experience-card p {
    font-size: 1rem;
    color: var(--gray-600);
    margin: 0 0 12px 0;
    font-weight: 500;
}

.experience-detail {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    display: block;
}

/* ===== ABOUT CTA ===== */
.about-cta {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    padding: 60px 40px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.about-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(45,55,72,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.cta-content {
    position: relative;
    z-index: 2;
}

.about-cta h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0 0 16px 0;
}

.about-cta p {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin: 0 0 32px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.about-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.about-cta .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4299e1 100%);
    color: white;
    border: none;
}

.about-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(45, 55, 72, 0.3);
}

.about-cta .btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.about-cta .btn:hover svg {
    transform: translateX(4px);
}

/* ===== RESPONSIVE STYLES FOR NEW ABOUT SECTION ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .expertise-categories {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .hero-profile {
        padding: 60px 0;
        margin-bottom: 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-highlights {
        gap: 16px;
    }
    
    .highlight-item {
        padding: 16px;
    }
    
    .profile-image-placeholder {
        width: 150px;
        height: 150px;
    }
    
    .achievement-badges {
        flex-direction: column;
        gap: 12px;
    }
    
    .stats-showcase,
    .expertise-showcase,
    .global-experience {
        margin-bottom: 20px;
    }
    
    .expertise-showcase .section-header h2,
    .global-experience .section-header h2 {
        font-size: 2rem;
    }
    
    .stat-card {
        padding: 32px 24px;
    }
    
    .expertise-category {
        padding: 32px 24px;
    }
    
    .experience-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .about-cta {
        padding: 40px 24px;
    }
    
    .about-cta h3 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero-profile {
        padding: 40px 0;
        margin-bottom: 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .highlight-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .profile-image-placeholder {
        width: 120px;
        height: 120px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .expertise-categories {
        gap: 24px;
    }
    
    .expertise-category {
        padding: 24px 20px;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
    }
    
    .about-cta {
        padding: 32px 20px;
    }
}

/* About Section Redesign */
.about-redesigned {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 60px 0;
}

.about-bio {
    text-align: left;
}

.about-bio .section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 20px;
}

.about-bio p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555555;
    margin-bottom: 30px;
}

.about-bio .cta-button {
    background-color: #00aaff;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.about-bio .cta-button:hover {
    background-color: #0088cc;
    transform: translateY(-3px);
}

.about-expertise {
    background-color: #1a1a1a;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.about-expertise .expertise-title {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 25px;
    text-align: center;
}

.about-expertise .expertise-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-expertise .expertise-list li {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: #cccccc;
}

.about-expertise .expertise-list i {
    font-size: 1.5rem;
    color: #00aaff;
    margin-right: 15px;
    width: 25px;
    text-align: center;
}

@media (max-width: 992px) {
    .about-redesigned {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .about-expertise .expertise-list {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-buttons,
    .contact-form,
    .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero {
        padding: 20px 0;
        background: none;
    }
    
    section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
}
