/* This is the required project styling. Will contain essential CSS styles like:
   * Flex property
   * Grid layout
   * Cards and sections
*/

@import url(https://fonts.googleapis.com/css?family=Raleway:100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic);

/* variables */
:root {
  /* Colors */
  --primary-color: #ffcd42;
  --secondary-color: #ffd35c;
  --bg-primary: #ffffff;
  --text-color: #222222;
  --text-color-two: #ffffff;
  --bg-secondary: #000000;
  --card-background: #f4f4f4;
  --bg-secondary-two: #111111;

  --shadow: 0 10px 40px rgba(0, 0, 0, 0.2);

  /* Font Weight */
  --weight-small: 400;
  --weight-semibold: 600;
  --weight-bold: 800;

  /* Max width */
  --width-small: 600px;
  --width-medium: 1100px;
  --width-large: 1300px;
}

[data-theme="dark"] {
  --primary-color: #ffcd42;
  --secondary-color: #ffd35c;
  --bg-primary: #000000;
  --text-color: #ffffff;
  --text-color-two: #222222;
  --bg-secondary: #ffffff;
  --card-background: #111111;
  --bg-secondary-two: #f4f4f4;
  --shadow: 0 2px 10px rgba(95, 95, 95, 0.2);

}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

/* Reset default styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--text-color);
}

/* Main styling */
body {
  background: var(--bg-primary);
  color: var(--text-color);
  font-family: "Raleway", sans-serif;
  line-height: 1.5;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  height: 80px;
  display: flex;
  align-items: center;

  background: var(--bg-primary);
  transition: background 0.3s ease, box-shadow 0.3s ease;

}
.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  height: 80px;
  width: 100%;
}

.navbar .nav-menu {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  gap: 1.5rem;
}

.navbar .nav-link {
  font-size: 0.85rem;
  font-weight: var(--weight-semibold);
  color: var(--text-color);
  position: relative;
  transition: color 0.3s ease;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}
.navbar .nav-link:hover {
  color: var(--primary-color);
}

.navbar .nav-link:hover::after {
  width: 100%;
}

.navbar #logo img {
  display: block;
  width: 40px;
  transition: transform 0.3s ease;
}

.navbar #logo img:hover {
  transform: scale(1.1);
}

.navbar .btn {
  margin-right: 1.5rem;
}

.fas.fa-arrow-right {
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

/* hamburger */
.hamburger {
  margin-bottom: 0.1rem;
  display: none;
}

.bar {
  display: block;
  width: 23px;
  height: 3px;
  margin: 4px auto;
  transition: all 0.3s ease-in-out;
  border-radius: 30px;
  background-color: var(--bg-secondary);
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 90px;
}


/* Hero section */
#hero {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.profile-image {
  width: 200px;
  border-radius: 50%;
  animation: bounce 1s infinite alternate;
}

@keyframes bounce {
  from {
    transform: translateY(0px);
  }

  to {
    transform: translateY(-10px);
  }
}

.division {
  width: 100%;
  height: 2px;
  background-color: var(--card-background);
  margin: 5.5rem 0;
}




/* ===========================
   PREMIUM EDUCATION WITH IMAGE
=========================== */

.education-section {
  padding: 100px 0;
  text-align: center;
}

.education-wrapper {
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.education-card {
  display: flex;
  gap: 30px;
  background: #111;
  border: 1px solid rgba(244, 197, 66, 0.4);
  border-radius: 20px;
  padding: 30px;
  align-items: center;
  position: relative;
  overflow: hidden;

  opacity: 1;
  transform: none;
  transition: all 0.6s ease;
}

.education-card.active {
  opacity: 1;
  transform: translateY(0);
}

.education-card:hover {
  box-shadow: 0 20px 40px rgba(244, 197, 66, 0.3);
  transform: translateY(-6px);
}

/* Gold accent line */
.education-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 6px;
  background: #f4c542;
}

/* Image styling */
.education-image img {
  width: 180px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  transition: 0.4s ease;
}

.education-card:hover .education-image img {
  transform: scale(1.05);
}

/* Text content */
.education-content {
  text-align: left;
  flex: 1;
}

.education-content h3 {
  color: #f4c542;
  margin-bottom: 8px;
}

.institution {
  color: #bbb;
  font-size: 15px;
  margin-bottom: 15px;
}

