:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  --warning-gradient: linear-gradient(135deg, #ff9a56 0%, #ff6b6b 100%);
  
  --bg-color: #0a0a0a;
  --text-color: #ffffff;
  --accent-color: #00f2fe;
  --section-bg: rgba(255, 255, 255, 0.05);
  --card-bg: rgba(255, 255, 255, 0.1);
  --nav-bg: rgba(0, 0, 0, 0.9);
  --shadow: 0 20px 40px rgba(0, 242, 254, 0.1);
  --glow: 0 0 30px rgba(0, 242, 254, 0.3);
}

body.light-theme {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --dark-gradient: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
  --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  --warning-gradient: linear-gradient(135deg, #ff9a56 0%, #ff6b6b 100%);
  
  --bg-color: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  --text-color: #1a202c;
  --accent-color: #4facfe;
  --section-bg: rgba(255, 255, 255, 0.95);
  --card-bg: rgba(255, 255, 255, 0.9);
  --nav-bg: rgba(255, 255, 255, 0.98);
  --shadow: 0 20px 40px rgba(79, 172, 254, 0.2);
  --glow: 0 0 30px rgba(79, 172, 254, 0.4);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 242, 254, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

body.light-theme::before {
  background: 
    radial-gradient(circle at 20% 50%, rgba(79, 172, 254, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(118, 75, 162, 0.12) 0%, transparent 50%);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  gap: 0.8rem;
}

.nav-top {
  width: 100%;
  display: flex;
  justify-content: center;
}

.nav-bottom {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-controls {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-menu a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

body.light-theme .nav-menu a {
  color: var(--text-color);
  font-weight: 600;
}

.nav-menu a::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.3s ease;
}

.nav-menu a:hover::before {
  width: 100%;
}

.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  width: 60px;
  height: 30px;
  border-radius: 15px;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.light-theme .theme-toggle {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.theme-toggle::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.light-theme .theme-toggle::before {
  transform: translateX(30px);
}

.theme-toggle i {
  position: absolute;
  font-size: 12px;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  z-index: 1;
}

.theme-toggle .fa-moon {
  left: 8px;
  color: #00f2fe;
  opacity: 1;
}

.theme-toggle .fa-sun {
  right: 8px;
  color: white;
  opacity: 0;
}

body.light-theme .theme-toggle .fa-moon {
  opacity: 0;
  color: transparent;
}

body.light-theme .theme-toggle .fa-sun {
  opacity: 1;
  color: white;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-color);
  transition: all 0.3s ease;
  border-radius: 2px;
}

body.light-theme .hamburger span {
  background: var(--text-color);
}

/* Main Content */
main {
  padding-top: 80px;
}

section {
  min-height: auto;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  scroll-margin-top: 80px;
  margin-bottom: 2rem;
}

#about {
  min-height: 100vh;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 2rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1s ease forwards;
}

.section-content {
  max-width: 1200px;
  width: 100%;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.3s forwards;
}

/* Hero Section */
#about {
  background: var(--section-bg);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  margin: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.profile-image {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 4px solid transparent;
  background: var(--accent-gradient);
  padding: 4px;
  margin: 0 auto 2rem auto;
  display: block;
  animation: float 6s ease-in-out infinite;
  box-shadow: var(--glow);
}

.profile-image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

body.light-theme .hero-subtitle {
  opacity: 0.85;
  color: #4a5568;
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.social-link {
  width: 50px;
  height: 50px;
  background: var(--card-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow);
  background: var(--accent-gradient);
  color: white;
}

/* Experience Cards */
.experience-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.experience-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  text-align: left;
}

.experience-logo {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 8px;
  background: white;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.experience-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.experience-content {
  flex: 1;
  text-align: left;
}

.experience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.experience-card:hover::before {
  left: 100%;
}

.experience-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  border-color: var(--accent-color);
}

.company-name {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.position {
  font-style: italic;
  opacity: 0.8;
  margin-bottom: 1rem;
}

body.light-theme .position {
  opacity: 0.8;
  color: #4facfe;
  font-weight: 500;
}

.experience-description {
  text-align: left;
  line-height: 1.6;
  list-style: none;
}

body.light-theme .experience-description {
  color: #2d3748;
  font-weight: 400;
}

.experience-description li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1rem;
}

.experience-description li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* Education Section */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.education-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.university {
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--success-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

/* Projects Section */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.project-card:hover::before {
  left: 100%;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--accent-color);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  flex: 1;
}

.project-date {
  font-size: 0.9rem;
  color: var(--accent-color);
  font-weight: 500;
  font-style: italic;
}

.project-link {
  width: 40px;
  height: 40px;
  background: var(--card-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.2rem;
}

.project-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
  background: var(--accent-gradient);
  color: white;
}

.project-description {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  text-align: left;
}

.project-description p {
  margin-bottom: 0.8rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-color);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.tag:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-1px);
}

/* Leadership Achievements Section */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.leadership-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.leadership-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.leadership-card:hover::before {
  left: 100%;
}

.leadership-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--accent-color);
}

