/* ==========================================================================
   BRIGHT CYBER MINT & WHITE (V6.0) - COMPACT SKILLS-FIRST EDITION
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark:       #ffffff; /* Crisp white background */
  --bg-section:    #f8fafc; /* Ultra soft grey section breaks */
  --bg-card:       rgba(255, 255, 255, 0.85); /* Frosted white glass */
  --bg-card-hover: rgba(255, 255, 255, 1);
  --border-color:  rgba(16, 185, 129, 0.15); /* Light Mint border */
  --border-hover:  rgba(16, 185, 129, 0.5);
  
  /* Cyber Mint Highlights */
  --primary:       #059669; /* Cyber Mint Green */
  --primary-glow:  rgba(5, 150, 105, 0.08);
  --accent:        #0d9488; /* Teal Accent */
  --accent-glow:   rgba(13, 148, 136, 0.08);
  --green:         #10b981;
  --dark-green:    #064e3b;
  
  /* Text (Dark for High Contrast Mode) */
  --text-primary:   #0f172a; /* Deep Slate Black */
  --text-secondary: #475569; /* Medium Slate Grey */
  --text-muted:     #94a3b8; /* Light Muted Grey */
  
  /* Fonts & Styling */
  --font-sans:      'Plus Jakarta Sans', sans-serif;
  --font-space:     'Space Grotesk', sans-serif;
  --font-mono:      'Share Tech Mono', monospace;
  --radius-lg:      12px; /* Geometric sharper border radius */
  --radius-md:      8px;
  --radius-sm:      5px;
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast:   cubic-bezier(0.25, 0.8, 0.25, 1);
  --box-shadow:     0 4px 20px -5px rgba(15, 23, 42, 0.03), 0 1px 1px rgba(15, 23, 42, 0.01);
  --box-shadow-h:   0 15px 30px -10px rgba(5, 150, 105, 0.06);
}

/* Smooth Scroll */
html.lenis { height: auto; }
.lenis-scroll { scroll-behavior: auto !important; }
body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Scroll Progress Line */
.scroll-progress-container {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 3px;
  z-index: 10001;
  background: rgba(0,0,0,0.01);
}
.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* Typographic extensions */
.font-space { font-family: var(--font-space), sans-serif !important; }
.font-mono { font-family: var(--font-mono), monospace !important; }
.green-text { color: var(--primary) !important; }
.dim-text { color: var(--text-secondary) !important; }

/* ==========================================================================
   BG TEXTURES & PASTEL EFFECTS
   ========================================================================== */
.bg-noise {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  opacity: 0.012;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3e%3cfilter id='noiseFilter'%3e%3cfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3e%3c/filter%3e%3crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3e%3c/svg%3e");
}

/* Pastel Glow Blobs */
.glow-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
}
.blob-mint-1 { width: 500px; height: 500px; background: #a7f3d0; top: -10%; left: -10%; }
.blob-mint-2 { width: 400px; height: 400px; background: #99f6e4; bottom: -10%; right: -10%; }

/* Gridlines Pattern (Light silver-mint) */
.grid-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.grid-lines-v, .grid-lines-h {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-around;
  opacity: 0.04;
}
.grid-lines-h { flex-direction: column; }
.grid-lines-v span {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), transparent);
}
.grid-lines-h span {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, var(--primary), transparent);
}

/* ==========================================================================
   CUSTOM CURSOR (Light theme styling)
   ========================================================================== */
