/* ======================
   RESET & GLOBAL 
======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Fira Code', monospace;
  font-size: 16px;
  color: #333;
  background-color: #f4f4f4;
  overflow-x: hidden;
}

/* Anchor & Button Styling */
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}
a:hover {
  color: #FFD700; /* Gold color */
}
button {
  cursor: pointer;
  outline: none;
  border: none;
}

/* ======================
 LOADER
======================= */
#page-loader {
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  width: 100%;
  height: 100vh;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}
.loader {
  border: 16px solid #f4f4f4;
  border-top: 16px solid #FFD700;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ======================
 HEADER
======================= */
header {
  background-color: #333;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #FFD700;
}
/* Navigation - Desktop */
nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}
nav ul li a {
  color: #fff;
  padding: 8px 12px;
  border-radius: 5px;
  background: rgba(255, 217, 0, 0.15);
  transition: background 0.3s;
}
nav ul li a:hover {
  background: rgba(255, 217, 0, 0.3);
}
/* Hamburger Menu (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: #FFD700;
  border-radius: 3px;
}

/* ======================
 MOBILE NAV
======================= */
@media screen and (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 70px;
    right: 0;
    background-color: #333;
    flex-direction: column;
    width: 200px;
    transition: transform 0.3s ease;
    transform: translateX(100%);
    padding: 20px;
    z-index: 999;
  }
  nav ul.open {
    transform: translateX(0);
  }
  .hamburger {
    display: flex;
  }
}

/* ======================
 THEME TOGGLE BUTTON
======================= */
#themeToggle {
  color: #FFD700;
  font-size: 1rem;
  background: none;
  border: 2px solid #FFD700;
  border-radius: 5px;
  padding: 5px 10px;
  margin-left: 20px;
  transition: background 0.3s;
}
#themeToggle:hover {
  background: rgba(255, 215, 0, 0.2);
}

/* ======================
 SCROLL PROGRESS BAR
 (Advanced Feature)
======================= */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: #FFD700;
  z-index: 1100;
}

/* ======================
 DARK THEME
======================= */
body.dark-theme {
  background: #121212;
  color: #f4f4f4;
}
body.dark-theme header {
  background: #1b1b1b;
}
body.dark-theme nav ul li a {
  color: #f4f4f4;
}
body.dark-theme .logo {
  color: #FFD700;
}

/* ======================
 HERO / PARALLAX
======================= */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  /* ===== Replace with your own parallax image if needed ===== */
  background: url('parallax.jpg') center center / cover no-repeat fixed;
  z-index: -2;
}
#particles-js {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.hero-content {
  max-width: 800px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}
