/* ==========================================================================
   PORTFOLIO DESIGN SYSTEM & STYLESHEET - CYBER SECURITY & INFRASTRUCTURE
   Owner: Pramudita Ogi Setyo Tuhu
   Specialization: IT Security, IT Infrastructure, Data Center, & Cyber Security
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & VARIABLE DECLARATIONS
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Cyber Security Dark Mode */
  --bg-primary: #050811;
  --bg-secondary: #0b1220;
  --bg-tertiary: #131c2e;
  --bg-card: rgba(11, 18, 32, 0.8);
  --bg-card-hover: rgba(19, 28, 46, 0.95);
  --bg-glass: rgba(5, 8, 17, 0.85);

  --border-subtle: rgba(16, 185, 129, 0.15);
  --border-highlight: rgba(16, 185, 129, 0.4);
  --border-glow: rgba(6, 182, 212, 0.5);

  --accent-emerald: #10b981;
  --accent-cyan: #06b6d4;
  --accent-indigo: #6366f1;
  --accent-purple: #a855f7;
  --accent-amber: #f59e0b;
  --accent-rose: #ef4444;

  --gradient-primary: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --gradient-cyber: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
  --gradient-alert: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --gradient-text: linear-gradient(135deg, #ffffff 20%, #10b981 60%, #06b6d4 100%);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-cyber: #10b981;

  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', monospace;

  /* Radius & Shadows */
  --container-max-width: 1240px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.3);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Override */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(248, 250, 252, 0.9);

  --border-subtle: rgba(16, 185, 129, 0.2);
  --border-highlight: rgba(16, 185, 129, 0.5);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --gradient-text: linear-gradient(135deg, #0f172a 20%, #059669 60%, #0284c7 100%);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.15);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESETS & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  position: relative;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* Ambient Cyber Grid Overlay & Glowing Orbs */
.ambient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background-image: radial-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.22;
  animation: floatOrb 22s infinite alternate ease-in-out;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-emerald);
  top: -120px;
  left: -120px;
}

.orb-2 {
  width: 450px;
  height: 450px;
  background: var(--accent-cyan);
  bottom: 5%;
  right: -120px;
  animation-delay: -6s;
}

.orb-3 {
  width: 380px;
  height: 380px;
  background: var(--accent-indigo);
  top: 40%;
  left: 35%;
  animation-delay: -12s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 35px) scale(1.08); }
  100% { transform: translate(-30px, 70px) scale(0.95); }
}

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

ul {
  list-style: none;
}

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

.container {
  width: 90%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section {
  padding: 100px 0;
  position: relative;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY & BUTTON COMPONENTS
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-full);
  color: var(--accent-emerald);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-mono);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  font-size: 2.75rem;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto 50px auto;
  text-align: center;
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.975rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #050811;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-highlight);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Security Status Badge */
.encrypted-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   4. HEADER & NAVBAR
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-normal);
}

.header.scrolled {
  padding: 10px 0;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  flex-shrink: 0;
  text-decoration: none;
}

.logo-text {
  letter-spacing: 2.5px;
  font-weight: 800;
  display: inline-block;
}

