/* Landing Page Styles */

/* Remove all blue outlines globally */
* {
    outline: none !important;
}

*:focus {
    outline: none !important;
    box-shadow: none !important;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Remove default body margin and padding */
body.landing-page {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(14, 165, 233, 0.6);
    }
}

@keyframes blobMove1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@keyframes blobMove2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-40px, 30px) scale(0.9);
    }
    66% {
        transform: translate(20px, -40px) scale(1.1);
    }
}

@keyframes blobMove3 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    50% {
        transform: translate(50px, 50px) scale(1.2) rotate(180deg);
    }
}

/* Navigation Bar */
.landing-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    z-index: 1000;
    padding: 0;
    margin: 0;
    animation: fadeInDown 0.8s ease-out;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Nav Links - Remove blue outline on focus */
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 20px;
    position: relative;
    transition: var(--transition);
    letter-spacing: 0.3px;
    outline: none !important;
    border-radius: 8px;
}

.nav-link:focus {
    outline: none !important;
    box-shadow: none !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-white);
    background: rgba(14, 165, 233, 0.1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Button Nav - Remove blue outline */
.btn-nav {
    padding: 12px 28px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.35);
    font-weight: 600;
    outline: none !important; /* Remove blue outline */
}

.btn-nav:focus {
    outline: none !important; /* Remove blue outline on focus */
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5);
}

/* Mobile Toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    outline: none !important; /* Remove blue outline */
}

.navbar-toggle:focus {
    outline: none !important; /* Remove blue outline on focus */
}

.navbar-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-white);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section - Add top padding to account for fixed navbar */
.hero-section {
    padding-top: 80px; /* Height of navbar */
    min-height: 100vh;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-container {
        padding: 12px 20px;
    }
    
    .navbar-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    }
    
    .navbar-menu.active {
        transform: translateX(0);
    }
    
    .nav-link {
        width: 100%;
        padding: 16px 0;
        border-bottom: 1px solid rgba(51, 65, 85, 0.3);
    }
    
    .btn-nav {
        width: 100%;
        justify-content: center;
        margin-top: 12px;
    }
    
    .navbar-toggle {
        display: flex;
    }
}


/* ============================================
   ANIMATED ELEMENTS
   ============================================ */

/* Hero Content Animations */
.institution-logo {
    animation: scaleIn 1s ease-out 0.3s both;
}

.logo-circle {
    animation: pulse 2s ease-in-out infinite, glow 3s ease-in-out infinite;
}

.hero-title {
    animation: fadeInUp 1s ease-out 0.5s both;
    position: relative;
    overflow: hidden;
}

.hero-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

.hero-subtitle {
    animation: fadeInUp 1s ease-out 0.7s both;
}

