/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;600;700&display=swap');

/* CSS Variables */
:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a2e;
    --accent-blue: #00d4ff;
    --accent-purple: #8b5cf6;
    --accent-cyan: #00ff88;
    --neon-glow: 0 0 20px rgba(0, 212, 255, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-glow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* Reset & Base Styles */
* {
    Background-image :"assets/Entesa.jpeg";
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Custom Cursor */
.cursor,
.cursor2 {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--accent-blue);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease-out;
}

.cursor2 {
    width: 40px;
    height: 40px;
    background: rgba(0, 212, 255, 0.3);
    z-index: 9998;
}

.cursor-follower {
    transform: scale(2) !important;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 12px 0;
    transition: 0.3s ease;
    border-bottom: 1px solid rgba(0, 224, 255, 0.1);
}

.navbar.scrolled {
    padding: 8px 0;
    background: rgba(10, 10, 10, 0.95);
}

/* CONTAINER */
.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-glow {
    font-family: 'Orbitron', monospace;
    font-size: 1.6rem;
    font-weight: 800;
    color: #00e0ff;
}

/* MENU */
.nav-menu {
    display: flex;
    gap: 25px;
}

/* LINKS */
.nav-link {
    color: #aaa;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    transition: 0.3s ease;
    padding-bottom: 5px;
}

/* CLEAN UNDERLINE */
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #00e0ff;
    transition: width 0.3s ease;
}

/* HOVER + ACTIVE */
.nav-link:hover {
    color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #00e0ff;
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #00e0ff;
    margin: 4px 0;
}

/* MOBILE */
@media (max-width: 900px) {
    .nav-menu {
        position: absolute;
        top: 70px;
        left: -100%;
        width: 100%;
        background: #0a0a0a;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
        transition: 0.3s;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: url("assets/Entesa.jpeg") no-repeat center center/cover;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.75); /* adjust 0.6–0.85 */
    z-index: 1;
}

#circuit-canvas {
    width: 100%;
    height: 100%;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.typing-text {
    display: inline-block;
}

.cursor-blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 300;
}

.cta-button {
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--neon-glow);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-blue);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Sections */
.section {
    padding: 100px 0;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-family: 'Orbitron';
    margin-bottom: 3rem;
    color: var(--accent-blue);
}

/* About */
.about-content {
    max-width: 800px;
    margin: auto;
    text-align: center;
}

.mission-vision {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.mission, .vision {
    flex: 1;
    background: var(--glass-bg);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

/* Domains */
.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.domain-card {
    background: var(--glass-bg);
    padding: 2rem;
    text-align: center;
    border-radius: 15px;
    transition: 0.3s;
}

.domain-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--border-glow);
}

.domain-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-cyan);
}

/* Projects */
.clubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.club-card {
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.club-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--neon-glow);
}

.club-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-cyan);
}

.club-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 8px 18px;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
    color: white;
    border-radius: 20px;
    text-decoration: none;
    transition: 0.3s;
}

.club-btn:hover {
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.7);
}
/* Events */
.events-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.event-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.event-date {
    font-weight: bold;
    color: var(--accent-purple);
}

/*upcoming events*/
.upcoming-section {
    background: #000;
    color: #fff;
}

.upcoming-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.event-card {
    background: #111;
    padding: 25px;
    border-radius: 12px;
    transition: 0.3s ease;
    border: 1px solid #222;
}

.event-card h3 {
    color: #00e0ff;
    margin-bottom: 10px;
}

.event-card p {
    color: #ccc;
    font-size: 14px;
}

.event-card:hover {
    transform: translateY(-8px);
    border-color: #00e0ff;
    box-shadow: 0 0 15px rgba(0, 224, 255, 0.3);
}

/* Highlight card */
.highlight-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #00e0ff;
    color: #000;
    font-weight: bold;
}

.highlight-card h3 {
    color: #000;
}

/* Responsive */
@media (max-width: 900px) {
    .upcoming-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .upcoming-grid {
        grid-template-columns: 1fr;
    }
}

/* Team */
.team-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Tablet */
@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 576px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.team-card {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background: #111;
    transition: 0.3s;
}

.team-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;   /* 👈 KEY FIX */
    background: #000;      /* fills empty space */
    border-radius: 10px;
}

.tab-btn {
    padding: 10px 20px;
    background: var(--glass-bg);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    color: white;
}

.tab-btn.active {
    background: var(--accent-blue);
}

.team-content {
    display: none;
}

.team-content.active {
    display: block;
}

.hidden {
    display: none;
}

.view-more {
    text-align: center;
    margin-top: 30px;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.view-more-btn i {
    transition: transform 0.3s ease;
}

.view-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 114, 255, 0.3);
}

/* Rotate arrow when expanded */
.view-more-btn.active i {
    transform: rotate(180deg);
}

/* Contact */
.contact-content {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-info, .contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 1rem;
}

input, textarea {
    width: 100%;
    padding: 10px;
    border: none;
    background: var(--secondary-bg);
    color: white;
    border-radius: 5px;
}