.custom-cursor {
  width: 24px;
  height: 24px;
  border: 1.5px solid rgba(5, 150, 105, 0.25);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.3s var(--transition-smooth), height 0.3s var(--transition-smooth), border-color 0.3s, background 0.3s;
}
.custom-cursor-dot {
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10001;
  transition: background 0.3s, transform 0.1s;
}
.cursor-text {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.custom-cursor.hovered {
  width: 36px;
  height: 36px;
  border-color: var(--primary);
  background: rgba(5, 150, 105, 0.02);
}
.custom-cursor.action-hover {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-color: var(--primary);
}
.custom-cursor.action-hover .cursor-text {
  opacity: 1;
}

@media (max-width: 1024px) {
  .custom-cursor, .custom-cursor-dot { display: none !important; }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 70px;
  z-index: 999;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--transition-smooth), border-bottom 0.5s, backdrop-filter 0.5s;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 1px 8px rgba(0,0,0,0.01);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo {
  font-family: var(--font-space);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -1.2px;
  color: var(--text-primary);
}
.nav-logo .dot { color: var(--primary); }

.nav-links-container {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-pill-bg {
  position: absolute;
  height: 30px;
  background: rgba(5, 150, 105, 0.05);
  border: 1px solid rgba(5, 150, 105, 0.15);
  border-radius: var(--radius-sm);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: width 0.3s var(--transition-smooth), left 0.3s var(--transition-smooth), opacity 0.2s;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
}
.nav-link.contact-btn {
  padding: 0.3rem 1.1rem;
  border: 1px solid var(--border-color);
  background: rgba(5, 150, 105, 0.01);
  margin-left: 0.5rem;
  color: var(--text-primary);
}
.nav-link.contact-btn:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 70px 0 0 0;
  z-index: 998;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(25px);
  padding: 2rem;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.5s var(--transition-smooth), opacity 0.5s;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 2rem; text-align: center; }
.mobile-link { font-size: 1.5rem; font-weight: 700; color: var(--text-secondary); transition: color 0.3s; }
.mobile-link:hover { color: var(--primary); }

/* ==========================================================================
   HERO SECTION (COMPACT HEIGHT)
   ========================================================================== */
.hero {
  min-height: auto;
  padding: 120px 0 60px; /* Reduced vertical bounds */
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.04;
  z-index: -1;
  mask-image: radial-gradient(circle, black 30%, transparent 80%);
}
.hero-container-single {
  max-width: 850px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 1rem;
  background: rgba(5, 150, 105, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.pulse-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.3);
  animation: pulse-ring 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

.hero-title {
  font-family: var(--font-space);
  font-size: clamp(2.8rem, 6.5vw, 4.8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -2.5px;
  margin-bottom: 1rem;
}
.hero-title .title-row {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1.1rem, 2.8vw, 1.8rem);
  color: var(--primary);
  font-family: var(--font-mono);
  margin-bottom: 1.5rem;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3.5rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  font-family: var(--font-space);
  transition: all 0.3s;
}
.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.1);
}
.btn-primary:hover {
  background: var(--accent);
  box-shadow: 0 5px 20px rgba(5, 150, 105, 0.2);
  transform: translateY(-1.5px);
}
.btn-ghost {
  background: rgba(0, 0, 0, 0.01);
  color: var(--text-primary);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.btn-ghost:hover {
  background: rgba(5, 150, 105, 0.03);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1.5px);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  padding-top: 2.5rem;
  width: 100%;
  justify-content: center;
}
.stat { display: flex; flex-direction: column; gap: 2px; align-items: center; }
.stat-num {
  font-family: var(--font-space);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}
.stat-plus { color: var(--primary); margin-left: 1px; }
.stat-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-divider { width: 1px; background: rgba(0,0,0,0.04); align-self: stretch; }

/* ==========================================================================
   SECTIONS GENERAL (COMPACT SPACING)
   ========================================================================== */
.section {
  padding: 4rem 0; /* Reduced padding gaps */
  position: relative;
  z-index: 1;
}
.section:nth-child(even) {
  background-color: var(--bg-section);
}
.container {
  max-width: 1000px; /* Slimmer page bounds */
  margin: 0 auto;
  padding: 0 2rem;
}
.section-header {
  margin-bottom: 3rem;
  text-align: center;
}
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--font-space);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--text-primary);
}

/* ==========================================================================
   BENTO GRID ABOUT (LIGHT COMPACT PANEL)
   ========================================================================== */
.bento-grid-cyber-compact {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
}
.bento-card-cyber {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem; /* Tightened internal gaps */
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(1000px);
  box-shadow: var(--box-shadow);
  transition: border-color 0.4s var(--transition-smooth), transform 0.1s ease-out, box-shadow 0.4s;
}
.bento-card-cyber:hover {
  border-color: var(--border-hover);
  box-shadow: var(--box-shadow-h);
}
.bento-header-row {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.card-edge {
  position: absolute;
  top: 0; left: 0; width: 3px; height: 100%;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s;
}
.bento-card-cyber:hover .card-edge { opacity: 1; }

.glow-effect {
  position: absolute;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.04) 0%, transparent 70%);
  top: var(--mouse-y, -1000px);
  left: var(--mouse-x, -1000px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.5s;
}

