/* ============================================================
   Carlos Georges — Executive Minimal Theme
   ============================================================ */

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

:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --text: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.03);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1000px;
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--accent-hover);
}

::selection {
  background: var(--accent);
  color: #fff;
}


/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.02em;
  transition: color var(--transition);
}

.nav.scrolled .nav-logo {
  color: var(--text);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.01em;
  transition: color var(--transition);
}

.nav.scrolled .nav-links a {
  color: var(--text-muted);
}

.nav-links a:hover {
  color: #fff;
}

.nav.scrolled .nav-links a:hover {
  color: var(--text);
}

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.nav.scrolled .nav-toggle span {
  background: var(--text);
}


/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Animated gradient mesh blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
}

.hero-blob-1 {
  width: 600px;
  height: 600px;
  background: rgba(37, 99, 235, 0.2);
  top: -15%;
  left: -10%;
  animation: blobDrift1 14s ease-in-out infinite alternate;
}

.hero-blob-2 {
  width: 500px;
  height: 500px;
  background: rgba(99, 102, 241, 0.15);
  bottom: -10%;
  right: -8%;
  animation: blobDrift2 18s ease-in-out infinite alternate;
}

.hero-blob-3 {
  width: 400px;
  height: 400px;
  background: rgba(20, 184, 166, 0.1);
  top: 40%;
  left: 45%;
  animation: blobDrift3 16s ease-in-out infinite alternate;
}

@keyframes blobDrift1 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(20px, 80px) scale(0.95); }
}

@keyframes blobDrift2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-50px, -30px) scale(1.05); }
  100% { transform: translate(-80px, 20px) scale(1.1); }
}

@keyframes blobDrift3 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-40px, -50px) scale(1.15); }
  100% { transform: translate(30px, -20px) scale(0.9); }
}

/* Geometric dot grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
}

.hero-content {
  max-width: 640px;
  position: relative;
  z-index: 1;
}

.hero-name {
  font-size: clamp(2.75rem, 6vw, 4rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

.hero-tagline {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
}


/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.5rem;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}


/* --- Sections --- */
.section {
  padding: 6rem 0;
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

.section-dark .section-title {
  color: #fff;
}


/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.about-image img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
}

.about-text p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 0.875rem;
  line-height: 1.7;
}

.about-details {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.detail {
  display: flex;
  gap: 1rem;
  align-items: baseline;
}

.detail-label {
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.detail-value {
  font-size: 0.875rem;
  color: var(--text-muted);
}


/* --- Skills --- */
.skills-section {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.skills-heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.skill-group {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.875rem;
}

.skill-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 120px;
  padding-top: 0.3rem;
  flex-shrink: 0;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.skill-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}


/* --- Highlights --- */
.highlights-list {
  display: grid;
  gap: 0;
}

.highlight-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.highlight-item:first-child {
  padding-top: 0;
}

.highlight-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.highlight-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.highlight-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 680px;
}

.highlight-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
}

.highlight-link:hover {
  color: var(--accent-hover);
}


/* --- Contact --- */
.contact-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.25rem;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 0.8125rem;
  transition: all var(--transition);
}

.contact-link:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.contact-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}


/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
}


/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* --- Responsive --- */
@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .about-image {
    display: flex;
    justify-content: center;
  }

  .about-image img {
    width: 140px;
    height: 140px;
  }

  .about-text p {
    text-align: left;
  }

  .about-details {
    text-align: left;
  }

  .detail {
    flex-direction: column;
    gap: 0.25rem;
  }

  .skill-group {
    flex-direction: column;
    gap: 0.375rem;
  }

  .skill-label {
    min-width: auto;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 0.75rem 2rem 1rem;
    gap: 0;
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    list-style: none;
  }

  .nav-links a {
    color: var(--text-muted) !important;
    padding: 0.625rem 0;
    display: block;
    font-size: 0.875rem;
  }

  .nav-links a:hover {
    color: var(--text) !important;
  }

  .nav-toggle {
    display: flex;
  }

  .contact-links {
    flex-direction: column;
  }

  .contact-link {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 5rem 1.5rem;
  }

  .hero-blob-1 { width: 350px; height: 350px; }
  .hero-blob-2 { width: 300px; height: 300px; }
  .hero-blob-3 { width: 250px; height: 250px; }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
    max-width: 280px;
  }

  .container {
    padding: 0 1.25rem;
  }
}
