/* ========================================
   ELECTOPIA - WordPress Landing Stylesheet
   Matching React/Motion design exactly
   ======================================== */

/* ----------------------------------------
   CSS Variables & Root Settings
   ---------------------------------------- */
:root {
    --primary: #575AFD;
    --primary-hover: #4548e0;
    --secondary: #51F1D9;
    --accent: #42C0F5;
    --text-dark: #111827;
    --text-gray: #4B5563;
    --text-light: #6B7280;
    --bg-white: #ffffff;
    --bg-gray: #F9FAFB;
    --border-color: #E5E7EB;
    --border-light: #F3F4F6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --transition: all 0.3s ease;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Reset & Base Styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-family); font-size: 1rem; line-height: 1.6; color: var(--text-dark); background-color: var(--bg-white); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* Hide the theme's default header/footer when using the landing template */
body.page-template-page-english-landing > header,
body.page-template-page-english-landing .site-header { display: none !important; }
body.page-template-page-english-landing > footer:not(.footer),
body.page-template-page-english-landing .site-footer { display: none !important; }
body.page-template-page-english-landing { background-color: var(--bg-white); }
body.page-template-page-english-landing .site-main { padding: 0; margin: 0; }

/* Utilities */
.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 3rem; } }
.text-primary { color: var(--primary); }
.section { padding: 3rem 0; }
@media (min-width: 640px) { .section { padding: 4rem 0; } }
@media (min-width: 1024px) { .section { padding: 6rem 0; } }
.section-gray { background-color: var(--bg-gray); }
.section-gradient { background: linear-gradient(to bottom right, rgba(87, 90, 253, 0.05), rgba(81, 241, 217, 0.05)); }
.section-header { text-align: center; margin-bottom: 3rem; }
@media (min-width: 640px) { .section-header { margin-bottom: 4rem; } }
.section-title { font-size: 1.875rem; font-weight: 700; color: var(--text-dark); margin-bottom: 1rem; line-height: 1.2; }
@media (min-width: 640px) { .section-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .section-title { font-size: 3rem; } }
.section-subtitle { font-size: 1rem; color: var(--text-gray); max-width: 48rem; margin: 0 auto; }
@media (min-width: 640px) { .section-subtitle { font-size: 1.125rem; } }
@media (min-width: 1024px) { .section-subtitle { font-size: 1.25rem; } }
.section-label { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.label-line { width: 2rem; height: 1px; background-color: var(--primary); }
@media (min-width: 640px) { .label-line { width: 3rem; } }
.section-label span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-light); }
@media (min-width: 640px) { .section-label span { font-size: 0.875rem; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; font-size: 0.875rem; font-weight: 600; border-radius: var(--radius-lg); transition: var(--transition); white-space: nowrap; }
@media (min-width: 640px) { .btn { padding: 1rem 2rem; } }
.btn-lg { padding: 0.875rem 2rem; }
@media (min-width: 640px) { .btn-lg { padding: 1rem 2.5rem; } }
.btn-icon { width: 1.25rem; height: 1.25rem; }
.btn-primary { background-color: var(--primary); color: white; }
.btn-primary:hover { background-color: var(--primary-hover); transform: scale(1.02); box-shadow: 0 4px 15px rgba(87, 90, 253, 0.3); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background-color: var(--primary); color: white; transform: scale(1.02); }
.btn-gradient { background: linear-gradient(to right, var(--secondary), var(--accent)); color: white; }
.btn-gradient:hover { box-shadow: var(--shadow-lg); transform: scale(1.02); }
.btn-gradient-full { background: linear-gradient(to right, var(--primary), var(--accent)); color: white; }
.btn-gradient-full:hover { box-shadow: var(--shadow-xl); transform: scale(1.02); }
.btn-white { background-color: white; color: var(--primary); }
.btn-white:hover { box-shadow: var(--shadow-2xl); transform: scale(1.05); }

/* ----------------------------------------
   Header - Matching React Motion animation
   ---------------------------------------- */
.header { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    background-color: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color); 
    z-index: 1000;
    animation: headerSlideDown 0.6s ease-out;
}
@keyframes headerSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.header-container { max-width: 1440px; margin: 0 auto; padding: 1rem; }
@media (min-width: 640px) { .header-container { padding: 1rem 1.5rem; } }
@media (min-width: 1024px) { .header-container { padding: 1rem 3rem; } }
.header-content { display: flex; align-items: center; justify-content: space-between; }
.logo-img { height: 2rem; }
@media (min-width: 640px) { .logo-img { height: 2.5rem; } }
@media (min-width: 1024px) { .logo-img { height: 3rem; } }
.desktop-nav { display: none; align-items: center; gap: 1.5rem; }
@media (min-width: 1024px) { .desktop-nav { display: flex; } }
.nav-link { color: var(--text-gray); font-weight: 500; transition: var(--transition); }
.nav-link:hover { color: var(--primary); }
.lang-switcher { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; color: var(--text-gray); border: 1px solid var(--border-color); border-radius: var(--radius-md); transition: var(--transition); text-decoration: none; }
.lang-switcher:hover { color: var(--primary); border-color: var(--primary); background-color: rgba(87, 90, 253, 0.05); }
.lang-switcher span { font-size: 0.875rem; font-weight: 600; }
.lang-switcher svg { width: 16px; height: 16px; }
.mobile-controls { display: flex; align-items: center; gap: 0.75rem; }
@media (min-width: 1024px) { .mobile-controls { display: none; } }
.lang-switcher-mobile { display: flex; align-items: center; gap: 0.375rem; padding: 0.375rem 0.625rem; color: var(--text-gray); border: 1px solid var(--border-color); border-radius: var(--radius-md); transition: var(--transition); }
.lang-switcher-mobile:hover { color: var(--primary); border-color: var(--primary); }
.lang-switcher-mobile span { font-size: 0.75rem; font-weight: 600; }
.mobile-menu-btn { padding: 0.5rem; color: var(--text-gray); font-size: 1.5rem; }
.mobile-menu-btn:hover { color: var(--primary); }
.mobile-nav { 
    display: none; 
    flex-direction: column; 
    gap: 0.75rem; 
    padding: 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }
