/* ================= HOME PAGE SPECIFIC STYLES ================= */

/* Home Page Variables - Professional Blue Theme */
:root {
    /* Primary Colors */
    --color-primary: #0f172a;
    --color-primary-light: #1e293b;
    --color-secondary: #334155;
    --color-accent: #06b6d4;
    --color-accent-hover: #0891b2;
    
    /* Gray Scale */
    --color-gray-100: #94a3b8;
    --color-gray-200: #64748b;
    --color-gray-300: #475569;
    --color-gray-400: #334155;
    --color-gray-500: #1e293b;
    --color-gray-700: #334155;
    --color-gray-900: #0f172a;
    
    /* Text Colors */
    --color-text-primary: #f8fafc;
    --color-text-secondary: #94a3b8;
    --color-white: #f8fafc;
    
    /* Border and UI Colors */
    --color-border: #334155;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    
    /* Background Colors */
    --color-bg: var(--color-primary);
    --color-bg-secondary: var(--color-secondary);
    --color-bg-card: rgba(30, 41, 59, 0.5);
    --color-bg-modal: #ffffff;
    
    /* Card Colors */
    --card-bg: rgba(30, 41, 59, 0.5);
    --card-border: var(--color-border);
    --card-hover-border: var(--color-accent);
    
    /* Grid Colors */
    --grid-bg-primary: var(--color-primary);
    --grid-bg-secondary: var(--color-secondary);
    --grid-line-color: 148, 163, 184;
}

/* Grid color variables are now in :root in header-footer.css */

/* Light mode grid colors */
[data-theme="light"] {
    --grid-bg-primary: #ffffff;
    --grid-bg-secondary: #f1f5f9;
    --grid-line-color: 51, 65, 85; /* RGB values for rgba usage */
}

/* Bright white theme grid colors */
[data-theme="bright-white"] {
    --grid-bg-primary: #ffffff;
    --grid-bg-secondary: #f8fafc;
    --grid-line-color: 30, 41, 59; /* RGB values for rgba usage */
}

/* Hero Section */
.hero {
    height: 100vh; /* Full height for hero section */
    margin-top: 0; /* Add top margin to account for fixed header */
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* Remove grid background as we're using neural network */
    background-color: #000000;
}

/* Neural Network Canvas Background */
#neural-network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* Allow clicks to pass through to content */
    opacity: 0.7; /* Reduce opacity to make content more visible */
}

.hero::before {
    /* Remove the grid pattern overlay */
    display: none;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    z-index: 10; /* Increased z-index to appear above canvas */
    position: relative;
    text-align: left;
    margin-left: 5rem;
}

.hero-content {
    max-width: 600px;
}

.hero-left h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-text-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-left p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--color-text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Right Section - Video */
.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 10;
    position: relative;
}

.hero-right .video-about {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(6, 182, 212, 0.08) 0%, 
        rgba(30, 41, 59, 0.6) 50%, 
        rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(6, 182, 212, 0.3);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(6, 182, 212, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    aspect-ratio: 16/9;
}

.hero-right .video-about:hover {
    transform: translateY(-4px) rotateX(1deg);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(6, 182, 212, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(6, 182, 212, 0.5);
}

.hero-right .video-about video {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
    border-radius: 1rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    object-fit: cover;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    display: block;
}

.hero-right .video-about video:hover {
    transform: scale(1.02);
}











/* About Video Layout - Text and Video Side by Side */
.about-video-layout {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 100vw;
    padding: 0 2rem;
 
}

.about-video-layout .content-text {
    grid-column: 1;
    padding-right: 2rem;
    max-width: 700px;
    margin-left: 6.4rem;
    z-index: 4;
}

.about-video-layout .video-about {
    grid-column: 2;
    width: 100%;
    max-width: 1276px;
    aspect-ratio: 16/9;
    height: auto;
    margin-right: 0;
    padding-right: 0;
}

/* Video About Section */
.video1 {
    margin: 0;
}
.video-about {
    position: relative;
    margin-right: 0;
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(6, 182, 212, 0.08) 0%, 
        rgba(30, 41, 59, 0.6) 50%, 
        rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(6, 182, 212, 0.3);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(6, 182, 212, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    aspect-ratio: 16/9;
}

.video-about:hover {
    transform: translateY(-4px) rotateX(1deg);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(6, 182, 212, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(6, 182, 212, 0.5);
}

.video-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(6, 182, 212, 0.05) 50%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.video-about:hover::before {
    opacity: 1;
}

.video-about video {
    width: 100%;
    height: 100%;
    min-height: 280px;
    border: none;
    border-radius: 1rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    object-fit: cover;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    display: block;
}

.video-about video:hover {
    transform: scale(1.02);
}

.video-about::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(6, 182, 212, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

.video-about:hover::after {
    background: rgba(6, 182, 212, 1);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
    opacity: 1;
}

.video-about.playing::after {
    opacity: 0;
}

/* Image gallery */
.image-gallery img{
    margin: 2rem;
    width: 500px;
    height: 500px;
}

/* Sections */
.section {
    padding: clamp(1rem, 5vw, 2rem) 0;
}

.section-alt {
    background-color: var(--color-secondary);
    background-image:
        linear-gradient(rgba(var(--grid-line-color), 0.12) 3px, transparent 3px),
        linear-gradient(90deg, rgba(var(--grid-line-color), 0.12) 3px, transparent 3px);
    background-size: 70px 70px, 70px 70px;
    background-position: center;
   
}

.section-header {
    text-align: center;
    margin-bottom: clamp(2rem, 6vw, 3rem);
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: clamp(1.5rem, 4vw, 2rem);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--card-hover-border);
}

.card-icon {
    width: 3rem;
    height: 3rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.card-text {
    color: var(--color-text-secondary);
}

/* Stats */
.stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--card-border);
    min-width: 200px;
    flex: 1;
    max-width: 300px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-accent);
    display: block;
}

.stat-label {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Event Cards */
.event-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-content {
    padding: 1.5rem;
}

.event-date {
    color: var(--color-accent);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.event-description {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.event-details {
    margin-bottom: 1.5rem;
}

.event-details p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.event-register-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Content Text */
.content-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Mission Section Styling */
#our-mission {
    padding: clamp(3rem, 8vw, 6rem) 0;

}

#our-mission h2 {
    color: var(--color-text-primary);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#our-mission p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: center;
}

#our-mission .cta-buttons {
    margin-top: 2.5rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

#our-mission .cta-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#our-mission .cta-buttons .btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 25px rgba(49, 130, 206, 0.3);
}

#our-mission .cta-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(49, 130, 206, 0.4);
}

#our-mission .cta-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

#our-mission .cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.text-center-mobile {
    text-align: left;
}

