/* 
=======================================
TABLE OF CONTENTS:
---------------------------------------
1. GENERAL STYLES
2. VARIABLES
3. TYPOGRAPHY
4. LAYOUT
5. NAVIGATION
6. HERO SECTION
7. ABOUT SECTION
8. SKILLS SECTION
9. EXPERIENCE SECTION
10. PROJECTS SECTION 
11. TESTIMONIALS SECTION
12. CONTACT SECTION
13. FOOTER
14. UTILITIES
15. ANIMATIONS
16. DARK MODE
17. RESPONSIVE DESIGN
=======================================
*/

/* ===== 1. GENERAL STYLES ===== */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap");

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: background-color 0.3s, color 0.3s;
  overflow-x: hidden;
}

/* ===== 2. VARIABLES ===== */
:root {
  /* Light Theme Colors */
  --primary-color: #4361ee;
  --primary-color-light: #4895ef;
  --primary-color-dark: #3a0ca3;
  --secondary-color: #f72585;
  --accent-color: #4cc9f0;
  --bg-color: #ffffff;
  --bg-color-alt: #f8f9fa;
  --text-color: #222831;
  --text-color-light: #495057;
  --border-color: #e9ecef;
  --card-bg: #ffffff;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  
  /* Sizes */
  --header-height: 5rem;
  --container-width: 1200px;
  --container-padding: 2rem;
  --section-spacing: 6rem;
}

/* Dark Theme Colors - Will be applied via JavaScript */
body.dark-theme {
  --primary-color: #4cc9f0;
  --primary-color-light: #64dfdf;
  --primary-color-dark: #3a86ff;
  --secondary-color: #fb5607;
  --accent-color: #f72585;
  --bg-color: #121212;
  --bg-color-alt: #1e1e1e;
  --text-color: #f8f9fa;
  --text-color-light: #dee2e6;
  --border-color: #2d2d2d;
  --card-bg: #1e1e1e;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ===== 3. TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-color);
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.3rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-color-light);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-color-dark);
}

span {
  display: inline-block;
}

/* ===== 4. LAYOUT ===== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

section {
  padding: var(--section-spacing) 0;
}

/* Section headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-header h2 span {
  color: var(--primary-color);
}

.section-header-line {
  height: 3px;
  width: 70px;
  background: var(--primary-color);
  margin: 0 auto;
  position: relative;
}

.section-header-line::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -6px;
  width: 15px;
  height: 15px;
  background: var(--primary-color);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 3px;
}

/* ===== 5. NAVIGATION ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-top: 50px;
}

header.scrolled {
  --header-height: 4rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  padding: 0 2rem;
  max-width: var(--container-width);
  margin: 0 auto;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  font-family: "Montserrat", sans-serif;
}

.logo span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin-left: 30rem
}

.nav-link {
  font-weight: 500;
  color: var(--text-color);
  position: relative;
  padding: 0.5rem 0;
}

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

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

/* Theme Toggle */
.theme-toggle {
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-color);
  transition: transform 0.3s ease;
  margin-right: -120px;
}

.theme-toggle:hover {
  transform: rotate(20deg);
}

/* Mobile Navigation */
#mobile-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
}

.hamburger-icon {
  width: 30px;
  height: 24px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger-icon.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger-icon.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.menu-links {
  position: fixed;
  top: 0;
  right: -100%;
  width: 250px;
  height: 100vh;
  background-color: var(--bg-color);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: right 0.3s ease;
  list-style-type: none;
}

.menu-links.active {
  right: 0;
}

.menu-links li {
  margin: 1.5rem 0;
}

.menu-links a {
  color: var(--text-color);
  font-size: 1.2rem;
  font-weight: 500;
}

.theme-toggle-mobile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--text-color);
}

/* ===== 6. HERO SECTION ===== */
#home {
  height: 100vh;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-height);
  position: relative;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-text {
  margin-bottom: 2rem;
}

.intro-text {
  font-size: 1.2rem;
  color: var(--text-color-light);
  margin-bottom: 0.5rem;
}

.title {
  margin-bottom: 1rem;
}

.title span {
  color: var(--primary-color);
}

.dynamic-text {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

#typed-text {
  color: var(--secondary-color);
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.socials {
  display: flex;
  gap: 1rem;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-color-alt);
  color: var(--text-color);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.socials a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-img-container {
  position: relative;
  width: 500px;
  height: 500px;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  box-shadow: var(--card-shadow);
  border: 5px solid var(--primary-color-light);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color-light);
}

