/* Global Styles */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --cyan: #06b6d4;
    --purple: #a855f7;
    --green: #10b981;
    --yellow: #eab308;
    --red: #ef4444;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 4px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--slate-900);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Morphism Effect */
.glass-morphism {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--slate-900);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.nav-logo .logo {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--gray-300);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

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

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--slate-900) 0%, #1e3a8a 50%, var(--slate-800) 100%);
    animation: gradientShift 15s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.particle-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title-emphasis {
    color: var(--white);
    display: inline-block;
    animation: pulse 3s ease-in-out infinite;
}

.hero-description {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    color: var(--gray-300);
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-tagline {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cyan);
    margin-bottom: 3rem;
    animation: pulse 4s ease-in-out infinite;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
    letter-spacing: 0.5px;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 2px solid var(--primary);
    backdrop-filter: blur(10px);
}

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

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Floating Elements */
.floating-element {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    animation: floatRotate 20s ease-in-out infinite;
    filter: blur(40px);
    opacity: 0.3;
}

.floating-element:nth-child(1) {
    background: linear-gradient(45deg, var(--primary), var(--cyan));
    width: 120px;
    height: 120px;
    animation-duration: 25s;
}

.floating-element:nth-child(2) {
    background: linear-gradient(45deg, var(--cyan), var(--purple));
    animation-delay: 8s;
    animation-duration: 30s;
}

.floating-element:nth-child(3) {
    background: linear-gradient(45deg, var(--purple), var(--primary));
    width: 100px;
    height: 100px;
    animation-delay: 16s;
    animation-duration: 35s;
}

/* Sections */
section {
    padding: 5rem 0;
}

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

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: var(--white);
    letter-spacing: -0.02em;
    font-weight: 800;
}

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

/* About Section */
.about {
    background-color: rgba(30, 41, 59, 0.5);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-card {
    padding: 3rem;
    text-align: center;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.about-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(168, 85, 247, 0.05));
    border-radius: 1rem;
    transform: translateZ(-10px);
    opacity: 0;
    transition: opacity 0.3s;
}

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

.about-card:hover {
    transform: perspective(1000px) rotateY(5deg) rotateX(-5deg);
}

.about-logo {
    width: 200px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 6s ease-in-out infinite;
}

.about-card:hover .about-logo {
    transform: scale(1.1) rotateY(360deg);
    filter: drop-shadow(0 20px 40px rgba(59, 130, 246, 0.4));
}

.about-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.etymology p {
    font-size: 1.125rem;
    color: var(--gray-300);
    margin-bottom: 0.75rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.etymology p:nth-child(1) { animation-delay: 0.2s; }
.etymology p:nth-child(2) { animation-delay: 0.4s; }
.etymology p:nth-child(3) { animation-delay: 0.6s; }

.etymology span {
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.etymology span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--cyan));
    transition: width 0.3s ease;
}

.about-card:hover .etymology span::after {
    width: 100%;
}

.about-vision h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-vision p {
    font-size: 1.125rem;
    color: var(--gray-300);
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--gray-300);
}

.bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
    position: relative;
}

.stat-item {
    text-align: center;
    position: relative;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.05));
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--primary) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.stat-item:hover::before {
    opacity: 0.1;
}

.stat-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

.stat-item h4 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--white), var(--gray-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.stat-item:hover h4 {
    transform: scale(1.1);
}

.stat-item p {
    color: var(--gray-400);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

/* Animated counter effect */
.stat-counter {
    display: inline-block;
}

/* Mission Card */
.mission-card {
    padding: 4rem;
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), var(--cyan), var(--purple), var(--primary));
    background-size: 300% 300%;
    border-radius: 1rem;
    opacity: 0.5;
    z-index: -1;
    animation: gradientShift 4s ease infinite;
}

.mission-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--slate-900);
    border-radius: 0.9rem;
    z-index: -1;
}

.mission-card h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--primary), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.mission-card p {
    font-size: 1.25rem;
    color: var(--gray-300);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    position: relative;
}

/* Floating mission icons */
.mission-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.mission-icon {
    position: absolute;
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.1;
    animation: floatIcon 20s ease-in-out infinite;
}

.mission-icon:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.mission-icon:nth-child(2) { right: 15%; top: 30%; animation-delay: 5s; }
.mission-icon:nth-child(3) { left: 20%; bottom: 25%; animation-delay: 10s; }
.mission-icon:nth-child(4) { right: 10%; bottom: 20%; animation-delay: 15s; }

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0; }
    25% { opacity: 0.2; }
    50% { transform: translateY(-30px) rotate(180deg); opacity: 0.1; }
    75% { opacity: 0.2; }
}

