@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Space+Mono:wght@400;700&family=Architects+Daughter&display=swap');

:root {
  /* Warm Sepia Paper Theme (Default/Light) */
  --body-bg-color: #eae6df; /* Desk surface background */
  --page-bg-color: #fbf9f6; /* Notebook paper */
  --primary-header-footer-bg: #f4ece1;
  --card-bg-color: #fcfbf9;

  --text-primary: #1f2124; /* Charcoal Ink */
  --text-secondary: #5a5e65; /* Pencil Gray */
  --text-on-dark-bg: #1f2124;
  --text-on-light-bg: #fbf9f6;

  --accent-main: #2c5f78; /* Blueprint Blue */
  --accent-main-glow: rgba(44, 95, 120, 0.15);
  --accent-secondary: rgba(44, 95, 120, 0.08);
  --accent-border: #d3cbd0;
  --accent-darkest: #e0d7cd;

  --margin-line-color: #e17d7d; /* Red margin line */
  --paper-line-color: rgba(44, 95, 120, 0.04); /* Faint blue ruled lines */
  --handwritten-font: 'Architects Daughter', cursive;
  --mono-font: 'Space Mono', monospace;
  --serif-font: 'Lora', serif;

  --shadow-card-color: rgba(60, 55, 50, 0.12);
  --shadow-button-color: rgba(44, 95, 120, 0.1);
  --shadow-button-hover-color: rgba(44, 95, 120, 0.2);
  --shadow-text-section-title-color: rgba(0, 0, 0, 0.02);
  --shadow-logo-color: rgba(44, 95, 120, 0.1);
  --shadow-mobile-nav-color: rgba(0, 0, 0, 0.1);

  --card-border-color: #d3cbd0;
  --card-hover-border-color: #2c5f78;
  --card-hover-shadow-color: rgba(44, 95, 120, 0.08);

  --contact-form-border-color: #d3cbd0;
  --social-link-bg-color: rgba(44, 95, 120, 0.04);
  --timeline-line-bg: #d3cbd0;
  --timeline-dot-border-color: #2c5f78;

  --mobile-nav-border-color: #d3cbd0;

  --tape-bg-color: rgba(240, 232, 205, 0.55);
  --tape-border-color: rgba(0, 0, 0, 0.04);
  
  --button-glow-effect-color: rgba(0, 0, 0, 0.03);
}



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

body {
  font-family: var(--serif-font);
  color: var(--text-primary);
  background-color: var(--body-bg-color);
  line-height: 1.7;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding-left: 0; /* Handled by margins */
  overflow-x: hidden;
}

/* Sidebar Styles - Turned into index tabs */
.sidebar {
  width: 260px;
  position: fixed;
  top: 1.5rem;
  left: 0;
  height: calc(100vh - 3rem);
  background: transparent;
  padding: 2.5rem 0 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: none;
  z-index: 1000;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: transform 0.3s ease-in-out;
}



.sidebar-top {
  padding: 0 1rem;
  margin-bottom: 2rem;
  text-align: left;
}

.sidebar .logo {
  font-family: var(--mono-font);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -1.2px;
  border-bottom: 2px dashed var(--accent-border);
  padding-bottom: 0.5rem;
  display: inline-block;
  width: 100%;
}

.sidebar .logo::after {
  display: none;
}

.sidebar-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  align-items: flex-end;
}

.sidebar-nav-links .nav-link {
  font-family: var(--mono-font);
  color: var(--text-secondary);
  background-color: var(--body-bg-color);
  border: 1px solid var(--accent-border);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px 0 0 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: calc(100% - 10px);
  position: relative;
  right: 0;
  box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.02);
}

