@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

/* ==========================================================================
   Design System & Variables (Pastel Technical Theme)
   ========================================================================== */
:root {
  /* Soft Pastel Palette */
  --pastel-pink: #f472b6;       /* Rose-400 */
  --pastel-pink-dark: #db2777;  /* Rose-600 */
  --pastel-pink-light: #fdf2f8; /* Rose-50 */
  
  --pastel-green: #34d399;      /* Emerald-400 */
  --pastel-green-dark: #059669; /* Emerald-600 */
  --pastel-green-light: #ecfdf5;/* Emerald-50 */

  /* Neutral Light Palette */
  --bg-primary: #f8fafc;        /* Slate-50 */
  --bg-secondary: #ffffff;      /* White */
  --bg-tertiary: #f1f5f9;       /* Slate-100 */
  --text-primary: #0f172a;      /* Slate-900 */
  --text-secondary: #334155;    /* Slate-700 */
  --text-muted: #64748b;        /* Slate-500 */
  --border-color: #e2e8f0;      /* Slate-200 */
  --border-hover: #cbd5e1;      /* Slate-300 */
  
  /* Accent assignments */
  --accent: var(--pastel-green-dark);
  --accent-secondary: var(--pastel-pink-dark);
  --accent-light: var(--pastel-green-light);
  
  /* Shadows & Radius */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
  --shadow-pink: 0 10px 25px -5px rgba(244, 114, 182, 0.2);
  --shadow-green: 0 10px 25px -5px rgba(52, 211, 153, 0.2);
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Fira Code', 'JetBrains Mono', monospace;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 16px;
  --border-radius-lg: 24px;
}

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

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

body {
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Decorative Pastel Gradient Meshes */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: -10vw;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.07) 0%, rgba(255,255,255,0) 70%);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: '';
  position: absolute;
  top: 80vh;
  right: -10vw;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.08) 0%, rgba(255,255,255,0) 70%);
  z-index: -2;
  pointer-events: none;
}

.bg-decoration-3 {
  content: '';
  position: absolute;
  top: 220vh;
  left: -5vw;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.06) 0%, rgba(255,255,255,0) 70%);
  z-index: -2;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

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

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

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--pastel-pink-dark), var(--pastel-green-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  color: var(--text-primary);
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60px;
  height: 5px;
  background: linear-gradient(to right, var(--pastel-pink), var(--pastel-green));
  border-radius: 3px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--pastel-pink-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 30px; /* Playful rounded pill */
  cursor: pointer;
  transition: var(--transition-normal);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--pastel-green-dark);
  color: var(--bg-secondary);
}

.btn-primary:hover {
  background-color: #047857; /* Slightly darker green */
  box-shadow: var(--shadow-green);
  transform: translateY(-2px);
}

.btn-secondary {
  border-color: var(--pastel-pink-dark);
  color: var(--pastel-pink-dark);
  background: transparent;
}