/* Journey Section */
.journey-section {
    margin-top: 5rem;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.journey-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1), transparent 50%);
    animation: journeyGlow 8s ease-in-out infinite;
}

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

.journey-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    background: linear-gradient(45deg, var(--primary), var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.journey-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Curved path background */
.journey-path {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 200px;
    transform: translateY(-50%);
    overflow: hidden;
    z-index: 0;
}

.journey-path svg {
    width: 100%;
    height: 100%;
}

.journey-path-line {
    fill: none;
    stroke: url(#journeyGradient);
    stroke-width: 2;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawPath 2s ease-out forwards;
}

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

.journey-progress-bar {
    position: absolute;
    top: 80px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    z-index: 0;
    overflow: hidden;
}

.journey-progress-bar::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.journey-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--cyan), var(--purple));
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    position: relative;
}

.journey-progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 12px;
    height: 12px;
    background: var(--white);
    border-radius: 50%;
    transform: translate(50%, -50%);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.journey-items {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 1;
    padding: 0 5%;
}

.journey-item {
    flex: 1;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.journey-item::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2));
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.journey-item.active::before {
    opacity: 1;
}

.journey-marker {
    position: relative;
    margin-bottom: 2rem;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.journey-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.journey-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--cyan), var(--purple));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.journey-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--slate-900);
    z-index: -1;
}

.journey-icon i {
    font-size: 2.5rem;
    color: var(--gray-400);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3));
}

/* Floating particles around active icon */
.journey-particles {
    position: absolute;
    inset: -30px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.journey-item.active .journey-particles {
    opacity: 1;
}

.journey-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    animation: floatParticle 4s ease-in-out infinite;
}

.journey-particle:nth-child(1) {
    top: 0;
    left: 50%;
    animation-delay: 0s;
}

.journey-particle:nth-child(2) {
    top: 50%;
    right: 0;
    animation-delay: 1s;
}

.journey-particle:nth-child(3) {
    bottom: 0;
    left: 50%;
    animation-delay: 2s;
}

.journey-particle:nth-child(4) {
    top: 50%;
    left: 0;
    animation-delay: 3s;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(0, -10px) scale(1);
        opacity: 1;
    }
}

.journey-year {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--gray-400), var(--gray-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 1px;
}

.journey-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1rem;
    position: relative;
}

.journey-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transform: translateX(-50%);
    transition: width 0.5s ease;
}

.journey-item.active .journey-content::before,
.journey-item:hover .journey-content::before {
    width: 100px;
}

.journey-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-weight: 700;
}

.journey-content p {
    font-size: 1rem;
    color: var(--gray-300);
    max-width: 250px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Active state */
.journey-item.active .journey-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.05));
    border-color: transparent;
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15),
                0 0 30px rgba(59, 130, 246, 0.2);
}

.journey-item.active .journey-icon::before {
    opacity: 1;
    animation: rotateGradient 3s linear infinite;
}

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

.journey-item.active .journey-icon i {
    color: var(--white);
    transform: scale(1.2);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.journey-item.active .journey-year {
    background: linear-gradient(45deg, var(--primary), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.1);
}

.journey-item.active .journey-content {
    opacity: 1;
    transform: translateY(0);
}

.journey-item.active .journey-marker {
    animation: float 3s ease-in-out infinite;
}

/* Hover effects */
.journey-item:hover .journey-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(6, 182, 212, 0.1));
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.2);
}

.journey-item:hover .journey-icon i {
    color: var(--primary);
    transform: rotateY(360deg);
}

.journey-item:hover .journey-year {
    transform: scale(1.05);
}

.journey-item:hover .journey-content {
    opacity: 1;
    transform: translateY(0);
}

/* Ring pulse animation for active icon */
.journey-item.active .journey-marker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ringPulse 2s ease-out infinite;
}

@keyframes ringPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Services Section */
.services {
    background-color: rgba(30, 41, 59, 0.5);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    animation: servicesGlow 10s ease-in-out infinite alternate;
}

@keyframes servicesGlow {
    0% { opacity: 0.1; transform: scale(1); }
    100% { opacity: 0.2; transform: scale(1.05); }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    position: relative;
    z-index: 1;
    padding: 2rem 0;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Network connections */
.services-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(to right, rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.3;
    z-index: -1;
}

.service-card {
    padding: 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    min-height: 320px;
    opacity: 1 !important;
    overflow: visible;
    transform-style: preserve-3d;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    flex-direction: column;
}

/* Connection dots */
.service-card::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
    z-index: 10;
}