.education-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.education-meta span {
  color: #aaa;
  font-size: 14px;
}

.education-meta strong {
  color: #f4c542;
  font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .education-card {
    flex-direction: column;
    text-align: center;
  }

  .education-image img {
    width: 100%;
    height: 200px;
  }

  .education-meta {
    flex-direction: column;
    gap: 8px;
  }
}





/* ==========================
   TECHNICAL SKILLS (PREMIUM THEME SWITCH)
========================== */

.skills-section {
  padding: 80px 0;
  text-align: center;
}

.skills-wrapper {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skills-category {
  margin-bottom: 50px;
  max-width: 800px;
  width: 100%;
}

.skills-category h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
  font-weight: 600;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

/* ==========================
   SKILL BUTTONS (THEME BASED)
========================== */

.skill-tags span {
  padding: 10px 22px;
  border-radius: 30px;

  border: 1.5px solid var(--primary-color);
  font-size: 14px;
  font-weight: 500;

  transition: all 0.35s ease;
  cursor: default;
}

/* 🌞 LIGHT MODE (Default) */
:root .skill-tags span {
  background: #000;      /* Black button */
  color: #fff;           /* White text */
}

/* 🌙 DARK MODE */
[data-theme="dark"] .skill-tags span {
  background: #f5f5f5;   /* Light button */
  color: #000;           /* Black text */
}

/* ==========================
   HOVER EFFECT (Both Modes)
========================== */

.skill-tags span:hover {
  background: var(--primary-color);
  color: #000;
  transform: translateY(-5px) scale(1.05);

  box-shadow:
    0 8px 20px rgba(244, 197, 66, 0.35),
    0 0 15px rgba(244, 197, 66, 0.4);
}






/* ===========================
   PROJECTS (FINAL PREMIUM FIX)
=========================== */

#projects {
  display: flex;
  flex-direction: column;
  margin: 2rem auto 5rem;
}

#projects .btn {
  align-self: center;
  margin: 2rem 0;
}

.project {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(250px, auto);
  gap: 1rem;
}

/* ===========================
   PROJECT CARD (IMAGE SAFE)
=========================== */

.card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;

  border: 3px solid rgba(244, 197, 66, 0.45);

  transition: all 0.4s ease;
}

/* DARK OVERLAY FOR TEXT VISIBILITY */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  transition: 0.4s ease;
  z-index: 1;
}

/* Hover Effect */
.card:hover {
  transform: translateY(-10px);

  border-color: var(--primary-color);

  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.25),
    0 0 30px rgba(244, 197, 66, 0.6);
}

.card:hover::before {
  background: rgba(0, 0, 0, 0.35);
}

/* ===========================
   PROJECT TEXT
=========================== */

.project-info {
  position: relative;
  z-index: 2; /* ABOVE OVERLAY */

  display: flex;
  justify-content: space-between;

  opacity: 0;
  transition: 0.5s ease-in-out;
}

.card:hover .project-info {
  opacity: 0;
}

.project-bio {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  top: 160px;
  left: 14px;
}

.card .project-bio h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.card .project-bio p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}
.center-btn {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}









/* ===========================
   INTERNSHIP – PREMIUM TIMELINE
=========================== */

.timeline {
  position: relative;
  max-width: 900px;
  margin: 70px auto;
  padding-left: 40px;

  border-left: 3px solid var(--primary-color);
}

/* Timeline vertical glow */
.timeline::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--primary-color);
  box-shadow: 0 0 15px rgba(244, 197, 66, 0.6);
}

/* ===========================
   TIMELINE ITEM
=========================== */

/* ===========================
   TIMELINE ITEM – FIXED BLACK CARD
=========================== */

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  padding: 25px 30px;
  border-radius: 16px;

  /* 🔥 Fixed Black Background */
  background: black;   /* Premium deep black-blue */
  
  border: 1.5px solid rgba(244, 197, 66, 0.35);

  transition: all 0.4s ease;
}

/* Hover Card Lift */
.timeline-item:hover {
  transform: translateY(-6px);
  border-color: var(--primary-color);

  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.5),
    0 0 25px rgba(244, 197, 66, 0.35);
}


/* ===========================
   TIMELINE DOT
=========================== */