.hero-description {
    animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-stats {
    animation: fadeInUp 1s ease-out 1.1s both;
}

.hero-stat {
    transition: all 0.3s ease;
}

.hero-stat:hover {
    transform: translateY(-10px) scale(1.05);
}

.hero-stat:nth-child(1) {
    animation: slideInLeft 0.8s ease-out 1.3s both;
}

.hero-stat:nth-child(2) {
    animation: fadeInUp 0.8s ease-out 1.4s both;
}

.hero-stat:nth-child(3) {
    animation: slideInRight 0.8s ease-out 1.5s both;
}



/* Animated Background Blobs */
.color-blob {
    animation-duration: 20s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.blob-1 {
    animation-name: blobMove1;
    animation-delay: 0s;
}

.blob-2 {
    animation-name: blobMove2;
    animation-delay: 2s;
}

.blob-3 {
    animation-name: blobMove3;
    animation-delay: 4s;
}

.blob-4 {
    animation-name: blobMove1;
    animation-delay: 6s;
}

.blob-5 {
    animation-name: blobMove2;
    animation-delay: 8s;
}

.blob-6 {
    animation-name: blobMove3;
    animation-delay: 10s;
}

/* Hero Shapes Animation */
.shape {
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    animation-delay: 0s;
}

.shape-2 {
    animation-delay: 2s;
}

.shape-3 {
    animation-delay: 4s;
}

/* Features Section Animations */
.section-title {
    animation: fadeInUp 0.8s ease-out both;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
    animation: expandWidth 1s ease-out 0.5s both;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

.feature-card {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out both;
    transition: all 0.4s ease;
}

.feature-card:nth-child(1) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.6s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.8s;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(10deg);
    animation: pulse 0.6s ease-in-out;
}

.feature-icon {
    transition: all 0.4s ease;
}

/* Process Steps Animations */
.process-step {
    opacity: 0;
    animation: scaleIn 0.8s ease-out both;
    transition: all 0.4s ease;
}

.process-step:nth-child(1) {
    animation-delay: 0.2s;
}

.process-step:nth-child(2) {
    animation-delay: 0.4s;
}

.process-step:nth-child(3) {
    animation-delay: 0.6s;
}

.process-step:hover {
    transform: translateY(-10px);
}

.process-step:hover .step-number {
    transform: translateX(-50%) scale(1.15) rotate(360deg);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.process-step:hover .step-icon {
    animation: float 1s ease-in-out infinite;
}

.step-number {
    transition: all 0.6s ease;
}

.step-icon {
    transition: all 0.4s ease;
}

/* Info Blocks Animations */
.info-block {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out both;
    transition: all 0.4s ease;
}

.info-block:nth-child(1) {
    animation-delay: 0.3s;
}

.info-block:nth-child(2) {
    animation-delay: 0.5s;
}

.info-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.info-list li {
    opacity: 0;
    animation: slideInLeft 0.6s ease-out both;
    transition: all 0.3s ease;
}

.info-list li:nth-child(1) { animation-delay: 0.5s; }
.info-list li:nth-child(2) { animation-delay: 0.6s; }
.info-list li:nth-child(3) { animation-delay: 0.7s; }
.info-list li:nth-child(4) { animation-delay: 0.8s; }

.info-list li:hover {
    transform: translateX(10px);
    color: var(--primary-color);
}

.info-list li:hover svg {
    transform: scale(1.3) rotate(360deg);
}

.info-list li svg {
    transition: all 0.4s ease;
}

/* Footer Animation */
.landing-footer {
    animation: fadeIn 1s ease-out both;
}

/* Scroll-triggered animations */
@media (prefers-reduced-motion: no-preference) {
    .features-section,
    .info-section {
        opacity: 0;
        transform: translateY(50px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    
    .features-section.visible,
    .info-section.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Animation for Page */
@keyframes pageLoad {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

body.landing-page {
    animation: pageLoad 0.6s ease-out;
}

/* Hover Effects for Links */
.nav-link,
.btn {
    position: relative;
    z-index: 1;
}

.nav-link::before,
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before {
    opacity: 1;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.15), transparent);
}


/* ============================================
   RIPPLE EFFECT
   ============================================ */

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn {
    position: relative;
    overflow: hidden;
}

/* ============================================
   ENHANCED HOVER EFFECTS
   ============================================ */

.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.process-step {
    position: relative;
    overflow: visible;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.process-step:hover::after {
    width: 100%;
    height: 100%;
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */

.scroll-indicator {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-8px);
    }
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
    color: rgba(255, 255, 255, 0.7);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* ============================================
   GRADIENT TEXT EFFECT
   ============================================ */

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ============================================
   CARD SHINE EFFECT
   ============================================ */

.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    bottom: -50%;
    left: -50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotateZ(60deg) translate(-5em, 7.5em);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: rotateZ(60deg) translate(-5em, 7.5em);
    }
    100% {
        transform: rotateZ(60deg) translate(25em, -25em);
    }
}

/* ============================================
   LOADING ANIMATION
   ============================================ */

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease-out 1s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(14, 165, 233, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   RESPONSIVE ANIMATIONS
   ============================================ */

@media (max-width: 768px) {
    /* Reduce animation intensity on mobile */
    .hero-title::after {
        animation: none;
    }
    
    .color-blob {
        animation-duration: 30s;
    }
    
    .shape {
        animation: none;
    }
    
    /* Disable parallax on mobile */
    .hero-content {
        transform: none !important;
    }
    
    .color-blob {
        transform: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    /* Disable animations for users who prefer reduced motion */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
