/* Font face declarations */
@font-face {
    font-family: "Calibri";
    src: url("fonts/calibri-regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Neutra Text Book";
    src: url("fonts/Neutra Text Book.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables - Matching main project */
:root {
    /* Brand Palette */
    --color-primary: #181433;
    --color-secondary: #0096dc;
    --color-tertiary: #fdc700;
    
    /* Typography */
    --font-neutra: "Neutra Text Book", Arial, sans-serif;
    --font-calibri: "Calibri", Arial, sans-serif;
    
    /* Design system variables */
    --radius: 0.625rem;
    --background: var(--color-primary);
    --foreground: #fff;
    --muted-foreground: #b3b3b3;
    
    /* Glassmorphism settings */
    --glass-bg: rgba(24, 20, 51, 0.25);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-neutra);
    background-color: var(--color-primary);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero Section Layout */
.hero-container {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Enhanced Video Background */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    z-index: 1;
}

/* Multi-layered Gradient Overlays */
.gradient-overlay-1 {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 150, 220, 0.15) 0%, transparent 50%, rgba(24, 20, 51, 0.6) 100%);
    z-index: 2;
}

.gradient-overlay-2 {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(253, 199, 0, 0.1) 0%, transparent 50%, rgba(0, 150, 220, 0.1) 100%);
    z-index: 3;
}

.gradient-overlay-3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75%;
    background: linear-gradient(to bottom, transparent 0%, rgba(24, 20, 51, 0.9) 70%, var(--color-primary) 100%);
    z-index: 4;
    pointer-events: none;
}

/* Animated Particles */
.particles-container {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    z-index: 5;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle-1 {
    width: 8px;
    height: 8px;
    background: var(--color-secondary);
    top: 25%;
    left: 25%;
    animation-delay: 0s;
}

.particle-2 {
    width: 4px;
    height: 4px;
    background: var(--color-tertiary);
    top: 33%;
    right: 33%;
    animation-delay: 1s;
}

.particle-3 {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    bottom: 33%;
    left: 20%;
    animation-delay: 0.5s;
}

.particle-4 {
    width: 4px;
    height: 4px;
    background: rgba(0, 150, 220, 0.6);
    top: 50%;
    right: 25%;
    animation-delay: 0.7s;
}

.particle-5 {
    width: 5px;
    height: 5px;
    background: var(--color-tertiary);
    bottom: 40%;
    right: 40%;
    animation-delay: 1.2s;
}

/* Hero Content */
.hero-content {
    position: relative;
    max-width: 1000px;
    width: 100%;
    padding: 1rem 2rem;
    z-index: 10;
}

/* Glassmorphism Card */
.glassmorphism-card {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(24, 20, 51, 0.3) 0%, 
        rgba(0, 150, 220, 0.1) 25%, 
        rgba(24, 20, 51, 0.25) 50%, 
        rgba(253, 199, 0, 0.05) 75%, 
        rgba(24, 20, 51, 0.3) 100%);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 3rem 2rem;
    opacity: 0.98;
    text-align: center;
}

/* Floating Accent Elements */
.accent-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    animation: pulse 2s ease-in-out infinite;
}

.accent-1 {
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, rgba(0, 150, 220, 0.4) 0%, rgba(0, 150, 220, 0.1) 70%, transparent 100%);
    top: -8px;
    left: 33%;
    animation-delay: 0s;
}

.accent-2 {
    width: 24px;
    height: 24px;
    background: radial-gradient(circle, rgba(253, 199, 0, 0.4) 0%, rgba(253, 199, 0, 0.1) 70%, transparent 100%);
    bottom: -12px;
    right: 33%;
    animation-delay: 0.5s;
}

/* Logo Section */
.logo-section {
    margin-bottom: 2rem;
}