.timeline-dot {
  position: absolute;
  left: -14px;
  top: 30px;
  width: 20px;
  height: 20px;

  background: var(--primary-color);
  border-radius: 50%;

  box-shadow: 0 0 20px rgba(244, 197, 66, 0.8);

  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 10px rgba(244, 197, 66, 0.6);
  }
  50% {
    box-shadow: 0 0 25px rgba(244, 197, 66, 1);
  }
  100% {
    box-shadow: 0 0 10px rgba(244, 197, 66, 0.6);
  }
}

/* ===========================
   TEXT STYLING
=========================== */

.timeline-content h3 {
  color: var(--primary-color);
}

.duration {
  color: #cbd5e1;   /* soft light gray */
}

.description {
  color: #e2e8f0;   /* readable light text */
}


/* =====================*


/* ===========================
   INTERNSHIP SKILL BUTTONS
=========================== */

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
}

.tech-tags span {
  padding: 8px 18px;
  border-radius: 30px;

  background: #ffffff;
  color: #111111;

  border: 1.5px solid var(--primary-color);
  font-size: 13px;
  font-weight: 500;

  transition: all 0.3s ease;
  cursor: default;
}

/* Hover Effect */
.tech-tags span:hover {
  background: var(--primary-color);
  color: #000;

  transform: translateY(-4px);

  box-shadow:
    0 6px 18px rgba(244, 197, 66, 0.35),
    0 0 15px rgba(244, 197, 66, 0.4);
}























/* ===========================
   INDUSTRIAL VISIT (THEME SAFE)
=========================== */

.visit-wrapper {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  flex-wrap: wrap;
}

/* CARD */
.visit-card {
  width: 300px;

  background: black;    /* <-- FIXED */
  border-radius: 16px;
  overflow: hidden;

  border: 2px solid rgba(244, 197, 66, 0.35);
  transition: all 0.4s ease;
}

/* IMAGE */
.visit-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* CONTENT */
.visit-content {
  padding: 18px;
}

/* TITLE */
.visit-content h3 {
  color: var(--primary-color);   /* Yellow in both modes */
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 600;
}

/* DESCRIPTION TEXT */
.visit-content p {
  color: #e2e8f0;  /* <-- Automatically adjusts */
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.9;
}

/* HOVER */
.visit-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);

  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(244, 197, 66, 0.4);
}

.visit-card:hover img {
  transform: scale(1.04);
}






/* ===========================
   PARTICIPATION SECTION
=========================== */

.participation-section {
  padding: 120px 0;
  text-align: center;
}

/* GRID LAYOUT */
.participation-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;

  max-width: 1200px;   /* keeps content centered */
  margin-left: auto;
  margin-right: auto;
}

/* GOLD GLASS CARD */
.participation-card {
  background: rgba(17, 17, 17, 0.95);
  border: 1px solid rgba(244, 197, 66, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 30px;
  text-align: left;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;  /* Equal height cards */
}

/* GOLD SOFT GLOW EFFECT */
.participation-card::before {
  content: "";
  position: absolute;
  width: 160%;
  height: 160%;
  background: radial-gradient(circle, rgba(244, 197, 66, 0.15), transparent 60%);
  top: -60%;
  left: -60%;
  opacity: 0;
  transition: 0.5s ease;
}

.participation-card:hover::before {
  opacity: 1;
}

/* HOVER EFFECT */
.participation-card:hover {
  transform: translateY(-10px);
  border-color: #f4c542;
  box-shadow: 0 15px 35px rgba(244, 197, 66, 0.35);
}

/* TEXT STYLING */
.participation-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #f4c542;
}

.participation-card p {
  font-size: 15px;
  color: #bbb;
  margin-bottom: 15px;
  flex-grow: 1;
}

.participation-card span {
  font-size: 14px;
  font-weight: 600;
  color: #f4c542;
}

/* ===========================
   RESPONSIVE DESIGN
=========================== */

@media (max-width: 1024px) {
  .participation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .participation-grid {
    grid-template-columns: 1fr;
  }
}


















/* ============================= */
/* ROLES SECTION */
/* ============================= */

.roles-section {
  padding: 100px 0;
  text-align: center;
}

.roles-header h2 {
  font-size: 38px;
  font-weight: 700;
}

.section-caption {
  margin-top: 15px;
  font-size: 16px;
  color: #ccc;
  letter-spacing: 1px;
  opacity: 0.9;
}

/* ============================= */
/* WRAPPER */
/* ============================= */

.roles-wrapper {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  margin-top: 60px;
  flex-wrap: wrap;   /* FIXED */
}

