/* 
  Theme: Portavia Replica (Light/Industrial)
  Font: Oswald (Headings), Inter (Body)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Oswald:wght@500;700&display=swap');

:root {
  /* Palette: Lime Green Theme */
  --bg-color: #1a1a1a;
  --surface-color: #222222;
  --text-primary: #ffffff;
  --text-secondary: #999999;

  /* Primary Accent: Lime/Chartreuse Green */
  --accent-color: #C8FF00;
  --accent-hover: #b8e600;

  /* Dimensions */
  --nav-height: 80px;
  --radius-pill: 100px;
  --radius-card: 24px;

  /* Component Specifics - Lime Glow Borders */
  --card-border: 1px solid rgba(200, 255, 0, 0.3);
  --card-bg: #1f1f1f;
  --card-shadow: 0 0 20px rgba(200, 255, 0, 0.08);

  /* Type */
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Standardized Stat Bar (Dark Divider) at the bottom */


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* --- Components --- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--surface-color);
}

.btn-primary:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(94, 108, 255, 0.3);
}

/* Standardized Social Icons & Button Styles at the bottom */

/* --- Floating Navbar (Pill) --- */
.navbar {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  min-width: 320px;
  z-index: 1000;
}

.nav-pill {
  background: var(--surface-color);
  /* Theme aware background */
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* Subtle border */
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0.5rem;
}

.avatar-small {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--text-primary);
}

.avatar-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  background: var(--text-primary);
  color: white;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--accent-color);
}

/* --- Hero Section (The New Split) --- */
.hero {
  padding-top: 180px;
  padding-bottom: 100px;
  overflow: hidden;
  position: relative;
}

.hero-split-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
}

/* Hero Left: Text */
.greeting-accent {
  font-family: var(--font-display);
  font-size: 2.2rem;
  /* Was 1.5rem, made bigger */
  font-weight: 500;
  color: var(--accent-color);
  margin-bottom: 0.2rem;
  /* Tighter spacing to main title */
  display: block;
  letter-spacing: 0.02em;
  /* Slight spacing for class */
}

.display-text-stacked {
  font-family: var(--font-display);
  font-size: 7.5rem;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  /* Increased margin since bio is gone */
  letter-spacing: -0.02em;
}

.hero-bio {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 500px;
}

.light-text {
  font-size: 0.95rem;
  opacity: 0.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.big-btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.social-row {
  display: flex;
  gap: 1rem;
}

/* Hero Right: Avatar */
.hero-visual {
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.image-circle-container {
  width: 450px;
  height: 450px;
  border-radius: 50%;
  overflow: visible;
  /* Allowing sparkles to pop out */
  position: relative;
  z-index: 2;
}

.image-circle-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

/* Abstract Decorations */
.deco-shape {
  position: absolute;
  z-index: 1;
}

.deco-1 {
  top: -20px;
  right: -20px;
  width: 60px;
  height: 60px;
  background: var(--accent-color);
  border-radius: 50%;
  opacity: 0.2;
}

.deco-2 {
  bottom: 0;
  left: -40px;
  width: 120px;
  height: 120px;
  border: 4px solid var(--accent-color);
  border-radius: 50%;
  opacity: 0.3;
}


/* --- Sections General --- */
.section {
  padding: 6rem 0;
}

.section-header {
  margin-bottom: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-left: 4px solid var(--accent-color);
  padding-left: 2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 4rem;
  text-transform: uppercase;
  line-height: 0.9;
  color: var(--text-primary);
}

/* --- About & Skills (Restructured) --- */
.about-section {
  background-color: var(--surface-color);
  padding: 8rem 0;
  position: relative;
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-bio h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  margin-bottom: 2rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-primary);
}

.about-bio p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.stats-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: var(--radius-card);
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.stat-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-5px);
}

.stat-card h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.skill-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent-color);
  display: block;
}

/* --- Projects (Featured) --- */
.project-card {
  margin-bottom: 4rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.project-card.reversed {
  grid-template-columns: 0.8fr 1.2fr;
  direction: rtl;
  /* simple trick for reversing grid visual, check content direction */
}

.project-card.reversed .project-info {
  direction: ltr;
  text-align: left;
  /* reset text align */
}

.project-image {
  height: 500px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-info h3 {
  font-family: var(--font-display);
  font-size: 3rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
  line-height: 1;
}

.project-meta {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.pill-tag {
  background: var(--bg-color);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

/* Button Group in Projects */
.project-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* --- Growth & Technical Writing --- */
.growth-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.growth-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius-card);
  border: var(--card-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.growth-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-color);
}

.content-type-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-color);
  margin-bottom: 1rem;
  display: block;
}

.growth-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  min-height: 4rem;
  /* Aligns cards if titles vary */
}

.metric-huge {
  font-size: 2.5rem;
  font-family: var(--font-display);
  color: var(--text-primary);
  display: block;
  line-height: 1;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 2rem;
}

.result-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 1.5rem;
}

.read-btn {
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s;
}

.read-btn:hover {
  gap: 0.8rem;
  color: var(--accent-color);
}

@media (max-width: 768px) {
  .growth-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  position: relative;
  border: var(--card-border);
}

.testimonial-card p {
  color: var(--text-primary);
}

.quote-icon {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--accent-color);
  opacity: 0.3;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

