:root {
  --font-body: 'Lato', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --color-bg: #faf9f5;
  --color-bg-alt: #f3f2ed;
  --color-text: #1a1a1a;
   --color-accent: #c19a4a;   
  --color-accent-light: #e6d7a3;
  --max-width: 1200px;

  /* legacy vars kept for compatibility */
  --bg: #faf9f5;
  --text: #333333;
  --accent: #bfa76f;
}

:root[data-theme="dark"] {
   --color-bg: #121212;        
  --color-bg-alt: #1e1e1e;  
  --color-text: #f1f1f1;      
  --color-accent: #d4af37;    
  --color-accent-light: #f1d97a;

  /* legacy vars mirrored */
  --bg: #1e1e1e;
  --text: #e0e0e0;
  --accent: #d4af37;
}

body { font-family: var(--font-body); background-color: var(--color-bg); color: var(--color-text); line-height: 1.6; max-width: var(--max-width); margin: 0 auto; }


#particles-js {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6; /* keep it subtle */
}



/* ===== Hero Section ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;       
  padding: 2rem;
  animation: gradientMove 12s ease infinite;
  background: linear-gradient(270deg, #fdfcfb, #e2d9c7, #d1c4a5);
}
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-left, .hero-right {
  flex: 1;
  text-align: justify;
}

.hero-wrapper {
  display: flex;
  align-items: center;      
  justify-content: space-between; 
  gap: 3rem;
  width: 100%;
  max-width: 1200px;        
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 3rem 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}




.hero-right h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #222;
}

.hero-right h2:first-of-type  {
  font-size: 1.6rem;
  font-weight: 500;
  color: #555;
  margin-bottom: 0.1rem;
}

.hero-right h2:last-of-type {
  border-right: 2px solid var(--color-accent);
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  animation: blink 0.75s step-end infinite;
  max-width: 100%;       
}

.hero-right p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid transparent;
  background: linear-gradient(45deg, #ffb347, #ffcc33, #ffb347);
  animation: glowMove 4s infinite alternate;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
@keyframes glowMove {
  0% { background-position: left; }
  100% { background-position: right; }
}


.hero-img:hover {
  transform: scale(1.05) rotate(2deg);
}

.hero-right .highlight {
  color: var(--color-accent);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  position: center;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Responsive Hero Layout */
@media (max-width: 900px) {
  .hero-wrapper {
    flex-direction: column;   
    text-align: center;
    gap: 2rem;
  }
  .hero-right {
    text-align: center;
  }
  .hero-right h1 {
    font-size: 2rem;
  }
  .hero-right h2 {
    font-size: 1.2rem;
  }
}

/* -----------Buttons------------------ */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  transition: transform 0.3s ease, background 0.3s ease;
  text-decoration: none;
  text-align: center;
}
.btn.primary {
  background: var(--color-accent);
  color: #fff;
}
.btn.secondary {
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}
.btn:hover {
  transform: translateY(-3px);
}

/* Social Links */
.social-links a:hover {
  color: var(--color-accent);
  transform: scale(1.2);
}
.social-links a {
   display: inline-block;
  margin-right: 1rem;
  margin-left: 50px;
  font-size: 1.5rem;
  position: center;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}



/* Responsive */
@media (max-width: 768px) {
  .hero-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .hero-right {
    padding-top: 1rem;
  }

  .hero-right h1 {
    font-size: 2rem;
  }

  .hero-right h2 {
    font-size: 1rem;
  }
}

.glass-card {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
}


@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
}

/* --------------------Header & Nav-------------------------- */

/* Keep header layout tidy on small screens */
.site-header { gap: 1rem; }
.nav { display: flex; align-items: center; }


/* Header base
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  z-index: 1000;
  transition: 0.3s ease;
}
/* Sticky Header when scrolled */
/* .site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;        
  max-width: none;       
  padding: 1rem 3rem;   
  backdrop-filter: blur(12px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 1000;
  transform: translateY(-100%);
  transition: transform 0.4s ease-in-out;
} */


/* ✅ Header (merged) */
.site-header {
  position: fixed;                
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  max-width: none;
  margin-top: 80px;
  background: rgba(255, 255, 255, 0.9); /* light translucent */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 1000;
  
  /* animation */
  transform: translateY(-100%);
  transition: transform 0.4s ease-in-out, 
              background 0.3s ease, 
              box-shadow 0.3s ease;
}

/* When scrolling down (JS toggles .visible) */
.site-header.visible {
  transform: translateY(0);
  background: rgba(250, 250, 250, 0.7);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--accent, #bfa76f)
}