.sidebar-nav-links .nav-link i {
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.sidebar-nav-links .nav-link:hover {
  background-color: var(--primary-header-footer-bg);
  color: var(--text-primary);
  width: 100%;
}

.sidebar-nav-links .nav-link.active {
  background-color: var(--page-bg-color);
  color: var(--text-primary);
  font-weight: 700;
  width: 100%;
  right: -1px;
  border: 1px solid var(--accent-border);
  border-right: 1px solid var(--page-bg-color);
  border-radius: 8px 0 0 8px;
  box-shadow: -6px 4px 12px var(--shadow-card-color);
  z-index: 5;
}

.sidebar-nav-links .nav-link.active span {
  position: relative;
}

.sidebar-nav-links .nav-link.active span::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: rgba(245, 230, 83, 0.45);
  z-index: -1;
}



.sidebar-bottom {
  padding: 0 1rem;
  margin-top: 2rem;
  text-align: left;
  display: flex;
  justify-content: flex-start;
}

.sidebar .theme-btn {
  background: var(--page-bg-color);
  border: 2px solid var(--text-primary);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 2px 2px 0 var(--text-primary);
  outline: none;
}

.sidebar .theme-btn:hover {
  background-color: var(--text-primary);
  color: var(--page-bg-color);
  box-shadow: none;
  transform: translate(2px, 2px);
}

/* Main Content Styles */
.main-content {
  min-height: calc(100vh - 3rem);
  margin: 1.5rem 1.5rem 1.5rem 260px;
  background-color: var(--page-bg-color);
  background-image: linear-gradient(var(--paper-line-color) 1.5px, transparent 1.5px);
  background-size: 100% 28px;
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  box-shadow: 
    3px 3px 0px var(--accent-darkest),
    6px 6px 0px rgba(0, 0, 0, 0.05),
    0 15px 35px var(--shadow-card-color);
  padding: 4rem 3.5rem 3.5rem 4.5rem;
  position: relative;
  transition: all 0.3s ease;
}

/* Margin Red Line */
.main-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 3rem;
  width: 2px;
  height: 100%;
  background-color: var(--margin-line-color);
  opacity: 0.6;
  pointer-events: none;
}

/* Mobile Sidebar Toggle Button */
.mobile-sidebar-toggle {
  display: none; /* Hidden on desktop */
  position: fixed;
  top: 1rem;
  left: 1rem;
  background: var(--page-bg-color);
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; /* Sketched border */
  font-size: 1.3rem;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  z-index: 1005;
  box-shadow: 2px 2px 0 var(--text-primary);
  transition: all 0.2s ease;
  outline: none;
}

.mobile-sidebar-toggle:hover {
  background-color: var(--text-primary);
  color: var(--page-bg-color);
  box-shadow: none;
  transform: translate(2px, 2px);
}

/* Header styles */
.header {
  background: var(--gradient-primary-bg);
  color: var(--text-on-dark-bg);
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
  z-index: 5; /* Increase z-index to ensure menu stays above other content */
}

/* Adding sticky navigation that maintains proper layout */
.header .nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
  width: 100%;
}

/* Fixed navigation when scrolling */
/* .nav.fixed is no longer needed as sidebar is fixed */
/* Remove or comment out .nav.fixed and its @keyframes navSlideDown */
/*
.nav.fixed {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
  width: 100%;
  background: var(--primary-header-footer-bg);
  box-shadow: 0 2px 10px var(--shadow-mobile-nav-color);
}

@keyframes navSlideDown {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(0); }
}
*/

.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--star-color);
  border-radius: 50%;
  animation: twinkle var(--duration) infinite;
  box-shadow: 0 0 2px var(--star-glow-color); /* Added subtle glow */
}

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

.shooting-star {
  position: absolute;
  width: 4px; /* Adjusted in JS */
  height: 4px; /* Adjusted in JS */
  /* background is set in JS */
  border-radius: 50%;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Remove old .nav styles as it's replaced by .sidebar */
/*
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
  width: 100%;
}
*/

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-on-dark-bg);
  text-decoration: none;
  text-shadow: 0 0 10px var(--shadow-logo-color);
}

/* Remove old .nav-links and .nav-link styles */
/*
.nav-links {
  display: flex;
  gap: 2rem;
}

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

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-main);
  transition: width 0.3s ease;
}

.nav-link:hover:after {
  width: 100%;
}

.nav-link:hover {
  color: var(--text-on-dark-bg);
  text-shadow: 0 0 8px var(--accent-main-glow);
}
*/