@media (max-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Footer --- */
.footer {
  background-color: var(--bg-color);
  color: var(--text-primary);
  padding: 6rem 0 3rem;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h2 {
  font-family: var(--font-display);
  font-size: 4rem;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.footer .email-link {
  font-size: 2rem;
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.footer .email-link:hover {
  border-bottom-color: var(--accent-color);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .display-text-stacked {
    font-size: 5rem;
  }

  .image-circle-container {
    width: 350px;
    height: 350px;
  }

  .hero-split-layout {
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
  }

  .hero-visual {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-split-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .display-text-stacked {
    font-size: 4rem;
  }

  .image-circle-container {
    width: 300px;
    height: 300px;
  }

  .project-card,
  .project-card.reversed {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .project-image {
    height: 300px;
  }

  .skills-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .navbar {
    top: 1rem;
    min-width: 90%;
  }

  .nav-links {
    display: none;
  }

  /* Could add mobile menu later */

  .about-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

}

/* --- Components: Architect Theme --- */

/* Skill Cards (Refactored Neon) */
.neon-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card-neon {
  background-color: var(--card-bg);
  border: var(--card-border);
  color: var(--text-primary);
  padding: 2.5rem;
  border-radius: var(--radius-card);
  position: relative;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 140px;
  box-shadow: var(--card-shadow);
}

.card-neon:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.card-neon h3 {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
  max-width: 60%;
  color: var(--text-primary);
}

.card-neon p {
  font-size: 1rem;
  margin-top: 0.5rem;
  opacity: 0.8;
  font-weight: 500;
}

.neon-percent {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent-color);
  /* Clean style - matches stat bar */
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  /* Cannot be clicked or selected */
  user-select: none;
  /* Cannot be highlighted/copied */
}

/* Stat Bar (Dark Divider) */
.stat-bar-dark {
  background-color: var(--bg-color);
  /* Use Theme Background */
  color: #ffffff;
  padding: 4rem 0;
  margin: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-bar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-block {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-block:last-child {
  border-right: none;
}

.stat-block .big-num {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
  /* Use Brand Accent */
}

.stat-block .label {
  font-size: 1.1rem;
  font-weight: 500;
  color: #cccccc;
}

@media (max-width: 768px) {
  .stat-bar-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .stat-block {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
  }

  .stat-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}


/* --- Projects Section (Image/Logo Grid) --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.project-logo-card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--radius-card);
  aspect-ratio: 16/9;
  /* Standard card ratio */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.project-logo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
}

.project-logo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-logo-card:hover img {
  transform: scale(1.1);
}

/* Overlay for project names on images */
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.project-logo-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-color);
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.project-logo-card:hover .project-overlay span {
  transform: translateY(0);
}


.logo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
  opacity: 0.5;
}

.logo-placeholder i {
  font-size: 2.5rem;
}

.logo-placeholder span {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Experience Section (Text-Based) --- */
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 2rem;
}

.exp-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.exp-item:last-child {
  border-bottom: none;
}

.exp-date {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.exp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.exp-content h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 0;
}

.exp-socials {
  display: flex;
  gap: 0.8rem;
}

.exp-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.exp-socials a:hover {
  background: var(--accent-color);
  color: var(--bg-color);
  border-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(200, 255, 0, 0.3);
}


.exp-company {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.6;
}

.exp-desc {
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 700px;
}

/* --- Social Icons & Button Styles --- */
.social-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-color);
  color: white !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.btn-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(200, 255, 0, 0.5);
}

.btn-icon i {
  color: #1a1a1a !important;
}

/* Nav CTA Button */
.nav-cta {
  background: var(--accent-color);
  color: #1a1a1a !important;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(200, 255, 0, 0.5);
}

@media (max-width: 768px) {
  .exp-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ============================================ */
/* INTERACTIVE ANIMATIONS                       */
/* ============================================ */

/* Custom Cursor */
.custom-cursor {
  width: 8px;
  height: 8px;
  background: var(--accent-color);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, background 0.2s ease;
}

.cursor-ring {
  width: 30px;
  height: 30px;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.15s ease-out;
  opacity: 0.5;
}

.custom-cursor.cursor-hover {
  transform: translate(-50%, -50%) scale(2);
  background: white;
}

.cursor-ring.cursor-hover {
  transform: translate(-50%, -50%) scale(1.5);
  border-color: white;
  opacity: 0.8;
}

/* Hide custom cursor on mobile */
@media (max-width: 768px) {

  .custom-cursor,
  .cursor-ring {
    display: none;
  }
}

/* Active Nav Highlight */
.nav-active {
  color: var(--accent-color) !important;
  position: relative;
}

.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-color);
  border-radius: 2px;
}

/* Page Load Animation */
body {
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.page-loaded {
  opacity: 1;
}

/* Scroll Reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal delays */
.reveal-on-scroll:nth-child(2) {
  transition-delay: 0.1s;
}

.reveal-on-scroll:nth-child(3) {
  transition-delay: 0.2s;
}

.reveal-on-scroll:nth-child(4) {
  transition-delay: 0.3s;
}

/* Card Tilt & Reveals - smooth transitions */
.project-logo-card,
.growth-card,
.card-neon,
.exp-item {
  transition: transform 0.11s ease-out, box-shadow 0.3s ease, opacity 0.6s ease, transform 0.6s ease;
}