/* =========================
   Global / Reset
========================= */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --bg1: #0f0c29;
  --bg2: #302b63;
  --bg3: #24243e;

  --text: #fff;
  --muted: #cfd3ff;

  --accent1: #ff66cc;
  --accent2: #8be9fd;
  --accent3: #a18cd1;

  --card: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.15);

  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, var(--bg1), var(--bg2), var(--bg3));
  background-attachment: fixed;
  color: var(--text);
  font-size: 18px;
  line-height: 1.7;
}

/* =========================
   Navbar
========================= */
/* =========================
   Navbar
========================= */
:root {
  --bg: #0f0c29; /* body background */
  --text: #fff;
  --accent: #ff66cc;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--accent1), var(--accent2)); /* same as body */
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  gap: 30px; /* spacing between links */
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
/* .navbar img {
  display: block;
  max-height: 50px;
  margin: 10px;
  padding: 10px;
} */


.nav-links li a:hover {
  color: var(--accent);
}

/* Hamburger - hidden by default */
.menu-toggle,
.sidebar,
.overlay {
  display: none;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: -250px; /* hidden initially */
  width: 250px;
  height: 100%;
  background: var(--bg); /* same as body */
  padding-top: 60px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  transition: left 0.3s ease;
  z-index: 2000;
}

.sidebar a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
}

.sidebar a:hover {
  color: var(--accent);
}

.sidebar.active {
  left: 0;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1500;
  display: none;
}

.overlay.active {
  display: block;
}

/* Hamburger */
.menu-toggle {
  display: none; /* only show in mobile */
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 22px;
  cursor: pointer;
  z-index: 3000;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
  
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* hide desktop links */
  }
  .menu-toggle {
    display: flex; /* show hamburger */
  }
  .scrolling-text{
    display: none;
  }
}




/* =========================
   Section Defaults
========================= */
section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
  margin-top: 0;
  padding-top: 0;
}

h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 2.4rem;
  margin-bottom: 40px;
  background: linear-gradient(90deg, #fff, var(--accent2));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
@media (max-width: 480px) {
  section {
    padding: 60px 20px;
  }
}
@media (max-width: 768px) {
  section {
    padding: 60px 15px;  /* smaller side space */
  }
}



/* =========================
   About
========================= */
.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px 10px;
}

.about-img img { max-width: 400px; height: auto; border-radius: 12px; }
.about-text { max-width: 600px; }

.big-name {
  font-family: 'Raleway', sans-serif;
  font-size: 3rem;
  margin: 0 0 12px;
  background: linear-gradient(90deg, #fff, var(--accent1), var(--accent2));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.short-intro { max-width: 600px; margin: 15px auto; color: var(--muted); }

.scrolling-text { margin: 15px auto; overflow: hidden; white-space: nowrap; }
.scrolling-text span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 12s linear infinite;
  color: var(--accent1);
  font-weight: 600;
}

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

.btn {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 26px;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  border-radius: 30px;
  color: #111;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: transform .25s, filter .25s;
  text-decoration: none;
}

.btn:hover { transform: scale(1.05); filter: brightness(1.1); }
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    padding: 20px 10px; /* less side padding on small screens */
    gap: 20px;
  }
  .about-text {
    padding: 0 10px;
  }
}


