/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #0d0d0d;
  color: #f0f0f0;
  overflow-x: hidden;
}

/* Header */
header, #header-placeholder {
  background: linear-gradient(90deg, #003366, #005599);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header nav a {
  color: white;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
  transition: color 0.3s ease;
}

header nav a:hover {
  color: #00ffcc;
}

/* Hero Section */
/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  color: #b4d4ce;
}

#matrixBackground, #particles {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 2rem;
}

.hero-text {
  max-width: 50%;
}

.hero-text h1.glitch {
  font-size: 3rem;
  position: relative;
  color: #bdf2e8;
  text-shadow: 0 0 5px #00ffcc;
}
.hero-text h1.glitch::before, 
.hero-text h1.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0.8;
}
.hero-text h1.glitch::before {
  color: #ff00ff;
  transform: translate(-2px, -2px);
}
.hero-text h1.glitch::after {
  color: #00ffff;
  transform: translate(2px, 2px);
}
/* ddhdddddddddd */
.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 1300px;
  z-index: 2;
}

.hero-text {
  flex: 1;
}

.hero-computer {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-computer img {
  max-width: 100%;
  height: auto;
  animation: floatComputer 6s ease-in-out infinite;
}

@keyframes floatComputer {
  0%, 100% { transform: translateY(0) rotateY(0deg); }
  50% { transform: translateY(-15px) rotateY(5deg); }
}

/* ===========================
   RESPONSIVE BREAKPOINTS
   =========================== */

/* Large Tablets & Small Laptops */
@media (max-width: 1024px) {
  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-buttons a {
    display: inline-block;
    margin: 0.5rem;
  }
}

/* Tablets & Large Phones */
@media (max-width: 768px) {
  .hero-text h1.glitch {
    font-size: 2.5rem;
  }

  .hero-text h2 {
    font-size: 1.2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-computer img {
    max-width: 300px;
  }
}

/* Small Phones */
@media (max-width: 480px) {
  .hero-text h1.glitch {
    font-size: 2rem;
  }

  .hero-text h2 {
    font-size: 1rem;
  }

  .hero-text p {
    font-size: 0.9rem;
  }

  .hero-buttons a {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }
}

/* ejsadfhg */
.hero-text p {
  margin: 1rem 0;
  color: #b0fff3;
}

.hero-buttons a {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  background: linear-gradient(to right, #00ffcc, #00aaff);
  color: black;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-buttons a.secondary {
  background: transparent;
  border: 2px solid #00ffcc;
  color: #00ffcc;
}
.hero-buttons a:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0,255,204,0.6);
}

.hero-computer {
  animation: floatComp 6s ease-in-out infinite;
}
.hero-computer img {
  max-width: 450px;
  filter: drop-shadow(0 0 15px rgba(0,255,204,0.6));
}

@keyframes floatComp {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}


/* Sections */
section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
}

section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #00ffcc;
  animation: fadeIn 1s ease-out;
}

p, li {
  line-height: 1.6;
}

/* Cards */
.project-list, .team-list, .gallery-grid {
  display: grid;
  gap: 2rem;
}

.project-list {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 255, 204, 0.3);
}

/* ===== HEADER STYLING ===== */
header, #header-placeholder {
  background: linear-gradient(90deg, #002855, #0056b3); /* IMA-like deep blue gradient */
  padding: 0.75rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Logo and Navigation Container */
header .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

/* Logo */
header .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

header .logo img {
  height: 40px;
}

header .logo span {
  font-size: 1.25rem;
  font-weight: bold;
  color: white;
  letter-spacing: 1px;
}

/* Navigation */
header nav {
  display: flex;
  gap: 1.5rem;
}

header nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background-color: #00ffcc;
  transition: width 0.3s ease;
}

header nav a:hover {
  color: #00ffcc;
}

header nav a:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle (hidden on desktop) */
header .menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

