@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;700&display=swap');

:root {
  /* Light Theme Variables */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent-primary: #2563eb;
  --accent-secondary: #1d4ed8;
  --accent-light: #eff6ff;
  --border-color: #e2e8f0;
  --card-bg: rgba(255, 255, 255, 0.8);
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --glass-border: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] {
  /* Dark Theme Variables */
  --bg-primary: #0a0f1d;
  --bg-secondary: #131b2f;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-primary: #3b82f6;
  --accent-secondary: #60a5fa;
  --accent-light: rgba(59, 130, 246, 0.1);
  --border-color: #1e293b;
  --card-bg: rgba(19, 27, 47, 0.7);
  --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
  --glass-border: rgba(255, 255, 255, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--accent-primary);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-secondary);
}

ul {
  list-style: none;
}

/* Typography Utilities */
.text-accent {
  color: var(--accent-primary);
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-primary), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

section {
  padding: 6rem 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--accent-primary);
  border-radius: 2px;
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}
.text-center { text-align: center; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
  background-color: var(--accent-secondary);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

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

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}

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

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  z-index: 1001;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.theme-toggle:hover {
  background-color: var(--bg-secondary);
}

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

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  font-family: 'Outfit', sans-serif;
  color: var(--accent-primary);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: block;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle at center, var(--accent-light) 0%, transparent 60%);
  z-index: 1;
  opacity: 0.6;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Badges / Tags */
.tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background-color: var(--accent-light);
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 500;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Specific Sections */
.about-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
}

.stat-item h4 {
  font-size: 3rem;
  color: var(--text-primary);
  margin-bottom: 0;
  line-height: 1;
}

.stat-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

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

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 2px;
  background: var(--border-color);
}

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

.timeline-dot {
  position: absolute;
  left: 11px;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 4px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--accent-primary);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
}

.timeline-date {
  font-family: 'Outfit', sans-serif;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.timeline-content h3 {
  margin-bottom: 0.25rem;
  font-size: 1.5rem;
}

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

/* Project Cards */
.project-card .glass-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-img {
  width: 100%;
  height: 200px;
  background-color: var(--border-color);
  object-fit: cover;
}

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

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex: 1;
}

/* Footer */
footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

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

.social-links a {
  color: var(--text-secondary);
  font-size: 1.5rem;
}

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



/* Modal Styling */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7); /* Black w/ opacity */
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  position: relative;
  max-width: 700px;
  width: 90%;
  margin: auto;
  padding: 2.5rem;
  transform: translateY(-50px);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  color: var(--text-secondary);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal:hover,
.close-modal:focus {
  color: var(--accent-primary);
  text-decoration: none;
  cursor: pointer;
}

.project-card {
  cursor: pointer;
}

/* Gallery Styling */
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.gallery-btn:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

#galleryPrev {
  left: -20px;
}

#galleryNext {
  right: -20px;
}

.gallery-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: var(--border-color);
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.gallery-indicator.active {
  background-color: var(--accent-primary);
}

/* Hero Banner Styling */
.hero-banner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner-wrapper {
  position: relative;
  width: 350px;
  height: 350px;
}

.banner-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-primary) 0%, transparent 60%);
  opacity: 0.2;
  filter: blur(30px);
  z-index: 0;
  animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.15; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.3; }
}

.profile-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  border: 4px solid var(--accent-light);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  z-index: 1;
  animation: morphing 8s ease-in-out infinite;
}

@keyframes morphing {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
  50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
  75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
  100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.floating-badge {
  position: absolute;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1rem;
  border-radius: 99px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.75rem;
  box-shadow: var(--card-shadow);
  z-index: 2;
  animation: float 3s ease-in-out infinite;
}

.floating-badge i {
  color: var(--accent-primary);
  margin-right: 8px;
}

.badge-1 {
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.badge-2 {
  bottom: 20%;
  right: -20%;
  animation-delay: 1s;
}

.badge-3 {
  bottom: -5%;
  left: 10%;
  animation-delay: 2s;
}

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

/* Responsive Design */

/* Large Tablets and smaller desktops */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  .grid-2, .grid-3, .grid-4 {
    gap: 1.5rem;
  }
}

/* Tablets */
@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 4rem;
  }

  .hero-banner {
    margin-top: 4rem;
  }

  .banner-wrapper {
    width: 280px;
    height: 280px;
  }

  .banner-glow {
    width: 320px;
    height: 320px;
  }
  
  .about-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* Mobile Phones */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .banner-wrapper {
    width: 240px;
    height: 240px;
  }

  .banner-glow {
    width: 280px;
    height: 280px;
  }

  .floating-badge {
    padding: 0.4rem 0.8rem;
    font-size: 0.65rem;
  }

  .badge-1 { left: -5%; top: 5%; }
  .badge-2 { right: -5%; bottom: 15%; }
  .badge-3 { bottom: -5%; left: 10%; }
}