.service-card:not(:nth-child(3n))::after {
    opacity: 0.5;
}

.service-card:hover::after {
    opacity: 1;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Service card number overlay */
.service-card-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(59, 130, 246, 0.1);
    transition: all 0.5s ease;
    font-family: 'Inter', monospace;
}

.service-card:hover .service-card-number {
    color: rgba(59, 130, 246, 0.2);
    transform: scale(1.1);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(59, 130, 246, 0.1);
}

/* Service card inner glow */
.service-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.service-card:hover .service-glow {
    opacity: 1;
    animation: orbit 4s linear infinite;
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--white);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
    transition: all 0.3s ease;
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* Individual icon animations */
.service-card:nth-child(1) .service-icon { animation: float 3s ease-in-out infinite; }
.service-card:nth-child(2) .service-icon { animation: float 3s ease-in-out 0.5s infinite; }
.service-card:nth-child(3) .service-icon { animation: float 3s ease-in-out 1s infinite; }
.service-card:nth-child(4) .service-icon { animation: float 3s ease-in-out 1.5s infinite; }
.service-card:nth-child(5) .service-icon { animation: float 3s ease-in-out 2s infinite; }
.service-card:nth-child(6) .service-icon { animation: float 3s ease-in-out 2.5s infinite; }

.bg-primary { background: var(--primary); }
.bg-cyan { background: var(--cyan); }
.bg-purple { background: var(--purple); }
.bg-green { background: var(--green); }
.bg-yellow { background: var(--yellow); }
.bg-red { background: var(--red); }

.service-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    color: var(--white) !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--cyan));
    transition: width 0.3s ease;
}

.service-card:hover h3::after {
    width: 100%;
}

.service-card p {
    color: var(--gray-300) !important;
    line-height: 1.8;
    margin: 0;
    font-size: 1rem;
    opacity: 1 !important;
    visibility: visible !important;
    transition: all 0.3s ease;
    position: absolute;
    left: 2rem;
    right: 2rem;
    bottom: 2rem;
}

.service-card:hover p {
    opacity: 0 !important;
    transform: translateY(-10px);
}

/* Service features list */
.service-features {
    position: absolute;
    left: 2rem;
    right: 2rem;
    bottom: 2rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    z-index: 2;
    pointer-events: none;
    transform: translateY(10px);
}

.service-card:hover .service-features {
    opacity: 1;
    transform: translateY(0);
}

.service-features span {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.service-card:hover .service-features span {
    animation: featureSlide 0.4s ease-out forwards;
    opacity: 0;
}

.service-card:hover .service-features span:nth-child(1) { animation-delay: 0.15s; }
.service-card:hover .service-features span:nth-child(2) { animation-delay: 0.25s; }
.service-card:hover .service-features span:nth-child(3) { animation-delay: 0.35s; }

/* Color coding for different services */
.service-card:nth-child(1) .service-features span { background: rgba(59, 130, 246, 0.2); border-color: rgba(59, 130, 246, 0.3); }
.service-card:nth-child(2) .service-features span { background: rgba(6, 182, 212, 0.2); border-color: rgba(6, 182, 212, 0.3); }
.service-card:nth-child(3) .service-features span { background: rgba(168, 85, 247, 0.2); border-color: rgba(168, 85, 247, 0.3); }
.service-card:nth-child(4) .service-features span { background: rgba(16, 185, 129, 0.2); border-color: rgba(16, 185, 129, 0.3); }
.service-card:nth-child(5) .service-features span { background: rgba(234, 179, 8, 0.2); border-color: rgba(234, 179, 8, 0.3); }
.service-card:nth-child(6) .service-features span { background: rgba(239, 68, 68, 0.2); border-color: rgba(239, 68, 68, 0.3); }

/* Ensure proper layering on hover */
.service-card {
    z-index: 1;
}

.service-card:hover {
    z-index: 10;
}

/* Mobile: Always show features */
@media (max-width: 768px) {
    .service-card p {
        position: static;
        margin-bottom: 1rem;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .service-features {
        position: static;
        opacity: 1;
        transform: none;
        margin-top: 0.5rem;
    }
    
    .service-card:hover p {
        opacity: 1 !important;
    }
}

/* Benefits Section */
.benefits {
    position: relative;
    overflow: hidden;
}

.benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(59, 130, 246, 0.05) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(168, 85, 247, 0.05) 50%, transparent 70%);
    animation: benefitsMove 20s linear infinite;
}