.mobile-nav.active { 
    display: flex;
    max-height: 400px;
    opacity: 1;
    padding: 1rem 0;
}
.mobile-nav-link { padding: 0.5rem 0; color: var(--text-gray); font-weight: 500; transition: var(--transition); text-align: left; }
.mobile-nav-link:hover { color: var(--primary); }
.mobile-cta { margin-top: 0.5rem; text-align: center; }

/* ----------------------------------------
   Hero - Matching React Motion animation
   ---------------------------------------- */
.hero { 
    position: relative; 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    background: linear-gradient(to bottom right, var(--bg-gray), var(--bg-white)); 
    padding-top: 5rem; 
}
.hero-bg-grid { 
    position: absolute; 
    inset: 0; 
    opacity: 0.3; 
    background-image: 
        linear-gradient(to right, var(--primary) 1px, transparent 1px), 
        linear-gradient(to bottom, var(--primary) 1px, transparent 1px); 
    background-size: 40px 40px; 
}
/* Animated lines on hero grid - matching React */
.hero-bg-grid::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--secondary), transparent);
    animation: heroLineMove 3s linear infinite;
    left: 20%;
    opacity: 0.5;
}
.hero-bg-grid::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--secondary), transparent);
    animation: heroLineMove 3s linear infinite 1.5s;
    left: 60%;
    opacity: 0.5;
}
@keyframes heroLineMove {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: translateY(100%); opacity: 0; }
}
.hero-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 2rem; 
    align-items: center; 
    position: relative; 
    z-index: 10; 
}
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* Hero content - slide in from left */
.hero-content { 
    opacity: 0;
    transform: translateX(-50px);
    animation: heroSlideInLeft 0.8s ease-out 0.2s forwards;
}
@keyframes heroSlideInLeft { 
    from { opacity: 0; transform: translateX(-50px); } 
    to { opacity: 1; transform: translateX(0); } 
}
.hero-title { 
    font-size: 1.875rem; 
    font-weight: 700; 
    color: var(--text-dark); 
    margin-bottom: 1rem;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s ease-out 0.4s forwards;
}
@media (min-width: 640px) { .hero-title { font-size: 2.25rem; margin-bottom: 1.5rem; } }
@media (min-width: 768px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-description { 
    font-size: 1rem; 
    color: var(--text-gray); 
    margin-bottom: 1.5rem; 
    line-height: 1.75;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s ease-out 0.6s forwards;
}
@media (min-width: 640px) { .hero-description { font-size: 1.125rem; margin-bottom: 2rem; } }
@media (min-width: 1024px) { .hero-description { font-size: 1.25rem; } }
.hero-buttons { 
    display: flex; 
    flex-direction: column; 
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s ease-out 0.8s forwards;
}
@media (min-width: 640px) { .hero-buttons { flex-direction: row; gap: 1rem; } }

/* Hero visual - slide in from right */
.hero-visual { 
    margin-top: 2rem;
    opacity: 0;
    transform: translateX(50px);
    animation: heroSlideInRight 0.8s ease-out 0.4s forwards;
}
@media (min-width: 1024px) { .hero-visual { margin-top: 0; } }
@keyframes heroSlideInRight { 
    from { opacity: 0; transform: translateX(50px); } 
    to { opacity: 1; transform: translateX(0); } 
}
.hero-image-wrapper { 
    position: relative; 
    border-radius: var(--radius-2xl); 
    overflow: hidden; 
    box-shadow: var(--shadow-2xl); 
    border: 2px solid rgba(87, 90, 253, 0.2); 
}
.hero-image { width: 100%; height: auto; }
.hero-overlay { 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(to top, rgba(17, 24, 39, 0.8), transparent); 
    display: flex; 
    align-items: flex-end; 
    padding: 0.75rem; 
}
@media (min-width: 640px) { .hero-overlay { padding: 1.5rem; } }
.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 0.5rem; 
    width: 100%; 
}
@media (min-width: 640px) { .stats-grid { gap: 1rem; } }
.stat-card { 
    background-color: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(8px); 
    border-radius: var(--radius-lg); 
    padding: 0.5rem; 
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(20px);
}
.stat-card:nth-child(1) { animation: statCardFadeUp 0.5s ease-out 1s forwards; }
.stat-card:nth-child(2) { animation: statCardFadeUp 0.5s ease-out 1.2s forwards; }
.stat-card:nth-child(3) { animation: statCardFadeUp 0.5s ease-out 1.4s forwards; }
@keyframes statCardFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (min-width: 640px) { .stat-card { padding: 1rem; } }
.stat-icon { font-size: 1rem; color: var(--primary); margin-bottom: 0.25rem; }
@media (min-width: 640px) { .stat-icon { font-size: 1.25rem; margin-bottom: 0.5rem; } }
.stat-value { font-size: 1.125rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.125rem; }
@media (min-width: 640px) { .stat-value { font-size: 1.5rem; margin-bottom: 0.25rem; } }
.stat-label { font-size: 0.625rem; color: var(--text-gray); }
@media (min-width: 640px) { .stat-label { font-size: 0.75rem; } }