.btn-secondary:hover {
  background-color: var(--pastel-pink-light);
  box-shadow: var(--shadow-pink);
  transform: translateY(-2px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  transition: var(--transition-normal);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.logo-accent {
  color: var(--pastel-pink-dark);
}

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

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

.nav-links a:hover {
  color: var(--pastel-pink-dark);
}

.nav-resume {
  font-size: 0.875rem !important;
  border: 2px solid var(--pastel-green-dark);
  padding: 0.4rem 1.25rem !important;
  border-radius: 20px;
  color: var(--pastel-green-dark) !important;
}

.nav-resume:hover {
  background-color: var(--pastel-green-light) !important;
  color: #047857 !important;
}

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

.hero-content {
  max-width: 800px;
}

.hero-subtitle {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -1.5px;
  color: var(--text-primary);
}

.hero-role-subtitle {
  display: block;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  line-height: 1.35;
}

.hero-title-typewriter {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 650px;
}

.hero-cta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Metrics Highlights Section
   ========================================================================== */
.metrics-section {
  padding: 3rem 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.75rem;
  text-align: center;
}

.metric-card {
  padding: 1.5rem 1rem;
  border-radius: var(--border-radius);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

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

.metric-number {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.35rem;
  line-height: 1.1;
}

.metric-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 600;
  line-height: 1.4;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border-color);
}

.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.about-highlight {
  color: var(--text-primary);
  font-weight: 600;
  border-bottom: 2px dashed var(--pastel-pink);
}

.about-decoration {
  display: flex;
  justify-content: center;
  position: relative;
}

.about-box {
  width: 280px;
  height: 280px;
  border-radius: var(--border-radius-lg);
  background: linear-gradient(135deg, var(--pastel-pink-light) 0%, var(--pastel-green-light) 100%);
  border: 2px solid var(--bg-secondary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-box::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: calc(var(--border-radius-lg) + 6px);
  border: 2px dashed rgba(244, 114, 182, 0.4);
  z-index: -1;
}

.about-box-icon {
  margin-bottom: 1rem;
}

.about-box-title {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.about-box-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.about-image-wrapper {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(135deg, var(--pastel-pink), var(--pastel-green));
  box-shadow: var(--shadow-lg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image-wrapper::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(244, 114, 182, 0.4);
  z-index: -1;
  animation: rotateDashed 20s linear infinite;
}

@keyframes rotateDashed {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--bg-secondary);
}

/* ==========================================================================
   Experience & Education
   ========================================================================== */
.experience {
  padding: 6rem 0;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.timeline-title {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background-color: var(--border-color);
}

.timeline-item {
  padding-left: 2.5rem;
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 4px solid var(--pastel-green);
  box-shadow: 0 0 0 4px var(--pastel-green-light);
}

.timeline-item:nth-child(even) .timeline-dot {
  border-color: var(--pastel-pink);
  box-shadow: 0 0 0 4px var(--pastel-pink-light);
}

.timeline-header {
  margin-bottom: 0.75rem;
}

.timeline-role {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-org {
  font-size: 1rem;
  color: var(--pastel-green-dark);
  font-weight: 600;
  margin-top: 0.15rem;
}

.timeline-item:nth-child(even) .timeline-org {
  color: var(--pastel-pink-dark);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.timeline-content {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.timeline-content ul {
  list-style-type: none;
}

.timeline-content li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.25rem;
}

.timeline-content li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--pastel-pink);
  font-size: 0.8rem;
}

/* Timeline Gallery Styling */
.timeline-gallery {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.timeline-gallery a {
  display: block;
  width: 90px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-primary);
}

.timeline-gallery a:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: var(--pastel-pink);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.15);
}

.timeline-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Projects Section — Featured Showcase Layout
   ========================================================================== */
.projects {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border-color);
}

.featured-project {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}

.featured-project:last-of-type {
  margin-bottom: 0;
}

.featured-project.reverse {
  grid-template-columns: 1fr 1.15fr;
}

.featured-project.reverse .featured-media {
  order: 2;
}

.featured-project.reverse .featured-details {
  order: 1;
}

/* Media (Video / Screenshot) */
.featured-media {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: var(--bg-tertiary);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

.featured-media:hover {
  box-shadow: 0 20px 40px -10px rgba(244, 114, 182, 0.15);
  transform: translateY(-4px);
}

.featured-video {
  width: 100%;
  display: block;
  border-radius: var(--border-radius);
  background-color: #0f172a;
}

.featured-img-link {
  display: block;
  position: relative;
  overflow: hidden;
}

.featured-screenshot {
  width: 100%;
  display: block;
  transition: var(--transition-normal);
}

.featured-img-link:hover .featured-screenshot {
  transform: scale(1.03);
}

.featured-media-label {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}

/* Details */
.featured-details {
  padding: 1rem 0;
}

.featured-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.featured-desc-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.featured-desc-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* Keep existing tag and link styles */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  background-color: var(--pastel-green-light);
  color: var(--pastel-green-dark);
  border-radius: 6px;
  font-weight: 600;
}

.featured-project.reverse .project-tag {
  background-color: var(--pastel-pink-light);
  color: var(--pastel-pink-dark);
}

.project-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.project-title a:hover {
  color: var(--pastel-pink-dark);
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-top: auto;
}

.project-link {
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
}

.project-link:hover {
  color: var(--pastel-pink-dark);
}

/* ==========================================================================
   Skills & Certifications
   ========================================================================== */
.skills-certs {
  padding: 6rem 0;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.skills-certs-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
}

.certs-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skills-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.skills-category-title {
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.skill-tag:hover {
  border-color: var(--pastel-pink);
  background-color: var(--pastel-pink-light);
  transform: translateY(-2px);
}

.cert-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 2.25rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, var(--pastel-pink), var(--pastel-green));
}

.cert-badge {
  width: 50px;
  height: 50px;
  background-color: var(--pastel-pink-light);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--pastel-pink-dark);
  margin-bottom: 1.5rem;
}

.cert-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.cert-org {
  color: var(--pastel-green-dark);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.cert-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ==========================================================================
   Contact Section & Footer
   ========================================================================== */
.contact {
  padding: 6rem 0 3rem 0;
  text-align: center;
}

.contact-box {
  max-width: 600px;
  margin: 0 auto;
}

.contact-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.contact-text {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.footer {
  margin-top: 6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

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

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  color: var(--text-secondary);
  font-size: 1.25rem;
  transition: var(--transition-fast);
  display: flex;
  justify-content: center;
  align-items: center;
}

.social-link:hover {
  color: var(--pastel-pink-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   Typewriter Cursor Animation
   ========================================================================== */
#typewriter {
  border-right: 3px solid var(--pastel-pink);
  padding-right: 4px;
  animation: blink 0.75s step-end infinite;
  white-space: nowrap;
}

@keyframes blink {
  from, to { border-color: transparent }
  50% { border-color: var(--pastel-pink); }
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 968px) {
  .about-grid, .skills-certs-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-decoration {
    order: -1;
  }
  .featured-project,
  .featured-project.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .featured-project.reverse .featured-media {
    order: 0;
  }
  .featured-project.reverse .featured-details {
    order: 0;
  }
  .featured-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 70px;
  }
  .nav-links {
    display: none;
  }
  .exp-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .skills-subgrid {
    grid-template-columns: 1fr;
  }
  .footer {
    flex-direction: column;
    text-align: center;
  }
}
