:root {
  --bg-dark: #020617;
  --sidebar-bg: #0f172a;
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.3);
  --text-main: #f8fafc;
  --text-dim: #94a3b8;
  --font-main: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
}

/* ===== VERTICAL NAVBAR ===== */
.vertical-nav {
  position: fixed;
  left: 0;
  width: 260px;
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  padding: 40px 20px;
  z-index: 1000;
  justify-content: space-between; /* Keeps footer at bottom */
}

.logo-box .logo {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
}

.logo span { color: var(--accent); }

.nav-links { list-style: none; margin-top: 50px; flex-grow: 1; }
.nav-links li { margin-bottom: 10px; }

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 15px;
  border-radius: 12px;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
}

.nav-links a i { font-size: 1.1rem; width: 20px; text-align: center; }

.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,0.03);
  color: var(--accent);
  box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.05);
}

.nav-footer {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  padding-bottom: 10px;
}

.status-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}

/* ===== HERO SECTION ===== */
.front-page {
  margin-left: 260px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 5%;
  position: relative;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px), 
                    linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
}

.front-content {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Fixed 50/50 split to prevent squeeze */
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  width: 100%;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 25px;
}

.hero-title span {
  background: linear-gradient(90deg, var(--accent), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 35px;
}

.highlight { color: #fff; font-weight: 600; }

.hero-btns { display: flex; gap: 20px; }

.btn-primary {
  padding: 14px 28px;
  background: var(--accent);
  color: var(--bg-dark) !important;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  transition: 0.3s;
}

.btn-secondary {
  padding: 14px 28px;
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: 0.3s;
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px var(--accent-glow); }

/* ===== PROFILE IMAGE FX - FIXED ===== */
.image-side { 
  display: flex; 
  justify-content: center;
  align-items: center;
}

.image-frame {
  position: relative;
  width: 100%;
  max-width: 340px; /* Contrains the width */
  height: 420px;     /* Fixed height for stability */
  border-radius: 24px;
  overflow: hidden;  /* Clips the overflowing original image */
}

.image-frame img {
  width: 100%; 
  height: 100%;
  object-fit: cover; /* Forces image to fit frame perfectly */
  filter: grayscale(15%);
  position: relative;
  z-index: 2;
  display: block;
}

.frame-border {
  position: absolute;
  inset: -10px;
  border: 2px solid var(--accent);
  border-radius: 30px;
  z-index: 1;
  opacity: 0.2;
}

.scan-line {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 3px;
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent);
  z-index: 3;
  animation: scan 4s linear infinite;
}

@keyframes scan {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .vertical-nav { width: 80px; padding: 20px 10px; }
  .logo-box, .nav-links span, .nav-footer { display: none; }
  .front-page { margin-left: 80px; }
  .front-content { 
    grid-template-columns: 1fr; 
    text-align: center; 
    gap: 40px;
  }
  .hero-btns { justify-content: center; }
  .hero-title { font-size: 2.8rem; }
  .image-frame { max-width: 280px; height: 350px; margin: 0 auto; }
}