/* ----------------------------------------
   About Section
   ---------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.about-image-wrapper { position: relative; border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-xl); border: 2px solid var(--border-color); }
.about-image { width: 100%; height: auto; }
.about-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.5), transparent); padding: 2rem; display: flex; flex-direction: column; justify-content: flex-end; }
.architecture-label { font-size: 0.75rem; color: rgba(255, 255, 255, 0.7); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.architecture-items { display: flex; flex-direction: column; gap: 0.75rem; }
.architecture-item { display: flex; align-items: center; gap: 0.75rem; }
.architecture-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: linear-gradient(to right, var(--primary), var(--secondary)); }
.architecture-text { flex: 1; background-color: rgba(255, 255, 255, 0.1); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius-md); padding: 0.5rem 0.75rem; color: white; font-size: 0.875rem; }
.architecture-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.arch-icon-box { aspect-ratio: 1; background-color: rgba(255, 255, 255, 0.1); backdrop-filter: blur(8px); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.2); font-size: 1.5rem; }
.about-content { order: -1; }
@media (min-width: 1024px) { .about-content { order: 1; } }
.about-text { display: flex; flex-direction: column; gap: 1rem; }
.about-text p { font-size: 1rem; color: var(--text-gray); line-height: 1.75; }
@media (min-width: 640px) { .about-text p { font-size: 1.125rem; } }

/* ----------------------------------------
   Services Section - Matching React hover effects
   ---------------------------------------- */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card { 
    background-color: var(--bg-white); 
    border-radius: var(--radius-xl); 
    overflow: hidden; 
    border: 1px solid var(--border-color); 
    transition: all 0.3s ease;
}
.service-card:hover { 
    border-color: rgba(87, 90, 253, 0.3); 
    box-shadow: var(--shadow-xl); 
    transform: translateY(-8px); 
}
.service-image-wrapper { 
    position: relative; 
    height: 12rem; 
    overflow: hidden; 
    background-color: var(--text-dark); 
}
.service-image { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.3s ease; 
}
.service-card:hover .service-image { transform: scale(1.05); }
.service-image-overlay { 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(to top, rgba(17, 24, 39, 0.8), transparent); 
}
.service-icon-badge { 
    position: absolute; 
    bottom: 1rem; 
    left: 1rem; 
    width: 3rem; 
    height: 3rem; 
    border-radius: var(--radius-lg); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: transform 0.3s ease;
    font-size: 1.5rem;
    backdrop-filter: blur(4px);
}
.service-card:hover .service-icon-badge { transform: scale(1.1); }
.service-content { padding: 1.5rem; }
.service-title { font-size: 1.25rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.75rem; }
.service-description { font-size: 0.875rem; color: var(--text-gray); line-height: 1.6; }
.service-line { 
    height: 4px; 
    border-radius: 2px; 
    margin-top: 1.25rem; 
    width: 30%; 
    transition: width 0.3s ease; 
}
.service-card:hover .service-line { width: 100%; }

