/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    --primary-blue: #003399;   /* Deep Blue */
    --accent-cyan: #00c6ff;    /* Bright Cyan/Teal */
    --dark-bg: #0a0f1d;        /* Very dark navy background */
    --card-bg: #162035;        /* Slightly lighter for boxes */
    --text-white: #f0f0f0;
    --text-gray: #b0b0b0;
    --gold: #ffd700;           /* For awards/stars */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth; 
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden; 
}

/* =========================================
   2. NAVIGATION BAR
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(10, 15, 29, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.logo {
    height: 50px;
    background: white; 
    border-radius: 5px;
    padding: 2px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: rotate(-5deg) scale(1.1);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-cyan);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-cyan);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-join {
    background: var(--primary-blue);
    padding: 8px 25px;
    border-radius: 50px;
    border: 2px solid var(--primary-blue);
}

.btn-join:hover {
    background: transparent;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
}

/* =========================================
   3. HERO SECTION (VIDEO & MOBILE FIX)
   ========================================= */
.hero {
    height: 90vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative; 
    overflow: hidden; 
    background: #000; 
}

.back-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: 0;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; 
    width: 90%; 
    max-width: 800px;
    animation: fadeInUp 1.5s ease-out;
}

.club-name {
    font-family: 'Rozha One', serif; 
    font-size: 8rem; 
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2px var(--accent-cyan); 
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    animation: pulseGlow 3s infinite alternate;
}

.tagline {
    font-size: 1.8rem;
    font-family: 'Rozha One', serif; 
    color: white;
    margin-bottom: 30px;
    display: inline-block;
    border-right: 3px solid var(--accent-cyan);
    overflow: hidden;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink .75s step-end infinite;
}

.sub-text {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.primary {
    background-color: var(--accent-cyan);
    color: #000;
}

.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--accent-cyan);
}

.secondary {
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
}

.secondary:hover {
    background: var(--accent-cyan);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--accent-cyan);
}

/* =========================================
   4. SCROLLING STRIP
   ========================================= */

.image-strip {
    display: inline-block;
    animation: scrollLeft 20s linear infinite;
}

.strip-item {
    display: inline-block;
    width: 300px;
    height: 180px;
    background: #333;
    margin-right: 20px;
    border-radius: 10px;
    vertical-align: middle;
    line-height: 180px;
    text-align: center;
    color: #555;
    font-weight: bold;
}

.image-strip:hover {
    animation-play-state: paused;
}

/* =========================================
   5. GENERAL SECTIONS
   ========================================= */
.section-padding {
    padding: 80px 8%;
}

.section-dark {
    padding: 80px 8%;
    background-color: #05080f;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-white);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    background: var(--accent-cyan);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* About Grid */

/* Timeline Container */
.timeline {
    position: relative;
    border-left: 2px solid rgba(255, 255, 255, 0.1); /* Subtle vertical line */
    margin: 20px 0 30px 10px; /* Adjust margin to align with text */
    padding-left: 30px;
}

/* Timeline Item Container */
.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

/* The Glowing Dot */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px; /* Aligns dot perfectly on the line */
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan); /* Glowing effect */
    transition: 0.3s ease;
}

/* Hover Effect for Dot */
.timeline-item:hover::before {
    transform: scale(1.3);
    box-shadow: 0 0 20px var(--accent-cyan);
}

