/* Base variables */
:root {
  --bg-color: #0f172a; /* Slate 900 */
  --bg-accent: #1e293b; /* Slate 800 */
  --text-light: #f8fafc; /* Slate 50 */
  --text-muted: #94a3b8; /* Slate 400 */
  
  --accent-cyan: #38bdf8;
  --accent-emerald: #34d399;
  
  --glass-bg: rgba(30, 41, 59, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-glow: rgba(56, 189, 248, 0.15);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Basics */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Typography & Utils */
.text-cyan { color: var(--accent-cyan); }
.text-emerald { color: var(--accent-emerald); }
.text-light { color: var(--text-light); }
.text-gray { color: var(--text-muted); }
.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.w-full { width: 100%; }
.mt-4 { margin-top: 1rem; }
.text-center { text-align: center; }

h1, h2, h3, h4 { leading-trim: both; text-edge: cap; line-height: 1.2; }
a { color: inherit; text-decoration: none; transition: var(--transition-smooth); }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.section-spacing {
  padding: 5rem 0;
}

/* Glowing Background Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.5;
  animation: float 10s infinite ease-in-out alternate;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background-color: rgba(56, 189, 248, 0.15);
  top: -10%;
  left: 10%;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background-color: rgba(52, 211, 153, 0.15);
  bottom: 20%;
  right: -5%;
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-30px) scale(1.1); }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0; 
  left: 0; 
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(15, 23, 42, 0.7);
  padding: 1rem 0;
}

.nav-content {
  height: auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--accent-cyan);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
}

/* Glassmorphism System */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 10px 40px var(--glass-glow);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #0284c7);
  color: #fff;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #7dd3fc, var(--accent-cyan));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--text-muted);
}

.btn-secondary:hover {
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  background: rgba(52, 211, 153, 0.05);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
}

.hero-content {
  max-width: 800px;
}

.terminal-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--bg-accent);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  margin-bottom: 1.5rem;
}

.terminal-badge .prompt {
  color: var(--accent-emerald);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.text-gradient {
  background: linear-gradient(to right, var(--accent-emerald), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2rem;
}

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

/* Section Common */
.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  font-family: var(--font-mono);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.line-decorator {
  height: 1px;
  background: linear-gradient(90deg, var(--glass-border), transparent);
  margin-top: 1rem;
  width: 100%;
}

/* Bento Grid Projects */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-large {
    grid-column: span 2;
  }
}

.bento-item {
  display: flex;
  flex-direction: column;
}

.card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.icon-accent {
  width: 32px;
  height: 32px;
}

.card-header .links {
  display: flex;
  gap: 1rem;
}

.card-header .links a {
  color: var(--text-muted);
}

.card-header .links a:hover {
  color: var(--text-light);
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

.bento-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.tech-stack li {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.terminal-stack li {
  background: rgba(52, 211, 153, 0.1);
  color: var(--accent-emerald);
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.skill-category {
  height: 100%;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
}

.category-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.skill-list li i {
  width: 18px;
  height: 18px;
}

/* Terminal Styling */
.outline-terminal {
  border-color: rgba(52, 211, 153, 0.3);
}

.terminal-header {
  display: flex;
  align-items: center;
  background: #0f172a; /* darker for real terminal feel */
  padding: 0.75rem 1rem;
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid var(--glass-border);
}

.dots {
  display: flex;
  gap: 6px;
}

.dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.red-dot { background: #ef4444; }
.yellow-dot { background: #eab308; }
.green-dot { background: #22c55e; }

.term-title {
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0 0 12px 12px;
  font-size: 0.85rem;
}

.terminal-body p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.prompt {
  color: var(--accent-emerald);
  margin-right: 0.5rem;
}

.sysadmin-output {
  color: var(--text-muted) !important;
}

.terminal-skill-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 1rem 0;
}

.terminal-skill-list li {
  color: var(--text-light);
}

.highlight-sysadmin {
  color: var(--accent-cyan) !important;
  font-weight: 600;
  margin-top: 0.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent-cyan);
}

.cursor-blink {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--text-light);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Contact & About Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr 1fr;
  }
}

.about-flex {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 600px) {
  .about-flex {
    flex-direction: row;
    text-align: left;
  }
}

.gif-container {
  flex-shrink: 0;
}

.gif-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(52, 211, 153, 0.1));
  border: 2px dashed var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: bold;
  animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.3); }
  70% { box-shadow: 0 0 0 15px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--text-light);
  font-family: var(--font-sans);
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

/* Interactive Terminal Footer */
.terminal-footer {
  padding: 4rem 0 2rem;
}

.terminal-window {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.8);
  overflow: hidden;
}

.terminal-content {
  padding: 1.5rem;
  min-height: 120px;
  max-height: 250px;
  overflow-y: auto;
}

.terminal-content p {
  margin-bottom: 0.4rem;
}

.terminal-input-line {
  display: flex;
  padding: 0 1.5rem 1.5rem;
  align-items: center;
}

.terminal-input-line input {
  flex-grow: 1;
  background: transparent;
  border: none;
  color: var(--text-light);
  font-family: var(--font-mono);
  font-size: inherit;
}

.terminal-input-line input:focus {
  outline: none;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-accent);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    border-bottom: 1px solid var(--glass-border);
  }
  
  .nav-links.show {
    display: flex;
  }
  
  .menu-toggle {
    display: block;
  }
}
