/* ================================================
   GLOBAL STYLES & CSS VARIABLES
   Dark theme color palette with gold accents
   ================================================ */

/* Reset all default margins and padding */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Color scheme - accessible from anywhere via var(--name) */
:root {
  --dark: #0f0f0f;          /* Main background */
  --dark2: #1a1a1a;         /* Secondary background */
  --dark3: #242424;         /* Tertiary background */
  --accent: #c8a96e;        /* Primary gold accent */
  --accent2: #e8c98e;       /* Secondary gold accent */
  --text: #f0ede8;          /* Primary text color */
  --muted: #888;            /* Muted/secondary text */
  --border: rgba(200,169,110,0.2); /* Transparent border */
}

/* Main body styles - applied to entire page */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
}

/* NAVIGATION BAR - sticky header */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 4rem;
  border-bottom: 1px solid var(--border);
  position: sticky; /* Stays at top when scrolling */
  top: 0;
  background: rgba(15,15,15,0.95); /* Semi-transparent */
  backdrop-filter: blur(8px); /* Blur effect behind nav */
  z-index: 100; /* Above other content */
}

/* Navigation logo */
.nav-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--accent);
}

/* Navigation links container */
.nav-links { display: flex; gap: 2rem; }

/* Individual navigation links */
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: color 0.2s; /* Smooth color transition */
}

/* Hover and active link states */
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* HERO SECTION - main landing area */
.hero {
  min-height: 90vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

/* Decorative background gradient circle */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,169,110,0.06) 0%, transparent 70%);
  pointer-events: none; /* Don't interfere with clicks */
}

/* Hero text content container */
.hero-content { max-width: 560px; }

.hero-tag {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.1s;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.25s;
}

.accent { color: var(--accent); }

.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.4s;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.55s;
}

.btn-primary {
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: var(--dark);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }

.btn-secondary {
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: border-color 0.2s, transform 0.15s;
}
.btn-secondary:hover { border-color: var(--accent); transform: translateY(-1px); }

.hero-globe {
  position: relative;
  width: 280px;
  height: 280px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 1s ease forwards 0.7s;
}

.globe-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  animation: spin 18s linear infinite;
}
.globe-ring { width: 100%; height: 100%; }
.globe-ring.r2 { width: 75%; height: 75%; animation-direction: reverse; animation-duration: 12s; }

.globe-core {
  font-size: 5rem;
  z-index: 1;
  animation: float 4s ease-in-out infinite;
}

section { padding: 5rem 4rem; }

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-sub { color: var(--muted); margin-bottom: 2.5rem; }

.countries-section { border-top: 1px solid var(--border); }

.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.country-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
  cursor: default;
}
.country-card:hover { transform: translateY(-4px); border-color: var(--accent); }

.country-flag { font-size: 2.5rem; margin-bottom: 0.75rem; }
.country-name { font-weight: 500; font-size: 1rem; }
.country-region { font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; }

.skills-section { background: var(--dark2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.skill-item {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.875rem;
  color: var(--accent);
  transition: background 0.2s;
}
.skill-item:hover { background: rgba(200,169,110,0.1); }

.contact-section { text-align: center; border-top: 1px solid var(--border); }
.contact-section p { color: var(--muted); margin-bottom: 2rem; }

footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
}

/* About page */
.about-hero {
  text-align: center;
  padding: 5rem 4rem 2rem;
  border-bottom: 1px solid var(--border);
}

.about-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--dark);
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.about-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.about-block { margin-bottom: 3rem; }
.about-block h2 { font-size: 1.4rem; margin-bottom: 1rem; color: var(--accent); }
.about-block p { color: var(--muted); font-weight: 300; }

.about-countries { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }

.about-country {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.about-country .flag { font-size: 1.75rem; }
.about-country strong { display: block; font-weight: 500; }
.about-country span { font-size: 0.8rem; color: var(--muted); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .hero { flex-direction: column; padding: 3rem 1.5rem; text-align: center; min-height: auto; }
  .hero-globe { width: 180px; height: 180px; }
  .hero-btns { justify-content: center; }
  section { padding: 3rem 1.5rem; }
  .about-hero { padding: 3rem 1.5rem 2rem; }
}

/* AWS ARCHITECTURE DIAGRAM */
.hero-diagram {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeIn 1s ease forwards 0.7s;
}

.diagram-label-top {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.diagram-nodes {
  display: flex;
  align-items: center;
}

.diagram-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  width: 100px;
  transition: border-color 0.2s, transform 0.2s;
  cursor: default;
}
.diagram-node:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.node-icon { font-size: 1.6rem; }
.node-name { font-size: 0.72rem; font-weight: 500; text-align: center; color: var(--text); }
.node-tag {
  font-size: 0.6rem;
  color: var(--accent);
  background: rgba(200,169,110,0.1);
  border-radius: 100px;
  padding: 0.15rem 0.5rem;
  letter-spacing: 0.04em;
}

.diagram-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0 0.25rem;
}

.arrow-line {
  width: 48px;
  height: 2px;
  background: var(--border);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.arrow-pulse {
  position: absolute;
  top: 0; left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: flow 1.8s linear infinite;
}

.arrow-head {
  font-size: 0.55rem;
  color: var(--accent);
  margin-top: -0.15rem;
}

.arrow-label {
  font-size: 0.58rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  order: -1;
}

.diagram-files {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  max-width: 320px;
  margin-top: 0.25rem;
}

.file-chip {
  font-size: 0.65rem;
  font-family: 'Courier New', monospace;
  color: var(--accent);
  background: rgba(200,169,110,0.08);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  letter-spacing: 0.02em;
}

@keyframes flow {
  from { left: -60%; }
  to { left: 110%; }
}

/* HERO PHOTO */
.hero-photo {
  flex-shrink: 0;
  opacity: 0;
  animation: fadeIn 1s ease forwards 0.7s;
}

.hero-photo img {
  width: 300px;
  height: 380px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
}

/* ABOUT PHOTO */
.about-photo {
  margin: 0 auto 1.5rem;
}

.about-photo img {
  width: 160px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
  margin: 0 auto;
}