/* Date/Label (e.g., "The Beginning") */
.timeline-date {
    font-size: 0.85rem;
    color: var(--primary-blue);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

/* Timeline Titles */
.timeline-item h4 {
    color: var(--text-white);
    font-size: 1.2rem;
    margin: 0 0 5px 0;
}

/* Timeline Description */
.timeline-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Remove bottom margin from the last item */
.timeline-item:last-child {
    margin-bottom: 0;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.vision-mission {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.box {
    background: var(--card-bg);
    padding: 20px;
    border-left: 3px solid var(--primary-blue);
    border-radius: 0 10px 10px 0;
}

.segments-grid {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.segment-card {
    background: var(--card-bg);
    padding: 30px 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: 0.3s;
    cursor: pointer;
    font-weight: bold;
}

.segment-card:hover {
    background: var(--primary-blue);
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* =========================================
   6. SHOWCASE SECTION
   ========================================= */
   .showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Update .showcase-card to handle anchor tag behavior */
.showcase-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s ease;
    border: 1px solid #222;
    display: block;
    text-decoration: none;
    color: inherit;
}

.showcase-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 198, 255, 0.2);
}

.card-image {
    height: 200px;
    background-color: #333; 
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 20px;
}

.badge {
    background: var(--primary-blue);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.showcase-card h3 {
    color: var(--text-white);
    margin-bottom: 10px;
}

.showcase-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* =========================================
   7. FILM SECTION
   ========================================= */

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.video-item h3 {
    margin-top: 15px;
    text-align: center;
    color: var(--text-white);
    font-size: 1.1rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--accent-cyan);
    background: #000;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.video-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    border: 2px solid #fff;
    transition: all 0.3s ease;
    z-index: 2;
}

.play-btn::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 55%; 
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
}

.video-wrapper:hover .play-btn {
    background: #ff0000;
    border-color: #ff0000;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-wrapper:hover img {
    opacity: 0.7;
}

/* =========================================
   8. FOOTER
   ========================================= */
.footer {
    background: #000;
    padding: 60px 8% 20px; /* Aligned padding with other sections */
    border-top: 1px solid #222;
    color: var(--text-gray);
}

.footer-content {
    display: flex;
    justify-content: space-between; /* Pushes content to edges */
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Brand Section --- */
.footer-brand {
    flex: 1;
    min-width: 250px;
}

.brand-logo {
    font-size: 2.5rem;
    color: var(--text-white);
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 800;
}

.brand-tagline {
    color: var(--accent-cyan);
    font-weight: bold;
    margin-bottom: 15px;
}

.brand-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 300px;
}

/* --- Contact Section --- */
.contact-info {
    flex: 1;
    min-width: 250px;
    text-align: right; /* Aligns contact info to the right for balance */
}

/* On mobile, align text back to left */
@media (max-width: 768px) {
    .contact-info {
        text-align: left;
    }
}

.contact-info h3 {
    color: var(--text-white);
    font-size: 1.5rem;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--accent-cyan);
    display: inline-block;
    padding-bottom: 5px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Align items to right */
    gap: 15px;
    margin-bottom: 20px;
}

/* Mobile alignment fix */
@media (max-width: 768px) {
    .contact-item {
        justify-content: flex-start;
    }
}

.contact-item .icon {
    font-size: 1.2rem;
}

.contact-item p {
    margin: 0;
    line-height: 1.4;
}

.contact-item a {
    color: var(--text-gray);
    text-decoration: none;
    transition: 0.3s;
    border-bottom: 1px solid transparent;
}

.contact-item a:hover {
    color: var(--accent-cyan);
    border-bottom: 1px solid var(--accent-cyan);
}

/* --- Copyright --- */
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1a1a1a;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* =========================================
   9. ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    0% { text-shadow: 0 0 10px rgba(0, 198, 255, 0.2); }
    100% { text-shadow: 0 0 25px rgba(0, 198, 255, 0.8), 0 0 50px rgba(0, 198, 255, 0.4); }
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-cyan) }
}

@keyframes scrollLeft {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* =========================================
   10. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    .navbar { flex-direction: column; padding: 15px; }
    .nav-links { margin-top: 20px; flex-wrap: wrap; justify-content: center; }
    
    .club-name { 
        font-size: 5rem; 
    }

    .tagline {
        font-size: 1.1rem;
        white-space: normal;
        border: none;
        animation: none;
    }

    .cta-buttons { flex-direction: column; width: 100%; }
    .btn { width: 100%; margin: 5px 0; }
    .about-container { flex-direction: column; }
    .vision-mission { flex-direction: column; }
    .section-title::after { width: 100px; }

    /* FIX: Force video grid to single column on mobile */
    .video-grid {
        grid-template-columns: 1fr;
    }
} /* <--- CLOSING BRACE FOR MEDIA QUERY IS NOW HERE */

/* =========================================
   11. HERO SOCIAL LINKS
   ========================================= */
.social-connect {
    margin-top: 40px; 
    opacity: 0; 
    animation: fadeInUp 1s ease-out 1s forwards;
}

.find-us-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-gray);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

/* Small lines beside "Find us on" */
.find-us-text::before, .find-us-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--text-gray);
    opacity: 0.5;
}

.find-us-text::before { left: -40px; }
.find-us-text::after { right: -40px; }

.social-icons {
    display: flex;
    gap: 25px;
    justify-content: center;
    align-items: center;
}

.social-icon {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7); 
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.2); 
    color: white; 
}

.youtube:hover {
    color: #FF0000;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
}

.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none; 
}

.linkedin:hover {
    color: #0077b5;
    text-shadow: 0 0 20px rgba(0, 119, 181, 0.6);
}