/* =============================================================================
   Design System & Style Guide — Sumaiya Pradhan Portfolio
   ============================================================================= */

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

:root {
  /* Color Palette - Premium Light Mode */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --accent-cyan: #0891b2;
  --accent-cyan-glow: rgba(8, 145, 178, 0.08);
  --accent-blue: #2563eb;
  --accent-indigo: #4f46e5;
  --accent-indigo-glow: rgba(79, 70, 229, 0.1);
  
  /* Gradients */
  --gradient-tech: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-indigo) 100%);
  --gradient-bg: radial-gradient(circle at 50% 50%, #e0e7ff 0%, var(--bg-primary) 100%);
  --gradient-card-hover: linear-gradient(135deg, rgba(8, 145, 178, 0.02) 0%, rgba(79, 70, 229, 0.02) 100%);
  
  /* Glassmorphism Details */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(15, 23, 42, 0.08);
  --glass-border-hover: rgba(15, 23, 42, 0.15);
  
  /* Layout & System Values */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-full: 9999px;
  
  --shadow-neon: 0 10px 25px rgba(79, 70, 229, 0.1);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  background-image: var(--gradient-bg);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

/* Layout Elements */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
  position: relative;
}

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

.gradient-text {
  background: var(--gradient-tech);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 25%;
  width: 50%;
  height: 4px;
  background: var(--gradient-tech);
  border-radius: var(--radius-full);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 60px auto;
  font-size: 1.1rem;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(248, 250, 252, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: var(--transition-smooth);
}

header.scrolled .navbar {
  height: 70px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-tech);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-tech);
  transition: var(--transition-fast);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Glassmorphism Card Style */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
  background-image: var(--gradient-card-hover);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
}

/* Hero Section */
.hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
  padding-top: 120px;
  min-height: calc(100vh - 80px);
}

.hero-text {
  flex: 1.2;
}

.hero-visual {
  flex: 0.8;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
  margin-bottom: 20px;
  display: block;
}

.hero-text h1 {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
}

.cta-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--gradient-tech);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.25);
  transform: scale(1.03);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border-hover);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.03);
  border-color: var(--text-primary);
}

/* Portrait Wrapper */
.portrait-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
}

.portrait-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 340px;
  height: 340px;
  border-radius: var(--radius-lg);
  background: var(--gradient-tech);
  filter: blur(15px);
  opacity: 0.4;
  z-index: 1;
}

.portrait-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(15, 23, 42, 0.06);
  z-index: 2;
}

/* Quick badges */
.badge-floating {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(8, 145, 178, 0.3);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  backdrop-filter: blur(8px);
  z-index: 3;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-neon);
}

.badge-floating.b1 {
  top: 10%;
  left: -40px;
  animation: float-slow 4s ease-in-out infinite alternate;
}

.badge-floating.b2 {
  bottom: 10%;
  right: -30px;
  animation: float-slow 5s ease-in-out infinite alternate-reverse;
}

/* Animations */
@keyframes float-slow {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.highlight-box {
  text-align: center;
  padding: 24px;
}

.highlight-num {
  font-size: 2.8rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 5px;
}

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

.about-intro-text p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

/* Core Competencies */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.skill-category h3 {
  color: var(--accent-cyan);
  font-size: 1.3rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-tag {
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid var(--glass-border);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
}

.skill-tag:hover {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan-glow);
  transform: translateX(5px);
}

.tag-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
  border-radius: var(--radius-full);
}

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

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: var(--glass-border);
  transform: translateX(-50%);
}

.timeline-item {
  margin-bottom: 60px;
  position: relative;
  width: 50%;
  padding-right: 40px;
  align-self: flex-start;
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  padding-right: 0;
  padding-left: 40px;
}

.timeline-dot {
  position: absolute;
  top: 30px;
  right: -9px;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  border: 4px solid var(--accent-cyan);
  z-index: 5;
  box-shadow: var(--shadow-neon);
  transition: var(--transition-fast);
}

.timeline-item:nth-child(even) .timeline-dot {
  right: auto;
  left: -9px;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  background: var(--accent-cyan);
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-card h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.timeline-client {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.timeline-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.timeline-bullets li {
  position: relative;
  padding-left: 18px;
}

.timeline-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-cyan);
}

/* Timeline flex wrapper for auto alignments */
.timeline-flex-wrapper {
  display: flex;
  flex-direction: column;
}

/* Education and Certifications Grid */
.edu-cert-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.edu-list, .cert-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.edu-card {
  padding: 24px;
}

.edu-card h4 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.edu-school {
  color: var(--accent-cyan);
  font-weight: 500;
  margin-bottom: 4px;
}

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

.cert-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  padding: 24px;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.cert-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  width: 100%;
}

.cert-icon {
  font-size: 1.5rem;
  color: var(--accent-cyan);
  margin-bottom: 0;
}

.cert-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.cert-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.cert-list li {
  position: relative;
  padding-left: 14px;
  line-height: 1.3;
}

.cert-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-tech);
  opacity: 0.7;
}

/* Contact Details */
.contact-methods-wrapper {
  display: flex;
  justify-content: center;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-methods-wrapper .contact-method {
  flex: 1;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--accent-cyan-glow);
  border: 1px solid rgba(8, 145, 178, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.2rem;
}

.contact-method h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.contact-method p {
  font-size: 1.05rem;
  font-weight: 600;
}

/* Forms */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: #ffffff;
  box-shadow: 0 0 10px rgba(8, 145, 178, 0.08);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

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

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

/* Scroll Animation States */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-text h1 {
    font-size: 3rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    flex-direction: column;
    padding: 30px 24px;
    gap: 20px;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
  }

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

  .mobile-menu-btn {
    display: block;
  }
  
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
    padding-top: 100px;
    justify-content: center;
  }
  
  .hero-visual {
    margin-bottom: 20px;
  }
  
  .portrait-wrapper {
    width: 260px;
    height: 260px;
  }
  
  .portrait-glow {
    width: 280px;
    height: 280px;
  }
  
  .badge-floating.b1 {
    left: -20px;
  }
  
  .badge-floating.b2 {
    right: -20px;
  }
  
  .hero-description {
    margin: 0 auto 30px auto;
  }
  
  .cta-group {
    justify-content: center;
  }
  
  .timeline-container::before {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
  }
  
  .timeline-item:nth-child(even) {
    margin-left: 0;
    padding-left: 50px;
  }
  
  .timeline-dot {
    left: 11px;
    right: auto;
  }
  
  .timeline-item:nth-child(even) .timeline-dot {
    left: 11px;
  }
  
  .edu-cert-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-methods-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .contact-methods-wrapper .contact-method {
    width: 100%;
    max-width: 400px;
  }
}
