/* General Style */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
}

/* Theme variables */
:root {
  --bg: #0b1220;
  --text: #e6edf7;
  --muted: #b9c2d0;
  --card: #111a2b;
  --border: #25324a;
  --accent: #6fb3ff;
}

.dark {
  --bg: #050a16;
  --text: #e6edf7;
  --muted: #c0c9d6;
  --card: #0d1324;
  --border: #1d2740;
  --accent: #7cc4ff;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
  background-image: radial-gradient(1200px 600px at 20% 10%, rgba(111,179,255,0.08), transparent),
                    radial-gradient(800px 400px at 80% 20%, rgba(124,196,255,0.06), transparent),
                    linear-gradient(180deg, rgba(10,16,30,0.6), rgba(10,16,30,0.6));
  background-attachment: fixed;
}

p { color: var(--muted); }

a, .btn { transition: all 300ms ease; }

/* Desktop Nav */
nav, .nav-links { display: flex; }
nav { justify-content: space-around; align-items: center; height: 10vh; padding: 0.5rem 2rem; backdrop-filter: blur(10px); background: rgba(11,18,32,0.8); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-links { gap: 2rem; list-style: none; font-size: 1rem; }

a { color: var(--text); text-decoration: none; text-decoration-color: transparent; }
a:hover { color: var(--muted); text-decoration: underline; text-underline-offset: 1rem; text-decoration-color: var(--accent); }

.logo { font-size: 1.8rem; }
.logo:hover { cursor: default; }

/* Hamburger Menu */
#hamburger-nav { display: none; }
.hamburger-menu { position: relative; display: inline-block; }
.hamburger-icon { display: flex; flex-direction: column; justify-content: space-between; height: 24px; width: 30px; cursor: pointer; }
.hamburger-icon span { width: 100%; height: 2px; background-color: var(--text); transition: all 0.3s ease-in-out; }
.menu-links { position: absolute; top: 100%; right: 0; background-color: var(--card); width: fit-content; max-height: 0; overflow: hidden; transition: all 0.3s ease-in-out; }
.menu-links a { display: block; padding: 10px; text-align: center; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.menu-links li { list-style: none; }
.menu-links.open { max-height: 300px; }
.hamburger-icon.open span:first-child { transform: rotate(45deg) translate(10px, 5px); }
.hamburger-icon.open span:nth-child(2) { opacity: 0; }
.hamburger-icon.open span:last-child { transform: rotate(-45deg) translate(10px, -5px); }
.hamburger-icon span:first-child { transform: none; }
.hamburger-icon span:nth-child(2) { opacity: 1; }
.hamburger-icon span:last-child { transform: none; }

/* Sections */
section { padding-top: 4vh; min-height: fit-content; margin: 0 10rem; box-sizing: border-box; }
.section-container { display: flex; }

/* Profile */
#profile { display: flex; justify-content: center; align-items: center; gap: 5rem; min-height: 85vh; padding: 2rem; }
.section_pic-container { display: flex; height: 300px; width: 300px; margin: auto 0; }
#profile .section_pic-container img { height: 300px; width: 300px; object-fit: cover; object-position: 50% 70%; border-radius: 50%; box-shadow: 0 10px 30px rgba(124,196,255,0.15); }
.section_text { align-self: center; text-align: center; }
.section_text p { font-weight: 600; }
.section_text_p1 { text-align: center; }
.section_text_p2 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--muted); }
.title { font-size: 2.5rem; text-align: center; }
.name-highlight { background: linear-gradient(135deg, var(--accent) 0%, #a78bfa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 700; }
.about-intro { max-width: 500px; margin: 1rem auto; line-height: 1.6; color: var(--muted); font-size: 0.95rem; }
#socials-container { display: flex; justify-content: center; margin-top: 1rem; gap: 1rem; }

/* Icons */
.icon { cursor: pointer; height: 2rem; transition: transform 0.3s ease; }
.icon:hover { transform: scale(1.1); }

/* Buttons */
.btn-container { display: flex; justify-content: center; gap: 1rem; }
.btn { font-weight: 600; transition: all 300ms ease; padding: 0.5rem; width: 8rem; border-radius: 2rem; cursor: pointer; border: 0.1rem solid var(--accent); }
.btn:hover { background: var(--accent); color: #08213d; }
.btn:active { transform: scale(0.98); }
.small-btn { width: auto; padding: 0.35rem 0.75rem; }

/* About */
.about-content { display: flex; align-items: center; justify-content: center; gap: 3rem; max-width: 800px; margin: 2rem auto; padding: 0 1.5rem; }
.about-image { flex: 1; min-width: 200px; display: flex; justify-content: center; }
.about-text { flex: 1; min-width: 300px; }
.profile-pic { width: 100%; max-width: 280px; height: auto; border-radius: 12px; box-shadow: 0 10px 30px rgba(124,196,255,0.15); transition: transform 0.3s ease; }
.profile-pic:hover { transform: scale(1.02); }
.about-para { margin-bottom: 1.5rem; line-height: 1.55; color: var(--muted); font-size: 1.05rem; position: relative; padding-left: 1rem; text-align: justify; }
.about-para:before { content: "•"; position: absolute; left: 0; color: var(--accent); font-weight: bold; }
.education-container { margin-top: 2rem; }
.education-container h3 { color: var(--text); font-size: 1.3rem; margin-bottom: 1rem; position: relative; padding-left: 1rem; }
.education-container h3:before { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 3px; background-color: var(--accent); }
.education-item { margin-bottom: 1.5rem; padding-left: 1.5rem; border-left: 1px solid #ddd; position: relative; }
.education-item:before { content: ""; position: absolute; left: -5px; top: 5px; height: 10px; width: 10px; border-radius: 50%; background-color: var(--accent); }
.education-item h4 { font-size: 1.1rem; margin-bottom: 0.3rem; color: var(--text); }
.education-place { font-weight: 500; color: var(--muted); margin-bottom: 0.2rem; }
.education-date { font-style: italic; color: var(--muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.education-desc { font-size: 0.95rem; line-height: 1.5; color: var(--muted); }

/* Skills */
#skills { height: auto; min-height: 80vh; padding: 4rem 1rem; background-color: transparent; }
.skills-container { max-width: 1100px; margin: 2rem auto; display: flex; flex-direction: column; gap: 2.5rem; }
.skills-category { background-color: var(--card); border-radius: 1.5rem; padding: 2rem; box-shadow: 0 10px 30px rgba(124,196,255,0.12); transition: transform 0.3s ease; }
.skills-category:hover { transform: translateY(-5px); }
.skills-category h3 { color: var(--text); margin-bottom: 1.5rem; text-align: center; font-size: 1.5rem; position: relative; padding-bottom: 0.5rem; }
.skills-category h3:after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 50px; height: 3px; background-color: var(--accent); }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 2rem; justify-items: center; padding: 0 1rem; }
.skill-item { display: flex; flex-direction: column; align-items: center; transition: transform 0.2s ease; }
.skill-item:hover { transform: scale(1.05); }
.skill-icon { width: 50px; height: 50px; margin-bottom: 0.5rem; object-fit: contain; }
.skill-item p { font-weight: 500; color: var(--muted); text-align: center; }

/* Experience Cards */
.experience-center { display: flex; justify-content: center; align-items: center; }
.experience-card { max-width: 1000px; width: 100%; }
.experience-header { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.experience-icon { width: 60px; height: 60px; border-radius: 12px; background: var(--accent); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.company-logo { width: 100%; height: 100%; object-fit: cover; }
.experience-info { flex: 1; }
.experience-date { font-size: 0.9rem; color: var(--muted); margin-top: 0.3rem; }

/* Achievement card: larger left image, right text layout */
.achievement-card .experience-header { align-items: center; gap: 1.5rem; }
.achievement-card .experience-icon { width: 200px; height: 200px; border-radius: 12px; background: transparent; box-shadow: 0 12px 30px rgba(0,0,0,0.45); overflow: hidden; }
.achievement-card .company-logo { object-fit: contain; }
.achievement-card .project-description { margin-top: 0.5rem; }

@media (max-width: 900px) {
  .achievement-card .experience-header { flex-direction: column; align-items: center; text-align: center; }
  .achievement-card .experience-icon { width: 140px; height: 140px; }
}

/* High School achievements gallery (card style consistent with other details) */
.hs-achievements { padding: 1.5rem; margin-top: 2rem; }
.hs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; align-items: start; max-width: 1100px; margin: 0 auto; }
.hs-item { background: var(--card); padding: 1.25rem; border-radius: 1rem; box-shadow: 0 10px 30px rgba(124,196,255,0.08); transition: transform 0.25s ease; }
.hs-item:hover { transform: translateY(-6px); }
.hs-gallery { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; align-items: center; }
.hs-gallery .hs-img { width: calc(50% - 0.375rem); height: 200px; object-fit: contain; border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); background: #fff; padding: 6px; box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.hs-img { width: 100%; height: 200px; object-fit: contain; border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); background: #fff; padding: 6px; box-shadow: 0 8px 24px rgba(0,0,0,0.35); margin-bottom: 0.75rem; }
.hs-item h4 { color: var(--text); margin-bottom: 0.35rem; font-size: 1.1rem; }
.hs-desc { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

@media (max-width: 900px) {
  .hs-grid { grid-template-columns: 1fr; gap: 1rem; }
  .hs-gallery { flex-direction: column; }
  .hs-gallery .hs-img, .hs-img { width: 100%; height: 150px; }
}

/* Project Cards */
.projects-vertical { display: flex; flex-direction: column; align-items: center; gap: 2rem; max-width: 1100px; margin: 0 auto; }
.project-card { position: relative; overflow: hidden; width: 100%; max-width: 100%; }
.project-badge { position: absolute; top: 1rem; right: 1rem; background: linear-gradient(135deg, var(--accent), #a78bfa); color: #08213d; padding: 0.3rem 0.8rem; border-radius: 2rem; font-size: 0.75rem; font-weight: 600; z-index: 10; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tag { background: rgba(111,179,255,0.15); color: var(--accent); padding: 0.3rem 0.8rem; border-radius: 1rem; font-size: 0.8rem; border: 1px solid rgba(111,179,255,0.3); }

/* Projects */
#projects { position: relative; padding: 4rem 1rem; background: transparent; }
.experience-details-container { max-width: 1200px; margin: 0 auto; }
.about-containers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: stretch; gap: 2rem; }
.details-container { background: var(--card); border-radius: 1.5rem; padding: 2rem; width: 100%; max-width: 1000px; box-shadow: 0 10px 30px rgba(124,196,255,0.12); transition: transform 0.3s ease; }
.details-container:hover { transform: translateY(-5px); }
.project-img { border-radius: 1rem; width: 100%; height: auto; max-height: 400px; object-fit: contain; margin-bottom: 1.5rem; }
.project-content { padding: 0 1rem; }
.project-title { font-size: 1.8rem; color: var(--text); margin-bottom: 0.5rem; }
.project-subtitle { font-size: 1.2rem; color: var(--muted); margin-bottom: 1.5rem; font-weight: 500; }
.project-description { margin-bottom: 2rem; line-height: 1.6; }
.project-features { padding-left: 1.5rem; margin-top: 1rem; }
.project-features li { margin-bottom: 0.8rem; position: relative; }
.project-features li::before { content: "•"; color: var(--accent); font-weight: bold; position: absolute; left: -1.2rem; }
.responsibility-label { margin-top: 1rem; margin-bottom: 0.5rem; color: var(--text); }
.btn-container { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; }
.project-btn { min-width: 120px; }

/* Contact */
#contact { display: flex; justify-content: center; flex-direction: column; height: 70vh; }
.contact-info-upper-container { display: flex; justify-content: center; border-radius: 2rem; border: var(--border) 0.1rem solid; background: rgba(250,250,250,0.02); margin: 2rem auto; padding: 0.5rem; }
.contact-info-container { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin: 1rem; }
.contact-info-container p { font-size: larger; }
.contact-icon { cursor: default; }
.email-icon { height: 2.5rem; }

/* Footer */
footer { height: 26vh; margin: 0 1rem; display: flex; flex-direction: column; justify-content: center; align-items: center; }
footer p { text-align: center; margin-top: 1rem; }
.social-icons { display: flex; justify-content: center; gap: 1.5rem; margin-top: 0.5rem; }
.social-icons a { color: var(--text); font-size: 1.5rem; transition: color 0.3s; }
.social-icons a:hover { color: var(--accent); }


/* Volunteer Card */
.volunteer-card { display: flex; flex-direction: column; gap: 1rem; align-items: stretch; padding: 2rem; }
.volunteer-photos { display: flex; flex-direction: row; gap: 0.75rem; align-items: flex-start; width: 100%; justify-content: center; max-width: 100%; margin-bottom: 1.25rem; }
.volunteer-img { flex: none; width: calc((100% - 0.75rem) / 2); height: 300px; object-fit: cover; border-radius: 14px; border: 3px solid rgba(111,179,255,0.06); box-shadow: 0 12px 32px rgba(0,0,0,0.45); transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease; }

/* Combined / staggered visual */
.volunteer-img:first-child { transform: translateY(0) translateX(0); z-index: 3; border-radius: 14px; }
.volunteer-img:last-child { transform: translateY(28px) translateX(-44px) rotate(-2deg); margin-left: -44px; z-index: 2; opacity: 0.98; filter: saturate(0.98) brightness(0.98); }
.volunteer-img:hover { transform: scale(1.03); box-shadow: 0 20px 40px rgba(0,0,0,0.55); }

/* On hover, bring second image forward for a nice effect */
.volunteer-img:last-child:hover { transform: translateY(8px) translateX(-8px) rotate(-1deg) scale(1.03); z-index: 4; }
.volunteer-right { flex: 1; }
.volunteer-role { color: var(--text); font-size: 1.25rem; margin-bottom: 0.25rem; }
.volunteer-org { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.8rem; }
.volunteer-desc { color: var(--muted); line-height: 1.6; margin-bottom: 1.25rem; }

@media (max-width: 800px) {
  .volunteer-card { flex-direction: column; padding: 1rem; }
  .volunteer-left { flex: none; width: 100%; }
  .volunteer-photos { flex-direction: column; gap: 0.5rem; }
  .volunteer-img { width: 100%; height: 140px; margin-left: 0; transform: none; border-radius: 10px; }
}