.scroll-indicator p {
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--text-color-light);
  border-radius: 20px;
  position: relative;
}

.mouse::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--primary-color);
  border-radius: 50%;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  animation: scrollDown 2s infinite;
}

/* ===== 7. ABOUT SECTION ===== */
#about {
  background-color: var(--bg-color-alt);
}

.about-container {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.about-image {
  flex: 1;
  max-width: 400px;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
}

.about-content {
  flex: 1;
}

.about-content h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.about-details {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.about-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about-item i {
  font-size: 2rem;
  color: var(--primary-color);
}

/* ===== 8. SKILLS SECTION ===== */
.skills-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 2rem;
  align-items:center;
}

.skills-category h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.skills-category h3 i {
  color: var(--primary-color);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5rem;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-5px);
}

.skill-circle {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 0.75rem;
}

.skill-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.skill-circle-bg {
  fill: none;
  stroke: rgba(var(--primary-rgb), 0.1);
  stroke-width: 8;
}

.skill-circle-progress {
  fill: none;
  stroke: var(--primary-color);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 1.5s ease-in-out;
}

.skill-percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text-color);
}

.skill-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
  text-align: center;
}

/* Dark theme adjustments */
.dark-theme .skill-circle-bg {
  stroke: rgba(255, 255, 255, 0.1);
}

/* Animation for circles when in viewport */
.skill-item.visible .skill-circle-progress {
  stroke-dashoffset: calc(283 - (283 * attr(data-percent number)) / 100);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .skill-circle {
    width: 100px;
    height: 100px;
  }
  
  .skill-percentage {
    font-size: 1rem;
  }
}

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

/* ===== 9. EXPERIENCE SECTION ===== */
#experience {
  background-color: var(--bg-color-alt);
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 0 var(--container-padding);
}

.timeline::before {
  content: '';
  position: absolute;
  height: 100%;
  width: 2px;
  background-color: var(--primary-color);
  left: 50px;
  top: 0;
}

.timeline-item {
  position: relative;
  padding-left: 100px;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: var(--primary-color);
  border-radius: 50%;
  left: 11.1px;
  top: 33px;
  z-index: 2;
}

.timeline-dot::before {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  left: -7.2px;
  top: -7px;
  animation: pulseDot 2s infinite;
}

.timeline-date {
  position: absolute;
  left: -95px;
  top: 28px;
  width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-color-light);
  font-size: 0.9rem;
}

.timeline-date i {
  color: var(--primary-color);
  margin-bottom: 0.3rem;
}

.timeline-content {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
}

