/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fonts & Colors */

html {
    font-size: 20px;
}

.section-title,
h2,
h3,
h1 {
    font-size: 3.5rem;
}

.section-title {
    font-size: 4rem;
}
body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: linear-gradient(135deg, #0a192f 0%, #1c2541 100%);
  color: #f3f3f3;
  line-height: 1.6;
  font-size: 1.15rem;
}

/* Navbar */
.navbar:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 24px rgba(56,189,248,0.12);
    transition: transform 0.25s, box-shadow 0.25s;
}

.navbar:hover .nav-links a,
.navbar:hover .section-title,
.navbar:hover h2,
.navbar:hover h3,
.navbar:hover h1 {
    transform: scale(1.12);
    transition: transform 0.25s;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0f172a;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-family: "Playfair Display", serif;  /* elegant serif font */
  font-size: 30px;
  font-weight: 700;
  color: #f8f9fa; /* soft white */
  letter-spacing: 1px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6); /* glow for readability */
  cursor: default;
}

/* Optional hover effect */
.logo:hover {
  color: #ffd369; /* warm golden highlight */
  transition: color 0.3s ease;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #38bdf8;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(to right, #0f172a, #1e293b);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
}

.highlight {
  color: #38bdf8;
}

.btn {
  background: #38bdf8;
  color: #fff;
  padding: 0.7rem 1.5rem;
  margin-top: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
}

.btn:hover {
  background: #0ea5e9;
  transform: scale(1.05);
}

/* Sections */
.section {
  padding: 4rem 2rem;
  text-align: center;
}
h2, h3, h1 {
  color: #e3eafc; /* Soft light blue for visibility on dark backgrounds */
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1.2rem;
}

.section-title {
  color: #64b5f6; /* Brighter blue accent for section headings */
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}
/* ...existing code... */

/* Cards */
.card-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.card {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  width: 250px;
}

.card:hover {
  transform: translateY(-10px);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: auto;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
  transition: border 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #38bdf8;
}

/* Footer */
footer {
  background: #0f172a;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* About */

/* ...existing code... */
.about-flex {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.profile-icon img {
  width: 42px;
  height: 42px;
  gap: 1.2rem;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
position: relative;
}

.hero-text {
  flex: 2;
  min-width: 250px;
  margin-left: 2.5rem;
}

.hero-text h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
}
.hero-text p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #cbd5e1;
}
.profi-pic {
    border: 8px solid #1c2541;
    background: radial-gradient(circle at 60% 40%, #23395d 0%, #1c2541 100%);
}
.hero-pic {
    
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 8px solid #1c2541;
  background: radial-gradient(circle at 60% 40%, #23395d 0%, #1c2541 100%);
}

.profile-pic {
  width: 420px;
  height: 420px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  background: #1c2541;
}

.profile-tooltip {
  position: absolute;
  bottom: -38px;
  left: 50%;
  transform: translateX(-50%);
  background: #222e;
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.95rem;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
  opacity: 0.95;
}
.cv-download-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2.5rem 0;
}

.cv-download-btn button {
    background: linear-gradient(90deg, #38bdf8 0%, #0ea5e9 100%);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 0.9rem 2.2rem;
    border: none;
    border-radius: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(56,189,248,0.18);
    transition: background 0.3s, transform 0.2s;
}

.cv-download-btn button:hover {
    background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 100%);
    transform: scale(1.06);
}
/* ...existing code... */

/* Got to top*/
#goTopBtn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100;
  background: #0077b5;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
  display: none;
}
#goTopBtn:hover {
  opacity: 1;
  background: #005983;
}
/* ...existing code... */

