/* Local Fonts (Variable) */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/Outfit-Variable.ttf") format("truetype");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/PlusJakartaSans-Variable.ttf") format("truetype");
}

:root {
  --bg-color: #0a0a0f;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --accent-primary: #6c5ce7;
  --accent-secondary: #a29bfe;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --card-bg: #13131f;
  --font-heading: "Outfit", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
  --container-width: 1200px;
  --spacing-section: 60px; /* Reduced for Mobile Base */
}

@media (min-width: 768px) {
  :root {
    --spacing-section: 80px;
  }
}

@media (min-width: 1024px) {
  :root {
    --spacing-section: 120px;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto; /* Handled by Lenis */
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}
@media (min-width: 1400px) {
  .container {
    padding: 0;
  }
}

.section {
  padding: var(--spacing-section) 0;
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Mobile First: Nav links hidden by default (or hamburger menu in future) */
.nav-links {
  display: none;
}

/* Desktop Navbar */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
    gap: 40px;
  }

  .nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
  }

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

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

/* Background Glow */
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(108, 92, 231, 0.2) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  border-radius: 50%;
  z-index: -1;
}

@media (min-width: 768px) {
  .hero::before {
    width: 600px;
    height: 600px;
  }
}

/* Mobile: Stacked Layout, Center Align */
.hero-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-secondary);
  margin-bottom: 16px;
  font-weight: 600;
}

.hero-title {
  font-size: 2.25rem; /* Mobile Size */
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 100%;
  margin: 0 auto 30px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 280px; /* Limit image size on mobile */
  order: -1; /* Image on top for mobile */
  margin-top: 40px;
}

.hero-image-container {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}

.hero-image-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(108, 92, 231, 0.3),
    rgba(10, 10, 15, 0.4)
  );
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.floating-card {
  position: absolute;
  background: rgba(20, 20, 30, 0.8);
  backdrop-filter: blur(12px);
  padding: 12px 16px; /* Smaller padding mobile */
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  display: none; /* Hidden on mobile */
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  z-index: 2;
  /* Mobile positioning - simplified or scale down */
  transform: scale(0.85);
}

@media (min-width: 768px) {
  .floating-card {
    display: flex; /* Show on tablet+ */
  }
}

.card-1 {
  top: 5%;
  left: -5%;
}

.card-2 {
  bottom: 10%;
  right: -5%;
}

/* Tablet & Desktop Hero */
@media (min-width: 1024px) {
  .hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    text-align: left;
    height: auto; /* Reset flex stretch */
  }

  .hero-title {
    font-size: 4rem;
    margin-bottom: 24px;
  }

  .hero-description {
    font-size: 1.1rem;
    margin: 0 0 40px; /* Reset margin */
    max-width: 500px;
  }

  .hero-cta {
    justify-content: flex-start;
  }

  .hero-image-wrapper {
    max-width: none;
    order: 0; /* Reset order for desktop */
    margin-top: 0;
  }

  .floating-card {
    padding: 16px 24px;
    border-radius: 16px;
    gap: 16px;
    transform: scale(1);
  }

  .card-1 {
    top: 10%;
    left: -10%;
  }

  .card-2 {
    bottom: 15%;
    right: -5%;
  }
}

/* Buttons */
.btn {
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-color);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .btn {
    padding: 14px 32px;
    font-size: 0.95rem;
  }
}

/* Section Headers */
.section-header {
  margin-bottom: 40px;
  text-align: center; /* Center by default on mobile */
}