@keyframes benefitsMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, -50px); }
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

/* Alternate icon colors */
.benefit-card:nth-child(1) .benefit-icon { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.benefit-card:nth-child(2) .benefit-icon { background: linear-gradient(135deg, var(--cyan), #0891b2); }
.benefit-card:nth-child(3) .benefit-icon { background: linear-gradient(135deg, var(--green), #059669); }
.benefit-card:nth-child(4) .benefit-icon { background: linear-gradient(135deg, var(--purple), #9333ea); }
.benefit-card:nth-child(5) .benefit-icon { background: linear-gradient(135deg, var(--yellow), #d97706); }
.benefit-card:nth-child(6) .benefit-icon { background: linear-gradient(135deg, var(--red), #dc2626); }

.benefit-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.benefit-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
    opacity: 0;
    transition: all 0.5s ease;
}

.benefit-card:hover::after {
    opacity: 1;
    transform: translate(20%, -20%);
}

.benefit-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border-color: var(--primary);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(59, 130, 246, 0.1);
}

.benefit-number {
    font-size: 5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.8;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: all 0.5s ease;
    position: relative;
}

.benefit-card:hover .benefit-number {
    transform: scale(1.1) rotate(-5deg);
    opacity: 1;
}

.benefit-number::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--cyan));
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.benefit-card:hover .benefit-number::after {
    transform: scaleX(1);
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.benefit-card p {
    color: var(--gray-300);
    line-height: 1.8;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

/* Benefit number indicator */
.benefit-indicator {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-400);
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-indicator {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--primary);
    transform: scale(1.1);
}

.benefit-card:hover p {
    color: var(--gray-200);
}

/* Benefit icon */
.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: var(--white);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
}

.benefit-card:hover .benefit-icon {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.35);
}

/* Contact Section */
.contact {
    background-color: rgba(30, 41, 59, 0.5);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 50%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

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

.contact-item i {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.contact-item:hover i {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

.contact-item .label {
    font-size: 0.875rem;
    color: var(--gray-400);
}

.contact-item .value {
    font-weight: 600;
}

.contact-item .sublabel {
    font-size: 0.875rem;
    color: var(--gray-300);
}

.contact-card {
    padding: 3rem;
    margin-top: 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.contact-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.contact-logo {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-card:hover .contact-logo {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--gray-300);
}

/* Form Styles */
.contact-form {
    padding: 3rem;
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), var(--cyan), var(--purple));
    border-radius: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.contact-form:hover::before {
    opacity: 0.15;
}

.contact-form::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--slate-900);
    border-radius: 0.9rem;
    z-index: -1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    position: absolute;
    left: 1.25rem;
    top: 1rem;
    color: var(--gray-400);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent 45%, var(--slate-900) 45%, var(--slate-900) 55%, transparent 55%);
    padding: 0 0.5rem;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.75rem;
    left: 1rem;
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: transparent;
}

.form-group textarea {
    resize: none;
}

/* Footer */
.footer {
    background: linear-gradient(to bottom, var(--slate-900), rgba(15, 23, 42, 0.98));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

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

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

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

.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: color 0.3s ease;
}

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

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid var(--primary);
    transform: translateY(-2px);
    color: var(--primary);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: var(--white);
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    border: none;
    border-radius: 0.5rem;
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.newsletter-form input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-400);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--slate-900);
    border-radius: 1rem;
    padding: 0;
    max-width: min(90vw, 800px);
    max-height: 90vh;
    width: auto;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.video-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 90vh;
}

.video-container h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.video-container p {
    color: var(--gray-400);
    margin-bottom: 2rem;
}

.demo-features {
    background: var(--slate-800);
    padding: 2rem;
    border-radius: 0.5rem;
}

.demo-features p {
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.demo-features ul {
    list-style: none;
    text-align: left;
    color: var(--gray-400);
}

.demo-features ul li {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--slate-900);
        flex-direction: column;
        justify-content: start;
        padding: 2rem;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        flex-direction: column !important;
    }

    .timeline-content {
        width: 100%;
        text-align: center !important;
    }

    .timeline-line {
        display: none;
    }

    .timeline-dot {
        position: relative;
        left: auto;
        transform: none;
        margin: 1rem auto;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Journey timeline mobile */
    .journey-section {
        padding: 3rem 0;
    }
    
    .journey-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }
    
    .journey-path {
        display: none;
    }
    
    .journey-items {
        flex-direction: column;
        gap: 2.5rem;
        padding: 0 1rem 0 60px;
    }
    
    .journey-progress-bar {
        top: 50px;
        left: 50px;
        right: auto;
        width: 4px;
        height: calc(100% - 100px);
    }
    
    .journey-progress-fill {
        width: 100%;
        height: 0%;
    }
    
    .journey-progress-fill::after {
        top: auto;
        bottom: 0;
        right: 50%;
        transform: translate(50%, 50%);
    }
    
    .journey-item {
        display: flex;
        align-items: flex-start;
        text-align: left;
    }
    
    .journey-item::before {
        display: none;
    }
    
    .journey-marker {
        margin-right: 1.5rem;
        margin-bottom: 0;
        min-width: 80px;
    }
    
    .journey-icon {
        width: 80px;
        height: 80px;
        margin-left: -40px;
    }
    
    .journey-icon i {
        font-size: 2rem;
    }
    
    .journey-year {
        font-size: 1.25rem;
    }
    
    .journey-content {
        opacity: 1;
        transform: none;
        padding: 0;
        flex: 1;
        padding-top: 10px;
    }
    
    .journey-content::before {
        display: none;
    }
    
    .journey-content h4 {
        font-size: 1.25rem;
    }
    
    .journey-content p {
        max-width: none;
        margin: 0;
        font-size: 0.875rem;
    }
    
    .journey-item.active .journey-icon {
        transform: scale(1.1);
    }
    
    .journey-item.active .journey-marker::before {
        display: none;
    }
}

/* Particle Hint - Subtle Version */
.particle-hint {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-400);
    font-size: 0.75rem;
    opacity: 0.4;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 3s both;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    z-index: 1;
}

.particle-hint:hover {
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.5);
}