/* Experiences */
.section {
    background: linear-gradient(120deg, #0a192f 0%, #1c2541 100%);
    border-radius: 2rem;
    box-shadow: 0 6px 32px rgba(56,189,248,0.10);
    padding: 4rem 2rem;
    margin: 3rem auto;
    max-width: 1400px;
}

.section h2 {
    color: #64b5f6;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
}
.experience-options {
    justify-content: center;
    align-items: flex-start;
        color: #64b5f6;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
        background: linear-gradient(120deg, #0a192f 0%, #1c2541 100%);
    border-radius: 2rem;
    box-shadow: 0 6px 32px rgba(56,189,248,0.10);
    padding: 4rem 2rem;
    margin: 3rem auto;
    max-width: 1400px;
}

.exp-btn {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.experience-options {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 2rem;
}
.exp-item {
  width: 100%;
}
.exp-btn {
  background: linear-gradient(90deg, #23395d 0%, #1e3c72 100%);
  color: #e3eafc;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.7rem 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 2px 8px rgba(30,60,114,0.10);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  border: none;
  outline: none;
  margin-bottom: 0.5rem;
  width: fit-content;
  min-width: 180px;
  max-width: 320px;
  margin-left: 0.5rem;
}
.exp-btn:hover, .exp-btn.active {
  background: linear-gradient(90deg, #274690 0%, #3b5998 100%);
  color: #fff;
  transform: scale(1.07);
  box-shadow: 0 4px 16px rgba(30,60,114,0.18);
}
/* ...existing code... */
.exp-content {
  display: none;
  background: #112240;
  border-radius: 1.2rem;
  box-shadow: 0 2px 12px rgba(0,119,181,0.18);
  font-size: 1.15rem;
  color: #fff;
  padding: 2rem;
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s, transform 0.4s;
  position: relative;
  z-index: 2;
}
.exp-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.4s;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px);}
  to { opacity: 1; transform: translateY(0);}
}

/* ...experience subtypes*/

#experience {
  margin: 40px auto;
  max-width: 900px;
  padding: 0 20px;
}

#experience h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
  color: #f0f0f0;
}