@media (min-width: 1024px) {
  .section-header {
    text-align: left;
    margin-bottom: 60px;
  }
}

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

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-subtitle {
  color: var(--accent-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* About Section */
.about-content {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto; /* Center align */
}

@media (min-width: 1024px) {
  .about-content {
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 0; /* Reset */
  }
}

/* Skills Section */
.skills {
  background: transparent; /* Clean */
}

/* Mobile: 1 Column */
.skills-grid-uniform {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Tablet: 2 Columns */
@media (min-width: 768px) {
  .skills-grid-uniform {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* Desktop: 3 Columns */
@media (min-width: 1024px) {
  .skills-grid-uniform {
    grid-template-columns: repeat(3, 1fr);
  }
}

.skill-uniform-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.skill-uniform-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.skill-uniform-card:hover .card-glow {
  opacity: 1;
}

.card-content {
  padding: 24px;
  flex-grow: 1; /* Match height */
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .card-content {
    padding: 30px; /* Reduced from 40 for better fit */
  }
}

.skill-icon-uniform {
  font-size: 2rem;
  margin-bottom: 16px;
}

.skill-uniform-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.skill-uniform-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tags span {
  background: rgba(108, 92, 231, 0.1);
  color: var(--accent-secondary);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(108, 92, 231, 0.2);
}

/* Experience Timeline */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Vertical Line */
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--glass-border);
}

.timeline-item {
  padding-left: 30px;
  margin-bottom: 40px;
  position: relative;
}

@media (min-width: 768px) {
  .timeline-item {
    padding-left: 50px;
    margin-bottom: 60px;
  }
}

/* Dot */
.timeline-item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0;
  width: 10px;
  height: 10px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(108, 92, 231, 0.2);
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--accent-secondary);
  margin-bottom: 8px;
  font-weight: 600;
}

.timeline-content h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

@media (min-width: 768px) {
  .timeline-content h3 {
    font-size: 1.5rem;
  }
}

.timeline-content h4 {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 16px;
}

.timeline-content ul li {
  font-size: 0.95rem; /* Readable on mobile */
  margin-bottom: 10px;
  color: var(--text-secondary);
  position: relative;
  padding-left: 20px;
}

.timeline-content ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

/* Education */
.education-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .education-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

.education-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-primary);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(108, 92, 231, 0.15),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.education-card:hover .card-glow {
  opacity: 1;
}

.edu-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.05);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.edu-year {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-secondary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  background: rgba(108, 92, 231, 0.1);
  border-radius: 50px;
  width: fit-content;
}

.edu-degree {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.edu-school {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Contact Minimalist */
.contact-minimal {
  padding: 60px 0;
  border-top: 1px solid var(--glass-border);
}

.contact-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-secondary);
  margin-bottom: 30px;
  display: block;
}

.contact-email {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 8vw, 6rem); /* Responsive clamp */
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 60px;
  transition: all 0.5s ease;
  width: fit-content;
  word-break: break-all; /* Prevent overflow on small mobiles */
}

@media (min-width: 768px) {
  .contact-email {
    word-break: normal;
  }
}

.contact-email:hover {
  color: transparent;
  -webkit-text-stroke: 2px var(--accent-primary);
  transform: translateX(10px);
}

.contact-footer {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

@media (min-width: 768px) {
  .contact-footer {
    flex-direction: row;
    gap: 60px;
  }
}

.contact-info span {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.contact-info a,
.contact-info p {
  font-size: 1.1rem;
  font-weight: 500;
}

.contact-info a:hover {
  color: var(--accent-primary);
}

/* Footer */
.footer {
  padding: 40px 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  border-top: 1px solid var(--glass-border);
}

.footer-link {
  color: var(--accent-primary);
  text-decoration: none;
}
.footer-link:hover {
  color: var(--accent-secondary);
}

/* Intro Overlay */
.intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.intro-text {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  overflow: hidden;
}

@media (min-width: 768px) {
  .intro-text {
    font-size: 3rem;
  }
}

.intro-text .char {
  display: inline-block;
  opacity: 0; /* Hidden initially, revealed by JS */
  transform: translateY(100%); /* Start below */
  color: var(--text-primary);
}

.intro-text .space {
  width: 0.3em;
}

/* Navigation Social Link */
/* Navigation Actions Wrapper */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

@media (min-width: 768px) {
  .nav-actions {
    gap: 40px;
  }
}

/* Navigation Social Link */
.nav-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  /* margin-left removed */
}

.nav-social-link:hover {
  color: var(--accent-primary);
}
