/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0a192f;
    color: #e6f1ff;
    line-height: 1.6;
    overflow-x: hidden;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
    transition: opacity 1s ease;
}

body:hover #canvas-container {
    opacity: 0.7;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #64ffda;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #64ffda;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: #64ffda;
    border: 1px solid #64ffda;
    border-radius: 4px;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn:hover:before {
    left: 100%;
}

.btn:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Header Styles */
header {
    position:relative   ;
    top: 0;
    width: 100%;
    z-index: 1500;
    background-color: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    transition: all 0.3s ease;
}

header.sticky {
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 70px;
    margin-right: 10px;
    transition: transform 0.5s ease;
}

.logo:hover img {
    transform: rotate(15deg);
}

/* Intensify glow on hover */
.logo:hover .logo-text,
.logo-text:hover {
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.7), 0 0 18px rgba(100, 255, 218, 0.35);
}

/* Robotic animated gradient and neon pulse */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes neonPulse {
    0%, 100% { text-shadow: 0 0 6px rgba(100, 255, 218, 0.45), 0 0 0 rgba(100, 255, 218, 0); }
    50% { text-shadow: 0 0 10px rgba(100, 255, 218, 0.85), 0 0 20px rgba(100, 255, 218, 0.35); }
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #64ffda, #a0f0ff, #64ffda);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 6px rgba(100, 255, 218, 0.45);
    animation: gradientMove 8s linear infinite, neonPulse 2.8s ease-in-out infinite;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
    position: relative;
}

.nav-links li:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #64ffda;
    transition: width 0.3s ease;
}

.nav-links li:hover:after {
    width: 100%;
}

.nav-links a {
    color: #ccd6f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #64ffda;
}

/* Disable background scroll when mobile menu is open */
body.no-scroll {
    overflow: hidden;
}

/* Dark overlay behind the mobile sidebar to focus attention */
body.no-scroll::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 47, 0.8);
    z-index: 1900; /* below nav-links (2000), above content */
    pointer-events: none; /* Do not steal clicks from sidebar */
}

/* While menu is open, disable interactions on background */
@media (max-width: 992px) {
    body.no-scroll #canvas-container,
    body.no-scroll section,
    body.no-scroll footer,
    body.no-scroll .scroll-top {
        pointer-events: none;
    }
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
    z-index: 2100;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #ccd6f6;
    overflow: hidden;
}

.hero-content h1 .highlight {
    color: #64ffda;
    display: inline-block;
    position: relative;
}

.hero-content h1 .highlight:after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 80%;
    background: #64ffda;
    animation: blink 0.8s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #8892b0;
}

.floating-robot {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15rem;
    color: rgba(100, 255, 218, 0.1);
    animation: float 6s ease-in-out infinite;
    z-index: 0;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(-50%) translateX(0) rotate(0deg);
    }

    50% {
        transform: translateY(-55%) translateX(20px) rotate(5deg);
    }
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    color: #8892b0;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.about-image:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #64ffda, #0a192f);
    opacity: 0.2;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.about-image:hover:before {
    opacity: 0;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.slideshow-container {
    position: relative;
    max-width: 500px;
    margin: auto;
    overflow: hidden;
    border-radius: 10px;
}

.slide {
    display: none;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Fading animation */
.fade {
    animation: fadeEffect 1.5s;
}

@keyframes fadeEffect {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

/* Navigation buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.4);
    transform: translateY(-50%);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}


/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Projects Slider overrides */
.projects-slider {
  position: relative;
  display: flex;
  align-items: center;
}

.projects-slider .projects-grid {
  display: flex;
  gap: 30px;
  overflow: auto;
  scroll-behavior: smooth;
}

/* Match project card width to team card width (300px) inside slider */
.projects-slider .project-card {
  flex: 0 0 300px;
}

.proj-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #e6f1ff;
  border: 1px solid #64ffda;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.proj-nav.prev { left: -10px; }
.proj-nav.next { right: -10px; }

@media (max-width: 768px) {
  .proj-nav.prev { left: 0; }
  .proj-nav.next { right: 0; }
}

.project-card {
    background: #112240;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.project-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.project-card:hover:before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.project-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-image:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, #0a192f 100%);
    opacity: 0.5;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 20px;
    position: relative;
}

.project-info h3 {
    margin-bottom: 10px;
    color: #ccd6f6;
}

.project-info p {
    color: #8892b0;
    margin-bottom: 15px;
}
/* ============================= */
/*       GALLERY SECTION         */
/* ============================= */

#gallery {
  padding: 80px 20px;
  background: radial-gradient(circle at top, #0b0b0b, #101010 70%);
  color: #fff;
  text-align: center;
}

#gallery .section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #00e6ff;
}

#gallery .section-subtitle {
  font-size: 1.1rem;
  margin-bottom: 50px;
  color: #ccc;
}

/* Gallery Grid Layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  justify-items: center;
}

/* Gallery Items */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.15);
  background: #111;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  max-width: 350px;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 15px;
  transition: transform 0.5s ease, filter 0.5s ease;
}