.exp-card {
  display: flex;
  align-items: flex-start;
  background: #1e2a47; /* dark bluish card */
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.exp-logo {
  width: 120px;
  height: 120px;
  margin-right: 20px;
  object-fit: contain;
}

.exp-details h3 {
  font-size: 1.3rem;
  color: #fff;
  margin: 0;
}

.exp-duration {
  display: block;
  font-size: 0.9rem;
  color: #bbb;
  margin: 4px 0 10px;
}

.exp-details ul {
  margin: 0;
  padding-left: 20px;
  color: #ddd;
  font-size: 0.95rem;
}

.exp-details ul li {
  margin-bottom: 6px;
  line-height: 1.5;
}


/* Achievements Section */
.achievements-section {
    background: linear-gradient(120deg, #0a192f 0%, #1c2541 100%);
    border-radius: 2rem;
    box-shadow: 0 6px 32px rgba(56,189,248,0.10);
    padding: 4rem 2rem;
    margin: 3rem auto;
    max-width: 1400px;
}

.achievements-section h2 {
    color: #64b5f6;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
}

.achievements-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
}

.achievement-card {
    background: linear-gradient(135deg, #112240 0%, #1c2541 100%);
    border-radius: 1.5rem;
    box-shadow: 0 4px 18px rgba(30,60,114,0.13);
    padding: 2.5rem 2rem;
    min-width: 260px;
    max-width: 340px;
    flex: 1 1 260px;
    color: #e3eafc;
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
}

.achievement-card:hover {
    transform: translateY(-12px) scale(1.04);
    box-shadow: 0 8px 32px rgba(56,189,248,0.18);
}

.achievement-card h3 {
    color: #38bdf8;
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
}

.achievement-card ul {
    list-style: none;
    padding-left: 0;
}

.achievement-card ul li {
    background: rgba(100,181,246,0.08);
    margin-bottom: 0.8rem;
    padding: 0.7rem 1rem;
    border-radius: 0.8rem;
    font-size: 1.08rem;
    color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(56,189,248,0.06);
    transition: background 0.2s;
}

.achievement-card ul li:hover {
    background: rgba(56,189,248,0.18);
    color: #fff;
}

@media (max-width: 900px) {
    .achievements-row {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    .achievement-card {
        max-width: 95vw;
    }
}

/* ...project section... */
.key-projects-row .card {
    background: linear-gradient(135deg, #23395d 0%, #1e293b 100%);
    color: #e3eafc;
    border-radius: 1.2rem;
    box-shadow: 0 4px 16px rgba(56,189,248,0.13);
    padding: 2rem 1.2rem;
    margin-bottom: 1rem;
    transition: transform 0.22s, box-shadow 0.22s;
}
.key-projects-row .card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px rgba(56,189,248,0.18);
}
.key-projects-row .card h3 {
    color: #38bdf8;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}
.key-projects-row .card p {
    color: #cbd5e1;
    font-size: 1.05rem;
}
.key-projects-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
.key-projects-row .card {
    flex: 1 1 18%;
    min-width: 220px;
    max-width: 260px;
    background: #f8f8f8;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    margin-bottom: 1rem;
}
.more-projects-row .btn {
    padding: 0.7rem 2rem;
    font-size: 1rem;
    border-radius: 6px;
    background: #0078d4;
    color: #fff;
    border: none;
    cursor: pointer;
}
.modal {
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.4);
}
.modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    position: relative;
}
.close {
    position: absolute;
    right: 1.2rem;
    top: 1.2rem;
    font-size: 2rem;
    cursor: pointer;
}
.modal-content .card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.modal-content .card {
    flex: 1 1 40%;
    min-width: 180px;
    max-width: 220px;
    background: #f4f4f4;
    border-radius: 6px;
    padding: 0.7rem;
    margin-bottom: 1rem;
}
@media (max-width: 900px) {
    .key-projects-row { flex-direction: column; align-items: center; }
    .key-projects-row .card { max-width: 95%; }
    .modal-content .card-container { flex-direction: column; align-items: center; }
}

.edu-detail{
  font-size: 0.9rem;         /* smaller font */
  color: #7aa2e3;            /* lighter blue */
  line-height: 1.5;          /* better readability */
  margin-top: 0.5rem;
  font-weight: 400;          /* normal weight so it looks light */
}

/* ...extracurricula */
/* Extracurricular Section */
.extracurriculars-section {
  background: linear-gradient(135deg, #112240 0%, #1c2541 100%);
  border-radius: 2rem;
  box-shadow: 0 6px 32px rgba(56,189,248,0.10);
  padding: 4rem 2rem;
  margin: 3rem auto;
  max-width: 1400px;
  color: #e3eafc;
}

.extracurriculars-section h2 {
  color: #64b5f6;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 2rem;
  letter-spacing: 2px;
  text-align: center;
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab {
  background: #1c2541;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 1rem;
  font-size: 1rem;
  color: #e3eafc;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.tab:hover {
  background: #22395c;
  transform: scale(1.05);
}

.tab.active {
  background: #38bdf8;
  color: #fff;
}

/* Panels */
.tab-content {
  max-width: 1000px;
  margin: auto;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.tab-panel.active {
  display: block;
}

/* Galleries */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.gallery img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 4px 18px rgba(30,60,114,0.2);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery img:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(56,189,248,0.3);
}

/* Highlight text */
.highlight-text {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #38bdf8;
  font-weight: 600;
}

/* Tech Links */
.tech-links {
  display: flex;
  gap: 1.2rem;
  margin: 1.5rem 0;
}

.tech-links a {
  background: rgba(56,189,248,0.1);
  padding: 0.7rem 1.2rem;
  border-radius: 0.8rem;
  color: #38bdf8;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.tech-links a:hover {
  background: #38bdf8;
  color: #fff;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .tabs {
    flex-direction: column;
    align-items: center;
  }
}
.img-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.img-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 1rem;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
}
