@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

:root {
  /* Dark Theme (Default) */
  --bg-color: #0d0d0d;
  --accent-bg: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent-color: #a388ee;
  --accent-gradient: linear-gradient(135deg,#FF4D6D 0%, #FB8500 100%);
  --card-border: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-glow: rgba(163, 136, 238, 0.2);
  --nav-shadow: 0 4px 12px rgba(0,0,0,0.3);
  --hero-minimized-bg: rgba(13, 13, 13, 0.95);
}

[data-theme="light"] {
  --bg-color: #f8f9fa;
  --accent-bg: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --accent-color: #6366f1;
  /* --accent-gradient: linear-gradient(135deg, red 0%, #fffede 50%, blue 100%); */
  /* --accent-gradient: linear-gradient(135deg, orange 30%, white 40%, blue 50%, white 60%, green 100%); */
  --accent-gradient: linear-gradient(135deg, #FF4D6D 0%, #FB8500 100%);
  --card-border: rgba(0, 0, 0, 0.05);
  --glass-bg: rgba(255, 255, 255, 0.85); /* More opaque */
  --glass-border: rgba(0, 0, 0, 0.2); /* Darker border */
  --shadow-glow: rgba(99, 102, 241, 0.15);
  --nav-shadow: 0 4px 20px rgba(0,0,0,0.15); /* Stronger shadow */
  --hero-minimized-bg: rgba(255, 255, 255, 0.95);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Glassmorphism Header */
header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px;
  padding: 15px 30px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: var(--nav-shadow); 
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--text-primary);
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-link {
  color: var(--text-primary);
  opacity: 0.7;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link:hover {
  opacity: 1;
  transform: translateY(-2px);
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  min-height: 60vh; /* Changed from fixed 100vh to accommodate different content */
  padding-top: 120px; /* Account for fixed header */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-bottom: 50px;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Projects Section */
.projects {
  padding: 50px 5% 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.projects h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--accent-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: block; /* For anchor tags */
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-glow);
  border-color: var(--accent-color);
}

.project-image {
  width: 100%;
  aspect-ratio: 16/10;
  background: #252525;
  border-radius: 16px;
  margin-bottom: 15px;
  overflow: hidden; /* Added overflow hidden to container */
}

/* Styles for img inside project-image */
.project-image figure,
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Shows full image without cropping */
  background: #000; /* Dark background for letterboxing */
  display: block;
  margin: 0;
}

.project-info {
  padding: 15px;
}

.project-info h3 {
  margin-bottom: 10px;
}

.project-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* About.html styles */
.about-container {
  padding: 150px 5% 100px;
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.profile-section {
  position: sticky;
  top: 150px;
}

.profile-placeholder {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 1;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 30px var(--shadow-glow);
}

.profile-placeholder figure,
.profile-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bio-section h2 {
  font-size: 3rem;
  margin-bottom: 30px;
}

.bio-section h3 {
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-tag {
  padding: 8px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
}

.timeline {
  margin-top: 40px;
  border-left: 1px solid var(--glass-border);
  padding-left: 30px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 5px;
  width: 10px;
  height: 10px;
  background: var(--accent-color);
  border-radius: 50%;
}

.timeline-item h4 {
  margin-bottom: 5px;
}

.timeline-item span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 10px;
}

.resume-section {
  margin-bottom: 50px;
}

.resume-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 150px;
}

.resume-container {
  padding: 150px 5% 100px;
  max-width: 1000px;
  margin: 0 auto;
}

.resume-content h1 {
  font-size: 3rem;
  margin-bottom: 40px;
}

/* Project Detail Styles & Animation */
.project-detail-container {
    padding-top: 70vh; /* Reduced from 100vh to minimize initial scroll gap */
    padding-left: 5%;
    padding-right: 5%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    pointer-events: none; /* Let clicks pass through empty space initially */
}

/* Re-enable pointer events for actual content */
.project-detail-container > * {
    pointer-events: auto;
}

.back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  position: fixed; /* Keep back link visible/accessible */
  top: 100px;
  left: 5%;
  z-index: 60;
}

.back-link:hover {
  color: var(--accent-color);
}

/* Project Hero Overlay */
.project-hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg-color);
    z-index: 50; /* Behind the Nav (1000) */
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 0 20px;
    text-align: center;
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 30px;
    opacity: 0.7;
    animation: bounce 2s infinite;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* Minimized State */
.project-hero.minimized {
    height: 180px; /* Increased slightly to prevent overlap */
    background: var(--hero-minimized-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    justify-content: flex-end;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--nav-shadow);
}

.project-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 20px;
    line-height: 1.1;
    transition: all 0.6s ease;
    max-width: 900px;
}

.project-hero.minimized h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    opacity: 0.9;
}

.project-hero .skills-cloud,
.project-hero .project-meta {
    opacity: 1;
    max-height: 200px;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.project-hero.minimized .skills-cloud,
.project-hero.minimized .project-meta,
.project-hero.minimized .scroll-hint {
    opacity: 0;
    max-height: 0;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
}

.project-content {
    background: var(--bg-color);
    min-height: 100vh;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    padding-top: 50px;
    padding-bottom: 100px;
}

.project-content h2 {
    color: var(--text-primary);
    margin-top: 50px;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.project-content p {
    margin-bottom: 20px;
}


.footer {
    /* position: fixed; */
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 20px;
    background: var(--bg-color);
    color: var(--text-secondary);
    text-align: center;
    font-size: 0.8rem;
} 


/* Responsive Web Design */
@media (max-width: 850px) {
  .about-container {
    grid-template-columns: 1fr;
  }
  .profile-section {
    position: relative;
    top: 0;
    max-width: 300px;
    margin: 0 auto;
    margin-bottom: 40px;
  }
}

/* Responsive Web Design */
@media (max-width: 768px) {
  header {
    width: 95%;
    padding: 10px 20px;
    top: 10px;
  }
  nav ul {
    gap: 15px;
  }

  .project-detail-container {
    padding-top: 50vh; /* Even less whitespace on mobile */
  }

  .project-hero h1 {
    font-size: 2rem;
    padding: 0 10px;
  }

  .project-hero.minimized {
    height: 200px; /* More height on mobile for multi-line titles */
    padding-bottom: 20px;
  }

  .project-hero.minimized h1 {
    font-size: 1.4rem;
  }

  .back-link {
    top: 80px;
    font-size: 0.8rem;
  }
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
  }

  nav a {
    font-size: 0.85rem;
  }

  .nav-actions {
    justify-content: center;
  }

  .hero {
    padding: 20px;
  }
}