/* Grid overlay background */
.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--card-border-color) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.65;
  z-index: 1;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8rem 0 6rem 0;
  position: relative;
  z-index: 2;
}

.hero-badge {
  background: var(--tape-bg-color);
  border: 1px dashed rgba(0, 0, 0, 0.15);
  color: var(--text-primary);
  padding: 0.35rem 1rem;
  font-family: var(--handwritten-font);
  font-size: 1rem;
  transform: rotate(-1.5deg);
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.05);
}



.hero-title {
  font-family: var(--mono-font);
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1.2px;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.gradient-text {
  background: none;
  background-clip: unset;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: var(--text-primary);
  border-bottom: 3px double var(--text-primary);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-family: var(--mono-font);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.hero-bio {
  font-family: var(--serif-font);
  font-size: 1.15rem;
  max-width: 600px;
  color: var(--text-secondary);
  margin-bottom: 3.5rem;
  line-height: 1.7;
}

/* Tech Stack Bar Styles */
.tech-stack-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 4rem;
  width: 100%;
}

.tech-stack-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
}

.tech-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.tech-badge {
  background-color: var(--page-bg-color);
  border: 2px solid var(--text-primary);
  color: var(--text-primary);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-family: var(--mono-font);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 2px 2px 0 var(--text-primary);
  cursor: default;
}

.tech-badge i {
  font-size: 1.05rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.tech-badge:hover {
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 var(--text-primary);
}

.tech-badge:hover i {
  color: var(--text-primary);
  transform: rotate(8deg);
}

/* Mouse Scroll Indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-indicator .mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--text-secondary);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-indicator .wheel {
  width: 4px;
  height: 8px;
  background-color: var(--accent-main);
  border-radius: 2px;
  animation: scrollWheel 1.8s ease-in-out infinite;
}

.scroll-indicator .scroll-text {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

.btn {
  display: inline-block;
  background: var(--page-bg-color);
  color: var(--text-primary);
  padding: 0.65rem 1.5rem;
  text-decoration: none;
  font-family: var(--mono-font);
  font-size: 0.9rem;
  font-weight: 700;
  border: 2px solid var(--text-primary);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; /* Sketched button outline */
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--text-primary);
  position: relative;
  z-index: 1;
  transition: all 0.2s ease;
}

.btn:hover {
  background-color: var(--text-primary);
  color: var(--page-bg-color);
  box-shadow: none;
  transform: translate(3px, 3px);
}

/* Main content styles */
.section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.section:nth-child(odd) {
  background-color: var(--section-odd-bg-color);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  font-family: var(--mono-font);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  display: inline-block;
  letter-spacing: -1px;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  margin-top: 0.25rem;
}

/* Glass card component -> Sketched Paper Card */
.glass-card {
  background-color: var(--card-bg-color);
  border: 2px solid var(--text-primary);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; /* Sketched outline */
  padding: 2.5rem;
  box-shadow: 4px 4px 0 var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.glass-card:hover {
  transform: translateY(-4px) rotate(0.5deg);
  box-shadow: 6px 6px 0 var(--text-primary);
}

/* About and Mission Section layouts */
.about-content,
.mission-content {
  display: flex;
  align-items: stretch;
  gap: 4rem;
}

.mission-content {
  flex-direction: row-reverse;
}

/* Polaroid Photo Frames */
.polaroid-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0;
  z-index: 5;
}

.polaroid-card {
  background-color: #faf7f0;
  padding: 1.25rem 1.25rem 2.5rem 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 2px 10px 25px rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  max-width: 320px;
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}



.polaroid-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(0, 0, 0, 0.15);
  filter: sepia(0.2) contrast(0.95);
}

.polaroid-caption {
  font-family: var(--handwritten-font);
  font-size: 0.95rem;
  color: #3e3f44;
  text-align: center;
  margin-top: 1rem;
  line-height: 1.2;
}



