/* 
  Ekta Verma - Premium Portfolio Stylesheet
  Theme: Modern Glassmorphism with Dark/Light Toggle
*/

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Fonts */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Color Palette - Dark Mode (Default) */
  --bg-primary: #030712;
  --bg-secondary: #0b1120;
  --bg-tertiary: #111827;
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --primary: #6366f1; /* Indigo */
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --accent: #10b981; /* Emerald for highlights */
  --accent-glow: rgba(16, 185, 129, 0.15);
  
  --glass-bg: rgba(17, 24, 39, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: rgba(0, 0, 0, 0.3);
  
  --card-hover-bg: rgba(31, 41, 55, 0.75);
  --card-hover-border: rgba(99, 102, 241, 0.4);
}

/* Light Mode Override */
[data-theme="light"] {
  --bg-primary: #f9fafb;
  --bg-secondary: #f3f4f6;
  --bg-tertiary: #e5e7eb;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  
  --primary: #4f46e5;
  --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --accent: #059669;
  --accent-glow: rgba(5, 150, 105, 0.1);
  
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-shadow: rgba(31, 41, 55, 0.08);
  
  --card-hover-bg: rgba(255, 255, 255, 0.95);
  --card-hover-border: rgba(79, 70, 229, 0.4);
}

/* --- Base Reset & Setup --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.2s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset for sticky navbar */
}

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

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

/* --- Selection Color --- */
::selection {
  background-color: var(--primary);
  color: #fff;
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* --- Global Utilities & Gradients --- */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent {
  color: var(--accent);
}

.bg-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 var(--glass-shadow);
}

.btn-premium {
  background: var(--primary-gradient);
  color: #ffffff !important;
  border: none;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 24px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  transition: all 0.3s ease;
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-premium-outline {
  background: transparent;
  color: var(--text-primary) !important;
  border: 1.5px solid var(--primary);
  font-weight: 600;
  border-radius: 8px;
  padding: 8.5px 22.5px;
  transition: all 0.3s ease;
}

.btn-premium-outline:hover {
  background: var(--primary-gradient);
  color: #ffffff !important;
  border-color: transparent;
  transform: translateY(-2px);
}

/* --- Navbar Styling --- */
.navbar-custom {
  padding: 15px 0;
  z-index: 1050;
  transition: all 0.4s ease;
}

.navbar-custom.scrolled {
  padding: 10px 0;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px var(--glass-shadow);
}

.navbar-brand-custom {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-link-custom {
  color: var(--text-secondary);
  font-weight: 500;
  margin: 0 10px;
  position: relative;
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--text-primary);
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--primary-gradient);
  transition: width 0.3s ease;
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
  width: 100%;
}

.theme-toggle-btn {
  background: none;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px var(--glass-shadow);
  transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(15deg);
}

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

/* Floating Abstract Shapes for Premium Vibe */
.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.shape-1 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0,0,0,0) 70%);
  top: -10%;
  right: -10%;
  animation: float-slow 15s infinite alternate;
}

.shape-2 {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, rgba(0,0,0,0) 70%);
  bottom: 10%;
  left: -5%;
  animation: float-slow 12s infinite alternate-reverse;
}

@keyframes float-slow {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(30px) scale(1.1); }
}

.hero-subtitle {
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 15px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

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

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

/* Hero Social Icons */
.social-links {
  display: flex;
  gap: 15px;
  margin-bottom: 35px;
}

.social-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
  background: var(--primary-gradient);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
  border-color: transparent;
}

/* --- Section Formatting --- */
.section-padding {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 60px;
  position: relative;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 15px;
  display: inline-block;
  position: relative;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 500px;
}

/* --- Card Styles --- */
.card-premium {
  border-radius: 16px;
  padding: 30px;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.card-premium:hover {
  transform: translateY(-8px);
  background: var(--card-hover-bg);
  border-color: var(--card-hover-border) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* --- About & Education & Internship --- */
.timeline-item {
  position: relative;
  padding-left: 30px;
  border-left: 2px solid var(--glass-border);
  margin-bottom: 35px;
}

.timeline-item:last-child {
  margin-bottom: 0;
  border-left-color: transparent;
}

.timeline-dot {
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2.5px solid var(--bg-primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

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

.timeline-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

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

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

.timeline-content ul {
  padding-left: 20px;
  margin-top: 8px;
}

.timeline-content li {
  margin-bottom: 6px;
}

/* --- Skills Container Grid --- */
.skills-category {
  margin-bottom: 30px;
}

.skills-category-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-badge {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: default;
  transition: all 0.3s ease;
}

.skill-badge i {
  color: var(--primary);
  font-size: 0.95rem;
}

.skill-badge:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
  background: var(--card-hover-bg);
}

/* --- Projects Custom layout --- */
.project-card {
  display: flex;
  flex-direction: column;
}

.project-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.project-tag {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: var(--primary);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
}

[data-theme="light"] .project-tag {
  background: rgba(79, 70, 229, 0.05);
  border-color: rgba(79, 70, 229, 0.1);
  color: var(--primary);
}

.project-links {
  display: flex;
  gap: 15px;
}

.project-link-btn {
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.project-link-btn:hover {
  color: var(--primary);
}

/* --- Certifications & Extra-curriculars --- */
.cert-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
}

.cert-icon {
  font-size: 1.8rem;
  color: var(--accent);
  margin-top: 2px;
}

.cert-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

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

/* --- Contact & Forms --- */
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.contact-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  word-break: break-all;
}

.contact-value:hover {
  color: var(--primary);
}

/* Custom form elements */
.form-group-custom {
  margin-bottom: 20px;
}

.form-control-custom {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary) !important;
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-control-custom:focus {
  background: var(--card-hover-bg);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  outline: none;
}

.form-control-custom::placeholder {
  color: var(--text-muted);
}

/* --- Footer --- */
.footer-custom {
  border-top: 1px solid var(--glass-border);
  padding: 40px 0;
  background: var(--bg-secondary);
}

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

/* --- Scroll Indicator on Hero --- */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.scroll-down:hover {
  color: var(--primary);
}

.mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.mouse::before {
  content: '';
  width: 4px;
  height: 8px;
  background-color: var(--primary);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 6px;
  border-radius: 2px;
  animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
  0% { top: 6px; opacity: 1; }
  100% { top: 16px; opacity: 0; }
}

/* Animation utilities for JS scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

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