.main-logo {
    width: 96px;
    height: 96px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* Title Section */
.title-section {
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-neutra);
    font-weight: bold;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.title-line-1 {
    display: block;
    margin-bottom: 0.5rem;
}

.title-line-2 {
    display: block;
}

.text-accent {
    color: var(--color-tertiary);
    text-shadow: 0 2px 8px rgba(253, 199, 0, 0.3);
}

/* Description Section */
.description-section {
    margin-bottom: 3rem;
}

.hero-description {
    font-family: var(--font-calibri);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
}

/* Progress Section */
.progress-section {
    margin: 2.5rem 0;
}

.progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-container:hover .progress-bar {
    transform: scale(1.02);
    box-shadow: 
        inset 0 2px 6px rgba(0,0,0,0.25),
        0 2px 8px rgba(255, 255, 255, 0.15),
        0 0 20px rgba(0, 150, 220, 0.2);
}

.progress-container:hover .progress-fill {
    box-shadow: 
        0 0 30px rgba(0, 150, 220, 0.6),
        0 0 50px rgba(24, 20, 51, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    animation-duration: 2s;
}

.progress-bar {
    width: 100%;
    max-width: 450px;
    height: 12px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.12) 50%, 
        rgba(255, 255, 255, 0.08) 100%);
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    box-shadow: 
        inset 0 2px 6px rgba(0,0,0,0.25),
        0 1px 3px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--color-primary) 0%, 
        rgba(24, 20, 51, 0.9) 15%, 
        var(--color-secondary) 35%, 
        rgba(0, 150, 220, 0.9) 60%, 
        rgba(0, 150, 220, 0.8) 80%, 
        var(--color-secondary) 100%);
    border-radius: 25px;
    width: 85%;
    position: relative;
    animation: progress-shimmer 4s ease-in-out infinite;
    box-shadow: 
        0 0 20px rgba(0, 150, 220, 0.5),
        0 0 35px rgba(24, 20, 51, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 20%, 
        rgba(0, 150, 220, 0.4) 35%, 
        rgba(255, 255, 255, 0.8) 50%, 
        rgba(0, 150, 220, 0.4) 65%, 
        rgba(255, 255, 255, 0.2) 80%, 
        transparent 100%);
    border-radius: 25px;
    animation: shimmer-slide 3s ease-in-out infinite;
    filter: blur(0.5px);
}

.progress-text {
    font-family: var(--font-calibri);
    color: var(--color-secondary);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* CTA Section */
.cta-section {
    margin-top: 3rem;
}

.cta-subtitle {
    font-family: var(--font-calibri);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-weight: 400;
}

.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.8rem 3.5rem;
    background: linear-gradient(135deg, 
        var(--color-secondary) 0%, 
        rgba(0, 150, 220, 0.95) 25%, 
        rgba(0, 150, 220, 0.8) 50%, 
        rgba(24, 20, 51, 0.9) 75%, 
        var(--color-primary) 100%);
    color: white;
    text-decoration: none;
    border-radius: 60px;
    font-family: var(--font-neutra);
    font-weight: bold;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 10px 40px rgba(0, 150, 220, 0.4),
        0 6px 25px rgba(24, 20, 51, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    overflow: hidden;
    transform: translateY(0) scale(1);
}

.button-glow {
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, 
        rgba(0, 150, 220, 0.6) 0%, 
        rgba(24, 20, 51, 0.4) 25%, 
        rgba(0, 150, 220, 0.4) 50%, 
        rgba(24, 20, 51, 0.3) 75%, 
        rgba(0, 150, 220, 0.5) 100%);
    border-radius: 60px;
    opacity: 0.7;
    filter: blur(25px);
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    animation: gentle-pulse 4s ease-in-out infinite;
}

.button-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1;
}

.button-arrow {
    font-size: 1.4rem;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 
        0 15px 50px rgba(0, 150, 220, 0.5),
        0 8px 30px rgba(24, 20, 51, 0.4),
        0 3px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, 
        var(--color-primary) 0%, 
        rgba(24, 20, 51, 0.95) 25%, 
        rgba(0, 150, 220, 0.8) 50%, 
        rgba(0, 150, 220, 0.95) 75%, 
        var(--color-secondary) 100%);
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-button:hover .button-glow {
    opacity: 0.9;
    filter: blur(30px);
}

.cta-button:hover .button-arrow {
    transform: translateX(6px);
}

.cta-button:active {
    transform: translateY(-2px) scale(1.01);
    transition: all 0.1s ease;
}

/* Background Floating Elements */
.floating-bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    filter: blur(1px);
}

.element-1 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, 
        rgba(0, 150, 220, 0.15) 0%, 
        rgba(0, 150, 220, 0.08) 40%, 
        transparent 70%);
    top: 5%;
    left: 5%;
    animation: float-large 8s ease-in-out infinite;
}

.element-2 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, 
        rgba(253, 199, 0, 0.12) 0%, 
        rgba(253, 199, 0, 0.06) 40%, 
        transparent 70%);
    top: 55%;
    right: 10%;
    animation: float-medium 6s ease-in-out infinite reverse;
}

.element-3 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, 
        rgba(0, 150, 220, 0.1) 0%, 
        rgba(253, 199, 0, 0.05) 30%, 
        transparent 70%);
    bottom: 15%;
    left: 15%;
    animation: float-small 7s ease-in-out infinite;
}

