@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@600;700&family=Dancing+Script:wght@700&family=Orbitron:wght@700&display=swap');

:root {
  /* Colors */
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-tertiary: #1e1e1e;
  
  --accent: #00d4ff; /* Neon Night Blue (Eski: #bc13fe) */
  --accent-rgb: 0, 212, 255; /* (Eski: 188, 19, 254) */
  --accent-muted: rgba(0, 212, 255, 0.1);
  
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  /* Effects */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  --card-glow: 0 0 20px rgba(188, 19, 254, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* AI-FRIENDLY UTILITIES */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-padding {
  padding: var(--space-xl) 0;
  position: relative; /* Add this for absolute child positioning */
}

#terminal-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.15; /* Adjusted for better contrast across all sections */
  z-index: -1;
}

#hero-content {
  position: relative;
  z-index: 1;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

/* COMPONENTS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--accent);
  color: #000;
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px var(--accent-muted);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-muted);
}

/* LAYOUT: GRID SYSTEM FOR CARDS */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
}

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: var(--space-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: var(--card-glow);
  transform: translateY(-4px);
}

/* NAVBAR */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-sm) 0;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
}

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

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-decoration: none;
}

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-muted), 0 0 20px var(--accent-muted);
  white-space: nowrap;
  position: relative;
  background: linear-gradient(
    to right,
    var(--accent) 20%,
    #fff 40%,
    #fff 60%,
    var(--accent) 80%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 3s linear infinite;
  transition: var(--transition);
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.logo:hover .logo-text {
  transform: scale(1.05);
  text-shadow: 0 0 15px var(--accent), 0 0 30px var(--accent);
}

.nav-links {
  display: flex;
  gap: var(--space-md);
}

.nav-link {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(188, 19, 254, 0.03);
  box-shadow: 0 0 5px var(--accent-muted);
}

.nav-link:hover {
  background: var(--accent);
  color: #000 !important;
  box-shadow: 0 0 15px var(--accent);
  transform: translateY(-1px);
}

/* TEXT GRADIENTS */
.text-gradient {
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text; /* Standard property */
  -webkit-text-fill-color: transparent;
}

/* CODE BLOCKS */
pre {
  background: #111 !important;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  position: relative;
  overflow-x: auto;
}

code {
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.9rem;
  color: #e0e0e0;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: var(--transition);
}

.copy-btn:hover {
  background: var(--accent-muted);
  color: var(--accent);
  border-color: var(--accent);
}

/* MOBILE MENU BTN */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--accent);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  :root {
    --space-xl: 4rem;
    --space-md: 1.5rem; /* Increased side padding for modern phones */
  }
  
  .mobile-menu-btn {
    display: block; /* Show hamburger button on mobile */
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px; /* or 100% for full screen menu */
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 80px 2rem 2rem;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--glass-border);
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
  }

  .nav-links.active {
    right: 0; /* Slide in menu */
  }
  
  .nav-link {
    width: 100%;
    text-align: center;
    padding: 0.8rem;
  }

  .grid {
    grid-template-columns: 1fr; /* Stack cards on mobile */
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .hero-btns .btn {
    width: 100%;
    justify-content: center;
  }

  h1 {
    font-size: 1.8rem !important; /* Force smaller size on very small screens */
    word-break: break-word;
  }
}