/* Hover Effects */
.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.25);
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.08);
  filter: brightness(1.2);
}

/* Video Style */
.gallery-item video {
  border: 2px solid #00e6ff;
  background-color: #000;
  border-radius: 10px;
}

/* Title Under Videos */
.media-title {
  margin-top: 10px;
  font-size: 1rem;
  color: #00e6ff;
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  #gallery .section-title {
    font-size: 2rem;
  }

  .gallery-grid {
    gap: 15px;
  }

  .gallery-item {
    max-width: 100%;
  }
}

/* heads Section*/
.heads-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
}

.heads-container::-webkit-scrollbar {
    height: 8px;
}

.heads-container::-webkit-scrollbar-thumb {
    background: #64ffda;
    border-radius: 10px;
}
/* Club Heads Section */
#club-heads {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.heads-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
}

.heads-container::-webkit-scrollbar {
    height: 8px;
}

.heads-container::-webkit-scrollbar-thumb {
    background: #64ffda;
    border-radius: 10px;
}

.head-card {
    flex: 0 0 300px;
    background: #112240;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
}

.head-card:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(100, 255, 218, 0.15), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    z-index: 1;
}

.head-card:hover:before {
    animation: shine 1.5s ease;
}

.head-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.head-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #64ffda;
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}

.head-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.head-card:hover .head-image {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(100, 255, 218, 0.3);
}

.head-card:hover .head-image img {
    transform: scale(1.05);
}

.head-card h3 {
    margin-bottom: 10px;
    color: #ccd6f6;
    font-size: 1.3rem;
}

.head-card p {
    color: #8892b0;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.head-card p:last-of-type {
    margin-bottom: 0;
}
.team-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #64ffda;
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card:hover .team-image {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(100, 255, 218, 0.3);
}



/* Teams Section */
/* Teams Section */
 .teams-container {
            display: flex;
            gap: 30px;
            overflow-x: auto;
            padding: 20px;
            scroll-snap-type: x mandatory;
        }

/* Team slider nav buttons (hidden by default, shown on mobile) */
.team-nav {
    display: none;
    position: relative;
    background: rgba(100,255,218,0.15);
    border: 1px solid #64ffda;
    color: #64ffda;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 5;
}
.team-nav:hover { background: rgba(100,255,218,0.25); transform: translateY(-2px); }

