/* Typography and base styles */
:root {
  --primary-gradient: linear-gradient(120deg, #6a11cb 0%, #2575fc 100%);
  --secondary-gradient: linear-gradient(120deg, #232526 0%, #414345 100%);
  --accent: #ffd700;
  --bg-light: #f8f9fa;
  --bg-dark: #181a1b;
  --text-light: #fff;
  --text-dark: #222;
  --shadow: 0 8px 32px rgba(80, 80, 180, 0.16);
  --radius: 22px;
  --transition: 0.4s cubic-bezier(.4,0,.2,1);
}
body {
  font-family: 'Montserrat', 'Playfair Display', Arial, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  scroll-behavior: smooth;
  transition: background var(--transition), color var(--transition);
}
body.dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

header {
  background: linear-gradient(135deg, #ff6a00 0%, #ee0979 50%, #2575fc 100%);
  color: #fff;
  padding-bottom: 40px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 8vw 0 8vw;
  font-family: 'Montserrat', Arial, sans-serif;
}
.logo {
  font-size: 2.2rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 1px;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--accent);
}
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.menu-toggle span {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}
.toggle-switch {
  margin-left: 1.5rem;
  cursor: pointer;
  font-size: 1.5rem;
  transition: color var(--transition);
}
.toggle-switch .toggle-icon {
  pointer-events: none;
}

.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  position: relative;
  padding-top: 2rem;
}
.landing-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}
.profile-pic-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-pic-glow {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(0, 123, 255, 0.6);
  object-fit: cover;        /* Makes the image cover the circle */
  object-position: center;  /* Centers the image */
  transition: transform 0.3s ease;
}

.profile-pic-glow:hover {
  transform: scale(1.05);
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 0 0 #ffd700, 0 0 32px 8px #2575fc44;
  }
  100% {
    box-shadow: 0 0 0 12px #ffd70044, 0 0 48px 16px #2575fc88;
  }
}
.intro-text {
  text-align: center;
}
.intro-text h1 {
  font-size: 3.2rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}
.intro-text h2 {
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: #ffd700;
  letter-spacing: 1px;
}
.intro-text p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  color: #f3f3f3;
}
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #222;
  padding: 0.9rem 2.2rem;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: 0 2px 12px #ffd70033;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.cta-btn:hover {
  background: #fff;
  color: #2575fc;
  box-shadow: 0 4px 24px #ffd70055;
}
.scroll-down-arrow, .scroll-down-arrow span {
  display: none !important;
}

main {
  padding: 40px 8vw;
}
.projects-section h2,
.about-section h2,
.skills-section h2,
.contact-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.3rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 1px;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
}
.project-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  position: relative;
  overflow: hidden;
}
body.dark .project-card {
  background: #232526;
  color: #fff;
}
.project-card img {
  width: 100%;
  max-width: 220px;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 16px #2575fc22;
}
.project-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  font-weight: 700;
}
.project-card p {
  margin-bottom: 1rem;
  color: #555;
}
body.dark .project-card p {
  color: #ccc;
}
.project-link {
  display: inline-block;
  margin: 0 0.5rem;
  color: #2575fc;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.project-link:hover {
  color: #6a11cb;
}
.project-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 8px 32px #2575fc33;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.profile-pic {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #2575fc;
  box-shadow: 0 2px 16px #2575fc22;
}
.bio {
  flex: 1;
  min-width: 220px;
  font-size: 1.1rem;
  color: #333;
}
body.dark .bio {
  color: #eee;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  justify-items: center;
}
.skill-card {
  background: linear-gradient(135deg, #3ac4bd, #1fa2ff);
  border-radius: 1rem;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  padding: 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 140px;
  min-height: 160px;
  position: relative;
  overflow: hidden;
  color: white;
  text-align: center;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.skill-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25), 0 0 20px rgba(58, 196, 189, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
  background: linear-gradient(135deg, #3ac4bd, #1fa2ff);
}


body.dark .skill-card {
  background: #232526;
  color: #fff;
}
.skill-card img {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 8px #2575fc33);
  transition: transform 0.3s;
}
.skill-card span {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0.5rem;
  letter-spacing: 1px;
  text-align: center;
}
.skill-card:hover img {
  transform: scale(1.15) rotate(-6deg);
}


.contact-form {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
}
body.dark .contact-form {
  background: #232526;
  color: #fff;
}
.contact-form input,
.contact-form textarea {
  padding: 0.9rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  resize: none;
  background: #f8f9fa;
  color: #222;
  transition: background var(--transition), color var(--transition);
}
body.dark .contact-form input,
body.dark .contact-form textarea {
  background: #232526;
  color: #fff;
  border: 1px solid #444;
}
.contact-form button {
  background: #2575fc;
  color: #fff;
  border: none;
  padding: 0.9rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form button:hover {
  background: #6a11cb;
}

footer {
  text-align: center;
  padding: 2rem 0 1rem 0;
  color: #888;
  font-size: 1rem;
  background: transparent;
}

/* Parallax background effect */
header::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 180%;
  background: radial-gradient(circle at 60% 40%, #ffd70033 0%, transparent 70%), radial-gradient(circle at 30% 80%, #2575fc33 0%, transparent 70%), radial-gradient(circle at 80% 20%, #ee097955 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  animation: parallaxMove 12s linear infinite alternate;
}
@keyframes parallaxMove {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(40px) scale(1.05); }
}
header > * {
  position: relative;
  z-index: 1;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Styles */
@media (max-width: 1100px) {
  .landing-content {
    flex-direction: column;
    gap: 2rem;
  }
  .about-content {
    flex-direction: column;
    gap: 1.5rem;
  }
  .navbar {
    padding: 24px 4vw 0 4vw;
  }
  main {
    padding: 40px 4vw;
  }
}
@media (max-width: 700px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 8vw;
    background: #2575fc;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 24px #2575fc22;
    z-index: 100;
  }
  .nav-links.active {
    display: flex;
  }
  .menu-toggle {
    display: flex;
  }
}
@media (max-width: 500px) {
  .landing-content {
    gap: 1.2rem;
  }
  .intro-text h1 {
    font-size: 2rem;
  }
  .intro-text h2 {
    font-size: 1.1rem;
  }
  .projects-section h2,
  .about-section h2,
  .skills-section h2,
  .contact-section h2 {
    font-size: 1.4rem;
  }
  main {
    padding: 30px 2vw;
  }
  .profile-pic-glow {
    width: 120px;
    height: 120px;
  }
  .profile-pic {
    width: 100px;
    height: 100px;
  }
} 