/* Polaroid Tapes */
.polaroid-tape {
  position: absolute;
  width: 100px;
  height: 30px;
  background-color: var(--tape-bg-color);
  border-left: 1px dashed var(--tape-border-color);
  border-right: 1px dashed var(--tape-border-color);
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.polaroid-tape-top-left {
  top: -10px;
  left: 20px;
  transform: rotate(-30deg);
}

.polaroid-tape-top-right {
  top: -10px;
  right: 20px;
  transform: rotate(30deg);
}

/* Angles */
.mission-photo .polaroid-card {
  transform: rotate(-3deg);
}

.about-photo .polaroid-card {
  transform: rotate(3deg);
}

.polaroid-wrapper:hover .polaroid-card {
  transform: scale(1.03) rotate(0deg);
  box-shadow: 2px 15px 35px var(--shadow-card-color);
}

.about-text,
.mission-text {
  flex: 1.3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text h3,
.mission-text h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
  background: var(--gradient-accent-bg);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-text p,
.mission-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Projects section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: var(--card-bg-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-card-color);
  transition: all 0.4s ease;
  border: 1px solid var(--card-border-color);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--card-hover-shadow-color); /* Was --blue-glow */
  border: 1px solid var(--card-hover-border-color); /* Was --blue-accent */
}

.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: all 0.5s ease;
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary); /* Adjusted from --light-text */
}

.project-content p {
  margin-bottom: 1rem;
  color: var(--text-secondary); /* Was --text-color */
  opacity: 0.9;
}

.project-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary); /* Was --accent-color */
  text-decoration: none;
  font-weight: 600;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.project-link:hover {
  color: var(--accent-main); /* Was --blue-accent */
  transform: translateX(5px);
}

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

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background: var(--text-primary);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
  z-index: 1;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 60%;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: -10%;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-content {
  padding: 20px;
  background-color: var(--card-bg-color);
  border: 2px solid var(--text-primary);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; /* Sketched border */
  box-shadow: 3px 3px 0 var(--text-primary);
  position: relative;
  transition: all 0.2s ease;
  overflow: hidden;
}

.timeline-content:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 var(--text-primary);
}

.timeline-content h3 {
  font-family: var(--mono-font);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  font-family: var(--serif-font);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.timeline-duration {
  font-family: var(--mono-font);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.timeline-item:nth-child(odd) .timeline-content::after,
.timeline-item:nth-child(even) .timeline-content::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--page-bg-color);
  border: 3px solid var(--text-primary);
  border-radius: 50%;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::after {
  right: -48px;
}

.timeline-item:nth-child(even) .timeline-content::after {
  left: -48px;
}

/* Achievement image styles */
.achievement-img {
  margin-top: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-card-color);
  transition: all 0.3s ease;
  max-width: 100%;
  width: 100%; /* Make images wider */
  margin-left: auto;
  margin-right: auto;
}

.achievement-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.achievement-img:hover img {
  transform: scale(1.03);
}

.certificate-img {
  border: 1px solid var(--mobile-nav-border-color); /* Was rgba(59, 130, 246, 0.2) */
}

/* Contact section layout */
.contact-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 450px;
}

.contact-method {
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--page-bg-color);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
  transition: all 0.2s ease;
}

.contact-method:hover .contact-icon {
  background: var(--primary-header-footer-bg);
  color: var(--text-primary);
  transform: scale(1.05);
}

.contact-method h3 {
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.contact-method p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.contact-btn {
  border-radius: 50px;
  padding: 0.6rem 1.75rem;
  font-size: 0.9rem;
}

/* Modern Contact Form styling */
.contact-form {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: relative;
}

.contact-form h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
  background: var(--gradient-accent-bg);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-form .form-group {
  position: relative;
  margin-bottom: 0.5rem;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
  width: 100%;
  padding: 1rem 0.75rem 0.5rem 0.5rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--accent-border);
  font-family: var(--mono-font);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.3s ease;
  outline: none;
}