@media (max-width: 992px) {
  /* Show buttons on mobile and place them flanking the list */
  #teams .container { position: relative; }
  .team-nav { 
    display: inline-flex; 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%);
    z-index: 6;
  }
  .team-nav.prev { left: 6px; margin: 0; }
  .team-nav.next { right: 6px; margin: 0; }
  /* Reduce horizontal padding so buttons and scroller fit nicely */
  #teams .teams-container {
    display: flex !important; /* override earlier grid rule */
    flex-wrap: nowrap;
    padding: 12px;
    gap: 12px;
    overflow-x: auto; /* allow horizontal scroll */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  /* One card per view */
  #teams .team-card {
    flex: 0 0 90%;
    max-width: 90%;
    margin: 0 auto;
    scroll-snap-align: start;
  }
}
        
        .teams-container::-webkit-scrollbar {
            height: 8px;
        }
        
        .teams-container::-webkit-scrollbar-thumb {
            background: #64ffda;
            border-radius: 10px;
        }
        
        .team-card {
            flex: 0 0 300px;
            background: #112240;
            border-radius: 10px;
            padding: 30px;
            text-align: center;
            transition: transform 0.3s ease;
            position: relative;
            overflow: hidden;
            color: white;
            scroll-snap-align: start;
            display: flex;
            flex-direction: column;
            min-height: 400px;
        }
        
        .team-card:before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg,
                    transparent,
                    rgba(100, 255, 218, 0.15),
                    transparent);
            transform: rotate(45deg);
            transition: all 0.5s ease;
            z-index: 1;
        }
        
        .team-card:hover:before {
            animation: shine 1.5s ease;
        }
        
        @keyframes shine {
            from {
                transform: translateX(-100%) rotate(45deg);
            }
        
            to {
                transform: translateX(100%) rotate(45deg);
            }
        }
        
        .team-card:hover {
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        }
        
        .team-icon {
            font-size: 3rem;
            color: #64ffda;
            margin-bottom: 20px;
            transition: transform 0.5s ease;
        }
        
        .team-card:hover .team-icon {
            transform: rotateY(180deg);
        }
        
        .team-card h3 {
            margin-bottom: 15px;
            color: #ccd6f6;
            font-size: 1.4rem;
        }
        
        .team-card p {
            color: #8892b0;
            line-height: 1.6;
            margin-bottom: 25px;
            flex-grow: 1;
        }
        
        .button-container {
            margin-top: auto;
            display: flex;
            justify-content: center;
            align-items: flex-end;
            min-height: 50px;
        }
        
        .view-members-btn {
            display: inline-block;
            padding: 12px 25px;
            background: transparent;
            color: #64ffda;
            border: 1px solid #64ffda;
            border-radius: 4px;
            font-size: 1rem;
            text-decoration: none;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            z-index: 2;
            min-width: 180px;
            text-align: center;
        }

        /* Ensure bottom alignment even if button is not wrapped in .button-container */
        .team-card > .view-members-btn {
            margin-top: auto;
            align-self: center;
        }
        
        .view-members-btn:hover {
            background: rgba(100, 255, 218, 0.1);
            transform: translateY(-2px);
        }

        /* Add a pseudo-element to ensure full button coverage */
        .view-members-btn::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: -1;
        }
        
        /* Team Members Section */
        .team-members {
            display: none;
            margin-top: 30px;
            position: relative;
            z-index: 10;
        }

        .team-members.active {
            display: block;
            animation: fadeIn 0.5s ease;
            position: relative;
            z-index: 100;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .members-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 25px;
            margin-top: 20px;
            position: relative;
            z-index: 10;
        }

        .member-card {
            background: #0c1a35;
            border-radius: 10px;
            overflow: hidden;
            transition: transform 0.3s ease;
            text-align: center;
            position: relative;
            z-index: 10;
        }
        
        .member-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }
        
        .member-image {
            width: 100%;
            height: 180px;
            overflow: hidden;
            position: relative;
        }
        
        .member-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .member-card:hover .member-image img {
            transform: scale(1.1);
        }
        
        .member-info {
            padding: 15px;
        }
        
        .member-name {
            font-size: 1.1rem;
            color: #ccd6f6;
            margin-bottom: 5px;
        }
        
        .member-role {
            font-size: 0.9rem;
            color: #64ffda;
        }
        
        .back-btn {
            display: inline-block;
            margin-top: 20px;
            padding: 8px 20px;
            background: transparent;
            color: #64ffda;
            border: 1px solid #64ffda;
            border-radius: 4px;
            font-size: 0.9rem;
            text-decoration: none;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .back-btn:hover {
            background: rgba(100, 255, 218, 0.1);
        }

/* Events Section */
.events-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.events-timeline:before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: #64ffda;
    animation: lineGrowth 2s ease;
}

@keyframes lineGrowth {
    from {
        height: 0;
    }

    to {
        height: 100%;
    }
}

.event-item {
    width: 50%;
    padding: 20px 40px;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s ease;
}

.event-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.event-item:nth-child(odd) {
    left: 0;
}

.event-item:nth-child(even) {
    left: 50%;
}