.element-4 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, 
        rgba(253, 199, 0, 0.08) 0%, 
        rgba(0, 150, 220, 0.04) 40%, 
        transparent 70%);
    top: 30%;
    right: 30%;
    animation: float-medium 9s ease-in-out infinite;
}

/* Enhanced Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

@keyframes float-medium {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
    }
    50% {
        transform: translateY(-15px) translateX(8px) scale(1.05);
    }
}

@keyframes float-small {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(3deg);
    }
}

@keyframes progress-shimmer {
    0%, 100% {
        opacity: 0.85;
        transform: scaleX(1) scaleY(1);
        filter: brightness(1);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.005) scaleY(1.1);
        filter: brightness(1.1);
    }
}

@keyframes shimmer-slide {
    0% {
        left: -100%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes gentle-pulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Responsive Design - Mobile First */
@media (max-width: 1024px) {
    .hero-container {
        height: 80vh;
        min-height: 550px;
    }
    
    .glassmorphism-card {
        padding: 2.5rem 1.5rem;
    }
    
    .main-logo {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .hero-container {
        height: 75vh;
        min-height: 500px;
    }
    
    .hero-content {
        padding: 1rem 1.5rem;
    }
    
    .glassmorphism-card {
        padding: 2rem 1.5rem;
        border-radius: 25px;
    }
    
    .main-logo {
        width: 70px;
        height: 70px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 7vw, 3.5rem);
    }
    
    .hero-description {
        font-size: clamp(1rem, 2.2vw, 1.2rem);
        padding: 0 1rem;
    }
    
    .cta-button {
        padding: 1.4rem 2.8rem;
        font-size: 1.1rem;
        border-radius: 50px;
    }
    
    .progress-bar {
        max-width: 350px;
        height: 10px;
    }
    
    .floating-element {
        opacity: 0.04;
    }
    
    .element-1 {
        width: 150px;
        height: 150px;
    }
    
    .element-2 {
        width: 120px;
        height: 120px;
    }
    
    .element-3 {
        width: 80px;
        height: 80px;
    }
    
    .element-4 {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .hero-container {
        height: 70vh;
        min-height: 450px;
    }
    
    .hero-content {
        padding: 0.5rem 1rem;
    }
    
    .glassmorphism-card {
        padding: 1.5rem 1rem;
        border-radius: 20px;
    }
    
    .main-logo {
        width: 60px;
        height: 60px;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        line-height: 1.1;
    }
    
    .hero-description {
        font-size: clamp(0.9rem, 2vw, 1.1rem);
        margin-bottom: 2rem;
    }
    
    .progress-section {
        margin: 2rem 0;
    }
    
    .progress-bar {
        max-width: 280px;
        height: 8px;
    }

    .cta-button {
        padding: 1.2rem 2.2rem;
        font-size: 1rem;
        gap: 0.8rem;
        border-radius: 40px;
    }    .cta-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .floating-element {
        opacity: 0.02;
    }
    
    .particle {
        opacity: 0.2;
    }
}

/* Accessibility & Modern Browser Support */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .floating-element,
    .floating-bg-elements,
    .particles-container {
        display: none;
    }
    
    .glassmorphism-card {
        background: var(--color-primary);
        border: 3px solid var(--color-tertiary);
        backdrop-filter: none;
    }
    
    .cta-button {
        border: 3px solid var(--color-tertiary);
        background: var(--color-secondary);
    }
    
    .hero-video {
        opacity: 0.3;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .floating-element,
    .particle,
    .progress-fill,
    .accent-element,
    .cta-button,
    .button-arrow {
        animation: none !important;
    }
    
    .cta-button:hover {
        transform: none;
    }
    
    .hero-video {
        animation: none;
    }
    
    * {
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode (if system preference) */
@media (prefers-color-scheme: dark) {
    :root {
        --glass-bg: rgba(24, 20, 51, 0.3);
        --glass-border: rgba(255, 255, 255, 0.15);
    }
}

/* Print styles */
@media print {
    .hero-video,
    .floating-bg-elements,
    .particles-container,
    .accent-element {
        display: none;
    }
    
    .hero-container {
        height: auto;
        background: white;
        color: black;
    }
    
    .glassmorphism-card {
        background: white;
        color: black;
        border: 2px solid black;
        backdrop-filter: none;
    }
    
    .hero-title,
    .hero-description {
        color: black;
    }
    
    .text-accent {
        color: #000;
        font-weight: bold;
    }
}

/* Focus states for accessibility */
.cta-button:focus-visible {
    outline: 3px solid var(--color-tertiary);
    outline-offset: 2px;
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(20px)) {
    .glassmorphism-card {
        background: rgba(24, 20, 51, 0.95);
    }
}