/* Desktop nav */
.nav {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav li a {
  text-decoration: none;
  font-weight: 500;
  color: var(--text, #333);
  transition: color 0.3s;
}

.nav li a:hover,
.nav li a.active {
  color: var(--accent, #bfa76f);
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text, #333);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Nav hidden by default on mobile */
#nav-menu {
  display: flex;
}

/* Mobile view */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  #nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    right: 2rem;
    flex-direction: column;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }

  #nav-menu.show {
    display: flex;
  }
}

/* Hamburger animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* nav tidy */
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--color-text);
  padding: 0.5rem;
  transition: color 0.3s, transform 0.2s;
}

.nav a.active {
  color: #bfa76f;
  font-weight: 600;
  border-bottom: 2px solid var(--color-accent);
  transition: border 0.3s ease;
}

.nav a:hover {
  color: var(--color-accent);
  transform: translateY(-2px);
}

/* Mobile nav hidden initially */

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 70px; 
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }

  .nav.show {
    display: flex;
  }

  .nav a {
    font-size: 1rem;
    color: var(--color-text);
  }

  /* Smooth nav hover */
  .nav a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: var(--color-text);
    transition: color 0.3s, transform 0.2s;
  }
  .nav a:hover {
    color: var(--color-accent);
    transform: translateY(-2px);
  }
}

/*----------------about-------------------*/

.about {
  padding: 5rem 2rem;
  background: var(--color-bg-alt);
  min-height: 100vh;      
  display: flex;
  align-items: center;    
  justify-content: center; 
  scroll-margin-top: 50px; 
}
.about {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}


.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-header p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2rem;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
  justify-content: center;
}

.about-img img {
  width: 350px;
  height: 400px;
  border-radius: 12px; 
  object-fit: cover;
  border: 4px solid var(--color-accent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}


.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap; 
}


.about-right {
  flex: 2;
  max-width: 600px;
}

.about-right h2 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
}

.about-right p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.about-right p:last-of-type {
  margin-bottom: 2rem;
  color: #555;
}

.about-details {
  display: grid;
  color: #333333;;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  font-size: 0.95rem;
}

.about-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

.btn {
  color: var(--color-accent);
  background: transparent;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: 2px solid var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn:hover {
  background: rgb(168, 124, 13);
  box-shadow:  0 0 12px var(--color-accent);
  color: white;
}

.about .section-header {
  margin-top: -50px; 
}

@media screen and (max-width: 768px) {
  .about .section-header {
    margin-top: -10px;
  }
}



/* --------------Skills Section------------------------ */


.skill h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--color-accent);
}

/* Grid for Skill Categories */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.skill span i {
  margin-right: 8px;
  font-size: 1rem;
  vertical-align: middle;
}
.skills {
  background: linear-gradient(135deg, #0f0f0f, #1c1c1c);
  color: #fff;
}


/* Individual Skill Card */
.skill-card {
  background: var(--color-bg);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.skill-card h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent);
}

/* Each skill item */
.skill {
  margin-bottom: 1rem;
}

.skill span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
}

/* Progress Bar */
.skill-bar {
  position: relative;
  background: rgba(0,0,0,0.1);
  border-radius: 8px;
  height: 12px;
  overflow: hidden;
  margin-top: 0.3rem;
  transition: width 2s ease-in-out, opacity 0.6s ease-in;

}

.skill-bar-fill {
  background: linear-gradient(90deg, #ffb347, #ffcc33);
  box-shadow: 0 0 12px var(--color-accent);
  height: 100%;
  width: 0; 
  border-radius: 8px;
  transition: width 2s ease-in-out;
  position: relative;
}

/* Percentage Counter */

.skill-bar .counter {
  position: absolute;
  right: 8px;
  top: -22px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
}

.skill .section-header {
  margin-top: 70px; 
  margin-bottom: 50px;
}

@media screen and (max-width: 768px) {
  .skill .section-header {
    margin-top: 10px;
  }
}


/* -------Projects---------------- */



.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent);
  color: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: white;
  border-radius: 12px;
  height: 300px;
  width: 300px;
  box-shadow: 0 8px 24px rgba(69, 63, 63, 0.08);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  overflow: hidden;
}


.project-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.project-img {
  width: 100%;
  max-width: 180px;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.project-card h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.project-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
}

.project-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: #a06b1f;
}
.projects {
  padding: 4rem 2rem;
  background-color: #fff;
}
.projects-section {
  padding: 4rem 2rem;
  text-align: center;
}

.project-image img {
  width: 100%;
  max-width: 180px;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.project-title {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.project-description {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
}

.project-link,
.open-modal {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.3s ease;
}
.project-link:hover,
.open-modal:hover {
  color: #a06b1f;
}



/* ------------Modal Styling-------------------- */
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  color: var(--text);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  text-align: left;
}

.modal-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background-color: var(--accent, #c2882c);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 30px;
  transition: background 0.3s ease;
}

.modal-btn:hover {
  background-color: #a06b1f;
}

.close-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--accent);
}
.modal-content h2 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.modal-content ul {
  list-style: none;
  padding-left: 0;
}

