/* ========================================
   PH0NET - GREEN/BLACK CYBERPUNK THEME
   ======================================== */

/* CSS Variables */
:root {
  --bg-dark: #000000;
  --bg-darker: #000000;
  --bg-card: #0a0a0a;
  --bg-card-hover: #111111;

  --neon-primary: #00ff66;
  --neon-secondary: #00cc52;
  --neon-dim: #009940;
  --accent-red: #ff3333;

  --text-primary: #ffffff;
  --text-secondary: #888888;

  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   NAVIGATION
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 255, 102, 0.2);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.brand-logo {
  height: 36px;
  width: auto;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--neon-primary);
  text-shadow: 0 0 10px rgba(0, 255, 102, 0.5);
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0.8rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--neon-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  box-shadow: 0 0 6px var(--neon-primary);
}

.nav-link:hover,
.nav-link.active {
  color: var(--neon-primary);
}

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

.nav-social {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  width: 20px;
  height: 20px;
  fill: var(--text-secondary);
  transition: all 0.3s ease;
}

.social-link:hover .social-icon {
  fill: var(--neon-primary);
  filter: drop-shadow(0 0 6px var(--neon-primary));
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  position: relative;
  transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  transition: all 0.3s ease;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

.mobile-toggle:hover .hamburger,
.mobile-toggle:hover .hamburger::before,
.mobile-toggle:hover .hamburger::after {
  background: var(--neon-primary);
}

/* Mobile Menu Checkbox (hidden) */
.mobile-menu-toggle {
  display: none;
}

/* Mobile Menu Open State */
.mobile-menu-toggle:checked ~ .nav-links {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.98);
  padding: 0;
  border-bottom: 1px solid rgba(0, 255, 102, 0.2);
  gap: 0;
  list-style: none;
  margin: 0;
}

.mobile-menu-toggle:checked ~ .nav-links li {
  width: 100%;
}

.mobile-menu-toggle:checked ~ .nav-links .nav-link {
  display: block;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
  width: 100%;
}

.mobile-menu-toggle:checked ~ .nav-links .nav-link::after {
  display: none;
}

.mobile-menu-toggle:checked ~ .nav-links li:last-child .nav-link {
  border-bottom: none;
}

.mobile-menu-toggle:checked ~ .mobile-toggle .hamburger {
  background: transparent;
}

.mobile-menu-toggle:checked ~ .mobile-toggle .hamburger::before {
  top: 0;
  transform: rotate(45deg);
  background: var(--neon-primary);
}

.mobile-menu-toggle:checked ~ .mobile-toggle .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
  background: var(--neon-primary);
}

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
  padding: 5rem 1.5rem 1.5rem;
  text-align: center;
  background: var(--bg-dark);
}

.page-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--text-primary);
  margin: 0 0 0.25rem;
  letter-spacing: 0.1em;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* ========================================
   HERO SECTION (Home Page)
   ======================================== */
.hero {
  padding: 6rem 1.5rem 3rem;
  text-align: center;
  background: var(--bg-dark);
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(0, 255, 102, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(255, 51, 51, 0.03) 0%, transparent 50%),
    var(--bg-darker);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero-logo {
  width: 120px;
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px rgba(255, 51, 51, 0.3));
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  color: var(--text-primary);
  margin: 0 0 0.5rem;
  letter-spacing: 0.08em;
}

.hero-tagline {
  color: var(--neon-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin: 0 0 1rem;
}

.hero-description {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: transparent;
  color: var(--neon-primary);
  border: 1px solid var(--neon-primary);
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.15);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--neon-primary);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: -1;
}

.btn-primary:hover {
  color: #000000;
  box-shadow: 0 0 20px rgba(0, 255, 102, 0.4);
}

.btn-primary:hover::before {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

/* ========================================
   PROJECTS SECTION
   ======================================== */
.projects-section {
  padding: 2rem 1.5rem 3rem;
  background: var(--bg-dark);
  position: relative;
}

.projects-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 102, 0.3), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--neon-primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--text-primary);
  margin: 0 0 0.4rem;
  letter-spacing: 0.05em;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* ========================================
   PROJECT CARDS
   ======================================== */
.project-card {
  position: relative;
  background: var(--bg-card);
  border-radius: 8px;
  padding: 1.25rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 102, 0.05) 0%,
    transparent 40%,
    transparent 60%,
    rgba(255, 51, 51, 0.03) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 15px 30px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 255, 102, 0.08);
  border-color: rgba(0, 255, 102, 0.2);
}

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

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.card-logo {
  width: 55px;
  height: 55px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 51, 51, 0.2));
  transition: filter 0.3s ease;
}

.project-card:hover .card-logo {
  filter: drop-shadow(0 0 12px rgba(255, 51, 51, 0.4));
}

.card-badge {
  background: rgba(0, 255, 102, 0.1);
  color: var(--neon-primary);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  font-size: 0.6rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(0, 255, 102, 0.2);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.card-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.tag {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--neon-primary);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  transition: gap 0.3s ease, text-shadow 0.3s ease;
}

.card-link:hover {
  gap: 0.8rem;
  text-shadow: 0 0 8px var(--neon-primary);
}

.card-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Featured Card */
.project-card.featured {
  border-color: rgba(0, 255, 102, 0.3);
}

.project-card.featured::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(0, 255, 102, 0.4), transparent, rgba(0, 255, 102, 0.2));
  border-radius: 9px;
  z-index: -1;
  opacity: 0.5;
}

.featured-badge {
  background: rgba(0, 255, 102, 0.2) !important;
  border-color: rgba(0, 255, 102, 0.4) !important;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
  padding: 2.5rem 1.5rem;
  background: var(--bg-darker);
  position: relative;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 102, 0.2), transparent);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
}

.about-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: contain;
  border: 2px solid rgba(255, 51, 51, 0.4);
  box-shadow: 0 0 20px rgba(255, 51, 51, 0.15);
  background: var(--bg-card);
  padding: 8px;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 0.3rem;
  color: var(--text-primary);
}

.about-text .tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon-primary);
  margin: 0 0 0.75rem;
  letter-spacing: 0.05em;
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background: rgba(0, 255, 102, 0.1);
  border-color: var(--neon-primary);
  color: var(--neon-primary);
}

.social-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
  padding: 3rem 1.5rem;
  background: var(--bg-dark);
}

.contact-content {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.contact-email {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--neon-primary);
  margin: 1rem 0;
}

.contact-email a {
  color: var(--neon-primary);
  transition: text-shadow 0.3s ease;
}

.contact-email a:hover {
  text-shadow: 0 0 10px var(--neon-primary);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(0, 255, 102, 0.1);
  padding: 1.5rem;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo {
  height: 28px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.footer-logo:hover {
  opacity: 1;
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin: 0;
}

.footer-text a {
  color: var(--neon-primary);
  transition: text-shadow 0.3s ease;
}

.footer-text a:hover {
  text-shadow: 0 0 6px var(--neon-primary);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  color: var(--text-secondary);
  font-size: 0.8rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--neon-primary);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 900px) {
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-avatar {
    margin: 0 auto;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 1rem;
    position: relative;
  }

  .nav-links {
    display: none;
  }

  .nav-social {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .brand-text {
    font-size: 1rem;
  }

  .page-header {
    padding: 4.5rem 1rem 1rem;
  }

  .hero {
    padding: 5rem 1rem 2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .social-links {
    flex-direction: column;
    align-items: center;
  }
}