.logo-badge {
  width: 38px;
  height: 38px;
  background: var(--gradient-primary);
  color: #050811;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(11, 18, 32, 0.75);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.nav-link i {
  font-size: 0.85rem;
  opacity: 0.8;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

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

.nav-link:hover i {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
  font-weight: 700;
}

.nav-link.active i {
  opacity: 1;
  color: var(--accent-emerald);
}

.mobile-drawer-cta {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  border-color: var(--accent-emerald);
  transform: rotate(15deg);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.lang-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-toggle-btn:hover {
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.lang-toggle-btn i {
  color: var(--accent-cyan);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   5. HERO SECTION (SOC & INFRASTRUCTURE MONITOR)
   -------------------------------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  color: var(--accent-emerald);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 3.4rem;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero-typing-container {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  margin-bottom: 24px;
  min-height: 40px;
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background-color: var(--accent-emerald);
  vertical-align: middle;
  animation: blink 0.8s infinite;
}

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

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats-row {
  display: flex;
  gap: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item h4 {
  font-size: 2rem;
  color: var(--accent-emerald);
  font-family: var(--font-heading);
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* SOC Terminal Visual Component */
.terminal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  overflow: hidden;
  transition: transform var(--transition-normal);
}

.terminal-card:hover {
  transform: translateY(-5px);
}

.terminal-header {
  background: rgba(5, 8, 17, 0.95);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.8;
  color: #e2e8f0;
}

.code-keyword { color: var(--accent-purple); }
.code-func { color: var(--accent-cyan); }
.code-string { color: var(--accent-emerald); }
.code-var { color: var(--accent-amber); }
.code-comment { color: var(--text-muted); font-style: italic; }

/* --------------------------------------------------------------------------
   6. ABOUT & TIMELINE SECTION
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(12px);
}

.about-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1.025rem;
}

.highlight-box {
  background: rgba(16, 185, 129, 0.08);
  border-left: 4px solid var(--accent-emerald);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 24px;
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--border-subtle);
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -30px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  transition: transform var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  background: var(--accent-emerald);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  backdrop-filter: blur(10px);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.timeline-content:hover {
  transform: translateX(6px);
  border-color: var(--border-highlight);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-emerald);
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 0.9rem;
  color: var(--accent-cyan);
  margin-bottom: 10px;
  font-weight: 600;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   7. PROJECTS SECTION & GALLERY
   -------------------------------------------------------------------------- */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 10px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover, .tab-btn.active {
  background: var(--gradient-primary);
  color: #050811;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.project-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 8, 17, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

.project-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-category {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-emerald);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.project-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.project-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 4px 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-emerald);
}

/* --------------------------------------------------------------------------
   8. SKILL MATRIX SECTION
   -------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(12px);
  transition: border-color var(--transition-fast);
}

.skill-category-card:hover {
  border-color: var(--border-highlight);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.category-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.category-title {
  font-size: 1.2rem;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.skill-name {
  font-weight: 600;
  color: var(--text-primary);
}

.skill-level {
  font-family: var(--font-mono);
  color: var(--accent-emerald);
  font-size: 0.8rem;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   9. CONTACT SECTION & MODAL
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(12px);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 30px;
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.info-details h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.info-details p, .info-details a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.info-details a:hover {
  color: var(--accent-emerald);
}

.social-links {
  display: flex;
  gap: 14px;
  margin-top: 36px;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background: var(--accent-emerald);
  color: #050811;
  border-color: var(--accent-emerald);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* Form */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(12px);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

/* Modal Dialog */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 8, 17, 0.88);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 20px;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transform: scale(0.9);
  transition: transform var(--transition-normal);
  position: relative;
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--accent-rose);
  color: #fff;
}

.modal-content-inner {
  padding: 36px;
}

/* Toast */
.toast-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 16px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-emerald);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   10. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-glass);
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.back-to-top {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.back-to-top:hover {
  border-color: var(--accent-emerald);
  background: var(--accent-emerald);
  color: #050811;
  transform: translateY(-4px);
}

/* --------------------------------------------------------------------------
   11. RESPONSIVE BREAKPOINTS (LAPTOP & HP MOBILE OPTIMIZED)
   -------------------------------------------------------------------------- */

/* Base Overflow & Layout Safety */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Prevent Auto-Zoom on Input Focus in Mobile Browsers */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Large Laptop Screens (1281px - 1440px) */
@media (max-width: 1440px) {
  .container {
    width: 92%;
  }
}

/* Intermediate Laptops & Desktops (993px - 1280px) */
@media (max-width: 1280px) {
  .nav-container {
    gap: 12px;
  }
  .nav-links {
    gap: 3px;
    padding: 4px 8px;
  }
  .nav-link {
    padding: 6px 10px;
    font-size: 0.82rem;
    gap: 6px;
  }
  .encrypted-badge {
    display: none !important;
  }
  .desktop-contact-btn {
    padding: 8px 16px;
    font-size: 0.82rem;
  }
  .hero-title {
    font-size: 2.75rem;
  }
}

/* Tablet & Mobile Header/Layout (<= 992px) */
@media (max-width: 992px) {
  .container {
    width: 94%;
  }
  .section {
    padding: 70px 0;
  }
  .hero-grid, .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-title {
    font-size: 2.35rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .section-subtitle {
    margin-bottom: 36px;
  }

  /* Admin Dashboard Mobile Adaptation */
  .admin-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 16px 0 !important;
  }
  .admin-sidebar {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding: 10px !important;
    gap: 8px !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .admin-sidebar::-webkit-scrollbar {
    display: none;
  }
  .sidebar-menu-item {
    margin-bottom: 0 !important;
    padding: 10px 16px !important;
    font-size: 0.875rem !important;
    flex-shrink: 0 !important;
    border-radius: var(--radius-md) !important;
  }
  .admin-content-card {
    padding: 20px 16px !important;
  }
  .table-custom {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
  }
}

/* Mobile HP Drawer & Phone Screen Optimization (<= 992px Menu Switch) */
@media (max-width: 992px) {
  .header {
    padding: 10px 0;
  }
  .nav-container {
    padding: 0 12px;
  }

  .nav-links {
    position: fixed;
    top: 66px;
    left: 12px;
    right: 12px;
    width: calc(100% - 24px);
    max-height: calc(100vh - 85px);
    overflow-y: auto;
    background: rgba(5, 8, 17, 0.97);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    padding: 18px 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(16, 185, 129, 0.25);
    flex-direction: column;
    gap: 8px;
    transform: translateY(-20px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2500;
  }

  .nav-links.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    min-height: 44px;
  }

  .mobile-drawer-cta {
    display: flex !important;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    padding: 12px;
    min-height: 44px;
  }

  .desktop-contact-btn {
    display: none !important;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid var(--border-highlight);
    color: var(--text-primary);
    font-size: 1.15rem;
    cursor: pointer;
    transition: all var(--transition-fast);
  }
  .mobile-menu-btn:hover, .mobile-menu-btn:active {
    background: var(--accent-emerald);
    color: #050811;
  }

  .encrypted-badge {
    display: none !important;
  }

  .projects-grid, .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 20px;
  }

  .soc-console {
    font-size: 0.82rem;
    border-radius: var(--radius-md);
  }
  .soc-console pre {
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 350px;
  }

  .experience-timeline::before {
    left: 20px;
  }
  .timeline-badge {
    left: 4px;
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
  .timeline-content {
    margin-left: 44px;
    padding: 20px 16px;
  }
}

/* Small HP Mobile Screens (<= 576px) */
@media (max-width: 576px) {
  .section {
    padding: 50px 0;
  }
  .hero-section {
    padding: 95px 0 45px;
  }
  .hero-title {
    font-size: 1.95rem;
    line-height: 1.25;
  }
  .hero-description {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    min-height: 46px;
  }
  .hero-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat-card {
    padding: 14px 10px;
  }
  .stat-number {
    font-size: 1.5rem;
  }
  .stat-label {
    font-size: 0.72rem;
  }
  .section-subtitle {
    font-size: 0.9rem;
  }
  .contact-form-card, .about-card {
    padding: 20px 16px;
  }
  .contact-info-card {
    padding: 16px 14px;
  }

  /* Header action button size adaptation for mobile */
  .nav-actions {
    gap: 6px;
  }
  .nav-actions .btn-sm, .nav-actions button {
    min-height: 40px;
  }
  .lang-toggle-btn, .theme-toggle {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  /* Modal cards mobile optimization */
  .project-modal-content, .admin-modal-card {
    padding: 20px 14px !important;
    width: 95vw !important;
    max-height: 90vh !important;
  }
}

/* Extra Small Mobile HP Screens (<= 380px) */
@media (max-width: 380px) {
  .brand-logo span {
    font-size: 1.05rem;
  }
  .hero-title {
    font-size: 1.7rem;
  }
  .hero-stats-row {
    grid-template-columns: 1fr;
  }
  .nav-actions .btn-sm span {
    display: none;
  }
  .logo-text {
    font-size: 1.1rem;
  }
  .mobile-menu-btn {
    width: 38px;
    height: 38px;
  }
}