/* ============================= */
/* CARD */
/* ============================= */

.role-card {
    position: relative;      /* ADD THIS */
  overflow: hidden;        /* ADD THIS */

  width: 260px;
  padding: 30px 25px;
  border-radius: 30px;
  background-color: #111;
  color: #fff;
  border: 1px solid rgba(244,197,66,0.4);
  transition: 0.4s ease;
}


/* Floating animation WITHOUT breaking hover */
.role-card {
  animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* Gold glow effect */
.role-card::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(244,197,66,0.15), transparent 60%);
  top: -50%;
  left: -50%;
  opacity: 0;
  transition: 0.6s;
}

.role-card:hover::before {
  opacity: 1;
}

/* TEXT */
.role-card h3 {
  color: #f4c542;
  font-size: 20px;
  margin-bottom: 20px;
}

.role-card p {
  color: #ccc;
  font-size: 15px;
  line-height: 1.6;
}

/* Hover */
.role-card:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.6),
    0 0 30px rgba(244,197,66,0.5);
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 992px) {
  .roles-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .role-card {
    width: 85%;
  }
}



















/* ===========================
   CERTIFICATIONS – FLIP STYLE
=========================== */

/* =====================================
   CERTIFICATION AUTO SCROLL FLIP
===================================== */

.cert-section {
  padding: 100px 0;
  overflow: hidden;
}

/* SLIDER WRAPPER */
.cert-slider {
  overflow: hidden;
  width: 100%;
  margin-top: 60px;
}

/* MOVING TRACK */
.cert-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: certScroll 45s linear infinite;
}

/* RIGHT → LEFT SCROLL */
@keyframes certScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause when hovering */
.cert-slider:hover .cert-track {
  animation-play-state: paused;
}

/* =========================
   FLIP CARD STYLE
========================= */

.cert-card {
  width: 280px;
  height: 200px;
  perspective: 1000px;
  flex-shrink: 0;
}

.cert-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.cert-card:hover .cert-inner {
  transform: rotateY(180deg);
}

.cert-front,
.cert-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;

  border: 1.5px solid var(--primary-color);
  background: #000;
}

/* FRONT */
.cert-front h3 {
  color: var(--primary-color);
  font-size: 18px;
  text-align: center;
}

.cert-front p {
  color: #ccc;
  margin-top: 6px;
}

/* BACK */
.cert-back {
  transform: rotateY(180deg);
  background: #111;
  color: #fff;
  text-align: center;
}

.cert-back p {
  font-size: 14px;
  margin-bottom: 10px;
}

.cert-btn {
  padding: 6px 16px;
  border-radius: 20px;
  background: var(--primary-color);
  color: #000;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: 0.3s ease;
}

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






/* Footer */
#footer {
  background: #111111;
}

#footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  min-height: 160px;
  text-align: center;
}

#footer a {
  font-size: 0.8rem;
  color: #fff;
}

#footer a:hover {
  opacity: 0.6;
}

#footer .social {
  margin: 0.9rem 0;
}

#footer .social img {
  width: 20px;
  height: 20px;
}

#footer .social a {
  margin: 0 0.5rem;
}

#footer p {
  font-size: 0.8rem;
}




























/* Responsiveness */

@media (max-width: 1000px) {
  .project {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
}

@media (max-width: 670px) {
  .navbar .nav-menu {
    position: fixed;
    right: -100vw;
    top: 4.5rem;
    flex-direction: column;
    width: calc(80% - 10px);
    transition: 0.3s;
    box-shadow: var(--shadow);
    padding: 2rem;
    border-radius: 5px;
    align-items: flex-start;
  }

  .navbar .btn {
    margin: 0;
    margin-top: 1rem;
  }

  .nav-menu.active {
    right: 20px;
  }

  .nav-menu .nav-link {
    font-size: 0.9rem;
    margin: 0 0.2rem;
  }

  .nav-menu li {
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .nav-menu .btn {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
  }

  .hamburger.active {
    border: 1px dotted gray;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 600px) {
  .project {
    display: grid;
    grid-template-columns: 1fr;
  }

  .header-container .btn {
    border-radius: 5px;
    width: 80%;
  }
}

#particles-bg {
  position: fixed;
  inset: 0;
  z-index: -2;   /* Behind everything */
  pointer-events: none;
}






