.event-item:after {
    content: '';
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    background: #64ffda;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(100, 255, 218, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(100, 255, 218, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(100, 255, 218, 0);
    }
}

.event-item:nth-child(odd):after {
    right: -10px;
}

.event-item:nth-child(even):after {
    left: -10px;
}

.event-content {
    background: #112240;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.event-content:hover {
    transform: translateX(10px);
}

.event-content h3 {
    margin-bottom: 10px;
    color: #ccd6f6;
}

.event-content p {
    color: #8892b0;
    margin-bottom: 10px;
}

.event-date {
    color: #64ffda;
    font-weight: 700;
}

.event-button {
    display: inline-block;
    background: #64ffda;
    color: #0a192f;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.event-button:hover {
    background: #4fd1b6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(100, 255, 218, 0.3);
}

/* Style "View More" links inside events as proper buttons (without changing HTML) */
.event-content a {
    display: inline-block;
    background: transparent;
    color: #64ffda;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
    border: 1px solid #64ffda;
}

.event-content a:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 16px rgba(100, 255, 218, 0.35);
}

/* Mini Maze Runner layout (canvas left, UI right) */
.mini-maze-wrapper {
    max-width: 1000px;
}

.mini-maze-content {
    display: flex;
    align-items: center;
    gap: 28px;
}

.mini-maze-ui {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 180px;
    align-items: center;
}

.mini-maze-instructions {
    color: #8892b0;
    font-size: 0.95rem;
    text-align: center;
}

.mini-maze-status {
    color: #64ffda;
    min-height: 20px;
}

/* D-pad grid for arrow controls */
.mini-maze-controls {
    display: grid;
    grid-template-columns: 48px 48px 48px;
    grid-template-rows: 48px 48px 48px;
    grid-template-areas:
        ". up ."
        "left . right"
        ". down .";
    gap: 10px;
}

#mazeUp { grid-area: up; }
#mazeDown { grid-area: down; }
#mazeLeft { grid-area: left; }
#mazeRight { grid-area: right; }

.mini-maze-spacer { display: none; }

#mazeUp, #mazeRight, #mazeLeft, #mazeDown {
    width: 48px;
    height: 48px;
    padding: 0;
    line-height: 48px;
    text-align: center;
    font-size: 20px;
}

/* Ultra-compact layout for very small devices */
@media (max-width: 380px) {
    #mini-maze {
        padding: 28px 0;
    }

    #mini-maze .section-title {
        margin-bottom: 12px;
        font-size: 1.4rem;
    }

    #mazeCanvas {
        width: 240px;
        height: 240px;
    }

    .mini-maze-controls {
        grid-template-columns: 32px 32px 32px;
        grid-template-rows: 32px 32px 32px;
        gap: 6px;
    }

    #mazeUp, #mazeRight, #mazeLeft, #mazeDown {
        width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 14px;
    }

    .mini-maze-instructions {
        font-size: 0.85rem;
    }
}

#mazeReset { align-self: center; }

#mazeCanvas { flex: 0 0 auto; }
.mini-maze-ui { flex: 0 0 auto; }

/* Contact Section */
.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    margin-bottom: 20px;
    color: #ccd6f6;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: #8892b0;
    transition: transform 0.3s ease;
}

.contact-details li:hover {
    transform: translateX(10px);
}

.contact-details i {
    margin-right: 10px;
    color: #64ffda;
    font-size: 1.2rem;
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #ccd6f6;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #112240;
    border: 1px solid #8892b0;
    border-radius: 4px;
    color: #e6f1ff;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #64ffda;
    box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.2);
    outline: none;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Contact Map */
.contact-map {
    flex: 1;
    display: flex;
    align-items: stretch;
}

.map-embed {
    width: 100%;
    min-height: 320px;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

@media (max-width: 992px) {
    .map-embed { min-height: 260px; }
}


/* Footer */
footer {
    background: #0a192f;
    padding: 50px 0 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #64ffda, transparent);
    animation: lineMove 3s linear infinite;
}

@keyframes lineMove {
    0% {
        background-position-x: -100%;
    }

    100% {
        background-position-x: 100%;
    }
}

.social-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 30px;
}

.social-links li {
    margin: 0 15px;
}

