* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Light Mode Colors */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --text-primary: #1A202C;
  --text-secondary: #4A5568;
  --accent-primary: #2563EB;
  --accent-secondary: #0EA5E9;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(37, 99, 235, 0.1);
  --shadow: rgba(0, 0, 0, 0.1);
  --glow-lavender: #93C5FD;
  --glow-sky: #60A5FA;
  --glow-sun: #3B82F6;
  --glow-lilac: #BFDBFE;
  --gradient-lavender: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  --gradient-sky: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
  --gradient-sunset: linear-gradient(135deg, #3B82F6 0%, #2563EB 50%, #0EA5E9 100%);
}

body.dark-mode {
  /* Dark Mode Colors */
  --bg-primary: #0F172A;
  --bg-secondary: #1E293B;
  --text-primary: #F1F5F9;
  --text-secondary: #CBD5E1;
  --accent-primary: #3B82F6;
  --accent-secondary: #0EA5E9;
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(59, 130, 246, 0.2);
  --shadow: rgba(0, 0, 0, 0.5);
  --glow-lavender: #3B82F6;
  --glow-sky: rgba(14, 165, 233, 0.5);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.3s ease;
}

/* NAVIGATION */
.glass-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  box-shadow: 0 2px 15px rgba(37, 99, 235, 0.1);
}

.glass-nav.scrolled {
  box-shadow: 0 4px 30px var(--shadow);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  background: var(--gradient-lavender);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor: pointer;
  filter: drop-shadow(0 0 8px var(--glow-lavender));
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--glow-lavender);
}

.nav-links a:hover {
  color: var(--accent-primary);
  text-shadow: 0 0 10px var(--glow-lavender);
}

.nav-links a:hover::after {
  width: 100%;
}

.theme-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.theme-btn:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 0 20px var(--glow-lavender);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--glass-border);
  z-index: 2000;
  transition: right 0.3s ease;
  padding: 2rem;
  box-shadow: -5px 0 30px var(--shadow);
}

.mobile-menu.active {
  right: 0;
}

.close-menu {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-primary);
}

.mobile-nav-links {
  list-style: none;
  margin-top: 3rem;
}

.mobile-nav-links li {
  margin: 1.5rem 0;
}

.mobile-nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
}

/* GLASS COMPONENTS */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px var(--shadow);
  transition: all 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px var(--shadow), 0 0 30px var(--glow-lavender);
}

.glass-btn {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.glass-icon {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

/* HOME PAGE - HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  z-index: 10;
  max-width: 800px;
}

.profile-image-container {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-primary);
  box-shadow: 0 10px 40px var(--shadow), 0 0 40px var(--glow-lavender);
  cursor: pointer;
  transition: all 0.4s ease;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.profile-pic:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 15px 50px var(--shadow), 0 0 60px var(--glow-lavender);
}

.profile-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--gradient-lavender);
  filter: blur(40px);
  opacity: 0.3;
  z-index: -1;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.4; }
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: bold;
  filter: drop-shadow(0 0 10px var(--glow-lavender));
}

.gradient-text {
  background: var(--gradient-sunset);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 3s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.wave {
  display: inline-block;
  animation: wave 2s ease-in-out infinite;
  filter: drop-shadow(0 0 8px var(--glow-sun));
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
}

.typing-container {
  min-height: 40px;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
}

.cursor {
  animation: blink 1s infinite;
  color: var(--accent-primary);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-tagline {
  margin: 1.5rem 0;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.tag {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15);
}

.tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px var(--glow-lavender);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-lavender);
  color: white;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 0 35px var(--glow-lavender);
  transform: translateY(-5px);
}

.btn-secondary {
  color: var(--text-primary);
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
}

.btn-secondary:hover {
  box-shadow: 0 0 35px var(--glow-sky);
  transform: translateY(-5px);
}

.btn-icon {
  font-size: 1.2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.social-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.social-icon:hover {
  transform: translateY(-8px) rotate(10deg);
  box-shadow: 0 0 30px var(--glow-lavender);
}

/* COMMON SECTION STYLES */
.section {
  padding: 5rem 2rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: var(--gradient-sunset);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px var(--glow-lavender));
  animation: gradient-shift 3s ease infinite;
  background-size: 200% 200%;
}

/* ABOUT PAGE */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-intro {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--accent-primary);
  font-weight: 600;
}

.about-text p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.fun-facts {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--glass-bg);
  border-radius: 15px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

.fun-facts h3 {
  margin-bottom: 1rem;
  color: var(--accent-primary);
}

.fun-facts ul {
  list-style: disc;
  padding-left: 2rem;
}

.fun-facts li {
  padding: 0.5rem 0;
}

/* SKILLS PAGE */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.skill-category h3 {
  margin-bottom: 1rem;
  color: var(--accent-primary);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-tag {
  padding: 0.5rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.9rem;
  transition: all 0.4s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15);
}

.skill-tag:hover {
  background: var(--gradient-lavender);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 0 25px var(--glow-lavender);
}

/* EDUCATION PAGE - TIMELINE */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: var(--gradient-lavender);
  box-shadow: 0 0 10px var(--glow-lavender);
}

.timeline-item {
  display: flex;
  margin: 2rem 0;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-lavender);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 5px 20px var(--shadow), 0 0 25px var(--glow-lavender);
}

.timeline-content {
  width: calc(50% - 40px);
  padding: 1.5rem;
}

.timeline-content h3 {
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.timeline-place {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.timeline-time {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 0.3rem;
}

.timeline-grade {
  color: var(--accent-secondary);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* PROJECTS PAGE */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  text-align: center;
}

.project-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px var(--glow-lavender));
}

.project-card h3 {
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.project-desc {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.project-tech span {
  padding: 0.3rem 0.8rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.85rem;
}

/* CONTACT PAGE */
.contact-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact-intro {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text-primary);
  border-radius: 15px;
  transition: all 0.4s ease;
}

.contact-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 30px var(--glow-sky);
}

.contact-icon {
  font-size: 2rem;
}

.contact-info {
  text-align: left;
}

.contact-info h4 {
  color: var(--accent-primary);
  margin-bottom: 0.3rem;
}

.contact-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-cta {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--gradient-sunset);
  color: white;
  border-radius: 15px;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.3);
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 2rem;
  margin: 2rem;
}

.footer-tagline {
  margin-top: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  
  .hero {
    padding: 5rem 1rem 2rem;
  }
  
  .hero-title { 
    font-size: 2rem; 
  }
  
  .profile-pic { 
    width: 150px; 
    height: 150px; 
  }
  
  .profile-glow {
    width: 180px;
    height: 180px;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .section-title { 
    font-size: 2rem; 
  }
  
  .section {
    padding: 4rem 1rem;
  }
  
  .timeline::before { 
    left: 30px; 
  }
  
  .timeline-icon { 
    left: 30px; 
    transform: none; 
  }
  
  .timeline-item { 
    flex-direction: row !important; 
  }
  
  .timeline-content { 
    width: calc(100% - 80px); 
    margin-left: 80px; 
  }
}

@media (max-width: 480px) {
  .hero-title { 
    font-size: 1.5rem; 
  }
  
  .section { 
    padding: 3rem 1rem; 
  }
  
  .projects-grid, 
  .skills-grid { 
    grid-template-columns: 1fr; 
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}