.avatar-holder {
  position: relative;
  width: 64px; height: 64px;
  z-index: 1;
  flex-shrink: 0;
}
.avatar-ring-premium {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.avatar-inside {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

.bento-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
  z-index: 1;
  position: relative;
  transform: translateZ(20px);
}
.bento-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  z-index: 1;
  position: relative;
  transform: translateZ(15px);
}

.region-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.region-pills span {
  padding: 0.3rem 0.8rem;
  background: rgba(5, 150, 105, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

/* ==========================================================================
   TECHNICAL STACK (HIGHLIGHTED SKILLS-FIRST STYLE)
   ========================================================================== */
.skills-grid-cyber {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.skill-group-cyber {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color); /* Prominent border highlight */
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transform-style: preserve-3d;
  transform: perspective(1000px);
  transition: border-color 0.4s var(--transition-smooth), transform 0.1s ease-out, box-shadow 0.4s;
}
.skill-group-cyber:hover {
  border-color: var(--primary); /* Strong hover reaction */
  box-shadow: var(--box-shadow-h), 0 0 15px rgba(5, 150, 105, 0.05);
}
.sg-icon-cyber {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 1rem;
  transform: translateZ(15px);
}
.skill-group-cyber h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  transform: translateZ(20px);
  color: var(--text-primary);
}
.skill-bullets-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateZ(10px);
}
.skill-bullets-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1rem;
}
.skill-bullets-list li::before {
  content: '→';
  position: absolute;
  left: 0; top: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
}

.compact-certs {
  margin-top: 3rem;
  padding: 2rem;
}
.compact-certs h4 { font-size: 1.1rem; margin-bottom: 1.5rem; }
.cert-badges-cyber {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cert-badge-cyber {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--box-shadow);
  text-align: center;
  min-width: 220px;
}
.cert-badge-cyber strong { font-size: 0.88rem; color: var(--text-primary); }
.cert-badge-cyber span { font-size: 0.78rem; color: var(--primary); font-family: var(--font-mono); }

/* ==========================================================================
   EXPERIENCE TIMELINE (COMPACT CHRONICLE)
   ========================================================================== */
.premium-timeline-cyber {
  max-width: 800px;
}
.premium-timeline-cyber::before {
  left: 15px;
}
.pt-item-cyber {
  padding-left: 45px;
  margin-bottom: 2rem; /* Shorter timelines */
}
.pt-marker-cyber {
  left: 11px; top: 26px;
  width: 9px; height: 9px;
}
.pt-card-cyber {
  padding: 1.8rem 2.2rem;
}
.pt-meta-cyber {
  margin-bottom: 0.8rem;
}
.pt-role-cyber { font-size: 1.25rem; }
.pt-company-cyber { margin-bottom: 0.8rem; }
.pt-desc-short { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.5; }

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.premium-projects-cyber {
  gap: 1.5rem;
  max-width: 800px;
}
.proj-card-cyber {
  padding: 2rem 2.5rem;
}
.proj-num-cyber { margin-bottom: 0.8rem; }
.proj-title-cyber { font-size: 1.5rem; margin-bottom: 0.8rem; }
.proj-desc-cyber { font-size: 0.95rem; line-height: 1.6; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.premium-contact-grid-cyber {
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}
.pc-subtitle-cyber { margin-bottom: 2rem; font-size: 1rem; }
.pc-channels-cyber { gap: 1rem; }
.pc-channel-card-cyber {
  padding: 1.2rem;
}
.pcc-icon-cyber {
  width: 44px; height: 44px;
}
.pc-form-container-cyber {
  padding: 2.2rem;
}
.pc-form { gap: 1.2rem; }
.form-row-2 { gap: 1rem; }
.form-item { gap: 0.5rem; }
.form-item input,
.form-item textarea {
  padding: 0.8rem 1rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: 2.5rem 0;
}

/* ==========================================================================
   RESPONSIVE LAYOUTS
   ========================================================================== */
@media (max-width: 900px) {
  .navbar { padding: 0 1.5rem; }
  .section { padding: 3rem 0; }
  .bento-grid-cyber-compact { grid-template-columns: 1fr; }
  .premium-contact-grid-cyber { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 680px) {
  .nav-links-container { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .skills-grid-cyber { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .stat-divider { display: none; }
  .form-row-2 { grid-template-columns: 1fr; }
  .pt-card-cyber { padding: 1.5rem; }
  .proj-card-cyber { padding: 1.8rem; }
  .cert-badges-cyber { flex-direction: column; gap: 1rem; }
}