.timeline-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  color: var(--text-color-light);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.timeline-tags span {
  background-color: var(--bg-color-alt);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ===== 10. PROJECTS SECTION ===== */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.project-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-links {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-links {
  opacity: 1;
}

.project-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--bg-color);
  color: var(--primary-color);
  border-radius: 50%;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.project-links a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.project-info {
  padding: 1.5rem;
  /*text-align: justify;*/
}

.project-info h3 {
  margin-bottom: 0.8rem;
  color: var(--text-color);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.project-tech span {
  background-color: var(--bg-color-alt);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.view-more {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/* ===== 11. TESTIMONIALS SECTION ===== */
#testimonials {
  background-color: var(--bg-color-alt);
}

.testimonials-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  overflow: hidden;
}

.testimonial-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  position: relative;
  margin-bottom: 1rem;
}

.testimonial-quote {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--primary-color);
  opacity: 0.2;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

.testimonial-author h4 {
  margin-bottom: 0.2rem;
}

.testimonial-author p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.testimonial-nav {
  background-color: var(--card-bg);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  cursor: pointer;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.testimonial-nav:hover {
  background-color: var(--primary-color);
  color: white;
}

.testimonial-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: var(--primary-color);
  width: 25px;
  border-radius: 10px;
}

/* ===== 12. CONTACT SECTION ===== */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.contact-methods {
  margin-top: 2rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-method i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.contact-method h4 {
  margin-bottom: 0.3rem;
}

.contact-method p {
  margin-bottom: 0;
}

.contact-form-container {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "Poppins", sans-serif;
  resize: none;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* ===== 13. FOOTER ===== */
footer {
  background-color: var(--bg-color-alt);
  padding: 1rem 0;
  margin-top: 1.5rem;
}

.footer-content {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0;
}

.footer-logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
  font-family: "Montserrat", sans-serif;
}

.footer-logo span {
  color: var(--primary-color);
}

.footer-links {
  display: flex;
  gap: 1.2rem;
}

.footer-links a {
  color: var(--text-color-light);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 0.8rem;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-color-light);
  font-size: 0.9rem;
  margin: 0;
}

/* ===== 14. UTILITIES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-color-dark);
  color: white;
  transform: translateY(-3px);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: #e5196c;
  color: white;
  transform: translateY(-3px);
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.scroll-top a:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-3px);
}
/* ===== 15. ANIMATIONS ===== */
@keyframes scrollDown {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  75% {
    opacity: 0.5;
    transform: translateX(-50%) translateY(15px);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
}

@keyframes progressAnimation {
  0% {
    width: 0;
  }
  100% {
    width: var(--percentage);
  }
}

@keyframes pulseDot {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

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

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}

/* ===== 16. DARK MODE ===== */
.dark-mode-transition {
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.theme-toggle i {
  transition: transform 0.5s ease;
}

.dark-mode .theme-toggle .fa-sun {
  display: block;
}

.dark-mode .theme-toggle .fa-moon {
  display: none;
}

.light-mode .theme-toggle .fa-sun {
  display: none;
}

.light-mode .theme-toggle .fa-moon {
  display: block;
}

/* ===== 17. RESPONSIVE DESIGN ===== */
/* Tablets */
@media (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  /* Navigation */
  #desktop-nav {
    display: none;
  }
  
  #mobile-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--container-padding);
  }
  
  /* Hero Section */
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-description {
    margin: 0 auto 2rem;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .socials {
    justify-content: center;
  }
  
  /* About Section */
  .about-container {
    flex-direction: column;
    gap: 3rem;
  }
  
  .about-image {
    max-width: 100%;
  }
  
  .about-details {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  /* Contact Section */
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .scroll-indicator{
    display: none !important;
  }
  .logo {
    flex: 0 1 auto;
  }
  
  .hamburger-menu {
    flex: 0 1 auto;
  }
   /* Fix for timeline alignment */
   .timeline::before {
    left: 30px; /* Adjusted from 40px */
  }
    
  .timeline-item {
    padding-left: 60px; /* Adjusted from 80px */
  }
    
  .timeline-dot {
    left:-1px;; /* Adjusted from 33px */
    top: 33px;
  }
  
  .timeline-dot::before {
    left: -7px;
    top: -7px;
  }
    
  .timeline-date {
    position: relative; /* Changed from absolute */
    left: 0;
    top: 0;
    width: 100%; /* Take full width */
    margin-bottom: 10px;
    text-align: left;
    padding-left: 0;
    flex-direction: row; /* Changed from column */
    gap: 8px; /* Add space between icon and text */
    align-items: center;
    font-weight: 500;
  }
  
  .timeline-date i {
    margin-bottom: 0; /* Remove bottom margin */
  }
  
  .timeline-content {
    margin-top: 10px;
  }
    
  .scroll-top {
    bottom: 1.5rem;
    right: 1.5rem;
  }
    
  .scroll-top a {
    width: 40px;
    height: 40px;
  }

}

/* Mobile Phones */
@media (max-width: 768px) {
  :root {
    --section-spacing: 4rem;
    --container-padding: 1.5rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  /* Layout */
  .section-header {
    margin-bottom: 2rem;
  }
  
  /* Hero Section */
  #home {
    min-height: 600px;
  }
  
  .profile-img-container {
    width: 280px;
    height: 280px;
  }
  
  .dynamic-text {
    font-size: 1.3rem;
  }
  
  /* Projects Section */
  .projects-container {
    grid-template-columns: 1fr;
  }
  
  /* Footer */
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.3rem;
  }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
  h1 {
    font-size: 2.2rem;
  }
  
  .btn {
    padding: 0.7rem 1.2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }
  
  .profile-img-container {
    width: 250px;
    height: 250px;
  }
  
  .timeline-item {
    padding-left: 80px;
  }
  
  .timeline::before {
    left: 40px;
  }
  
  .timeline-dot {
    left: 9px;
  }
  
  .timeline-date {
    width: 75px;
    font-size: 0.8rem;
  }
  
  .scroll-top {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  
  .scroll-top a {
    width: 40px;
    height: 40px;
  }
}

/* Temp Css*/
.dev-banner {
  background: #ffcc00;
  color: black;
  text-align: center;
  padding: 10px;
  font-weight: bold;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}