.submit-btn {
    padding: 10px 20px;
    background: var(--accent-blue);
    border: none;
    cursor: pointer;
}

/* Footer */
.footer {
    background: #000;
    padding: 2rem 0;
    text-align: center;
}

.footer-links a,
.footer-social a {
    margin: 0 10px;
    color: var(--text-secondary);
}

/* Responsive */
@media(max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: #000;
        width: 200px;
        transition: 0.3s;
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-stats {
        flex-direction: column;
    }

    .mission-vision {
        flex-direction: column;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.event-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.event-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: 0.4s;
}

/* 🔥 Hover Focus Effect */
.event-card:hover {
    transform: scale(1.05);
    z-index: 2;
}

.event-card:hover img {
    filter: brightness(0.6);
}

.event-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, black);
    color: white;
}

/* 🔥 MODAL */
.event-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);

    justify-content: center;
    align-items: center;

    z-index: 9999;

    display: none;   /* ONLY THIS */
}

.event-modal.active {
    display: flex;
}

.event-box {
    background: #111;
    width: 70%;
    max-width: 700px;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    animation: scaleUp 0.3s ease;
}

@keyframes scaleUp {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.event-box img {
    width: 100%;
    height: 350px;        /* fixed height */
    object-fit: contain;  /* 👈 KEY FIX */
    background: black;    /* 👈 fills empty space */
    border-radius: 10px;
}


.modal-content {
    position: relative;
    max-width: 800px;
    margin: 5% auto;
    text-align: center;
}

.modal-content img {
    width: 100%;
    border-radius: 10px;
}

.modal-info {
    margin-top: 15px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    cursor: pointer;
}

.slider-controls {
    margin-top: 15px;
}

.slider-controls button {
    margin: 5px;
    padding: 8px 15px;
    border: none;
    background: #00d4ff;
    color: black;
    cursor: pointer;
    border-radius: 5px;
}

/* ================= TEAM GRID ================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Tablet */
@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 576px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}


/* ================= TEAM CARD ================= */
.team-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 18px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

/* Hover Effect */
.team-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 212, 255, 0.25);
}


/* ================= HIGHLIGHT (TOP MEMBERS) ================= */
.team-card.highlight {
    border: 2px solid var(--accent-blue);
    transform: scale(1.05);
}


/* ================= AVATAR ================= */
.team-avatar {
    width: 130px;
    height: 130px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

/* Image */
.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* professional look */
    transition: 0.4s ease;
}

/* Slight zoom on hover */
.team-card:hover .team-avatar img {
    transform: scale(1.08);
}


/* ================= TEXT ================= */
.team-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.team-card span {
    font-size: 0.9rem;
    color: var(--accent-cyan);
    display: block;
    line-height: 1.3;
}


/* ================= VIEW MORE BUTTON ================= */
.view-more {
    text-align: center;
    margin-top: 30px;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.view-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 114, 255, 0.3);
}

/* Rotate arrow */
.view-more-btn.active i {
    transform: rotate(180deg);
}


/* ================= HIDDEN MEMBERS ================= */
.hidden {
    display: none;
}

#modalMedia img,
#modalMedia video {
    width: 100%;
    height: 350px;
    object-fit: contain;
    background: black;
    border-radius: 10px;
}

.name{
    color: aliceblue;
}

/* ================= RESPONSIVE FIXES (CLEAN ADDITION) ================= */

/* -------- GLOBAL FLEXIBILITY -------- */
img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    padding: 0 20px;
}

/* -------- HERO FIX -------- */
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 20px;
    }

    .hero-content {
        padding: 0 10px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
}

/* -------- NAVBAR MOBILE -------- */
@media (max-width: 900px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: #0a0a0a;
        flex-direction: column;
        align-items: center;
        padding: 25px 0;
        transition: 0.3s;
    }

    .nav-menu.active {
        left: 0;
    }
}

/* -------- UNIVERSAL GRID FIX -------- */
@media (max-width: 1024px) {
    .team-grid,
    .clubs-grid,
    .domains-grid,
    .events-grid,
    .upcoming-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .team-grid,
    .clubs-grid,
    .domains-grid,
    .events-grid,
    .upcoming-grid {
        grid-template-columns: 1fr !important;
    }
}

/* -------- TEAM SECTION -------- */
@media (max-width: 768px) {
    .team-avatar {
        width: 100px;
        height: 100px;
    }

    .team-card {
        padding: 15px;
    }
}

/* -------- EVENT MODAL -------- */
@media (max-width: 768px) {
    .event-box {
        width: 90%;
    }

    .event-box img {
        height: 250px;
    }
}

/* -------- CONTACT -------- */
@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
    }
}

/* -------- UPCOMING SECTION -------- */
@media (max-width: 768px) {
    .upcoming-grid {
        gap: 15px;
    }
}

/* -------- TEXT SCALING -------- */
@media (max-width: 600px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }
}