/* ----------------------------------------
   Engineering Approach Section
   ---------------------------------------- */
.approach-header { margin-bottom: 3rem; }
@media (min-width: 640px) { .approach-header { margin-bottom: 4rem; } }
@media (min-width: 1024px) { .approach-header { margin-bottom: 5rem; } }
.approach-diagram { 
    position: relative; 
    background-color: var(--bg-gray); 
    border-radius: var(--radius-2xl); 
    padding: 1rem; 
    border: 1px solid var(--border-color); 
}
@media (min-width: 640px) { .approach-diagram { padding: 2rem; } }
@media (min-width: 1024px) { .approach-diagram { padding: 3rem; } }
.diagram-bg-grid { 
    position: absolute; 
    inset: 0; 
    opacity: 0.3; 
    background-image: linear-gradient(to right, rgba(87, 90, 253, 0.15) 1px, transparent 1px), linear-gradient(to bottom, rgba(87, 90, 253, 0.15) 1px, transparent 1px); 
    background-size: 24px 24px; 
    border-radius: var(--radius-2xl); 
}
.diagram-content { position: relative; z-index: 10; display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 640px) { .diagram-content { gap: 3rem; } }
@media (min-width: 1024px) { .diagram-content { gap: 4rem; } }
.subsection-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-light); margin-bottom: 1rem; }
@media (min-width: 640px) { .subsection-label { margin-bottom: 1.5rem; } }

/* Principles Grid with staggered animation */
.principles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 640px) { .principles-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1024px) { .principles-grid { grid-template-columns: repeat(5, 1fr); } }
.principle-card { 
    background-color: var(--bg-white); 
    border: 2px solid var(--border-color); 
    border-radius: var(--radius-lg); 
    padding: 0.75rem; 
    transition: all 0.3s ease;
}
@media (min-width: 640px) { .principle-card { padding: 1.25rem; } }
.principle-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.principle-icon { 
    width: 2.5rem; 
    height: 2.5rem; 
    border-radius: var(--radius-lg); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}
@media (min-width: 640px) { .principle-icon { width: 3rem; height: 3rem; margin-bottom: 1rem; } }
.principle-number { font-size: 0.75rem; color: var(--text-light); margin-bottom: 0.25rem; }
.principle-label { font-size: 0.875rem; color: var(--text-dark); line-height: 1.4; }