.leadership-logo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: white;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.leadership-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.leadership-content {
  flex: 1;
  text-align: center;
  width: 100%;
}

.leadership-title {
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--warning-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.leadership-period {
  font-size: 0.9rem;
  color: var(--accent-color);
  font-weight: 500;
  font-style: italic;
  margin-bottom: 0.8rem;
  opacity: 0.9;
}

body.light-theme .leadership-period {
  color: #4facfe;
  opacity: 0.9;
  font-weight: 500;
}

.leadership-description {
  line-height: 1.6;
  opacity: 0.9;
  text-align: center;
}

body.light-theme .leadership-description {
  color: #2d3748;
  opacity: 0.9;
  font-weight: 400;
}

/* Hobbies Section */
.hobbies-container {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.hobbies-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.hobby-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.hobby-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow);
  background: rgba(255, 255, 255, 0.1);
}

.hobby-item i {
  font-size: 1.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hobby-item span {
  font-weight: 500;
  white-space: nowrap;
}

/* Footer */
footer {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  text-align: center;
}

footer p {
  color: var(--text-color);
  opacity: 0.8;
}

body.light-theme footer {
  border-top: 1px solid rgba(79, 172, 254, 0.2);
  background: rgba(255, 255, 255, 0.98);
}

body.light-theme footer p {
  color: var(--text-color);
  opacity: 0.8;
}

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

.footer-link {
  color: var(--accent-color);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.footer-link:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 10px var(--accent-color));
}

body.light-theme .footer-link {
  color: var(--accent-color);
}

/* Light theme card enhancements */
body.light-theme .experience-card,
body.light-theme .project-card,
body.light-theme .education-card,
body.light-theme .leadership-card,
body.light-theme .hobbies-container {
  border: 1px solid rgba(79, 172, 254, 0.15);
  box-shadow: 0 4px 20px rgba(79, 172, 254, 0.1);
}

body.light-theme .experience-card:hover,
body.light-theme .project-card:hover,
body.light-theme .education-card:hover,
body.light-theme .leadership-card:hover {
  box-shadow: 0 8px 30px rgba(79, 172, 254, 0.2);
  border-color: var(--accent-color);
}

body.light-theme #about {
  border: 1px solid rgba(79, 172, 254, 0.2);
  box-shadow: 0 8px 40px rgba(79, 172, 254, 0.15);
}

/* Light theme navigation enhancements */
body.light-theme nav {
  border-bottom: 1px solid rgba(79, 172, 254, 0.15);
}

body.light-theme .nav-menu a {
  color: var(--text-color);
  font-weight: 600;
}

body.light-theme .nav-menu a:hover {
  color: var(--accent-color);
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

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

/* Scroll animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 110px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 110px);
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    transition: left 0.3s ease;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  nav {
    padding: 0.5rem 1rem;
    gap: 0.5rem;
  }
  
  .nav-bottom {
    justify-content: flex-end;
    position: relative;
  }
  
  .nav-controls {
    position: relative;
    right: auto;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  section {
    padding: 2rem 1rem;
    margin-bottom: 1rem;
  }
  
  #about {
    margin: 1rem;
  }
  
  .experience-grid {
    gap: 1.5rem;
  }
  
  .experience-card {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
  }
  
  .experience-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto;
  }
  
  .experience-content {
    text-align: center;
  }
  
  .experience-description {
    text-align: left;
  }
  
  .education-grid {
    grid-template-columns: 1fr;
  }
  
  .hobbies-list {
    justify-content: flex-start;
  }
  
  .hobby-item {
    flex: 1 1 auto;
    min-width: 140px;
    justify-content: center;
  }
  
  .hobby-item span {
    font-size: 0.9rem;
  }
  
  .social-links {
    flex-wrap: wrap;
  }
  
  .footer-links {
    flex-wrap: wrap;
  }

  .leadership-card {
    padding: 1.5rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .leadership-logo {
    margin: 0 auto;
    width: 70px;
    height: 70px;
  }

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

@media (max-width: 480px) {
  nav {
    padding: 1rem;
  }
  
  .profile-image {
    width: 200px;
    height: 200px;
  }
  
  .experience-card,
  .education-card,
  .hobby-item {
    padding: 1.5rem;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-gradient);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-gradient);
}