.social-links a {
    color: #ccd6f6;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: #64ffda;
    transform: translateY(-5px);
}

.copyright {
    color: #8892b0;
    font-size: 0.9rem;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #64ffda;
    color: #0a192f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .floating-robot {
        font-size: 10rem;
        right: 5%;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-content {
        flex-direction: column;
    }
}

.maze-runner{
    background-position: center;
    align-items: center;
    display: flex;
    color: aliceblue;
}

@media (max-width: 992px) {
    .menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 25, 47, 0.98);
        backdrop-filter: blur(8px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
        z-index: 2000;
        pointer-events: auto; /* Accept clicks */
    }

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

    .nav-links li {
        margin: 18px 0;
    }

    .nav-links a {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 1.2rem;
        padding: 14px 20px;
        pointer-events: auto;
        z-index: 2100;
    }

    .floating-robot {
        display: none;
    }

    .events-timeline:before {
        left: 20px;
    }

    .event-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
    }

    .event-item:nth-child(even) {
        left: 0;
    }

    .event-item:after {
        left: 20px !important;
    }

    /* Robotics Club Head section mobile alignment */
    #club-heads .heads-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0 10px;
    }

    #club-heads .head-card {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

    /* Mini Maze Runner: stack UI below canvas on mobile */
    #mini-maze .mini-maze-content {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    #mini-maze .mini-maze-ui {
        align-items: center;
        min-width: 0;
    }

    /* Reduce section vertical spacing to help fit canvas + controls */
    #mini-maze {
        padding: 40px 0;
    }
    /* Tighten mini-maze section title spacing on mobile */
    #mini-maze .section-title {
        margin-bottom: 18px;
        font-size: 1.6rem;
    }

    /* Scale canvas down on small screens (attributes remain 360x360, CSS scales visually) */
    #mazeCanvas {
        width: 240px;
        height: 240px;
    }

    /* Compact the D-pad controls */
    .mini-maze-controls {
        grid-template-columns: 32px 32px 32px;
        grid-template-rows: 32px 32px 32px;
        gap: 6px;
    }

    #mazeUp, #mazeRight, #mazeLeft, #mazeDown {
        width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 14px;
        padding: 0;
    }

    /* Make instructions text a bit smaller to save space */
    .mini-maze-instructions {
        font-size: 0.9rem;
    }

    /* Make header scroll with the page on mobile and reduce its size */
    header {
        position: static;
        top: auto;
        padding: 10px 0;
        backdrop-filter: blur(6px);
    }

    /* Tighter logo sizing on mobile to avoid covering hero text */
    .logo img {
        height: 48px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    /* Since header is not fixed on mobile, reduce hero top padding */
    .hero {
        padding-top: 20px;
    }
}

.event-view-more {
    color: transparent;
    text-shadow: 0 0 5px #64ffda;
    transition: all 0.3s ease;
}

.event-view-more:hover {
color: #64ffda;
text-shadow: none;
}

/* Fluid media defaults */
img, video {
max-width: 100%;
height: auto;
display: block;
}

/* Projects slider: snap scrolling for better mobile UX */
.projects-slider .projects-grid {
scroll-snap-type: x mandatory;
-webkit-overflow-scrolling: touch;
}
.projects-slider .project-card {
scroll-snap-align: start;
}

/* Tablet and below */
@media (max-width: 992px) {
html { font-size: 15px; }
.container { padding: 0 16px; }
/* Larger nav touch targets already applied */
/* Teams: show 2 columns */
.teams-container {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16px;
}
.team-card { width: 100%; max-width: 100%; }
/* Events: simplify timeline */
.events-timeline:before { display: none; }
.event-item { left: 0 !important; width: 100%; padding-left: 20px; padding-right: 20px; }
}

/* Small phones */
@media (max-width: 576px) {
html { font-size: 14px; }
.container { padding: 0 12px; }
/* Teams: single column */
.teams-container {
grid-template-columns: 1fr;
}
/* Projects: bigger nav buttons for touch */
.proj-nav { width: 48px; height: 48px; font-size: 1.1rem; }
/* Lighter effects on mobile for performance */
.gallery-item, .rules-section, .team-section, .project-card, .team-card {
box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
}