.contact-form .form-group textarea {
  resize: none;
  min-height: 120px;
}

.contact-form .form-group label {
  position: absolute;
  top: 1rem;
  left: 0.5rem;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Floating Label Animation */
.contact-form .form-group input:focus ~ label,
.contact-form .form-group input:not(:placeholder-shown) ~ label,
.contact-form .form-group textarea:focus ~ label,
.contact-form .form-group textarea:not(:placeholder-shown) ~ label {
  top: -0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-main);
}

.contact-form .form-group .focus-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--text-primary);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form .form-group input:focus ~ .focus-border,
.contact-form .form-group textarea:focus ~ .focus-border {
  width: 100%;
}

.submit-btn {
  align-self: flex-start;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.submit-btn i {
  transition: transform 0.3s ease;
}

.submit-btn:hover i {
  transform: translate(3px, -3px);
}

/* Footer */
.footer {
  background: var(--gradient-primary-bg); /* Was --gradient-primary */
  color: var(--text-on-dark-bg); /* Was --light-text */
  padding: 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.social-link {
  color: var(--text-on-dark-bg); /* Was --light-text */
  font-size: 1.5rem;
  transition: all 0.3s ease;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--social-link-bg-color); /* Was rgba(255, 255, 255, 0.1) */
  border-radius: 50%;
  text-decoration: none;
}

.social-link:hover {
  color: var(--text-on-light-bg); /* Was --dark-text */
  background: var(--gradient-accent-bg); /* Was --gradient-blue-accent */
  transform: translateY(-5px);
  box-shadow: 0 5px 15px var(--accent-main-glow); /* Was --blue-glow */
}

/* Specific brand hovers - keeping brand colors, ensure text contrast */
.social-link.github:hover {
  background: #8030a3; /* Brand color */
  box-shadow: 0 5px 15px rgba(128, 48, 163, 0.5);
  color: #fff; /* Explicit white for this bg */
}

.social-link.linkedin:hover {
  background: #0077b5; /* Brand color */
  box-shadow: 0 5px 15px rgba(0, 119, 181, 0.5);
  color: #fff; /* Explicit white */
}

.social-link.facebook:hover {
  background: #1877f2; /* Brand color */
  box-shadow: 0 5px 15px rgba(24, 119, 242, 0.5);
  color: #fff; /* Explicit white */
}

.social-link.whatsapp:hover {
  background: #25d366; /* Brand color */
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.5);
  color: var(--text-on-light-bg); /* Was --dark-text, now themeable */
}



/* Section specific gradients */
.section {
  position: relative;
  overflow: hidden;
}

/* Adding subtle movement animation to the gradients */
@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10px, -10px) scale(1.05); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Mobile menu styles */
/* Remove .mobile-menu-btn as it's replaced by .mobile-sidebar-toggle */
/*
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-on-dark-bg);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 20;
}

.mobile-menu-btn:hover {
  color: var(--accent-main);
  transform: scale(1.1);
}
*/

/* Theme toggle button styles */
/* .theme-btn is now primarily in the sidebar, adjust if needed elsewhere */
.theme-btn {
  background: none;
  border: none;
  color: var(--text-on-dark-bg); /* Color based on header background */
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  /* margin-left: 1rem; */ /* No longer needed here */
  transition: color 0.3s ease;
  z-index: 1002; /* Ensure clickable */
}

.theme-btn:hover {
  color: var(--accent-main);
}

/* Remove .nav.fixed .theme-btn styles */
/*
.nav.fixed .theme-btn {
  color: var(--text-primary);
}

.nav.fixed .theme-btn:hover {
  color: var(--accent-main);
}
*/

/* ==============================
   SHEEKAR PROJECT SHOWCASE STYLES
   ============================== */

