/* ===== CSS Variables - Light Theme ===== */
:root {
  --color-bg: #ffffff;
  --color-bg-secondary: #f8fafc;
  --color-bg-card: #ffffff;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-primary: #4f46e5;
  --color-primary-light: #6366f1;
  --color-secondary: #0891b2;
  --color-accent: #db2777;
  --color-border: #e2e8f0;
  --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #0891b2 50%, #db2777 100%);
  --gradient-text: linear-gradient(90deg, #4f46e5, #0891b2, #db2777);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.25rem; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn--primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(99, 102, 241, 0.5);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--color-border);
  color: var(--color-text);
}

.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.badge {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--color-primary-light);
  border-radius: 50px;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

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

.nav__logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
}

.nav__logo span {
  color: var(--color-primary);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.nav__links a:hover {
  color: var(--color-primary);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav__burger span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }
  .nav__burger {
    display: flex;
  }
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(79, 70, 229, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(8, 145, 178, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(219, 39, 119, 0.04) 0%, transparent 60%);
  z-index: -1;
}

.hero__content {
  max-width: 800px;
}

.hero__content h1 {
  margin: 24px 0;
}

.hero__content p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 600px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-primary), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
}

.section--dark {
  background: var(--color-bg-secondary);
}

.section__badge {
  display: inline-block;
  margin-bottom: 16px;
}

.section__title {
  margin-bottom: 20px;
}

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

/* ===== About Section ===== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 48px;
}

.about__text p {
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.about__text strong {
  color: var(--color-text);
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.stat {
  background: var(--color-bg-card);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  text-align: center;
}

.stat__number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

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

@media (max-width: 768px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ===== Skills Section ===== */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.skill-card {
  background: var(--color-bg-card);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.skill-card__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.skill-card h3 {
  margin-bottom: 16px;
  color: var(--color-text);
}

.skill-card ul {
  list-style: none;
}

.skill-card li {
  padding: 8px 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-border);
}

.skill-card li:last-child {
  border-bottom: none;
}

/* ===== Timeline / Experience ===== */
.timeline {
  margin-top: 48px;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary), var(--color-accent));
}

.timeline__item {
  position: relative;
  padding-left: 60px;
  padding-bottom: 48px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__marker {
  position: absolute;
  left: 12px;
  top: 4px;
  width: 18px;
  height: 18px;
  background: var(--color-bg);
  border: 3px solid var(--color-primary);
  border-radius: 50%;
}

.timeline__content {
  background: var(--color-bg-card);
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.timeline__date {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--color-primary-light);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.timeline__content h3 {
  color: var(--color-text);
  margin-bottom: 4px;
}

.timeline__content h4 {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.timeline__content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 16px;
}

.timeline__content li {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

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

.timeline__tags span {
  padding: 4px 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .timeline::before {
    left: 10px;
  }
  .timeline__item {
    padding-left: 40px;
  }
  .timeline__marker {
    left: 2px;
  }
}

/* ===== Home Lab Section ===== */
.homelab__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.homelab__card {
  background: var(--color-bg-card);
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.homelab__card:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.1);
}

.homelab__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.homelab__card h3 {
  margin-bottom: 12px;
}

.homelab__card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

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

.homelab__tech span {
  padding: 4px 10px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--color-secondary);
}

/* ===== Network Topology ===== */
.homelab__diagram {
  margin-top: 60px;
  text-align: center;
}

.homelab__diagram h3 {
  margin-bottom: 32px;
  color: var(--color-text-muted);
}

.topology {
  max-width: 700px;
  margin: 0 auto;
  font-family: 'Courier New', monospace;
}

.topology__row {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.topology__row--vlans {
  gap: 16px;
}

.topology__node {
  padding: 16px 24px;
  background: var(--color-bg-card);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.topology__node--wan {
  border-color: var(--color-accent);
}

.topology__node--firewall {
  border-color: #ef4444;
}

.topology__node--switch {
  border-color: var(--color-primary);
}

.topology__node--vlan {
  flex: 1;
  max-width: 200px;
  font-size: 0.8rem;
  border-color: var(--color-secondary);
}

.topology__node--vlan small {
  color: var(--color-text-muted);
  display: block;
  margin-top: 4px;
}

.topology__connector {
  color: var(--color-border);
  font-size: 1.2rem;
  line-height: 1;
  padding: 8px 0;
}

.topology__connector--branch {
  letter-spacing: -1px;
}

/* ===== Certifications ===== */
.certs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.cert-card {
  background: var(--color-bg-card);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: var(--transition);
}

.cert-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
}

.cert-card__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cert-card h3 {
  margin-bottom: 8px;
}

.cert-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ===== Contact Section ===== */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.contact-card {
  display: block;
  background: var(--color-bg-card);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.contact-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.contact-card h3 {
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ===== Footer ===== */
.footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.footer p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .hero__content h1 {
    font-size: 2rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .topology__row--vlans {
    flex-direction: column;
    align-items: center;
  }
  
  .topology__connector--branch {
    display: none;
  }
}