.modal-content ul li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}



/* Timeline */

.timeline .event {
  margin-bottom: 2rem;
}

.timeline .event h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.timeline .event span {
  font-size: 0.9rem;
  color: #777;
}

.timeline .event ul {
  margin-top: 0.5rem;
  list-style: disc inside;
}

/* ---------------------------experience-------------------------- */

.experience {
  padding: 4rem 2rem;
  background-color: #fdfdfd;
}

.experience-section {
  background: var(--bg);
  padding: 4rem 2rem;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.experience-quote {
  font-style: italic;
  color: #555;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: auto;
  padding: 2rem 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background: var(--accent);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 1rem 2rem;
  position: relative;
  width: 50%;
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 1rem;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  z-index: 1;
}

.timeline-item.left::before {
  right: -8px;
}

.timeline-item.right::before {
  left: -8px;
}

@media screen and (max-width: 768px) {
  .timeline::after {
    left: 8px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 2rem;
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
  }

  .timeline-item::before {
    left: 0;
  }

  .content {
    text-align: left;
  }
}

.content {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.content h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text);
}

.content p {
  margin: 0.5rem 0;
  color: #555;
  font-size: 0.95rem;
}

.content span {
  font-size: 0.85rem;
  color: #999;
}

.back-button {
  margin-top: 3rem;
}

.back-button .btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 30px;
  margin-left:900px; 
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.back-button .btn:hover {
  background: var(--accent);
  color: white;
}



/* ---------------------------Contact Section--------------------------------- */
.contact {
  background: #ffffff;
  padding: 6rem 2rem;
}

.contact-form {
  background: rgba(255,255,255,0.7);
  border-radius: 16px;
  padding: 2rem;
  display: grid;
  gap: 1.5rem;
  max-width: 600px;
  margin: 2rem auto 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


.form-group {
  position: relative;
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #ccc;
  border-radius: 12px;
  background: transparent;
  font-size: 1rem;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
}

/* Floating Labels */
.form-group label {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  background: var(--color-bg);
  padding: 0 0.4rem;
  color: #777;
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.3s ease;
}

.contact-form input:focus + label,
.contact-form textarea:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form textarea:not(:placeholder-shown) + label {
  top: -8px;
  left: 0.8rem;
  font-size: 0.8rem;
  color: var(--color-accent);
}

/* Button Styling */
.contact-form button {
  background-color: var(--color-accent);
  color: white;
  border: none;
  padding: 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 12px;
  transition: background 0.3s ease, transform 0.2s;
}

.contact-form button:hover {
  background-color: #b08e2f;
  transform: translateY(-2px);
}


/* ---------------- Footer ---------------- */
.site-footer {
  background: linear-gradient(135deg, #1a1a1a, #000000);
  color: #fff;
  text-align: center;
  padding: 3rem 1rem 1rem;
  margin-top: 3rem;
  border-top: 2px solid var(--color-accent);
}

.site-footer h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--color-accent);
}

.site-footer p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  color: #bbb;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-socials a {
  font-size: 1.4rem;
  color: var(--color-accent);
  transition: transform 0.3s, color 0.3s;
}

.footer-socials a:hover {
  transform: scale(1.2);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1rem;
  font-size: 0.8rem;
  color: #777;
}




/* -----------Theme Toggle--------------- */
#theme-toggle {
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
  margin-left: 1.5rem;
  animation: pulse 2s infinite;
}

#theme-toggle:hover {
  transform: rotate(20deg) scale(1.1);
  background: var(--color-accent-hover, #444);
}

#theme-toggle:active {
  transform: scale(0.95);
}

@keyframes glow {
  0% { box-shadow: 0 0 5px var(--color-accent), 0 0 10px var(--color-accent); }
  50% { box-shadow: 0 0 15px var(--color-accent), 0 0 25px var(--color-accent); }
  100% { box-shadow: 0 0 5px var(--color-accent), 0 0 10px var(--color-accent); }
}

#theme-toggle {
  animation: glow 2s infinite;
}


/* Typewriter Effect */
.hero-right h2:last-of-type {
  border-right: 2px solid var(--color-accent);
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: var(--color-accent); }
}

/* ------------------------------------- *//
/* Resume Section Container */
.resume-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 4rem 2rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  color: var(--color-text);
  max-width: 1200px;
  margin: 0 auto;
}

/* Columns */
.resume-column {
  flex: 1;
  min-width: 300px;
}