.mb-responsive {
    margin-bottom: 1.5rem;
}

.mt-responsive {
    margin-top: 2rem;
}

.flex-responsive {
    align-items: center;
}

.grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Responsive design for hero */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        height: auto;
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-left {
        order: 1;
        text-align: center;
        padding: 3rem 2rem;
        margin-left: 0;
    }
    
    .hero-right {
        order: 2;
        padding: 2rem;
    }
    
    .hero-left h1 {
        font-size: 3rem;
    }

    /* Stats Responsive */
    .stats {
        gap: 2rem;
        margin: 2rem 0;
    }
    
    .stat {
        min-width: 180px;
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        height: auto;
        padding: 2rem 0 1rem;
    }
    
    .hero-left {
        text-align: center;
        padding: 2rem 1rem;
        margin-left: 0;
    }
    
    .hero-right {
        padding: 1rem;
    }
    
    .hero-left h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-lg {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-right .video-about {
        max-width: 100%;
        min-height: 300px;
    }
    
    .hero-right .video-about video {
        min-height: 300px;
    }

    .text-center-mobile {
        text-align: center;
    }

    .flex-responsive {
        flex-direction: column;
        gap: 2rem;
    }

    /* Stats Responsive */
    .stats {
        gap: 1.5rem;
        margin: 1.5rem 0;
        flex-direction: column;
        align-items: center;
    }
    
    .stat {
        min-width: 250px;
        max-width: 350px;
        padding: 1.5rem;
        width: 100%;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}

/* Responsive design for video section */
@media (max-width: 768px) {
    .about-video-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .about-video-layout .content-text {
        grid-column: 1;
        padding-right: 0;
        max-width: 100%;
        text-align: center;
       
    }
    
    /* Mission responsive styling */
    #our-mission {
        padding: clamp(2rem, 6vw, 4rem) 0;
    }
    
    #our-mission h2 {
        font-size: clamp(2rem, 5vw, 3rem);
        text-align: center;
    }
    
    #our-mission p {
        text-align: center;
        font-size: 1rem;
    }
    
    #our-mission .cta-buttons {
        justify-content: center;
        gap: 1rem;
    }
    
    #our-mission .cta-buttons .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .about-video-layout .video-about {
        grid-column: 1;
        width: 100%;
        min-height: 250px;
        max-width: 100%;
    }
    
    .video-about {
        width: 90%;
        margin: 1rem auto;
        border-radius: 0.8rem;
    }
    
    .video-about video {
        min-height: 350px;
        border-radius: 0.8rem;
    }
    
    .video-about:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 480px) {
    .hero-left h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-left p {
        font-size: 1.1rem;
    }

    .about-video-layout {
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .video-about {
        width: 95%;
        margin: 0.8rem auto;
        border-radius: 0.6rem;
        height: auto;
        min-height: 200px;
    }
    
    .video-about video {
        min-height: 200px;
        border-radius: 0.6rem;
    }
    
    .video-about::after {
        width: 60px;
        height: 60px;
        background-size: 20px;
    }
    
    #our-mission h2 {
        font-size: 1.8rem;
    }
    
    #our-mission p {
        font-size: 0.95rem;
    }
    
    #our-mission .cta-buttons .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    /* Stats Responsive */
    .stats {
        gap: 1rem;
        margin: 1rem 0;
    }
    
    .stat {
        min-width: auto;
        max-width: none;
        padding: 1.2rem;
        width: 100%;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* News Slider */
.news-slider {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

.news-wrapper {
    display: flex;
    flex: 1;
    transition: transform 0.5s ease;
    width: 100%;
    /* Prevent vertical scrollbars from appearing inside the news carousel */
    overflow: hidden;
}

.news-slide {
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: 0 0.5rem;
}

.news-prev,
.news-next {
    background: none;
    border: none;
    color: var(--color-accent);
    font-size: 2rem;
    cursor: pointer;
    padding: 0 1rem;
    transition: color 0.3s;
}

.news-prev:hover,
.news-next:hover {
    color: var(--color-accent-hover);
}

/* Optional: define a class for news images used in the slider to keep
   consistent sizing and rounded corners */
.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--form-border);
    border-radius: 0.5rem;
    background-color: var(--form-bg);
    color: var(--color-text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--form-focus);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}
