/* style.css */
:root {
  /* Light Theme Default Variables */
  --bg-color: #f8fafc;
  --bg-color-alt: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --accent-primary: #6366f1; /* Indigo */
  --accent-secondary: #8b5cf6; /* Violet */
  --accent-tertiary: #14b8a6; /* Teal */
  
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  
  --blob-1: rgba(99, 102, 241, 0.4);
  --blob-2: rgba(139, 92, 246, 0.4);
  --blob-3: rgba(20, 184, 166, 0.4);

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

[data-theme="dark"] {
  /* Dark Theme Variables */
  --bg-color: #020617;
  --bg-color-alt: #0f172a;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-primary: #818cf8;
  --accent-secondary: #a78bfa;
  --accent-tertiary: #2dd4bf;
  
  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

  --blob-1: rgba(99, 102, 241, 0.15);
  --blob-2: rgba(139, 92, 246, 0.15);
  --blob-3: rgba(20, 184, 166, 0.15);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body.no-scroll {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6, .logo {
  font-family: var(--font-heading);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Custom Cursor Glow Effect */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-primary) 0%, rgba(0,0,0,0) 50%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  opacity: 0.15;
  transition: opacity 0.3s ease;
  mix-blend-mode: screen;
}

@media (max-width: 768px) {
  .cursor-glow {
    display: none; /* Hide on mobile */
  }
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary));
  z-index: 10001;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* Loader Screen */
.loader-screen {
  position: fixed;
  inset: 0;
  background-color: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-content {
  text-align: center;
}

.typing-container {
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.typing-cursor {
  animation: blink 1s infinite;
  color: var(--accent-primary);
}

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

.loader-tagline {
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.loader-tagline.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Background Animated Mesh */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  filter: blur(80px);
}

.blob {
  position: absolute;
  border-radius: 50%;
  animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
  width: 40vw;
  height: 40vw;
  background: var(--blob-1);
  top: -10%;
  left: -10%;
}

.blob-2 {
  width: 50vw;
  height: 50vw;
  background: var(--blob-2);
  bottom: -20%;
  right: -10%;
  animation-delay: -5s;
}

.blob-3 {
  width: 30vw;
  height: 30vw;
  background: var(--blob-3);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(5%, 5%) rotate(180deg) scale(1.1); }
  100% { transform: translate(-5%, 10%) rotate(360deg) scale(0.9); }
}

/* Reusable Glassmorphism Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 20px;
  padding: 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

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

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

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

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-controls button {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-controls button:hover {
  color: var(--accent-primary);
  transform: rotate(15deg) scale(1.1);
}

.mobile-menu-btn {
  display: none;
}

/* Sections Base */
.section-container {
  padding: 120px 2rem;
}

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

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary));
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
  font-family: var(--font-body);
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(5px);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-3px);
  background: var(--glass-bg);
}

.btn-small {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  border-radius: 6px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
}
.btn-small:hover {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  border-color: transparent;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

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

.greeting {
  font-size: 1.2rem;
  color: var(--accent-primary);
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  font-weight: 500;
}

.name {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, var(--text-main), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hook {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 3.5rem;
}

.hero-socials {
  display: flex;
  gap: 1.5rem;
}

.hero-socials a {
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: color 0.3s ease, transform 0.3s ease;
}

.hero-socials a:hover {
  color: var(--accent-primary);
  transform: translateY(-4px);
}

/* About Section */
.about-wrapper {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.about-image {
  flex: 0 0 320px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  border: 4px solid var(--accent-primary);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.about-wrapper:hover .about-image img {
  transform: scale(1.05);
}

.about-text {
  flex: 1;
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .about-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
    padding: 2.5rem;
  }
  .about-text {
    text-align: center;
  }
  .about-image {
    width: 250px;
    flex-basis: auto;
  }
}

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

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 21px;
  height: 100%;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-primary), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 2.5rem;
}

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

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 24px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 4px solid var(--accent-primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.timeline-date {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent-tertiary);
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.timeline-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.timeline-content h4 {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.8rem;
}

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

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  border-color: rgba(99, 102, 241, 0.5);
}

[data-theme="dark"] .project-card:hover {
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.project-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
  color: var(--text-main);
}

.project-subtitle {
  font-size: 0.95rem;
  color: var(--accent-primary);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.project-content p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  flex: 1;
  line-height: 1.7;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.project-tech span {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-primary);
  border-radius: 20px;
  font-weight: 500;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.skill-category {
  text-align: center;
}

.skill-category h3 {
  margin-bottom: 1.8rem;
  font-size: 1.3rem;
  color: var(--text-main);
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.skill-chip {
  padding: 0.6rem 1.2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: default;
}

.skill-chip:hover {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  border-color: transparent;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

/* Contact Section */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
  font-size: 1.05rem;
  color: var(--text-main);
}

.contact-method i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-primary);
  font-size: 1.3rem;
}

.contact-method a {
  transition: color 0.3s ease;
}

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

.contact-socials {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
}

.contact-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--bg-color-alt);
  color: var(--text-main);
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.contact-socials a:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.form-group {
  margin-bottom: 1.8rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  background: var(--bg-color);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
  font-weight: 600;
}

/* Footer */
footer {
  padding: 4rem 2rem 2rem;
  background: var(--bg-color-alt);
  border-top: 1px solid var(--glass-border);
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.copyright i {
  color: #ef4444;
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Responsive Styles */
@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    transition: right 0.4s ease;
    border-left: 1px solid var(--glass-border);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  }
  
  .nav-links.nav-active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.2rem;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-content {
    margin-top: 0;
  }
  
  .section-container {
    padding: 80px 1.5rem;
  }

  .timeline::before {
    left: 19px;
  }
  
  .timeline-item {
    padding-left: 50px;
  }
  
  .timeline-dot {
    left: 10px;
    width: 18px;
    height: 18px;
  }
}