header .menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  header nav {
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(0, 40, 85, 0.95);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 2rem;
    gap: 1rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  header nav.active {
    transform: translateX(0);
  }

  header .menu-toggle {
    display: flex;
  }
}

/* Team */
/* ===== MEET THE MEMBERS SECTION ===== */
.members {
  background: linear-gradient(135deg, #02050f, #000);
  padding: 3rem 0;
  overflow: hidden;
  position: relative;
}

.members h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  background: linear-gradient(to right, #00ffcc, #00aaff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(0,255,204,0.4);
}

/* Slider container */
.members-slider {
  display: flex;
  gap: 2rem;
  animation: slideLeft 20s linear infinite;
}

/* Each card */
.member-card {
  flex: 0 0 250px;
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(0,255,204,0.3);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 8px 15px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: floatMember 4s ease-in-out infinite;
}

.member-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #00ffcc;
  margin-bottom: 1rem;
}

.member-card h3 {
  font-size: 1.2rem;
  color: #00ffcc;
}

.member-card p {
  font-size: 0.9rem;
  color: #ccc;
}

.member-card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 25px rgba(0,255,204,0.6);
}

/* Floating effect */
@keyframes floatMember {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Continuous sliding animation */
@keyframes slideLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* Gallery */
/* ===== GALLERY SECTION ===== */
/* ===== GALLERY SECTION ===== */
.gallery {
  background: radial-gradient(circle at center, #000010, #000);
  padding: 4rem 2rem;
  color: white;
  text-align: center;
}

.gallery h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #00ffcc;
  text-shadow: 0 0 10px rgba(0,255,204,0.5);
}

/* Grid for 3 album stacks */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-items: center;
}

/* Album Container */
.gallery-album {
  position: relative;
  width: 250px;
  height: 350px;
  perspective: 1000px;
}

/* Photo Styling */
.gallery-album img {
  position: absolute;
  top: 0;
  left: 0;
  width: 250px;
  height: 350px;
  object-fit: cover;
  border: 5px solid white;
  border-radius: 8px;
  box-shadow: 0 8px 15px rgba(0,0,0,0.5);
  opacity: 0;
  transform: scale(0.9) rotate(-5deg);
  animation: galleryShow 12s infinite;
}

/* Delay for images in each album */
.gallery-album img:nth-child(1) { animation-delay: 0s; }
.gallery-album img:nth-child(2) { animation-delay: 4s; }
.gallery-album img:nth-child(3) { animation-delay: 8s; }

/* Animation */
@keyframes galleryShow {
  0% {
    opacity: 0;
    transform: scale(0.9) rotate(-5deg);
    z-index: 0;
  }
  5% {
    opacity: 1;
    transform: scale(1.05) rotate(0deg);
    z-index: 2;
  }
  30% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    z-index: 2;
  }
  35% {
    opacity: 0;
    transform: scale(0.9) rotate(5deg);
    z-index: 0;
  }
  100% {
    opacity: 0;
    transform: scale(0.9) rotate(5deg);
    z-index: 0;
  }
}
/* ===== ABOUT THE CLUB SECTION ===== */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #0a0f2c, #000);
  color: white;
  gap: 3rem;
}

