/* ================================
   RESET & BASE STYLES
   ================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Screen reader only class for accessibility & SEO */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #020617;
    color: #E5E7EB;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Scroll animations */
.animate-in {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Respect user preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animate-in {
        animation: none;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ================================
   CONTAINER & UTILITIES
   ================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section spacing */
section {
    padding: 6rem 0;
}

/* Section headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #38BDF8 0%, #22C55E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #9CA3AF;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-cta {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #38BDF8 0%, #22C55E 100%);
    color: #020617;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #38BDF8;
    color: #38BDF8;
}

.btn-secondary:hover {
    background: rgba(56, 189, 248, 0.1);
    transform: translateY(-2px);
}

.btn-cta {
    background: #38BDF8;
    color: #020617;
}

.btn-cta:hover {
    background: #22C55E;
}

.btn-small {
    padding: 0.625rem 1.5rem;
    font-size: 0.9rem;
}

/* ================================
   HEADER & NAVIGATION
   ================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #38BDF8 0%, #22C55E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    display: block;
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: #E5E7EB;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #38BDF8;
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #38BDF8;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #38BDF8;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ================================
   HERO SECTION
   ================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #020617;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

/* Background Effects */
.hero-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #38BDF8 0%, transparent 70%);
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #22C55E 0%, transparent 70%);
    top: 30%;
    right: -10%;
    animation-delay: -7s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #8B5CF6 0%, transparent 70%);
    bottom: 10%;
    left: 50%;
    animation-delay: -14s;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 50px;
    color: #38BDF8;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
    line-height: 1.2;
    font-weight: 800;
    color: #E5E7EB;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.gradient-text {
    background: linear-gradient(135deg, #38BDF8 0%, #22C55E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #9CA3AF;
    margin-bottom: 3rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle strong {
    color: #E5E7EB;
    font-weight: 600;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(11, 17, 32, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.2);
}

.stat-icon {
    font-size: 1.75rem;
    filter: grayscale(0.3);
}

.stat-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #E5E7EB;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 2.5rem;
    background: linear-gradient(135deg, #38BDF8 0%, #22C55E 100%);
    color: #020617;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(56, 189, 248, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-hero-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.5s ease;
}

.btn-hero-primary:hover::before {
    left: 100%;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(56, 189, 248, 0.5);
}

.btn-hero-primary svg {
    transition: transform 0.3s ease;
}

.btn-hero-primary:hover svg {
    transform: translateX(5px);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    padding: 1.125rem 2.5rem;
    background: rgba(56, 189, 248, 0.1);
    border: 2px solid rgba(56, 189, 248, 0.3);
    color: #38BDF8;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38BDF8;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.2);
}

/* ================================
   SERVICES SECTION - CAROUSEL
   ================================ */

.services {
    background: #020617;
}

.services-carousel-wrapper {
    position: relative;
    margin-top: 3rem;
    padding: 0 60px;
}

.services-carousel {
    overflow: hidden;
    border-radius: 1.5rem;
}

.services-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card {
    min-width: 100%;
    background: linear-gradient(135deg, #0B1120 0%, #1a1f35 100%);
    border: 2px solid rgba(56, 189, 248, 0.2);
    border-radius: 1.5rem;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(34, 197, 94, 0.08) 100%);
    opacity: 1;
    z-index: 0;
}

.service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(34, 197, 94, 0.2) 100%);
    border: 2px solid rgba(56, 189, 248, 0.4);
    border-radius: 1.2rem;
    transition: all 0.3s ease;
}

.service-icon i {
    width: 40px;
    height: 40px;
    color: #38BDF8;
}

.service-number {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.4) 0%, rgba(34, 197, 94, 0.4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.service-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    color: #E5E7EB;
    position: relative;
    z-index: 1;
}

.service-description {
    color: #9CA3AF;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.service-features {
    list-style: none;
    padding: 0;
    position: relative;
    z-index: 1;
}

.service-features li {
    color: #E5E7EB;
    padding: 0.75rem 0;
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.6;
}

/* Navigation Buttons */
.services-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(34, 197, 94, 0.15) 100%);
    border: 2px solid rgba(56, 189, 248, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.services-nav:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.3) 0%, rgba(34, 197, 94, 0.3) 100%);
    border-color: rgba(56, 189, 248, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.services-nav i {
    width: 24px;
    height: 24px;
    color: #38BDF8;
}

.services-prev {
    left: 0;
}

.services-next {
    right: 0;
}

/* Progress Indicators */
.services-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.2);
    border: 2px solid rgba(56, 189, 248, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator:hover {
    background: rgba(56, 189, 248, 0.4);
    transform: scale(1.2);
}

.indicator.active {
    background: linear-gradient(135deg, #38BDF8 0%, #22C55E 100%);
    border-color: #38BDF8;
    width: 32px;
    border-radius: 6px;
}

.check-icon {
    width: 20px;
    height: 20px;
    color: #22C55E;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ================================
   PILLARS SECTION - HOVER REVEAL
   ================================ */

.pillars {
    background: linear-gradient(180deg, #020617 0%, #0B1120 100%);
}

.reveal-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.reveal-card {
    position: relative;
    height: 350px;
    perspective: 1000px;
    cursor: pointer;
}

.reveal-front,
.reveal-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-front {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(34, 197, 94, 0.1) 100%);
    border: 2px solid rgba(56, 189, 248, 0.3);
}

.reveal-back {
    background: linear-gradient(135deg, #0B1120 0%, #1a1f35 100%);
    border: 2px solid rgba(56, 189, 248, 0.5);
    transform: rotateY(180deg);
}

.reveal-card:hover .reveal-front {
    transform: rotateY(-180deg);
}

.reveal-card:hover .reveal-back {
    transform: rotateY(0deg);
}

.reveal-letter {
    font-size: 6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #38BDF8 0%, #22C55E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.reveal-letter-small {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #38BDF8 0%, #22C55E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.reveal-back h3 {
    font-size: 1.75rem;
    color: #E5E7EB;
    margin-bottom: 1rem;
    text-align: center;
}

.reveal-back p {
    color: #9CA3AF;
    line-height: 1.6;
    text-align: center;
    font-size: 0.95rem;
}

/* ================================
   ABOUT SECTION
   ================================ */

.about {
    background: #020617;
    padding: 4rem 0;
}

.about-split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-split-left h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #38BDF8 0%, #22C55E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-intro {
    font-size: 1.25rem;
    color: #9CA3AF;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.about-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: #E5E7EB;
    font-size: 1.05rem;
}

.feature-check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #38BDF8 0%, #22C55E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #020617;
    font-weight: 700;
    font-size: 0.875rem;
}

.feature-item strong {
    color: #E5E7EB;
}

.about-image-placeholder {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(34, 197, 94, 0.1) 100%);
    border: 2px dashed rgba(56, 189, 248, 0.3);
    border-radius: 1.5rem;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.placeholder-icon i {
    width: 80px;
    height: 80px;
    color: rgba(56, 189, 248, 0.4);
    margin-bottom: 1rem;
}

.about-image-placeholder p {
    color: #9CA3AF;
    font-size: 0.95rem;
}

.about-quote {
    background: rgba(11, 17, 32, 0.6);
    border-left: 4px solid #38BDF8;
    border-radius: 0.5rem;
    padding: 1.5rem;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 5rem;
    color: rgba(56, 189, 248, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.about-quote p {
    color: #9CA3AF;
    font-size: 1.05rem;
    line-height: 1.7;
    font-style: italic;
    position: relative;
    z-index: 1;
}

/* ================================
   STATS SECTION
   ================================ */

.stats {
    background: linear-gradient(180deg, #020617 0%, #0B1120 50%, #020617 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .stats-grid {
        /* Optimize rendering on mobile */
        contain: layout style paint;
        content-visibility: auto;
    }
}

.stat-box {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.05) 0%, rgba(34, 197, 94, 0.05) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.stat-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 2px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(34, 197, 94, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.stat-box::after {
    content: '';
    position: absolute;
    inset: -100%;
    background: linear-gradient(45deg, transparent 30%, rgba(56, 189, 248, 0.1) 50%, transparent 70%);
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.8s ease;
}

.stat-box:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(56, 189, 248, 0.3), 
                0 0 40px rgba(34, 197, 94, 0.2);
}

.stat-box:hover::before {
    opacity: 1;
}

.stat-box:hover::after {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

.stat-number {
    font-size: 4.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #38BDF8 0%, #22C55E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 40px rgba(56, 189, 248, 0.3);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-box:hover .stat-number {
    transform: scale(1.15);
}

.stat-text {
    font-size: 1rem;
    color: #9CA3AF;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    line-height: 1.4;
    max-width: 200px;
}

.stat-box:hover .stat-text {
    color: #E5E7EB;
}

/* ================================
   CONTACT SECTION
   ================================ */

.contact {
    background: linear-gradient(180deg, #020617 0%, #0B1120 100%);
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    background: rgba(11, 17, 32, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 1rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #E5E7EB;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #020617;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 0.5rem;
    color: #E5E7EB;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    appearance: none;
    cursor: pointer;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2338BDF8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

.form-group select option {
    background: #0B1120;
    color: #E5E7EB;
    padding: 0.75rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #38BDF8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Form validation styles */
.form-group input.error,
.form-group textarea.error {
    border-color: #EF4444;
    background: rgba(239, 68, 68, 0.05);
}

.form-group input.success,
.form-group textarea.success {
    border-color: #22C55E;
    background: rgba(34, 197, 94, 0.05);
}

.error-message {
    display: block;
    color: #EF4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
}

.char-count {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    color: #9CA3AF;
    margin-top: 0.25rem;
}

/* Honeypot field (hidden from users, visible to bots) */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.contact-form button {
    width: 100%;
    margin-top: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loader {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Form messages */
.form-message {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-top: 1.5rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22C55E;
}

.error-message-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

.form-message p {
    margin: 0;
    line-height: 1.5;
}

.contact-info {
    text-align: center;
    padding: 1.5rem;
}

.direct-contact {
    color: #9CA3AF;
    font-size: 1.05rem;
}

.direct-contact a {
    color: #38BDF8;
    font-weight: 600;
    transition: color 0.3s ease;
}

.direct-contact a:hover {
    color: #22C55E;
}

/* ================================
   FOOTER
   ================================ */

.footer {
    background: #0B1120;
    border-top: 1px solid rgba(56, 189, 248, 0.1);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.footer-section h3 {
    color: #E5E7EB;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: #E5E7EB;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #9CA3AF;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-section ul li a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #38BDF8;
}

.footer-copy {
    color: #9CA3AF;
    text-align: center;
    font-size: 0.9rem;
}

/* ================================
   PILLARS MOBILE VERSIONS
   ================================ */

/* Hide/Show logic */
.pillars-desktop {
    display: block;
}

.pillars-mobile {
    display: none;
}

.pillars-subtitle-mobile {
    display: none;
}

.pillars-subtitle-desktop {
    display: block;
}

/* Timeline Version */
.mobile-timeline {
    position: relative;
    padding-left: 3rem;
}

.mobile-timeline::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 30px;
    bottom: 30px;
    width: 2px;
    background: linear-gradient(180deg, #38BDF8 0%, #22C55E 100%);
}

.mobile-timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.mobile-timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -3rem;
    top: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #38BDF8 0%, #22C55E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #020617;
    box-shadow: 0 0 0 4px #020617;
}

.timeline-content {
    background: #0B1120;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 1rem;
    padding: 1.25rem;
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #E5E7EB;
}

.timeline-content p {
    color: #9CA3AF;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* ================================
   ANIMATIONS
   ================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 968px) {
    .about-split-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    /* Mobile visual flow and continuity */
    section {
        padding: 3rem 0;
        position: relative;
    }

    /* Subtle gradient separators between sections */
    section:not(.hero):not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        height: 1px;
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(56, 189, 248, 0.2) 50%, 
            transparent 100%);
    }

    .container {
        padding: 0 1.5rem;
    }

    .section-header {
        margin-bottom: 2rem;
        text-align: center;
    }

    .section-header h2 {
        font-size: 2rem;
        position: relative;
        display: inline-block;
    }

    /* Add subtle accent to section titles on mobile */
    .section-header h2::before {
        content: '';
        position: absolute;
        bottom: -0.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: linear-gradient(90deg, #38BDF8, #22C55E);
        border-radius: 2px;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-top: 1rem;
        opacity: 0.9;
    }

    .hero {
        padding: 5rem 0 3rem;
        margin-bottom: 0;
    }

    .hero-title {
        font-size: 2.75rem;
        line-height: 1.15;
        margin-top: 1.5rem;
    }

    /* Mobile performance optimization */
    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* Pillars mobile versions */
    .pillars-desktop {
        display: none;
    }

    .pillars-mobile {
        display: block;
    }

    .pillars-subtitle-desktop {
        display: none;
    }

    .pillars-subtitle-mobile {
        display: block;
    }

    /* Show only timeline version */
    .pillars-mobile-v3 {
        display: block;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 2rem;
        line-height: 1.6;
    }

    .hero-ctas {
        gap: 1rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* About section mobile flow */
    .about-split {
        margin-top: 1.5rem;
    }

    .about-split-left,
    .about-split-right {
        padding: 0;
    }

    .about-split-left h2 {
        font-size: 2rem;
        text-align: center;
    }

    .about-intro {
        font-size: 1.05rem;
        text-align: center;
        margin-bottom: 2rem;
    }

    .about-features {
        margin-top: 2rem;
    }

    .feature-item {
        font-size: 0.95rem;
        padding: 0.75rem 0;
    }

    .about-split-right {
        margin-top: 2rem;
    }

    /* Services Grid Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon i {
        width: 30px;
        height: 30px;
    }

    .service-number {
        font-size: 2.5rem;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }

    .services-carousel-wrapper {
        padding: 0 20px;
    }

    .services-nav {
        width: 40px;
        height: 40px;
    }

    .services-nav i {
        width: 20px;
        height: 20px;
    }

    .service-card {
        padding: 2rem;
    }

    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon i {
        width: 30px;
        height: 30px;
    }

    .service-number {
        font-size: 2.5rem;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.375rem;
    }

    .service-description {
        font-size: 0.95rem;
    }

    .service-features li {
        font-size: 0.9rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(2, 6, 23, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        padding: 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
        border-bottom: 1px solid rgba(56, 189, 248, 0.2);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        font-size: 1.125rem;
        padding: 0.75rem 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .btn-cta.btn-small {
        display: none;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .hero-ctas a {
        width: 100%;
        text-align: center;
    }

    .carousel-container {
        padding: 0 1rem;
        cursor: grab;
        margin-top: 1.5rem;
    }
    
    .carousel-container:active {
        cursor: grabbing;
    }

    .carousel-nav {
        display: none;
    }

    .carousel-card {
        max-width: 100%;
        padding: 2rem 1.5rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    .carousel-icon i {
        width: 50px;
        height: 50px;
    }

    .carousel-number {
        font-size: 3rem;
        top: 1rem;
        right: 1rem;
    }

    .carousel-dots {
        bottom: 1rem;
        gap: 0.5rem;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .reveal-grid {
        grid-template-columns: 1fr;
    }

    .reveal-card {
        height: 300px;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-top: 1.5rem;
    }

    .contact-info {
        order: 2;
        padding-top: 2rem;
        border-top: 1px solid rgba(56, 189, 248, 0.2);
    }

    .contact-form {
        padding: 1.5rem;
        order: 1;
    }

    /* Footer mobile flow */
    .footer {
        margin-top: 2rem;
        padding-top: 3rem;
        position: relative;
    }

    .footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        height: 1px;
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(56, 189, 248, 0.3) 50%, 
            transparent 100%);
    }

    .footer-content {
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    section {
        padding: 3rem 0;
    }

    .hero {
        padding: 4rem 0 3rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .carousel-card {
        padding: 1.5rem;
    }

    .carousel-card h3 {
        font-size: 1.5rem;
    }

    .carousel-number {
        font-size: 2.5rem;
    }

    .carousel-description {
        font-size: 0.9rem;
    }

    .carousel-features {
        margin-top: 1rem;
    }

    .carousel-features li {
        font-size: 0.85rem;
    }

    .stats {
        padding: 2.5rem 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 1.5rem;
    }

    .stat-box {
        padding: 2rem 1rem;
        min-height: 160px;
        /* Disable heavy animations on mobile for better performance */
        transform: none !important;
        box-shadow: 0 2px 15px rgba(56, 189, 248, 0.1);
    }

    .stat-box::before,
    .stat-box::after {
        /* Remove pseudo-elements on mobile to improve scroll performance */
        display: none;
    }

    .stat-box:hover {
        transform: none;
        box-shadow: 0 10px 30px rgba(56, 189, 248, 0.2);
    }

    .stat-number {
        font-size: 3.5rem;
    }

    .stat-text {
        font-size: 0.9rem;
        max-width: 180px;
    }

    .pillars-grid {
        gap: 1rem;
    }

    .reveal-card {
        height: 280px;
    }

    .reveal-letter {
        font-size: 4rem;
    }

    .reveal-back h3 {
        font-size: 1.25rem;
    }

    .reveal-back p {
        font-size: 0.85rem;
    }

    .about-split-left h2 {
        font-size: 1.75rem;
    }

    .about-intro {
        font-size: 1rem;
    }

    .feature-item {
        font-size: 0.9rem;
    }

    .about-image-placeholder {
        height: 250px;
    }

    .about-quote {
        padding: 1.25rem;
    }

    .about-quote p {
        font-size: 0.95rem;
    }

    .contact-form {
        padding: 1.25rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.95rem;
        padding: 0.75rem;
    }

    .btn-submit {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }

    .footer-content {
        gap: 2rem;
    }

    .footer-section h3 {
        font-size: 1.125rem;
    }

    .footer-links a,
    .footer-contact p {
        font-size: 0.9rem;
    }

    .pillar-letter {
        font-size: 3rem;
    }
}
