/* Vedant Kothari Portfolio - Style Sheet */
/* Version 1.0 - 2025 */

:root {
  /* Blue theme colors */
  --bg-light: #f0f7ff;
  --bg-section: #ffffff;
  --bg-hero: linear-gradient(135deg, #0066ff 0%, #004de6 100%);
  --accent: #0066ff;
  --accent-hover: #0052cc;
  --accent-light: #e6f0ff;
  --text: #1a202c;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --dark-bg: #0f172a;
  --dark-section: #1e293b;
  --dark-panel: #334155;
  --dark-accent: #3b82f6;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

/* Body Styles */
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-light);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

body.dark {
  background: var(--dark-bg);
  color: var(--text-light);
  --bg-section: var(--dark-section);
  --accent: var(--dark-accent);
  --accent-light: #1e3a8a;
  --text-muted: #94a3b8;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

/* Dark Mode Toggle */
.dark-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  color: var(--text);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.dark-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

body.dark .dark-toggle {
  background: rgba(51, 65, 85, 0.9);
  color: var(--text-light);
}

/* Hero Section */
.hero {
  background: var(--bg-hero);
  color: white;
  text-align: center;
  padding: 6rem 1rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Profile Image */
.profile-image-container {
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease;
}

.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.05);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero .tagline {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 3rem;
  opacity: 0.9;
  animation: fadeInUp 0.8s ease 0.4s both;
  min-height: 2.25rem; /* Prevent layout shift */
}

/* Typing Effect Styles */
.typing-text {
  display: inline-block;
  min-width: 1px;
}

.typing-cursor {
  display: inline-block;
  font-weight: 100;
  font-size: 1.5rem;
  animation: blink 1s infinite;
  margin-left: 3px;
}

@keyframes blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

.hero .cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  background: white;
  color: var(--accent);
  border: 2px solid transparent;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  font-size: 0.95rem;
}

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

.btn.outline {
  background: transparent;
  color: white;
  border-color: white;
}

.btn.outline:hover {
  background: white;
  color: var(--accent);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--bg-section);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.mobile-nav select {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: var(--bg-section);
  color: var(--text);
  cursor: pointer;
}

/* Sticky Navigation */
.sticky-nav {
  position: sticky;
  top: 0;
  display: flex;
  gap: 2rem;
  justify-content: center;
  padding: 1rem;
  background: var(--bg-section);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  overflow-x: auto;
  white-space: nowrap;
  z-index: 500;
  -webkit-overflow-scrolling: touch;
}

.sticky-nav a {
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
  text-decoration: none;
}

.sticky-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.sticky-nav a.active {
  color: var(--accent);
}

.sticky-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  animation: slideIn 0.3s ease;
}

/* Main Content Sections */
.section {
  background: var(--bg-section);
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 2rem auto;
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.section.revealed {
  opacity: 1;
  transform: translateY(0);
}

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  color: var(--accent);
}

/* Accordion Components */
.accordion {
  background: var(--bg-light);
  cursor: pointer;
  padding: 0;
  margin: 1.5rem 0;
  border-radius: 12px;
  border: 2px solid transparent;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

body.dark .accordion {
  background: var(--dark-panel);
}

.accordion:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.accordion .hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  gap: 1rem;
}

.accordion .hdr > span:first-child {
  flex: 1;
  text-align: left;
}

.accordion .hdr::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  color: var(--accent);
  margin-left: auto;
  flex-shrink: 0;
}

.accordion.open .hdr::after {
  transform: rotate(45deg);
}

.accordion .dt {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
}

.accordion-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion.open .accordion-content {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

.accordion ul {
  list-style: none;
  padding-left: 0;
}

.accordion li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.accordion li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Skills Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.tags span {
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

body.dark .tags span {
  background: var(--dark-panel);
  color: var(--text-light);
  border-color: var(--dark-accent);
}

.tags span:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
  border-color: var(--accent);
}

/* Footer */
footer {
  padding: 3rem 1rem;
  text-align: center;
  background: var(--bg-section);
  color: var(--text-muted);
  margin-top: 4rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 5rem 1rem 3rem;
  }
  
  .hero h1 {