.about-image {
  flex: 1 1 350px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.about-image img {
  width: 300px;
  height: auto;
  animation: floatComputer 4s ease-in-out infinite, glowPulse 3s ease-in-out infinite;
  filter: drop-shadow(0 0 10px #00ffcc);
}

/* Floating Animation */
@keyframes floatComputer {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
}

/* Glow Animation */
@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 10px #00ffcc); }
  50% { filter: drop-shadow(0 0 25px #00ffcc); }
}

.about-text {
  flex: 1 1 400px;
  animation: fadeSlideUp 1.2s ease-out forwards;
  opacity: 0;
}

.about-text h2 {
  font-size: 2rem;
  background: linear-gradient(to right, #00ffcc, #00aaff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #ccc;
}

/* Fade and Slide Animation */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== EVENTS SECTION ===== */
.events {
  background: linear-gradient(135deg, #050d1f, #000);
  padding: 4rem 2rem;
  color: white;
  text-align: center;
}

.events h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  background: linear-gradient(to right, #00ffcc, #00aaff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(0,255,204,0.5);
}

/* Row layout */
.event-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

/* Individual Event Cards */
.event-card {
  flex: 1 1 300px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(0, 255, 204, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  animation: floatCard 4s ease-in-out infinite;
}

/* Floating Animation */
@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.event-card:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 255, 204, 0.6);
}

/* Headings inside cards */
.event-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #00ffcc;
}

/* Past Events style */
.event-past {
  border-color: rgba(255, 165, 0, 0.4);
}
.event-past h3 { color: orange; }

/* Upcoming Events style */
.event-upcoming {
  border-color: rgba(0, 255, 204, 0.6);
}
.event-upcoming h3 { color: #00ffcc; }

/* Notice Board style */
.event-notice {
  border-color: rgba(255, 0, 102, 0.4);
  background: rgba(255, 0, 102, 0.05);
}
.event-notice h3 { color: #ff0066; }


/* Contact Form */
/* ===== CONTACT US SECTION ===== */
.contact {
  background: linear-gradient(135deg, #050d1f, #000);
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.contact-container {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  max-width: 600px;
  width: 100%;
  animation: flyForm 6s ease-in-out infinite;
  border: 2px solid rgba(0,255,204,0.3);
}

/* Floating & tilting animation */
@keyframes flyForm {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(-1deg); }
  50% { transform: translateY(0) rotate(1deg); }
  75% { transform: translateY(10px) rotate(-1deg); }
}

.contact-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  background: linear-gradient(to right, #00ffcc, #00aaff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-container form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-container input,
.contact-container textarea {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 2px solid transparent;
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

/* Glowing effect on focus */
.contact-container input:focus,
.contact-container textarea:focus {
  border-color: #00ffcc;
  box-shadow: 0 0 15px rgba(0,255,204,0.6);
}

/* Submit Button */
.contact-container button {
  background: linear-gradient(to right, #00ffcc, #00aaff);
  color: #000;
  padding: 0.8rem;
  font-size: 1rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-container button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0,255,204,0.5);
}


/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}

@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);}
}

/* Matrix Canvas */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: transparent;
}
/* ===== RESOURCES SECTION ===== */
.resources {
  padding: 4rem 2rem;
  background: radial-gradient(circle at top, #0a0f2c, #000);
  color: white;
  text-align: center;
  position: relative;
}

.resources h2 {
  font-size: 2rem;
  color: #00ffcc;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px rgba(0,255,204,0.6);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
}

/* Individual Resource Card */
.resource-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 2rem 1rem;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,255,204,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 0 40px rgba(0,255,204,0.4);
}

/* Floating Computer Icon */
.resource-icon {
  width: 80px;
  height: 80px;
  margin: auto;
  background: url('images/computer-icon.png') no-repeat center/contain;
  animation: floatComputer 4s ease-in-out infinite, glowPulse 2s ease-in-out infinite;
}

/* Card Text */
.resource-card h3 {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #00ffcc;
}

.resource-card p {
  font-size: 0.95rem;
  margin-top: 0.5rem;
  color: #ddd;
}

/* Floating Animation */
@keyframes floatComputer {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

/* Glow Pulse Animation */
@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 5px #00ffcc); }
  50% { filter: drop-shadow(0 0 15px #00ffcc); }
}

/* Floating Particle Effect Behind */
.resources::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200%;
  height: 200%;
  background: url('images/particle-bg.png') repeat;
  opacity: 0.1;
  animation: moveParticles 30s linear infinite;
}

@keyframes moveParticles {
  from { background-position: 0 0; }
  to { background-position: 1000px 1000px; }
}