/* Sheekar Brand Colors */
:root {
  --sheekar-brand-color: #2a8282;
  --sheekar-brand-glow: rgba(42, 130, 130, 0.5);
  --sheekar-brand-light: rgba(42, 130, 130, 0.1);
  --sheekar-brand-gradient: linear-gradient(135deg, #2a8282 0%, #3ca3a3 50%, #2a8282 100%);
  --sheekar-brand-shadow: rgba(42, 130, 130, 0.3);
  --sheekar-brand-hover-shadow: rgba(42, 130, 130, 0.6);
}

/* Main Sheekar Showcase Container */
.sheekar-showcase {
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}

.sheekar-showcase:hover {
  border-color: var(--sheekar-brand-color);
  box-shadow: 0 25px 50px var(--sheekar-brand-hover-shadow);
  transform: translateY(-5px);
}

.sheekar-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--sheekar-brand-gradient);
  border-radius: 20px 20px 0 0;
}

/* Sheekar Content Layout */
.sheekar-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.sheekar-description h3 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  background: var(--sheekar-brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px var(--sheekar-brand-glow);
}

.sheekar-description p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  text-align: justify;
}

/* Features List */
.sheekar-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: var(--card-bg-color);
  border-radius: 12px;
  border: 1px solid var(--card-border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--sheekar-brand-gradient);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  background: var(--sheekar-brand-light);
  border-color: var(--sheekar-brand-color);
  transform: translateX(5px);
}

.feature-item:hover::before {
  transform: scaleY(1);
}

.feature-item i {
  font-size: 1.5rem;
  color: var(--sheekar-brand-color);
  margin-right: 1rem;
  width: 30px;
  text-align: center;
  animation: pulse 2s infinite;
}

.feature-item span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* App Screenshot in Sketched Device Container */
.device-container-3d {
  position: relative;
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
  z-index: 1;
}

.device-glow {
  display: none;
}

.phone-frame {
  width: 100%;
  background-color: var(--page-bg-color);
  border: 2px solid var(--text-primary);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; /* Sketched border */
  padding: 10px;
  box-shadow: 4px 4px 0 var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  position: relative;
}



.app-screenshot {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--accent-border);
  display: block;
  filter: grayscale(0.5) sepia(0.1);
}

.device-container-3d:hover .phone-frame {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 6px 6px 0 var(--text-primary);
}

.image-caption {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-align: center;
}

/* Statistics Section */
.sheekar-stats {
  background: var(--card-bg-color);
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid var(--card-border-color);
  position: relative;
  overflow: hidden;
}

.sheekar-stats::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--sheekar-brand-glow) 0%, transparent 70%);
  opacity: 0.1;
  animation: rotate 20s linear infinite;
}

.sheekar-stats h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.stats-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

/* Statistics Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  background: var(--card-bg-color);
  border-radius: 8px;
  border: 2px solid var(--text-primary);
  box-shadow: 3px 3px 0 var(--text-primary);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 var(--text-primary);
}

.stat-number {
  font-family: var(--mono-font);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-align: center;
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
}

.stat-label {
  font-family: var(--mono-font);
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  letter-spacing: 1px;
  text-align: center;
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
}

/* Call to Action Button */
.project-cta {
  text-align: center;
  position: relative;
  z-index: 1;
}

.sheekar-btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--sheekar-brand-gradient);
  color: var(--text-on-dark-bg);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px var(--sheekar-brand-shadow);
  position: relative;
  overflow: hidden;
}

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

.sheekar-btn:hover::before {
  left: 100%;
}

.sheekar-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--sheekar-brand-hover-shadow);
}