/* Flow Section with animated line */
.flow-section { position: relative; }
.flow-line { 
    display: none; 
    position: absolute; 
    top: 5.5rem; 
    left: 0; 
    right: 0; 
    height: 2px; 
    background: linear-gradient(to right, var(--primary), var(--secondary), var(--accent));
    transform-origin: left;
}
.flow-line.animate { animation: flowLineGrow 1.2s ease-out forwards; }
@keyframes flowLineGrow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
@media (min-width: 768px) { .flow-line { display: block; } }

/* Animated data packets on flow line */
.flow-line::before,
.flow-line::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary);
    top: -5px;
    box-shadow: 0 0 10px var(--secondary);
    opacity: 0;
}
.flow-line.animate::before,
.flow-line.animate::after { animation: dataPacketMove 4s linear infinite 1.5s; }
.flow-line.animate::after { animation-delay: 3s; }
@keyframes dataPacketMove {
    0% { left: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* Phases Grid with staggered animation */
.phases-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .phases-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
@media (min-width: 768px) { .phases-grid { grid-template-columns: repeat(5, 1fr); } }
.phase-card { 
    position: relative; 
    background-color: var(--bg-white); 
    border: 2px solid #D1D5DB; 
    border-radius: var(--radius-xl); 
    padding: 1rem; 
    transition: all 0.3s ease;
}
@media (min-width: 640px) { .phase-card { padding: 1.5rem; } }
.phase-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.phase-number { 
    position: absolute; 
    top: -0.75rem; 
    left: -0.75rem; 
    width: 2rem; 
    height: 2rem; 
    border-radius: 50%; 
    background: linear-gradient(to bottom right, var(--primary), var(--accent)); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    font-size: 0.875rem; 
    font-weight: 600; 
    box-shadow: var(--shadow-md); 
}
.phase-name { font-size: 1rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.5rem; }
@media (min-width: 640px) { .phase-name { font-size: 1.125rem; margin-bottom: 0.75rem; } }
.phase-description { font-size: 0.75rem; color: var(--text-gray); line-height: 1.5; }
.phase-progress { 
    height: 4px; 
    background: linear-gradient(to right, var(--primary), var(--secondary)); 
    border-radius: 2px; 
    margin-top: 1rem;
    width: 0;
    transition: width 0.6s ease-out;
}
.phase-card.animate .phase-progress { width: 100%; }
.phase-card:nth-child(1).animate .phase-progress { transition-delay: 0.15s; }
.phase-card:nth-child(2).animate .phase-progress { transition-delay: 0.3s; }
.phase-card:nth-child(3).animate .phase-progress { transition-delay: 0.45s; }
.phase-card:nth-child(4).animate .phase-progress { transition-delay: 0.6s; }
.phase-card:nth-child(5).animate .phase-progress { transition-delay: 0.75s; }

/* Architecture section */
.architecture-section { border-top: 1px solid #D1D5DB; padding-top: 2rem; }
@media (min-width: 640px) { .architecture-section { padding-top: 3rem; } }
.stage-cards { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .stage-cards { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.stage-card { background-color: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 1.5rem; }
.stage-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.stage-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; }
.stage-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-light); }
.stage-items { display: flex; flex-direction: column; gap: 0.5rem; }
.stage-items li { font-size: 0.875rem; color: var(--text-gray); display: flex; align-items: center; gap: 0.5rem; }
.stage-items li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background-color: #9CA3AF; }
.engineering-quote { 
    background: linear-gradient(to right, rgba(87, 90, 253, 0.05), rgba(81, 241, 217, 0.05)); 
    border-left: 4px solid var(--primary); 
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0; 
    padding: 1.5rem; 
}
.engineering-quote p { font-size: 0.875rem; color: var(--text-gray); font-style: italic; }

/* ----------------------------------------
   Training Section
   ---------------------------------------- */
.training-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .training-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.training-copy {}
.training-badge { display: inline-flex; align-items: center; gap: 0.5rem; background-color: rgba(87, 90, 253, 0.1); padding: 0.5rem 1rem; border-radius: 9999px; margin-bottom: 1.5rem; }
.training-badge span { font-size: 0.875rem; color: var(--primary); }
.training-text { font-size: 1rem; color: var(--text-gray); margin-bottom: 1rem; line-height: 1.75; }
@media (min-width: 640px) { .training-text { font-size: 1.125rem; margin-bottom: 1.5rem; } }
.training-visual { margin-top: 2rem; }
@media (min-width: 1024px) { .training-visual { margin-top: 0; } }
.training-card { background-color: var(--bg-white); border-radius: var(--radius-2xl); padding: 1.5rem; box-shadow: var(--shadow-lg); border: 1px solid var(--border-color); }
@media (min-width: 640px) { .training-card { padding: 2rem; } }
.modules-label { font-size: 0.875rem; color: var(--text-light); margin-bottom: 1.5rem; }
.modules-list { display: flex; flex-direction: column; gap: 1.5rem; }
.module-item { display: flex; flex-direction: column; gap: 0.5rem; }
.module-header { display: flex; justify-content: space-between; font-size: 0.875rem; }
.module-name { color: var(--text-gray); }
.module-percent { color: var(--primary); font-weight: 600; }
.module-bar { height: 0.5rem; background-color: var(--border-color); border-radius: 9999px; overflow: hidden; }
.module-progress { 
    height: 100%; 
    background: linear-gradient(to right, var(--primary), var(--secondary)); 
    border-radius: 9999px;
    width: 0;
    transition: width 0.8s ease-out;
}
.module-item.animate .module-progress { width: var(--target-width, 100%); }
.training-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); margin-top: 1.5rem; }
.training-stat { text-align: center; }
.training-stat-value { font-size: 1.875rem; font-weight: 700; margin-bottom: 0.25rem; }
.training-stat-label { font-size: 0.875rem; color: var(--text-gray); }

