/* MODERN GLOBAL THEME */
:root {
    --primary: #00F0FF;
    --primary-glow: rgba(0, 240, 255, 0.4);
    --secondary: #7B61FF;
    --accent: #FF4D8D;
    --dark: #0A0F1C;
    --darker: #05070D;
    --light-bg: #1A1F2E;
    --card-bg: rgba(30, 35, 50, 0.8);
    --text: #FFFFFF;
    --text-light: #B8C2D9;
    --text-lighter: #8A94A8;
    
    --gradient-primary: linear-gradient(135deg, #00F0FF 0%, #7B61FF 100%);
    --gradient-hero: linear-gradient(135deg, #00111F 0%, #1A1F2E 50%, #04203D 100%);
    --gradient-card: linear-gradient(135deg, rgba(30, 35, 50, 0.9) 0%, rgba(20, 25, 40, 0.9) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    
    --border: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.06);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 16px 48px rgba(0, 240, 255, 0.2);
    --shadow-glow: 0 0 40px rgba(0, 240, 255, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif; 
    background: var(--dark); 
    color: var(--text); 
    line-height: 1.7;
    overflow-x: hidden;
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* CONTAINER */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* MODERN NAVIGATION */
.header { 
    background: rgba(10, 15, 28, 0.9);
    backdrop-filter: blur(20px);
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(5, 7, 13, 0.95);
    box-shadow: var(--shadow);
}

.logo { 
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links a {
    text-decoration: none; 
    color: var(--text-light);
    font-weight: 500;
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.nav-links a:hover { 
    color: var(--text);
    background: var(--gradient-glass);
    transform: translateY(-2px);
}

.nav-links a.active {
    color: var(--text);
    background: var(--gradient-glass);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.nav-links a.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px 2px 0 0;
}

/* HAMBURGER */
.hamburger { 
    display: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    color: var(--text-light);
}

.hamburger:hover {
    background: var(--gradient-glass);
    color: var(--text);
}

/* MODERN HERO SECTION */
.hero-section {
    background: var(--gradient-hero);
    padding: 180px 20px 140px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(123, 97, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 240, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 77, 141, 0.05) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

.hero-section.small-hero {
    min-height: 50vh;
    padding: 140px 20px 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-section h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    color: white;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-section h1 .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.hero-section p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
    font-weight: 400;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 18px 36px;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary { 
    background: var(--gradient-primary);
    color: var(--darker);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover { 
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-outline { 
    border: 2px solid var(--border); 
    color: var(--text);
    background: var(--gradient-glass);
    backdrop-filter: blur(10px);
}

.btn-outline:hover { 
    border-color: var(--primary);
    background: rgba(0, 240, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 240, 255, 0.2);
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

/* SECTION TITLES */
.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 80px;
    color: white;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* STABLE CARD GRID - No Shaking */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    margin: 80px 0;
}

.card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    padding: 50px 40px;
    text-align: center;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card-content {
    position: relative;
    z-index: 2;
}

/* Stable hover effect - no scale, less movement */
.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 240, 255, 0.3);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: var(--gradient-glass);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

/* Gentle icon animation on hover */
.card:hover .card-icon {
    background: rgba(0, 240, 255, 0.1);
    transform: scale(1.05);
}

.card h3 {
    margin-bottom: 20px;
    font-size: 1.6rem;
    color: white;
    font-weight: 700;
}

.card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Gentle entrance animation for cards */
@keyframes gentleAppear {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: gentleAppear 0.6s ease-out;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }

/* MODERN CONTENT SECTIONS */
.content-section {
    padding: 120px 0;
    position: relative;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(123, 97, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(0, 240, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.contact-info {
    text-align: center;
    font-size: 1.4rem;
    line-height: 2.2;
    margin: 60px 0;
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    padding: 60px 40px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
}

.contact-info b {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Feature List */
.feature-list {
    list-style: none;
    max-width: 800px;
    margin: 40px auto;
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
}

.feature-list li {
    padding: 16px 0;
    font-size: 1.2rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-light);
    position: relative;
    padding-left: 40px;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.3rem;
}

/* MODERN FOOTER */
.footer {
    text-align: center; 
    padding: 60px 0; 
    border-top: 1px solid var(--border);
    margin-top: 120px;
    color: var(--text-light);
    background: var(--darker);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .hero-section h1 {
        font-size: 3.2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-links { 
        display: none; 
        position: fixed;
        top: 80px;
        left: 20px;
        right: 20px;
        background: rgba(10, 15, 28, 0.95);
        backdrop-filter: blur(30px);
        padding: 30px;
        flex-direction: column;
        gap: 15px;
        border-radius: var(--radius-xl);
        border: 1px solid var(--border);
        box-shadow: var(--shadow);
        z-index: 1001;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger { 
        display: block; 
    }
    
    .hero-section {
        padding: 160px 20px 100px;
        min-height: auto;
    }
    
    .hero-section.small-hero {
        padding: 140px 20px 60px;
        min-height: auto;
    }
    
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .hero-section p {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
        justify-content: center;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 60px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin: 60px 0;
    }
    
    .card {
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        font-size: 1.2rem;
        padding: 40px 20px;
    }
    
    .feature-list {
        padding: 30px 20px;
    }
    
    .feature-list li {
        font-size: 1.1rem;
        padding-left: 30px;
    }
}

/* Force consistent logo styling across all pages */
.header .logo,
.nav .logo,
.container .logo,
.logo {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.8rem !important;
    background: linear-gradient(135deg, #00F0FF 0%, #7B61FF 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    letter-spacing: -0.5px !important;
}