/* =========================
   Skills
========================= */
.skills-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; }
.skill-card {
  width: 140px; /* fixed size */
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.skill-card img { width: 80px; margin: auto; }
.skill-card:hover { transform: translateY(-8px); box-shadow: 0 12px 24px rgba(0,0,0,.3); }

/* =========================
   Certifications
========================= */
.cert-grid { display: flex; flex-wrap: wrap; gap: 25px; justify-content: center; }
.cert-card {
  width: 220px; /* fixed size */
  background: var(--card);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cert-card img { width: 60px; margin-bottom: 15px; }
.cert-card p { font-size: 1rem; color: #fff; font-weight: 500; }
.cert-card:hover {
  transform: translateY(-10px);
  box-shadow: 0px 8px 20px rgba(0,0,0,0.2);
  background: linear-gradient(135deg, #89f7fe, #66a6ff);
  color: #000;
}

/* =========================
   Projects
========================= */
.project-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; }
.project-card {
  width: 320px; /* fixed size */
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.project-card:hover { transform: translateY(-6px); }

/* =========================
   Modals
========================= */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-content {
  max-width: 600px;
  width: 90%;
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  position: relative;
}
.modal-content img { width: 100%; border-radius: 8px; }
.close { position: absolute; top: 10px; right: 14px; font-size: 1.5rem; cursor: pointer; }

/* =========================
   Internships
========================= */
.internship-content { display: flex; flex-wrap: wrap; gap: 25px; justify-content: center; }
.internship-card {
  width: auto; /* fixed size */
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 25px;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.internship-card h3 { margin-bottom: 12px; font-size: 1.3rem; color: var(--accent1); }
.internship-card p { color: var(--muted); line-height: 1.5; }
.internship-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

/* =========================
   Timelines
========================= */
.timeline { position: relative; max-width: 900px; margin: auto; }
.timeline::after { content:""; position: absolute; left: 50%; top:0; bottom:0; width: 4px; background: var(--accent2); }

.edu-card {
  position: relative;
  width: 40%; /* fixed width */
  padding: 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  margin: 20px 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.edu-card.left { left: 0; }
.edu-card.right { left: 60%; }
.edu-card:hover { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0,0,0,0.35); }

/* =========================
   Contact
========================= */
.contact-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; }
.contact-card {
  width: 240px; /* fixed size */
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: transform .25s;
}
.contact-card:hover { transform: scale(1.05); }

/* =========================
   Footer
========================= */
footer {
  text-align: center;
  padding: 5px;
  background-color: #111827;
  color: #aaa;
  border-top: 1px solid #374151;
}

/* =========================
   Responsive
========================= */
@media(max-width: 1024px) { .about-container { gap: 30px; } }

@media(max-width: 768px) {
  .about-container { flex-direction: column-reverse; text-align: center; }
  .edu-card, .edu-card.left, .edu-card.right { width: 100%; left: 0; }
  .timeline::after { display: none; }

  .navbar ul {
    position: absolute; top: 70px; left: 0;
    width: 100%; flex-direction: column;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    overflow: hidden; max-height: 0;
  }
  .navbar ul.active { max-height: 400px; }
  .menu-toggle { display: flex; }
}
/* =========================
   Coding Profiles
========================= */
.profiles-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 30px;
}

.profile-card {
  width: 200px; /* fixed size */
  background: linear-gradient(135deg, #66a6ff, #89f7fe);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card img { width: 60px; margin-bottom: 10px; }
.profile-card h3 { color: #000; margin-bottom: 10px; }
.profile-card a {
  display: inline-block;
  padding: 6px 12px;
  background: #000;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}
.profile-card a:hover { background: #222; }
.profile-card:hover { transform: translateY(-10px); box-shadow: 0px 8px 20px rgba(0,0,0,0.3); }

/* =========================
   Contact Section
========================= */
.contact-form-wrapper {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
}

.contact-form {
  margin-top: 30px;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.contact-form h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #8be9fd;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Form fields */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #666;
  border-radius: 8px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #bbb; }

.contact-form input:focus,
.contact-form textarea:focus {
  border: 1px solid #ff66cc;
  background: rgba(255, 255, 255, 0.15);
}

/* Submit button */
.contact-form button {
  width: 50%;
  background: #ff66cc;
  color: white;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(255, 102, 204, 0.4);
  margin: auto;
  display: block;
}

.contact-form button:hover {
  background: #ff4db8;
  box-shadow: 0 8px 25px rgba(255, 102, 204, 0.6);
  transform: translateY(-3px);
}

/* Status message */
#status {
  width: 100%;
  text-align: center;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 8px;
  font-weight: 500;
  color: #ffffff;
  display: none;
}

#status.success { background-color: #10b981; }
#status.error { background-color: #ef4444; }

/* Contact Cards */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}

.contact-card {
  width: 240px; /* fixed size */
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: transform .25s;
}

.contact-card i { font-size: 36px; color: var(--accent2); margin-bottom: 8px; }
.contact-card:hover { transform: scale(1.05); }

/* =========================
   Responsive Fixes
========================= */
@media(max-width: 768px) {
  .about-container { flex-direction: column-reverse; text-align: center; }
  .edu-card, .edu-card.left, .edu-card.right { width: 100%; left: 0; }
  .timeline::after { display: none; }

  /* Navbar responsive */
  .navbar ul {
    position: absolute;
    top: 70px; left: 0;
    width: 100%;
    flex-direction: column;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
  }

  .navbar ul.active { max-height: 400px; }
  .menu-toggle { display: flex; }
}

@media(max-width: 480px) {
  .btn { padding: 10px 22px; font-size: 1rem; }
  .profile-card { width: 100%; }
  .project-card { width: 100%; }
  .internship-card { width: 100%; }
  .contact-card { width: 100%; }
  .cert-card { width: 100%; }
}

