/* --- VARIABLES --- */
:root {
  /* Space Colors */
  --deep-space: #020617;
  --orbit-blue: #0f172a;
  --satellite-silver: #e2e8f0;

  /* Accents */
  --tech-cyan: #0ea5e9;
  --solar-gold: #f59e0b;

  /* Text & Backgrounds */
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-body: #f8fafc;

  /* Transitions & Shadows */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 20px 25px -5px rgba(15, 23, 42, 0.15),
    0 10px 10px -5px rgba(15, 23, 42, 0.04);
}

/* --- RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-body);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo {
  font-family: "Exo 2", sans-serif;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}

/* --- UTILITIES --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem); /* Responsive Font Size */
  color: var(--orbit-blue);
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--tech-cyan), var(--deep-space));
  margin: 10px auto 0;
  border-radius: 4px;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--orbit-blue) 0%,
    var(--deep-space) 100%
  );
  color: white;
  box-shadow: 0 4px 15px rgba(2, 6, 23, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.3);
  background: linear-gradient(
    135deg,
    var(--tech-cyan) 0%,
    var(--orbit-blue) 100%
  );
}

.btn-outline {
  border: 2px solid var(--orbit-blue);
  color: var(--orbit-blue);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--orbit-blue);
  color: white;
}

/* --- HEADER & NAV --- */
header {
  background-color: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo i {
  color: var(--tech-cyan);
}
.logo span {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  border-left: 1px solid var(--text-muted);
  padding-left: 10px;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #cbd5e1;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--tech-cyan);
}
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--tech-cyan);
  transition: var(--transition);
}
.nav-links a:hover::after {
  width: 100%;
}

.burger {
  display: none;
  cursor: pointer;
}
.burger div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px;
  transition: var(--transition);
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  background: linear-gradient(
      135deg,
      rgba(2, 6, 23, 0.9) 0%,
      rgba(15, 23, 42, 0.8) 100%
    ),
    url("asset/backround.avif");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding-top: 70px; /* Offset for sticky header */
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.1) 1px,
    transparent 1px
  );
  background-size: 30px 30px;
  opacity: 0.3;
  pointer-events: none;
}

.hero-content {
  z-index: 2;
  width: 100%;
  padding: 0 20px;
}

.callsign-main {
  font-size: clamp(3rem, 10vw, 6rem); /* Huge Responsive Text */
  font-weight: 800;
  margin: 1rem 0;
  background: linear-gradient(to right, #ffffff, var(--tech-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(14, 165, 233, 0.3);
  line-height: 1.1;
}

.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.badge-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--tech-cyan);
  backdrop-filter: blur(4px);
}

.hero-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 2rem;
}

/* --- ABOUT ME --- */
.about {
  background-color: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.about-img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 4px solid white;
  position: relative;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--deep-space);
}

.about-info-list {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-info-list li {
  display: flex;
  align-items: center;
  padding: 12px;
  background-color: var(--bg-body);
  border-radius: 8px;
  border-left: 4px solid var(--orbit-blue);
}

.about-info-list i {
  color: var(--tech-cyan);
  width: 30px;
  font-size: 1.2rem;
}

.interests-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.5rem;
}

.tag {
  background-color: white;
  color: var(--orbit-blue);
  border: 1px solid var(--satellite-silver);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- CARDS GRID (Common for Registered & eQSL) --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.reg-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--satellite-silver);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reg-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--orbit-blue), var(--tech-cyan));
}

.reg-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.icon-box {
  width: 70px;
  height: 70px;
  background-color: rgba(14, 165, 233, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--tech-cyan);
  font-size: 1.8rem;
}

/* --- EQSL --- */
.eqsl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.eqsl-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 16/10;
  position: relative;
  background: #000;
}

.eqsl-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  opacity: 0.9;
}

.eqsl-item:hover img {
  transform: scale(1.1);
  opacity: 1;
}

.eqsl-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.9), transparent);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: var(--transition);
}

.eqsl-item:hover .eqsl-overlay {
  opacity: 1;
}
.eqsl-info strong {
  color: var(--tech-cyan);
  display: block;
}
.eqsl-info small {
  color: white;
}

/* --- GALLERY --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  grid-auto-flow: dense;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  height: 250px;
  position: relative;
}

/* Awards Section Styles */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.award-card {
  background: #1e293b;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.award-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 243, 255, 0.2);
  border-color: var(--tech-cyan);
}

.award-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 2px solid var(--tech-cyan);
}

.award-info {
  padding: 1.5rem;
}

.award-info h4 {
  color: white;
  margin-bottom: 0.5rem;
  font-family: "Exo 2", sans-serif;
}

.award-info p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Span 2 cols on big screens only */
@media (min-width: 768px) {
  .gallery-item:first-child {
    grid-column: span 2;
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.gallery-item:hover img {
  transform: scale(1.05);
}

/* --- CONTACT --- */
.contact {
  background-color: var(--deep-space);
  color: white;
  position: relative;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.2rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item i {
  color: var(--tech-cyan);
  font-size: 1.4rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.5);
  color: white;
  font-family: inherit;
}

.contact-form button {
  width: 100%;
  padding: 14px;
  background: var(--tech-cyan);
  color: var(--deep-space);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.contact-form button:hover {
  background: white;
}

/* --- FOOTER --- */
footer {
  background-color: black;
  color: var(--text-muted);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--orbit-blue);
  font-size: 0.9rem;
}

/* --- ANIMATION --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE BREAKPOINTS --- */

/* Tablet & Mobile Landscape */
@media screen and (max-width: 968px) {
  .about-grid,
  .contact-container {
    grid-template-columns: 1fr; /* Stack columns */
    gap: 2rem;
  }
  .about-img {
    max-width: 500px;
    margin: 0 auto;
  }
  .hero-content h1 {
    font-size: 4rem;
  }
}

/* Mobile Portrait */
@media screen and (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }

  /* Burger Menu */
  .burger {
    display: block;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 70%;
    background-color: var(--deep-space);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
  }

  .nav-links.nav-active {
    transform: translateX(0%);
  }

  .logo span {
    display: none;
  } /* Hide tagline on mobile */

  /* Burger Animation */
  .toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .toggle .line2 {
    opacity: 0;
  }
  .toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  /* Contact Form Adjustments */
  .contact-container {
    padding: 1.5rem;
  }

  /* Hero Adjustments */
  .hero-btns {
    flex-direction: column;
    width: 100%;
  }
  .hero-btns .btn {
    width: 100%;
  }
}

/*Alert*/
.form-alert {
  display: none;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-weight: 600;
  text-align: center;
  animation: fadeIn 0.3s ease;
  backdrop-filter: blur(6px);
}

.form-alert.success {
  background: rgba(14, 165, 233, 0.2);
  color: var(--tech-cyan);
  border: 1px solid rgba(14, 165, 233, 0.5);
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
}

.form-alert.error {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