/* ----------------------------------------
   Team Section - Matching React hover effects
   ---------------------------------------- */
.team-header { margin-bottom: 3rem; }
@media (min-width: 640px) { .team-header { margin-bottom: 4rem; } }
@media (min-width: 1024px) { .team-header { margin-bottom: 5rem; } }
.team-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.team-card { 
    background-color: var(--bg-white); 
    border: 1px solid var(--border-color); 
    overflow: hidden; 
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.team-card:hover { 
    box-shadow: 0 8px 24px rgba(87, 90, 253, 0.12); 
    border-color: var(--primary); 
}
.team-avatar-wrapper { 
    position: relative; 
    aspect-ratio: 4/3; 
    background: linear-gradient(to bottom right, var(--bg-gray), var(--border-light)); 
    display: flex; 
    align-items: center; 
    justify-content: center;
    overflow: hidden;
}
.team-avatar { 
    width: 6rem; 
    height: 6rem; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    border: 4px solid white; 
    box-shadow: var(--shadow-lg); 
    transition: transform 0.3s ease; 
}
.team-card:hover .team-avatar { transform: scale(1.05); }
.team-avatar span { font-size: 2.5rem; font-weight: 600; }
.team-corner { position: absolute; top: 0; right: 0; width: 4rem; height: 4rem; }
.team-info { padding: 1.5rem; }
.team-name { font-size: 1.25rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.5rem; letter-spacing: -0.025em; }
.team-role { font-size: 0.875rem; color: var(--text-gray); line-height: 1.5; }
.team-line { 
    height: 2px; 
    border-radius: 1px; 
    margin-top: 1.25rem; 
    width: 30%; 
    transition: width 0.3s ease; 
}
.team-card:hover .team-line { width: 100%; }
.team-stats-bar { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #D1D5DB; display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .team-stats-bar { margin-top: 4rem; padding-top: 3rem; grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.team-stat-item { text-align: center; }
.team-stat-value { font-size: 1.875rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.5rem; }
@media (min-width: 640px) { .team-stat-value { font-size: 2.25rem; } }
.team-stat-label { font-size: 0.75rem; color: var(--text-gray); text-transform: uppercase; letter-spacing: 0.05em; }
@media (min-width: 640px) { .team-stat-label { font-size: 0.875rem; } }

/* ----------------------------------------
   Closing Section - Matching React animated bg
   ---------------------------------------- */
.closing { 
    position: relative; 
    padding: 4rem 0; 
    background: linear-gradient(to bottom right, var(--primary), var(--accent)); 
    overflow: hidden; 
}
@media (min-width: 640px) { .closing { padding: 6rem 0; } }
@media (min-width: 1024px) { .closing { padding: 8rem 0; } }
.closing-bg { 
    position: absolute; 
    inset: 0; 
    opacity: 0.1; 
    background-image: radial-gradient(circle, white 2px, transparent 2px); 
    background-size: 40px 40px;
}
/* Animated dots in closing section - matching React */
.closing-bg::before,
.closing-bg::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: closingDotPulse 3s ease-in-out infinite;
}
.closing-bg::before {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}
.closing-bg::after {
    top: 60%;
    left: 70%;
    animation-delay: 1.5s;
}
@keyframes closingDotPulse {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}
.closing-content { position: relative; z-index: 10; text-align: center; }
.closing-title { font-size: 1.875rem; font-weight: 700; color: white; margin-bottom: 1.5rem; line-height: 1.3; }
@media (min-width: 640px) { .closing-title { font-size: 2.25rem; margin-bottom: 2rem; } }
@media (min-width: 768px) { .closing-title { font-size: 3rem; } }
@media (min-width: 1024px) { .closing-title { font-size: 3.75rem; } }
.closing-tagline { font-size: 1.125rem; color: rgba(255, 255, 255, 0.9); margin-bottom: 2rem; }
@media (min-width: 640px) { .closing-tagline { font-size: 1.25rem; margin-bottom: 3rem; } }
@media (min-width: 1024px) { .closing-tagline { font-size: 1.5rem; } }

/* ----------------------------------------
   Contact Section - Matching React exactly
   ---------------------------------------- */
.contact-intro { margin-bottom: 3rem; }
@media (min-width: 640px) { .contact-intro { margin-bottom: 4rem; } }
@media (min-width: 1024px) { .contact-intro { margin-bottom: 5rem; } }
.contact-intro .section-title { margin-bottom: 1rem; }
@media (min-width: 640px) { .contact-intro .section-title { margin-bottom: 1.5rem; } }
.contact-description { 
    font-size: 1rem; 
    color: var(--text-gray); 
    max-width: 48rem; 
    line-height: 1.75;
}
@media (min-width: 640px) { .contact-description { font-size: 1.125rem; } }
@media (min-width: 1024px) { .contact-description { font-size: 1.25rem; } }

.contact-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 2rem; 
    align-items: start; 
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.contact-form-wrapper { }
.contact-form { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .contact-form { gap: 1rem; } }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
.form-group { display: flex; flex-direction: column; gap: 0.25rem; }
.form-group label { 
    font-size: 0.875rem; 
    font-weight: 500; 
    color: #374151;
}
.form-group input, .form-group textarea { 
    width: 100%; 
    padding: 0.5rem 0.75rem; 
    border: 1px solid #D1D5DB; 
    border-radius: var(--radius-md); 
    box-shadow: var(--shadow-sm);
    font-size: 0.875rem; 
    transition: var(--transition);
    font-family: inherit;
    background-color: #fff;
}
.form-group input:focus, .form-group textarea:focus { 
    outline: none; 
    border-color: var(--primary); 
    box-shadow: 0 0 0 2px rgba(87, 90, 253, 0.2); 
}
.form-group textarea { resize: vertical; }
.btn-send { 
    width: 100%;
    padding: 0.75rem 1.5rem; 
    font-size: 1rem;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
@media (min-width: 640px) { 
    .btn-send { 
        width: auto;
        padding: 1rem 2rem; 
    } 
}
.btn-send svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Contact Cards - Right Side - Matching React */
.contact-cards-wrapper { 
    display: flex; 
    flex-direction: column; 
    gap: 2rem;
}
.contact-card-item { 
    background-color: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-xl); 
    padding: 2rem;
    display: flex; 
    align-items: flex-start; 
    gap: 1rem;
    transition: var(--transition);
}
.contact-card-item:hover {
    box-shadow: var(--shadow-md);
}
.contact-card-icon { 
    width: 3rem; 
    height: 3rem; 
    min-width: 3rem;
    border-radius: var(--radius-lg); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white;
    flex-shrink: 0;
}
.contact-card-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}
.contact-card-content { 
    display: flex;
    flex-direction: column;
}
.contact-card-content h3 { 
    font-size: 1.125rem; 
    font-weight: 400; 
    color: var(--text-dark); 
    margin: 0 0 0.5rem 0;
}
.contact-card-content p { 
    font-size: 1rem;
    color: var(--text-gray); 
    margin: 0;
    line-height: 1.5;
}

