* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Whole page cinematic load */
body {
  animation: cinematicLoad 0.7s ease-in-out;
  background: url("bg8.webp") no-repeat center center fixed;
  background-size: cover;
  font-family: Sans-Serif;
  color: #fff;
}

@keyframes cinematicLoad {
  0% {
    opacity: 0;
    transform: scale(0.96);
    filter: blur(2px);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.98);
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

/* Mobile - force remove image */
@media screen and (max-width: 768px) {
  body {
    background: #111 !important;
    background-attachment: scroll !important;
    background-image: none !important;
  }
}

/* Overlay to dim and blur the background image */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(2px);
  z-index: -1;
}

/* Navbar Glassmorphism Style */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(9px);
  background: rgba(24, 23, 23, 0.3);
  z-index: 1000;
  animation: navbarFadeIn 1.5s ease-out forwards;
}

/* Logo */
header .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ff3c73;
  text-shadow: rgb(246, 9, 131);
  animation: logoSlide 2s ease-out forwards;
}

header .logo span {
  color: #1edce9;
}

/* Navbar Links (Desktop) */
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links li a {
  color: #0dd3ff;
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: #ff1650;
  transition: width 0.3s ease;
}

.nav-links li a:hover {
  color: #1afce5;
}

.nav-links li a:hover::after {
  width: 100%;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  font-size: 26px;
  color: #e91e63;
  cursor: pointer;
}

/* Mobile Navbar Overlay (Below Header) */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;               /* start just below header */
    left: 0;
    height: 50vh;           /* smaller height, not half screen */
    width: 100%;             
    background-color: #e91e63;
    flex-direction: column;
    align-items: center;
    font-weight: bold;
    justify-content: center;
    padding: 15px 0;
    border-radius: 5px;
    transform: translateY(-120%); /* hide upwards */
    transition: transform 0.3s ease-in-out;
    z-index: 999;
  }

  .nav-links.show {
    transform: translateY(0); /* slide down under header */
  }

  .nav-links li {
    margin: 8px 0;
  }

  .nav-links li a {
    color: #000;   
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    font-size: 28px;
    color: white;
    z-index: 1001;
  }
}



@keyframes navbarFadeIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoSlide {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ==== Sections, Projects, About, Contact, Footer ==== */
section {
  padding: 120px 20px;
  background: rgba(0, 0, 0, 0.6);
  min-height: 100vh;
}

.intro-text {
  text-align: center;
  margin-top: 180px;
}

.intro-text h1 span {
  color: #e91e63;
  font-size: 34px;
}

.intro-text h1 {
  color: #1ee9d5;
  font-size: 34px;
}

.intro-text p {
  font-size: 18px;
  margin-top: 10px;
}

.intro-text h2 {
  font-size: 20px;
  margin-top: 10px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.social-icons a img {
  width: 32px;
  height: 33px;
  filter: brightness(7) invert(1);
  transition: 0.4s;
  opacity: 0.9;
}

.social-icons a:hover img {
  transform: scale(1.1);
  opacity: 1;
}

.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 60px;
  text-align: center;
}

.about .highlight,
.highlight {
  color: #e91e63;
  font-weight: bold;
}

.profile-pic img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #e91e63;
  margin-bottom: 20px;
}

.intro {
  max-width: 800px;
  width: 100%;
}

.intro h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.intro p {
  font-size: 16px;
  color: #ccc;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.tab {
  background-color: rgb(43, 220, 214);
  color: rgb(13, 11, 11);
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  margin-right: 15px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}

.tab:hover,
.tab.active {
  border-bottom: 2px solid #e91e63;
  background-color: #e91e63;
}

.tab-content {
  margin-top: 30px;
}

.content {
  display: none;
  list-style: disc;
  padding-left: 10px;
  font-size: 18px;
}

.content li {
  margin-bottom: 10px;
  color: #f2f2f2;
}