.call-to-action {
  background: #FFD700;
  color: #333;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}
.call-to-action:hover {
  background: #ffb300;
}

/* ======================
 MAIN
======================= */
main {
  position: relative;
  z-index: 1;
  background-color: inherit;
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}

/* ======================
 FILTERABLE PROJECTS
======================= */
.projects-section {
margin-top: 50px;
text-align: center;
}
.filter-controls {
margin-bottom: 30px;
}
.filter-btn {
background: #333;
color: #fff;
padding: 8px 16px;
margin: 0 5px;
border-radius: 5px;
transition: background 0.3s;
}
.filter-btn:hover {
background: #FFD700;
color: #333;
}
.grid {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: center;
}

/* ======================
 OPTIONAL: 3D HOVER 
=========================*/

 .project-card {
   transform-style: preserve-3d;
   perspective: 1000px;
 }
 .project-card:hover {
   transform: rotateX(6deg) rotateY(-6deg) translateY(-5px);
   box-shadow: 0 15px 30px rgba(0,0,0,0.2);
 }

.project-card {
background: #fff;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
transition: transform 0.3s, box-shadow 0.3s;
overflow: hidden;
width: 300px; /* fixed width to neatly align in flex layout */
display: flex;
flex-direction: column;
}
.project-card img {
width: 100%;
height: 180px;
object-fit: cover;
}
.project-content {
padding: 20px;
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.project-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.project-card h3 {
margin-bottom: 10px;
font-size: 1.2rem;
color: #333;
}
.project-card p {
flex: 1;
font-size: 0.9rem;
margin-bottom: 10px;
color: #555;
}
.project-link {
align-self: flex-start;
background: #FFD700;
color: #333;
padding: 10px 20px;
border-radius: 5px;
text-decoration: none;
transition: background 0.3s;
font-weight: 500;
}
.project-link:hover {
background: #ffb300;
}
/* Dark theme for project cards */
body.dark-theme .project-card {
background: #1e1e1e;
color: #f4f4f4;
}
body.dark-theme .project-card h3 {
color: #FFD700;
}
body.dark-theme .project-card p {
color: #ccc;
}

/* =========================
 TIMELINE SECTIONS
========================== */
.timeline-section {
margin-top: 80px;
text-align: center;
}
.timeline-container {
margin-top: 40px;
position: relative;
}
.timeline-entry {
position: relative;
margin: 20px 0;
width: 100%;
}
.timeline-date {
font-weight: bold;
margin-bottom: 10px;
}
.timeline-card {
background: #fff;
margin: 0 auto;
max-width: 600px;
padding: 20px;
border-radius: 8px;
text-align: left;
box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.timeline-card h3 {
margin-bottom: 10px;
color: #333;
}
.timeline-card p {
color: #555;
margin-bottom: 10px;
}
body.dark-theme .timeline-card {
background: #1e1e1e;
color: #f4f4f4;
}
body.dark-theme .timeline-card h3 {
color: #FFD700;
}
body.dark-theme .timeline-card p {
color: #ccc;
}
.download-cv-container {
margin: 20px;
}
.download-cv-btn {
display: inline-block;
background: #FFD700;
color: #333;
padding: 12px 24px;
border-radius: 5px;
text-decoration: none;
font-weight: 500;
transition: background 0.3s;
}
.download-cv-btn:hover {
background: #ffb300;
}

/* =========================
 SKILLS SECTION
========================== */
.skills-section {
margin-top: 80px;
text-align: center;
}
.skills-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 30px;
margin-top: 30px;
max-width: 900px;
margin-left: auto;
margin-right: auto;
}
.skill-bar {
width: 250px;
text-align: left;
}
.skill-bar .skill-title {
margin-bottom: 5px;
font-weight: 600;
}
.progress-bar {
background: #ddd;
border-radius: 20px;
height: 20px;
overflow: hidden;
position: relative;
}
.progress-fill {
background: #FFD700;
width: 0%; /* start at 0, animate with JS */
height: 100%;
border-radius: 20px;
transition: width 1s ease;
}

/* ======================
 CONTACT SECTION
======================= */

/* Contact section + social links */
.contact-section {
margin-top: 80px;
text-align: center;
}
.contact-section h2 {
margin-bottom: 20px;
font-size: 2rem;
}
.social-links-container {
max-width: 600px;
margin: 0 auto;
}
.social-links {
display: flex;
justify-content: center;
gap: 30px;
margin-top: 20px;
}
.social-links a {
font-size: 2rem;        
color: #333;            
transition: color 0.3s;
}
.social-links a:hover {
color: #FFD700;
}
body.dark-theme .social-links a {
color: #f4f4f4;
}

/* Contact form */
.contact-section form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.contact-section form label {
  display: block;
  margin-bottom: 6px;
  color: #333;
  font-weight: 600;
}

.contact-section form input,
.contact-section form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

.contact-section form input:focus,
.contact-section form textarea:focus {
  outline: none;
  border-color: #FFD700;
}

.contact-section form button {
  background: #FFD700;
  color: #333;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: 500;
  transition: background 0.3s;
}

.contact-section form button:hover {
  background: #ffb300;
}
 /* Dark mode for contact form fields */
body.dark-theme .contact-section form input,
body.dark-theme .contact-section form textarea {
  color: #f4f4f4; /* White text color */
  background-color: #1e1e1e; /* Dark background for fields */
  border: 1px solid #333; /* Border to match the dark mode */
}

body.dark-theme .contact-section form input::placeholder,
body.dark-theme .contact-section form textarea::placeholder {
  color: #ffffff; /* Placeholder color for better readability in dark mode */
}

body.dark-theme .contact-section form input:focus,
body.dark-theme .contact-section form textarea:focus {
  border-color: #FFD700; /* Highlight border color on focus */
  background-color: #ffffff; /* Slightly lighter background on focus */
}

/* Toast / Notification Styling */
.notification {
  position: fixed;        /* float above main content */
  bottom: 30px;
  right: 30px;
  background: #333;       /* dark background to match header style */
  color: #f4f4f4;         /* light text for contrast */
  padding: 15px 20px;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  display: none;          /* hidden by default */
  opacity: 0;             /* start invisible */
  transition: opacity 0.4s ease;
  z-index: 9999;          /* ensure it floats over everything else */
}
.notification.show {
  display: block;         /* show block to let it take up space */
  opacity: 1;             /* fade in */
}
.notification.success {
  background: #4caf50;    /* green background for success */
  color: #fff;
}
.notification.error {
  background: #f44336;    /* red background for error */
  color: #fff;
}


/* ======================
 FOOTER
======================= */
footer {
padding: 20px;
background: #333;
color: #fff;
text-align: center;
}




/* ======================
 BACK TO TOP BUTTON
======================= */
#backToTop {
position: fixed;
bottom: 30px;
right: 30px;
background: #FFD700;
color: #333;
padding: 12px 15px;
border-radius: 50%;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
display: none;
cursor: pointer;
transition: background 0.3s;
z-index: 999;
}
#backToTop:hover {
background: #ffb300;
}

/* ======================
 FADE-IN ON SCROLL
======================= */
.fade-in-on-scroll {
opacity: 0;
transform: translateY(20px);
transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-on-scroll.visible {
opacity: 1;
transform: translateY(0);
}

/* ======================
 ACTIVE NAV HIGHLIGHT
======================= */
.active-nav {
background: #FFD700 !important;
color: #333 !important;
}

/*===============================
 OPTIONAL LIGHTBOX MODAL STYLES:
=====================================*/

 #imageModal {
   position: fixed;
   top: 0; left: 0;
   width: 100%; height: 100vh;
   background: rgba(0, 0, 0, 0.8);
   display: none;
   align-items: center;
   justify-content: center;
   z-index: 9999;
 }
 #imageModal img {
   max-width: 80%;
   max-height: 80%;
   border: 2px solid #FFD700;
   border-radius: 8px;
 }
 #imageModal.close-btn {
   position: absolute;
   top: 20px;
   right: 20px;
   color: #fff;
   font-size: 2rem;
   cursor: pointer;
 }