/* Legacy contact-info styles (for backwards compatibility) */
.contact-info-wrapper { display: none; }
.contact-info-card { display: none; }
.contact-header { display: none; }

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.footer { background-color: #111827; color: #9CA3AF; padding: 2rem 0; }
@media (min-width: 640px) { .footer { padding: 3rem 0; } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-bottom: 2rem; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-logo { height: 2.5rem; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-tagline { font-size: 0.875rem; font-weight: 300; }
.footer-contact h4, .footer-sections h4, .footer-social h4 { color: white; font-weight: 600; margin-bottom: 1rem; }
.footer-contact-items { display: flex; flex-direction: column; gap: 1rem; font-size: 0.875rem; }
.footer-address-label { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; }
.footer-address-label span { font-size: 0.75rem; font-weight: 500; color: var(--text-light); }
.footer-address p { padding-left: 1.5rem; font-weight: 300; line-height: 1.6; }
.footer-link { display: flex; align-items: center; gap: 0.5rem; transition: var(--transition); }
.footer-link:hover { color: var(--secondary); }
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; }
.footer-nav a { transition: var(--transition); }
.footer-nav a:hover { color: var(--secondary); }
.social-links { display: flex; gap: 1rem; }
.social-link { 
    width: 2.5rem; 
    height: 2.5rem; 
    background-color: #1F2937; 
    border-radius: var(--radius-lg); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: var(--transition);
    font-size: 0.875rem;
    font-weight: 500;
}
.social-link:hover { background-color: var(--primary); transform: scale(1.1); }
.footer-bottom { border-top: 1px solid #1F2937; padding-top: 1.5rem; text-align: center; }
@media (min-width: 640px) { .footer-bottom { padding-top: 2rem; } }
.footer-bottom p { font-size: 0.75rem; font-weight: 300; }
@media (min-width: 640px) { .footer-bottom p { font-size: 0.875rem; } }

/* ----------------------------------------
   Scroll Animations - Matching React InView
   ---------------------------------------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }

.animate-on-scroll { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: opacity 0.6s ease, transform 0.6s ease; 
}
.animate-on-scroll.visible { 
    opacity: 1; 
    transform: translateY(0); 
}

/* Fallback for mobile - ensure content is always visible */
@media (max-width: 767px) {
    .animate-on-scroll {
        opacity: 1;
        transform: translateY(0);
    }
    .section {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

/* Staggered animations for cards */
.services-grid .service-card.visible { transition-delay: var(--delay, 0s); }
.principles-grid .principle-card.visible { transition-delay: var(--delay, 0s); }
.phases-grid .phase-card.visible { transition-delay: var(--delay, 0s); }
.team-grid .team-card.visible { transition-delay: var(--delay, 0s); }
.stage-cards .stage-card.visible { transition-delay: var(--delay, 0s); }

/* ----------------------------------------
   RTL Support
   ---------------------------------------- */
[dir="rtl"] { text-align: right; }
[dir="rtl"] .section-label { flex-direction: row-reverse; }
[dir="rtl"] .footer-address p { padding-left: 0; padding-right: 1.5rem; }
[dir="rtl"] .architecture-item { flex-direction: row-reverse; }
[dir="rtl"] .engineering-quote { border-left: none; border-right: 4px solid var(--primary); border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
[dir="rtl"] .phase-number { left: auto; right: -0.75rem; }
[dir="rtl"] .btn-icon { transform: rotate(180deg); }