.hint-icon {
    position: relative;
    width: 1.2rem;
    height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hint-icon i {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.hint-text {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.hint-action {
    font-weight: 500;
    color: var(--gray-400);
    font-size: 0.75rem;
}

/* Remove distracting animations */
@keyframes pulseGlow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.6; }
}

.hint-icon {
    animation: pulseGlow 3s ease-in-out infinite;
}

/* Mobile responsive for hint */
@media (max-width: 768px) {
    .particle-hint {
        bottom: 15px;
        right: 15px;
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .hint-icon {
        width: 1rem;
        height: 1rem;
    }
    
    .hint-icon i {
        font-size: 0.7rem;
    }
    
    .hint-action {
        font-size: 0.7rem;
    }
}

/* Utility Classes */
.text-primary { color: var(--primary); }
.text-cyan { color: var(--cyan); }
.text-purple { color: var(--purple); }

/* Enhanced Video Modal Styles */
.video-container video {
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: min(50vh, 400px);
    background: #000;
    border-radius: 1rem 1rem 0 0;
    flex-shrink: 0;
}

.video-info {
    padding: 1.5rem;
    text-align: center;
    color: white;
    background: var(--slate-800);
    flex-grow: 1;
    overflow-y: auto;
    max-height: 40vh;
}

.video-info h3 {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 700;
}

.video-info p {
    font-size: 0.9rem !important;
    margin-bottom: 1rem;
    color: var(--gray-300);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.demo-features {
    margin-top: 1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    max-width: 600px;
    margin: 0 auto;
}

.feature-tag {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    display: inline-block;
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* Mobile responsive for enhanced video modal */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        margin: 1rem;
    }
    
    .video-container video {
        max-height: min(40vh, 300px);
        min-height: 180px;
    }
    
    .video-info {
        padding: 1rem;
        max-height: 50vh;
    }
    
    .video-info h3 {
        font-size: 1.25rem !important;
    }
    
    .video-info p {
        font-size: 0.8rem !important;
        margin-bottom: 0.75rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
        margin-top: 0.75rem;
    }
    
    .feature-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .video-container video {
        max-height: min(35vh, 250px);
        min-height: 150px;
    }
    
    .video-info {
        padding: 0.75rem;
        max-height: 55vh;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }
}


/* Ensure close button is always visible on top of video */
.modal-content .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
}

@media (max-width: 768px) {
    .modal-content .modal-close {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
        top: 0.75rem;
        right: 0.75rem;
    }
}


/* Close button visibility animation */
.modal-close {
    animation: closeButtonFadeIn 0.3s ease-out 0.2s both;
}

@keyframes closeButtonFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