.content.active {
  display: block;
}

/* PROJECTS SECTION */
.section-title {
  color: rgb(21, 231, 231);
  text-align: center;
  font-size: 2.5rem;
  margin: 60px 0 40px;
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 0 20px;
}

.project-card {
  background: #4c424603;
  border-radius: 15px;
  padding: 20px;
  width: 300px;
  transition: transform 0.9s ease, box-shadow 0.9s ease;
  box-shadow: 0 5px 15px rgb(122, 74, 94);
  text-align: center;
  cursor: pointer;
}

.project-card img {
  width: 60%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.project-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.project-card p {
  font-size: 0.95rem;
  color: #31c1c8d2;
  margin-bottom: 15px;
}

.tags {
  margin-bottom: 15px;
}

.tags span {
  background: #333;
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  margin: 2px;
  display: inline-block;
}

.card-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  background: #e7216a;
  padding: 8px 15px;
  border-radius: 30px;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
}

.btn-github {
  background: #333;
}

.btn:hover {
  background: #fff;
  color: #000;
}

.project-card:active {
  transform: scale(0.97);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.project-card.highlight {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
  background: linear-gradient(145deg, #2a2a2a, #111);
}

/* Certificates section */
.courses-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
}

.courses-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7rem;
  padding: 40 20px;
}

.course-card {
  background: #4c424603;
  border-radius: 15px;
  padding: 20px;
  width: 300px;
  transition: transform 0.9s ease, box-shadow 0.9s ease;
  box-shadow: 0 5px 15px rgba(34, 149, 169, 0.264);
  text-align: center;
  cursor: pointer;
}

.course-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.097);
}

.course-card h3.course-name {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #fff;
}

.course-card p.course-meta {
  font-size: 0.95rem;
  color: #31c1c8d2;
  margin-bottom: 15px;
}

.course-badge {
  background: #27def2;
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  margin: 2px;
  display: inline-block;
  border: none;
  color: #000000;
}

.course-link {
  background: #e7216a;
  padding: 10px 15px;
  border-radius: 30px;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
  display: inline-block;
}

.course-link:hover {
  background: #12e2fd;
  color: #000;
}

/* Contact form */
.contact-container {
  max-width: 500px;
  margin: 50px auto;
  padding: 30px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.contact-container h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 28px;
  color: #1edfe9;
}

.form-group {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  position: relative;
}

.form-group i {
  position: absolute;
  left: 12px;
  color: #e91e63;
}

.contact-container input,
.contact-container textarea {
  width: 100%;
  padding: 12px 12px 12px 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  outline: none;
  transition: 0.3s;
}

.contact-container input::placeholder,
.contact-container textarea::placeholder {
  color: #ccc;
}

.contact-container input:focus,
.contact-container textarea:focus {
  background: rgba(255, 255, 255, 0.2);
}

.contact-container button {
  width: 100%;
  padding: 12px;
  margin-top: 15px;
  background: #fffeff;
  border: none;
  border-radius: 10px;
  color: #e91e63;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-container button:hover {
  background: #e91e63;
  color: white;
}

.footer {
  text-align: center;
  padding: 20px 10px;
  background: black;
  color: floralwhite;
  font-size: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .social-icons a {
  margin: 0 10px;
  color: #f81253;
  font-size: 20px;
  transition: transform 0.3s ease;
}

.footer .social-icons a:hover {
  transform: scale(1.2);
  color: #1adaef;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 20px;
  background: #00f0ff;
  color: #000;
  padding: 10px 14px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background: #e91e63;
  color: #fff;
}

/* ==== MOBILE FIXES ==== */
@media (max-width: 768px) {
  body::before {
    position: absolute !important;
    height: 100% !important;
  }
  section {
    min-height: auto !important;
    padding-top: 100px !important;
  }
  body {
    background-attachment: scroll !important;
  }
  
  .footer {
    position: relative !important;
  }
}