.sheekar-btn i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.sheekar-btn:hover i {
  transform: translateX(3px);
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding-left: 0; /* Remove sidebar padding on mobile */
  }

  .sidebar {
    transform: translateX(-100%); /* Hide sidebar off-screen */
    /* Ensure theme button inside sidebar is accessible if sidebar is narrow */
  }

  .sidebar.active {
    transform: translateX(0); /* Show sidebar */
  }

  .main-content {
    margin-left: 0; /* Full width when sidebar is hidden */
  }

  .mobile-sidebar-toggle {
    display: block; /* Show burger button on mobile */
  }

  /* Adjust header padding if needed when sidebar is not present */
  .header {
    padding-top: 4rem; /* Add padding to header if burger button overlaps */
  }  /* Header container adjustments can be added if needed */

  .about-content,
  .mission-content {
    flex-direction: column;
  }

  .timeline::after {
    display: none;
  }

  .timeline-item {
    width: 100%;
    padding-left: 25px;
    padding-right: 25px;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-item:nth-child(odd) .timeline-content::after,
  .timeline-item:nth-child(even) .timeline-content::after {
    display: none;
  }

  /* Remove old mobile menu styles */
  /*
  .nav {
    position: relative;
    z-index: 1000;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--primary-header-footer-bg);
    padding: 1rem;
    z-index: 999;
    box-shadow: 0 10px 20px var(--shadow-mobile-nav-color);
    border-top: 1px solid var(--mobile-nav-border-color);
    border-bottom: 1px solid var(--mobile-nav-border-color);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-link {
    padding: 0.75rem 0;
    width: 100%;
    text-align: center;
    color: var(--text-primary);
  }

  .nav-link:hover {
    color: var(--accent-main);
    text-shadow: none;
  }
  .nav-link:after {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
    position: relative;
    z-index: 1001;
    color: var(--text-primary);
  }

  .nav.fixed .mobile-menu-btn {
     color: var(--text-primary);
  }

  .theme-btn { // Old mobile specific theme button styles
    margin-left: 0.5rem;
    font-size: 1.5rem;
    padding: 0.25rem 0.5rem;
    order: 3;
    color: var(--text-primary);
  }

  .nav .logo { order: 1; }
  .nav .mobile-menu-btn { order: 2; }
  */

  .achievement-img {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  .sheekar-showcase {
    padding: 2rem 1.5rem;
    margin: 1rem 0;
  }

  .sheekar-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .sheekar-description h3 {
    font-size: 1.8rem;
  }

  .sheekar-description p {
    font-size: 1rem;
    text-align: center;
  }

  .sheekar-features {
    gap: 0.8rem;
  }

  .feature-item {
    padding: 0.8rem;
  }

  .feature-item i {
    font-size: 1.3rem;
    margin-right: 0.8rem;
  }

  .feature-item span {
    font-size: 0.9rem;
  }

  .sheekar-stats {
    padding: 2rem 1.5rem;
  }

  .sheekar-stats h3 {
    font-size: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat-item {
    padding: 1.2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .sheekar-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .app-screenshot {
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .sheekar-showcase {
    padding: 1.5rem 1rem;
  }

  .sheekar-description h3 {
    font-size: 1.6rem;
  }

  .stats-grid {
    gap: 1rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }
}

/* Responsive adjustments for new features */
@media (max-width: 992px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-content,
  .mission-content {
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3.2rem;
    letter-spacing: -1px;
  }
  .hero-subtitle {
    font-size: 1.5rem;
  }
  .hero-bio {
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
  }
  .tech-badge {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
  }
  .about-img-wrapper,
  .mission-img-wrapper {
    min-height: 280px;
  }
  .contact-form {
    padding: 2rem 1.5rem;
  }
  .main-content {
    margin: 1rem;
    padding: 2.5rem 1.5rem 2rem 2.5rem;
  }
  .main-content::before {
    left: 1.75rem;
  }
  .sidebar {
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 0;
    width: 260px;
    background-color: var(--page-bg-color);
    border-right: 2px solid var(--text-primary);
    padding: 2.5rem 1.5rem;
    box-shadow: 10px 0 30px rgba(0,0,0,0.15);
  }

  .sidebar-nav-links .nav-link {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--accent-border);
  }
  .sidebar-nav-links .nav-link.active {
    width: 100%;
    border: 2px solid var(--text-primary);
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.6rem;
  }
  .hero-subtitle {
    font-size: 1.3rem;
  }
  .about-text h3,
  .mission-text h3 {
    font-size: 1.75rem;
  }
  .glass-card {
    padding: 1.75rem 1.25rem;
  }
}

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

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