/* Section Titles */
.resume-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.5rem;
}

/* Individual Entries */
.resume-entry {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

/* Icon Styling */
.resume-icon {
  background-color: var(--color-accent);
  color: white;
  border-radius: 50%;
  padding: 0.6rem;
  font-size: 1.2rem;
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Entry Content */
.resume-content h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
}

.resume-sub {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 0.5rem;
}

.resume-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
}

/* Responsive Layout */
@media (max-width: 768px) {
  .resume-section {
    flex-direction: column;
    padding: 2rem 1rem;
  }

  .resume-title {
    text-align: center;
  }

  .resume-entry {
    flex-direction: row;
  }
}

.resume-title{
  margin-top: 50px;
  margin-bottom: 30px;
}
@media screen and (max-width: 768px) {
  .resume-title {
    margin-top: 10px;
  }
}
/* ===== Achievements Section ===== */
.achievements {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #fafafa, #f1f1f1);
  text-align: center;
}

.achievements .section-header h2 {
  font-size: 2.2rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  border-bottom: 3px solid var(--color-accent);
  display: inline-block;
  padding-bottom: 0.3rem;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.achievement-card {
  background: var(--color-bg);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card i {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.achievement-card h3 {
  font-size: 1.3rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.achievement-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

.achievement-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.15);
}

.btn-paper {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #b08e2f;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-paper:hover {
  background: linear-gradient(135deg,#b08e2f,#d4af37);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}




/* Hamburger base */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100; /* above nav */
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animate into X when active */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Show only on mobile */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
}

/* Scroll to Top Button */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 0 15px var(--color-accent), 0 0 30px var(--color-accent);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#scrollTopBtn:hover {
  transform: scale(1.1);
  background: var(--color-accent-hover, #444);
  box-shadow: 0 0 25px var(--color-accent), 0 0 50px var(--color-accent);
}



/* Particle Background */
.particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  overflow: hidden;
  background: var(--color-bg);
  animation-duration: 5s;
}

.particle {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0.7;
  animation: floatParticles linear infinite;
  animation-duration: 5s;
}

@keyframes floatParticles {
  from { transform: translateY(100vh) scale(0.5); opacity: 0; }
  to   { transform: translateY(-10vh) scale(1); opacity: 1; }
}



/* Full-width underline for all section headings */
.section-header h2,
.skills h2,
.projects h2,
.experience h2,
.contact h2,
.resume-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.5rem;
  display: block;       
  width: 100%;        
  text-align: left;   
    
}
html, body, .hero, .about, .skills, .projects, .experience, .contact {
  transition: background 0.5s ease, color 0.5s ease;
}

.hero-img, .btn, .skill-bar-fill, #theme-toggle, #scrollTopBtn {
  transition: background 0.5s ease, color 0.5s ease, box-shadow 0.5s ease;
}

/* ===== Floating Dev Shapes (background) ===== */
.bg-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.shape {
  position: absolute;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(14px, 2.6vw, 28px);
  opacity: 0.15;
  color: var(--color-accent, #bfa76f);
  transform: translate(-50%, -50%);
  animation: drift 22s linear infinite;
}

/* Make sure your main content stays above */
main, header, section, footer {
  position: relative;
  z-index: 2;
}


/* Random positions */
.shape:nth-child(1) { top: 10%; left: 20%; animation-duration: 20s; }
.shape:nth-child(2) { top: 25%; left: 70%; animation-duration: 28s; }
.shape:nth-child(3) { top: 40%; left: 50%; animation-duration: 23s; }
.shape:nth-child(4) { top: 65%; left: 30%; animation-duration: 30s; }
.shape:nth-child(5) { top: 80%; left: 60%; animation-duration: 26s; }
.shape:nth-child(6) { top: 15%; left: 80%; animation-duration: 22s; }
.shape:nth-child(7) { top: 50%; left: 10%; animation-duration: 24s; }
.shape:nth-child(8) { top: 70%; left: 40%; animation-duration: 27s; }
.shape:nth-child(9) { top: 90%; left: 75%; animation-duration: 32s; }
.shape:nth-child(10) { top: 35%; left: 85%; animation-duration: 29s; }



/* gentle float path */
@keyframes drift {
  0%   { transform: translate(-50%, -50%) rotate(0deg); }
  25%  { transform: translate(calc(-50% + 12px), calc(-50% - 8px)) rotate(15deg); }
  50%  { transform: translate(calc(-50% - 10px), calc(-50% + 10px)) rotate(0deg); }
  75%  { transform: translate(calc(-50% + 6px),  calc(-50% + 4px))  rotate(-12deg); }
  100% { transform: translate(-50%, -50%) rotate(0deg); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .shape { animation: none; }
}


