html, body {
  height: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: transparent;
  color: #f3f6fa;
  position: relative;
  z-index: 1;
  font-size: clamp(16px, 2vw, 20px);
}

/* Updated styles for better responsiveness and standardized units */
html, body {
  font-size: 16px; /* Base font size for rem scaling */
}

body {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  box-sizing: border-box;
}

.background-gradient {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
    background: linear-gradient(135deg, #181c2b 0%, #23243a 60%, #0a0c14 100%);
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.main-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 36px;
  z-index: 2;
  box-shadow: 0 0 8px 2px #fff, 0 0 16px 4px #fff; /* Subtle glow matching About Me card */
  border-radius: 22px; /* Restore curved edges */
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.2rem, 5vw, 2.5rem) clamp(1rem, 5vw, 2rem) clamp(1rem, 5vw, 2rem) clamp(1rem, 5vw, 2rem);
  gap: 1rem;
  background: rgba(30, 34, 54, 0.85);
  /* Stronger white glow */
  box-shadow: 0 0 48px 16px #fff, 0 0 96px 32px #fff;
  border-radius: 22px;
  border: none;
  max-width: 600px; /* Shrink max width for site title area */
  width: 90vw;
  margin: 0 auto 2.5rem auto;
}

/* Adjustments for smaller screens */
@media (max-width: 700px) {
  .main-header {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
  .header-content {
    max-width: 95%;
    width: 95%;
    border-radius: 1rem;
    padding: 1rem;
  }
  .card {
    padding: 0.7rem;
    max-width: 95%;
  }
  .skills-section.glass,
  .projects-section.glass {
    max-width: 100%;
    width: 100%;
    padding: 1rem;
    margin: 0 auto 1rem auto;
  }
  .skills-grid {
    max-width: 100%;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 0.5rem;
  }
  .skill-card,
  .project-card {
    max-width: 95%;
    width: 100%;
  }
}

/* Additional media queries for better responsiveness */
@media (max-width: 768px) {
  body {
    padding: 0 1rem;
  }
  .main-header {
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .header-content {
    padding: 1rem;
    max-width: 100%;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .skill-card, .project-card {
    padding: 1rem;
    max-width: 100%;
  }
}

@media (max-width: 500px) {
  .site-title {
    font-size: 1.5rem;
  }
  .about-section h2,
  .skills-section h2,
  .projects-section h2 {
    font-size: 1rem;
  }
  .header-content {
    padding: 0.7rem;
  }
  .card {
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .site-title {
    font-size: 1.8rem;
  }
  .subtitle {
    font-size: 1rem;
  }
  .about-section p {
    font-size: 0.9rem;
  }
  .footer {
    font-size: 0.8rem;
  }
}

.github-link img {
  width: 40px;
    margin-bottom: 2.5rem;
  transition: transform 0.2s;
.glass {
  background: rgba(30, 34, 54, 0.85);
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-radius: 32px;
  border: 1.5px solid rgba(255,255,255,0.10);
  text-align: center;
  padding: 2.5rem 2rem 2rem 2rem;
}
.card {
  max-width: 95vw;
  width: 100%;
  margin: 0 auto 2.5rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  box-shadow: none;
  padding: clamp(1rem, 4vw, 2rem);
}
}
.github-link img:hover {
  transform: scale(1.18) rotate(-8deg);
}

.site-title {
  font-size: clamp(2rem, 6vw, 2.5rem); /* Slightly smaller max size */
  font-weight: 900;
  letter-spacing: -2px;
  margin: 0;
  text-align: center;
  color: #fff;
}

.subtitle {
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: #bfc7d5;
  margin: 0 0 0.5rem 0;
  text-align: center;
}

.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
    width: 100%;
    margin-bottom: 40px;
  z-index: 2;
}

.glass {
  background: rgba(30, 34, 54, 0.7);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-radius: 22px;
  border: 1.5px solid rgba(255,255,255,0.08);
}

.card {
  max-width: 95vw;
  width: 100%;
  margin: 0 auto;
    margin-bottom: 1.5rem;
  margin-bottom: 0.5rem;
}

.about-section {
  padding: clamp(1.5rem, 5vw, 2.5rem) clamp(1rem, 5vw, 2rem);
  max-width: 95vw;
  width: 100%;
  margin: 0 auto clamp(2rem, 5vw, 2.5rem) auto;
  box-sizing: border-box;
}

.about-section h2,
.skills-section h2,
.projects-section h2 {
  font-size: clamp(1.3rem, 5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: #fff;
  letter-spacing: -1px;
  text-align: center;
}
.about-section h2,
.skills-section h2,
.projects-section h2 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 1.2rem;
  color: #fff;
  letter-spacing: -1px;
  text-align: center;
  text-shadow: 0 2px 24px #000a;
}

.about-section h2 {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 900;
  margin-bottom: clamp(1rem, 3vw, 1.2rem);
  color: #fff;
  letter-spacing: -1px;
  text-align: center;
  text-shadow: 0 2px 24px #000a;
}

.about-section p {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: #e0e6f7;
  text-align: center;
  font-weight: 500;
  margin-bottom: 0;
}

.skills-section.glass,
.projects-section.glass {
  /* Center content and limit width */
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(30,34,54,0.92);
  border-radius: 22px;
  box-sizing: border-box;
  margin: 0 auto 2.5rem auto;
  padding: 2.5rem 2rem 2rem 2rem;
  max-width: 900px;
  width: 100%;
  border: 2.5px solid #3cffb7; /* For skills */
  /* For projects, override border in .projects-section.glass below */
  box-shadow: 0 0 8px 0 #3cffb7;
}
.projects-section.glass {
  border: 2.5px solid #ff5ecb;
  box-shadow: 0 0 8px 0 #ff5ecb;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Always 2 columns */
  grid-template-rows: repeat(2, 1fr);    /* Always 2 rows */
  gap: clamp(2rem, 4vw, 2.5rem); /* Match card padding for balance */
  width: 100%;
  max-width: 900px; /* Match section width */
  margin: 0 auto;
  justify-items: center; /* Center grid items horizontally */
  align-items: stretch;   /* Center grid items vertically */
  padding: 0 0.5rem; /* Add horizontal padding to prevent overflow */
  margin-left: auto;
  margin-right: auto;
}

.skill-card {
  /* Consistent width for all cards, centered in grid */
  background: linear-gradient(135deg, rgba(40,44,70,0.96) 75%, rgba(0,255,153,0.25) 100%);
  border: 1.5px solid #ffb347;
  box-shadow: none;
  border-radius: 18px;
  padding: clamp(2rem, 4vw, 2.5rem);
  box-sizing: border-box;
  max-width: 420px; /* Prevent cards from exceeding container */
  width: 100%;
  height: 100%; /* Make all cards same height */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Vertically center content */
  margin-bottom: 0;
  transition: transform 0.18s, box-shadow 0.18s;
  text-align: center;
}

.project-card {
  background: linear-gradient(135deg, rgba(40,44,70,0.96) 70%, #7d4a6c 100%);
  border: none;
  border-radius: 18px;
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  max-width: 600px;
  width: 100%;
  margin-bottom: 1.2rem;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Center projects grid */
.projects-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer {
  margin-top: 2.5rem;
  padding: clamp(0.7rem, 2vw, 1.2rem) 0;
  text-align: center;
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: #bfc7d5;
    background: rgba(30, 34, 54, 0.82);
  border-radius: 0 0 22px 22px;
  box-shadow: 0 -2px 12px 0 rgba(31, 38, 135, 0.10);
  width: 95vw;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Card Accent Colors --- */
.about-section.glass {
  background: linear-gradient(135deg, rgba(30,34,54,0.92) 70%, #3a3f7d 100%);
  border: 2.5px solid #5e6cff;
  box-shadow: 0 0 8px 0 #5e6cff;
  border-radius: 22px;
  padding: 2.5rem 2rem 2rem 2rem;
  max-width: 900px;
  width: 100%;
  margin: 0 auto 2.5rem auto;
}
.skills-section.glass {
  background: rgba(30,34,54,0.92);
  border: 2.5px solid #3cffb7;
  box-shadow: 0 0 8px 0 #3cffb7;
  border-radius: 22px;
  padding: 2.5rem 2rem 2rem 2rem;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto 2.5rem auto;
}
.projects-section.glass {
  background: rgba(30,34,54,0.92);
  border: 2.5px solid #ff5ecb;
  box-shadow: 0 0 8px 0 #ff5ecb;
  border-radius: 22px;
  padding: 2.5rem 2rem 2rem 2rem;
  max-width: 900px;
  width: 100%;
  margin: 0 auto 2.5rem auto;
}

.skill-card {
  background: linear-gradient(135deg, rgba(40,44,70,0.96) 75%, rgba(0,255,153,0.25) 100%);
  border: 1.5px solid #ffb347;
  box-shadow: none;
}
.project-card {
  background: linear-gradient(135deg, rgba(40,44,70,0.96) 70%, #7d4a6c 100%);
  border: none;
  border-radius: 18px;
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  margin-bottom: 1.2rem;
}

/* Adjust skills grid for single card scrolling */
.skills-grid {
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(2rem, 4vw, 2.5rem);
  }
}

