/* Reset & Global Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

:root {
  --bg-color: #fefaf5;
  --second-bg-color: #fffaf0;
  --text-color: #1e1611;

  --main-color: #f59e0b;
  --main-color-rgb: 245, 158, 11;
  
  --accent-color: #fbbf24;
  --hover-color: #d97706;
  --btn-bg: linear-gradient(135deg, var(--main-color), var(--hover-color));
  --btn-text-color: #ffffff;

  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --muted-color: #78716c;
  --border-color: #f3e8d6;
}


html {
  font-size: 60%;
  overflow-x: hidden;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  
}
.fade-in {
  opacity: 0;
  transform: translateY(5%);
  transition: opacity 2s ease, transform 2s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

body[data-theme="dark"] {
  --bg-color: #000000;
  --second-bg-color: #000000;
  --text-color: #fef7ed;

  --main-color: #f59e0b;
  --accent-color: #fbbf24;
  --hover-color: #ea580c;
  --btn-bg: linear-gradient(135deg, var(--main-color), var(--hover-color));
  --btn-text-color: #1c1611;

  --success-color: #34d399;
  --warning-color: #f59e0b;
  --error-color: #f87171;
  --muted-color: #a8a29e;
  --border-color: #44403c;
}


/* Theme Toggle Button */
.mode-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background: var(--main-color);
  color: var(--bg-color);
  border: none;
  border-radius: 50%;
  width: 5rem;
  height: 5rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(var(--main-color-rgb), 0.3);
  animation: zoomInOut 2s infinite ease-in-out;
}

.mode-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(var(--main-color-rgb), 0.4);
}

.mode-btn i {
  font-size: 3.4rem;
}

@keyframes zoomInOut {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}




/* Header */
.header {
  position: fixed;
  width: 100%;
  height: 8%;
  top: 0;
  left: 0;
  padding: 0.5rem 5%;
  background-color: var(--bg-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

#menu-icon {
  font-size: 3.5rem;
  color: var(--main-color);
  display: none;
  cursor: pointer;
}

.logo {
  font-size: 2rem;
  color: var(--text-color);
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.logo img {
  width: 300px;
  height: auto;
  display: block;
  
}

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

span {
  background: linear-gradient(
    270deg,
    var(--main-color),
    var(--accent-color),
    var(--hover-color),
    var(--main-color)
  );
  background-size: 400% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  display: inline-block;
  animation: gradientMove 2s ease-out infinite alternate-reverse;
  transition: text-shadow 0.3s ease;
}

@keyframes gradientMove {
  0% {
    background-position: 50% 70%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.navbar a {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-left: 3rem;
  font-weight: 500;
  transition: 0.3s ease-in-out;
  border-bottom: 3px solid transparent;
}

.navbar a:hover {
  color: var(--main-color);
  border-bottom: 3px solid var(--main-color);
}

.gradient-btn {
  font-size: 1.8rem;
  padding: 1rem 2rem;
  border-radius: 1rem;
  background: var(--btn-bg);
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  color: var(--btn-text-color);
  border: none;
  white-space: nowrap;
}

.gradient-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(var(--main-color-rgb), 0.4);
}

.dropdown {
  position: relative;
  width: 100px;
  user-select: none;
}
.dropdown-btn {
  background: var(--main-color);
  color: var(--btn-text-color);
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6rem;
  font-weight: bold;
  display: flex;
  align-items: center;
}
.dropdown-list {
  position: absolute;
  top: 100%;
  margin-top: 5px;
  left: 0;
  width: 100%;
  background: var(--second-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  display: none;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(var(--main-color-rgb), 0.15);
}
.dropdown-list div {
  padding: 8px 12px;
  cursor: pointer;
  color: var(--text-color);
  border-radius: 6rem;
  display: block;
  align-items: center;
}
.dropdown-list div:hover {
  background: var(--main-color);
  color: var(--btn-text-color);
}
.flag-icon {
  width: 20px;
  height: 14px;
  margin-right: 8px;
  object-fit: cover;
}

/* Sections */
section {
  min-height: 100vh;
  padding: 10rem 5%;
}

/* Home */
.home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
}

.home-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.home-content h1 {
  font-size: 6rem;
  font-weight: 700;
  margin-top: 1.5rem;
  line-height: 1;
}

.home-content h3 {
  margin: 1rem 0;
  font-size: 2rem;
}

.home-content p {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.8;
  color: var(--muted-color);
}

.home-img img {
  width: 32vw;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(var(--main-color-rgb), 0.3);
  transition: 0.4s ease-in-out;
}

.home-img img:hover {
  box-shadow:
    0 0 50px rgba(var(--main-color-rgb), 0.5),
    0 0 100px rgba(var(--main-color-rgb), 0.4),
    0 0 150px rgba(var(--main-color-rgb), 0.3);
    scale: 1.01;
}


/* Social Icons */
.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  padding: 1rem;
  background: transparent;
  border: 2px solid var(--main-color);
  border-radius: 50%;
  color: var(--main-color);
  margin: 3rem 0.5rem;
  transition: 0.3s ease-in-out;
}

.social-icons a:hover {
  color: var(--btn-text-color);
  background-color: var(--main-color);
  transform: scale(1.2) translateY(-5px);
  box-shadow: 0 8px 25px rgba(var(--main-color-rgb), 0.3);
}

/* Buttons */
.btn-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 1rem 3rem;
  background-color: var(--main-color);
  box-shadow: 0 4px 15px rgba(var(--main-color-rgb), 0.3);
  border-radius: 3rem;
  font-size: 1.8rem;
  color: var(--btn-text-color);
  border: 2px solid transparent;
  font-weight: 600;
  transition: 0.3s ease-in-out;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(var(--main-color-rgb), 0.4), 
              0 12px 40px rgba(var(--main-color-rgb), 0.2);
}

.btn-group a:nth-of-type(2) {
  background-color: transparent;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  box-shadow: none;
}

.btn-group a:nth-of-type(2):hover {
  box-shadow: 0 4px 15px rgba(var(--main-color-rgb), 0.3);
  background-color: var(--main-color);
  color: var(--btn-text-color);
}

.project-card a:nth-of-type(2) {
  background-color: transparent;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  box-shadow: none;
}

.project-card a:nth-of-type(2):hover {
  box-shadow: 0 4px 15px rgba(var(--main-color-rgb), 0.3);
  background-color: var(--main-color);
  color: var(--btn-text-color);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
  border-radius: 5px;
}

::-webkit-scrollbar-track {
  background-color: var(--border-color);
}






/* Timeline Section */
.timeline-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 2rem;
  margin-bottom: 5rem;
  position: relative;
}

.timeline-column {
  position: relative;
}

.column-title {
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--main-color);
  text-align: center;
  margin-bottom: 4rem;
  margin-top: 2rem;
}

.column-title i {
  margin-right: 1rem;
  font-size: 2.8rem;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 15rem;
  width: 0.3rem;
  height: calc(100% - 15rem);
  background: linear-gradient(180deg, var(--main-color), var(--accent-color));
  transform: translateX(-50%);
  border-radius: 0.2rem;
  z-index: 1;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(5rem);
  transition: all 0.3s ease;
  z-index: 2;
}

.timeline-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.timeline-node {
  position: absolute;
  left: 50%;
  top: 2rem;
  width: 2rem;
  height: 2rem;
  background: var(--main-color);
  border: 4px solid var(--bg-color);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px rgba(var(--main-color-rgb), 0.3);
  transition: all 0.1s ease;
  z-index: 3;
}

.timeline-item:hover .timeline-node {
  transform: translateX(-50%) scale(1.3);
  box-shadow: 0 0 0 6px rgba(var(--main-color-rgb), 0.4);
}

.timeline-content {
  background: var(--second-bg-color);
  padding: 2rem;
  border-radius: 2rem;
  position: relative;
  transition: all 0.3s ease;
  margin: 0 4rem;
  border: 1px solid var(--border-color);
}

.timeline-item:hover .timeline-content {
  transform: translateY(-1rem);
  box-shadow: 0 10px 30px rgba(var(--main-color-rgb), 0.1);
}

.timeline-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.timeline-subtitle {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--main-color);
  margin-bottom: 1rem;
}

.timeline-date {
  display: inline-block;
  background: linear-gradient(45deg, var(--main-color), var(--accent-color));
  color: var(--btn-text-color);
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.timeline-description {
  color: var(--muted-color);
  line-height: 1.6;
  font-size: 1.4rem;
}

/* Animation delays */
.timeline-item:nth-child(1) { transition-delay: 0.01s; }
.timeline-item:nth-child(2) { transition-delay: 0.02s; }
.timeline-item:nth-child(3) { transition-delay: 0.03s; }
.timeline-item:nth-child(4) { transition-delay: 0.04s; }




/* Skills Container */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  margin-top: 5.5rem;
  text-align: center;
  border-bottom: 3px solid var(--main-color);
  display: inline-block; 
}

/* Skill Box */
.skill-box {
  flex: 1 1 100px;
  background: var(--second-bg-color);
  border-radius: 2rem;
  padding: 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 2%;
}

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

.skill-box h3 {
  font-size: 2.5rem;
  text-align: center;
  color: var(--main-color);
  margin-bottom: 2rem;
}

/* Individual Skill */
.skill {
  margin-bottom: 2rem;
}

.skill span {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.1rem;
}

.skill span i {
  font-size: 1.5rem;
  color: var(--main-color);
  width: 28px;
  text-align: center;
}

/* Progress Bar Container */
.progress-bar {
  background: var(--border-color);
  height: 20px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  transition-delay: 1s;
  transition: all  0.81s ease;
}

/* Progress Fill */
.progress-bar div {
  background: linear-gradient(90deg, 
    var(--main-color) 0%, 
    var(--accent-color) 50%, 
    var(--hover-color) 100%
  );
  height: 100%;
  width: 0%;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  color: var(--btn-text-color);
  font-size: 1.2rem;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  
  /* Smooth fill animation */
  animation: smoothFill 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards,
             shimmer 3s ease-in-out infinite 1.5s;
  
  /* Add a subtle glow effect */
  box-shadow: 0 0 10px rgba(var(--main-color-rgb), 20.3);
}

/* Shimmer effect overlay */
.progress-bar div::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.4) 50%, 
    transparent 100%
  );
  animation: shimmerMove 1s ease-in-out infinite;
}

.progress-bar:hover {
  box-shadow: 0 0 20px rgba(var(--main-color-rgb), 0.7);
  cursor: pointer;
  transition: all  1s ease;
}

/* Smooth filling animation */
@keyframes smoothFill {
  0% {
    width: 0%;
    transform-origin: left;
    transform: scaleX(0);
  }

  100% {
    width: var(--target-width, 100%);
    transform: scaleX(1);
    transform-origin: left;
  }
}

/* Shimmer animation */
@keyframes shimmer {
  0%, 100% {
    background-position: -200% center;
    
  }
  50% {
    background-position: 200% center;
  }
}

/* Shimmer overlay movement */
@keyframes shimmerMove {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Enhanced gradient background */
.progress-bar div {
  background-size: 200% 100%;
  background-image: linear-gradient(90deg, 
    var(--main-color) 0%, 
    var(--accent-color) 25%,
    var(--hover-color) 50%,
    var(--accent-color) 75%,
    var(--main-color) 100%
  );
}

/* Pulse effect on completion */
@keyframes completePulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(var(--main-color-rgb), 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(var(--main-color-rgb), 0.6),
                0 0 30px rgba(var(--main-color-rgb), 0.4);
  }
}

/* Apply pulse effect when progress reaches 100% */
.progress-bar div[style*="--target-width: 100%"],
.progress-bar div[data-progress="100"] {
  animation: smoothFill 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards,
             completePulse 1.5s ease-in-out infinite 2.5s;
}
.progress-bar div[style*="background-color"] {
  background: unset !important;
  background-color: var(--muted-color) !important;
}

/* Pro Skills Grid */
.pro-skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 7%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.8s ease;
}

.pro-skills-grid:hover {
  transform: translateY(-5px);
  transition: 0.8s ease;
  
}

.pro-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
  transition: all 1s;
}

.pro-circle:hover {
  scale: 1.1;
  transition: all 0.5s;
}

.circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: conic-gradient(
    var(--main-color) 0%, 
    var(--border-color) 0%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  animation: growCircle 2.5ms cubic-bezier(0.4, 0, 0.2, 1) forwards,
             circleShimmer 3s ease-in-out infinite 1.5s;
}

.circle::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--second-bg-color);
  z-index: 1;
  transform: scaleX(0);
  transform-origin: left;
  animation: scaleXCircleFill 0s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Shimmer overlay for circle */
.circle::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.5) 50%, 
    transparent 100%
  );
  border-radius: 50%;
  z-index: 3;
  animation: circleShimmerMove 1s linear infinite;
}

.circle i {
  color: var(--main-color);
  font-size: 3.5rem;
  position: relative;
  z-index: 4;
  transform: scale(0);
  animation: iconAppear 0.5s ease-out forwards 100ms;
}

.pro-circle span {
  margin-top: 0.5rem;
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--text-color);
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  animation: textAppear 0.5s ease-out forwards 100ms;
}

/* Circle conic gradient fill animation */
@keyframes growCircle {
  0% {
    background: conic-gradient(
      var(--main-color) 0%, 
      var(--border-color) 0%
    );
  }
  100% {
    background: conic-gradient(
      var(--main-color) calc(var(--percentage, var(--target-percentage, 0)) * 1%),
      var(--border-color) 0%
    );
  }
}

/* ScaleX animation for circle inner fill */
@keyframes scaleXCircleFill {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

/* Icon appear animation */
@keyframes iconAppear {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* Text appear animation */
@keyframes textAppear {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Shimmer movement for circle */
@keyframes circleShimmerMove {
  0% {
    left: 100%;
  }
  100% {
    left: -100%;
  }
}

/* Circle shimmer background effect */
@keyframes circleShimmer {
  0%, 100% {
    filter: brightness(0.95);
  }
  50% {
    filter: brightness(1);
  }
}





/* Services */
.heading {
  text-align: center;
  font-size: 7rem;
  margin: 5rem 0;
}

/* Services */
.services {
  background-color: var(--second-bg-color);
}

.services h2 {
  color: var(--text-color);
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  align-items: center;
  gap: 2.5rem;
}

.service-box {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--main-color), var(--hover-color));
  height: 50rem;
  border-radius: 3rem;
  cursor: pointer;
  border: 5px solid transparent;
  transition: 0.4s ease-in-out;
  box-shadow: 0 10px 30px rgba(var(--main-color-rgb), 0.2);
}

.service-box:hover {
  background: var(--second-bg-color);
  border: 5px solid var(--main-color);
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(var(--main-color-rgb), 0.3);
}

.service-info {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  color: var(--btn-text-color);
  transition: color 0.3s ease;
}

.service-box:hover .service-info {
  color: var(--text-color);
}

.service-info i {
  font-size: 8rem;
  color: var(--btn-text-color);
  margin-bottom: 2rem;
  transition: color 0.3s ease;
}

.service-box:hover .service-info i {
  color: var(--main-color);
}

.service-info h4 {
  font-size: 3rem;
  margin: 2rem 0;
  font-weight: 800;
}

.service-info p {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.7;
}

/* Projects */
.projects {
  background-color: var(--second-bg-color);
}

/* Grid Layout */
.projects-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  place-items: stretch; 
  gap: 3rem;
  row-gap: 5rem;
}


.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 3rem;
  padding: 2rem;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(var(--main-color-rgb), 0.1);
  transition: 0.3s ease;
  max-height: 1000px;
  height: 100%; 
  position: relative;
}


.project-card:hover {
  box-shadow: 0 10px 30px rgba(var(--main-color-rgb), 0.2),
              0 20px 60px rgba(var(--main-color-rgb), 0.1);
  transform: scale(1.02);
  border-color: var(--main-color);
}


.project-card img {
  width: 100%;
  height: auto; 
  border-radius: 2em;
  object-fit: cover;
}


.project-card h3 {
  font-size: 2.4rem;
  color: var(--text-color);
  margin-top: 1.5rem;
}

/* Description */
.project-card p {
  font-size: 1.6rem;
  color: var(--muted-color);
  flex-grow: 1; 
  margin: 1rem 0;
}

/* Buttons */
.project-card .btn {
  margin-top: 1rem;
  width: auto;
  text-align: center;
}

/* Coming Soon Style */
.coming-soon .btn {
  visibility: hidden;
}

.coming-soon .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(3px);
  background: rgba(var(--main-color-rgb), 0.1);
  color: var(--text-color);
  font-size: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: bold;
  border-radius: 3rem;
  transition: 1.5s ease;
  pointer-events: auto;
  padding: 2rem;
}


.overlay i {
  font-size: 11rem;
  color: var(--main-color);
  margin-bottom: 0.5rem;
  display: block;
}

.coming-soon .overlay span {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
}


/* Contact */
.contact {
  background-color: var(--bg-color);
}

.contact h2 {
  margin-bottom: 3rem;
  color: var(--text-color);
}

.contact form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin: 5rem 0;
  text-align: center;
}

.contact form .input-box input,
.contact form textarea {
  width: 100%;
  padding: 2.5rem;
  font-size: 1.8rem;
  color: var(--text-color);
  background-color: var(--second-bg-color);
  border-radius: 2rem;
  border: 2px solid var(--border-color);
  margin: 1.5rem 0;
  resize: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact form .input-box input:focus,
.contact form textarea:focus {
  outline: none;
  border-color: var(--main-color);
  box-shadow: 0 0 10px rgba(var(--main-color-rgb), 0.2);
}
/*alert*/
.alert {
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 400px;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

.alert.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  user-select: auto;
}

.alert.success {
  background-color: #10b981;
  color: white;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.alert.error {
  background-color: #ef4444;
  color: white;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}


/* Footer */
.footer {
  background-color: var(--second-bg-color);
  padding: 50px 0;
  border-top: 1px solid var(--border-color);
}

.footer .social-icons {
  text-align: center;
}

.footer ul {
  text-align: center;
  font-size: 1.8rem;
}

.footer ul li {
  display: inline-block;
  margin-left: 20px;
}

.footer ul li a {
  color: var(--muted-color);
  border-bottom: 3px solid transparent;
  transition: 0.3s ease-in-out;
}

.footer ul li a:hover {
  border-bottom: 3px solid var(--main-color);
  color: var(--main-color);
}

.footer .copyright {
  text-align: center;
  margin-top: 40px;
  font-size: 1.6rem;
  color: var(--muted-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
  html {
    font-size: 50%;
  }
  
  .skills-container {
    gap: 2rem;
  }
  
  .skill-box {
    flex: 1 1 25rem;
  }

  .project-card img {
    width: 100%;
    height: auto; 
    border-radius: 2em;
    object-fit: cover;
  }

}

@media (max-width: 992px) {
  html {
    font-size: 50%;
  }

  .header {
    padding: 1rem 3%;
    justify-content: center;
  }


  .dropdown-list {
    position: absolute;
    top: 100%;
    margin-top: 5px;
    left: 0;
    width: 120%;
    background: var(--second-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    display: none;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(var(--main-color-rgb), 0.15);
  }


  #menu-icon {
    display: block;
    position: fixed;
    top: 2rem;
    right: 3rem;
    z-index: 1100;
    color: var(--text-color);
  }

  .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 30rem;
    height: 100vh;
    padding: 8rem 3rem 2rem;
    background: rgba(var(--main-color-rgb), 0.95);
    backdrop-filter: blur(10px);
    border-left: 2px solid var(--accent-color);
    transition: 0.3s ease;
    flex-direction: column;
    justify-content: flex-start;
  }

  .navbar.active {
    right: 0;
  }

  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 2rem 0;
    color: var(--btn-text-color);
    border: none;
  }

  .navbar a:hover {
    color: var(--text-color);
    border: none;
  }

  .gradient-btn {
    display: none;
  }

  .home {
    flex-direction: column-reverse;
    gap: 3rem;
    text-align: center;
  }

  .home-content {
    align-items: center;
    text-align: center;
  }

  .home-img img {
    width: 50vw;
    min-width: 25rem;
    max-width: 35rem;
  }

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

  .dropdown {
    position: fixed;
    top: 2rem;
    left: 3rem;
    height: auto;
    width: auto;
    z-index: 1100;
  }

  .skill-box {
    flex: 2 1 200rem;
  }

  .projects-box {
    grid-template-columns: repeat(auto-fit, minmax(55rem, 1fr));
    gap: 2rem;
  }

  .project-card {
    min-height: 40rem;
  }

  .project-card img {
    height: auto;
  }

  .timeline-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline-content {
    margin: 0 2rem;
  }

  .services-container {
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  }

  .service-box {
    height: 40rem;
  }

  .pro-skills-grid {
    gap: 2rem;
  }

  .mode-btn {
    bottom: 1.5rem;
    left: 1.5rem;
    width: 5rem;
    height: 5rem;
  }

  .mode-btn i {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 45%;
  }

  section {
    padding: 8rem 3%;
  }

  .header {
    padding: 1rem 3%;
  }

  .dropdown-list {
    position: absolute;
    top: 100%;
    margin-top: 5px;
    left: 0;
    width: 120%;
    background: var(--second-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    display: none;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(var(--main-color-rgb), 0.15);
  }


  .heading {
    font-size: 5rem;
    margin: 3rem 0;
  }

  .home-content h1 {
    font-size: 4rem;
  }

  .home-content h3 {
    font-size: 1.8rem;
  }

  .home-content p {
    font-size: 1.4rem;
  }

  .home-img img {
    width: 60vw;
    min-width: 20rem;
    max-width: 30rem;
  }

  .btn {
    padding: 1rem 2rem;
    font-size: 1.6rem;
  }

  .btn-group {
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }

  .social-icons a {
    font-size: 2.5rem;
    padding: 0.8rem;
  }

  .skill-box h3 {
    font-size: 2rem;
  }
  .skill-box {
    flex: 2 1 200rem;
  }

  .skill span {
    font-size: 1.2rem;
  }

  .progress-bar {
    height: 1.8rem;
  }

  .service-box {
    height: auto;
    min-height: 35rem;
    padding: 2rem;
  }

  .service-info {
    padding: 2rem;
  }

  .service-info i {
    font-size: 6rem;
  }

  .service-info h4 {
    font-size: 2.5rem;
    margin: 1.5rem 0;
  }

  .service-info p {
    font-size: 1.2rem;
  }

  .projects-box {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-card {
    min-height: 35rem;
  }

  .project-card img {
    height: auto;
  }

  .project-card h3 {
    font-size: 2rem;
  }

  .project-card p {
    font-size: 1.2rem;
  }

  .timeline-content {
    margin: 0 1rem;
    padding: 1.5rem;
  }

  .timeline-title {
    font-size: 1.6rem;
  }

  .timeline-subtitle {
    font-size: 1.2rem;
  }

  .timeline-description {
    font-size: 1.2rem;
  }

  .column-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
  }


  .pro-circle {
    display: flex;
    flex-direction: auto;
    align-items: center;
    width: auto;
  }

  .circle {
    width: 12rem;
    height: 12rem;
  }

  .circle i {
    font-size: 6.5rem;
  }

  .pro-circle span {
    font-size: 2.2rem;
  }
  

  .contact form .input-box input,
  .contact form textarea {
    padding: 1.5rem;
    font-size: 1.4rem;
  }

  .footer ul li {
    display: block;
    margin: 1rem 0;
  }

  .navbar {
    width: 100%;
    right: -100%;
  }

  #menu-icon {
    right: 2rem;
  }

  .dropdown {
    left: 2rem;
    width: auto;
    height: auto;
  }

  .flag-icon {
    width: auto;
    height: auto;
    margin-right: 8px;
    object-fit: cover;
  }

  .languages-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline-section {
    padding: 0 1rem;
  }
}






@media (max-width: 576px) {
  html {
    font-size: 40%;
  }

  .logo img {
    width: 200px;
    height: auto;
    display: block;
  }

  .logo  {
    margin-top: -3%;
  }

  .dropdown {
    left: 2rem;
    width: auto;
    height: auto;
  }

  .dropdown-btn {
    background: var(--main-color);
    color: var(--btn-text-color);
    padding: 4px 6px;
    cursor: pointer;
    border-radius: 6rem;
    font-weight: bold;
    display: flex;
    align-items: center;
  }
  .dropdown-list div {
    padding: 4px 6px;
    cursor: pointer;
    color: var(--text-color);
    border-radius: 6rem;
    display: block;
    align-items: center;
    font-size: -5%;
  }

  .dropdown-list {
    position: absolute;
    top: 100%;
    margin-top: 5px;
    left: 0;
    width: 120%;
    background: var(--second-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    display: none;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(var(--main-color-rgb), 0.15);
  }

  .flag-icon {
    width: 15px;
    height: 8px;
    margin-right: 1px;
    object-fit: cover;
  }

  section {
    padding: 6rem 2%;
  }

  .header {
    padding: 1rem 2%;
  }

  .heading {
    font-size: 4rem;
  }

  .home-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
  }

  .home-content h3 {
    font-size: 1.6rem;
  }

  .home-img img {
    width: 70vw;
    min-width: 18rem;
    max-width: 25rem;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .social-icons {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .social-icons a {
    font-size: 2rem;
    padding: 0.6rem;
  }

  .skill-box {
    flex: 2 1 200rem;
  }

  .skill-box h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .skill {
    margin-bottom: 1.5rem;
  }

  .progress-bar {
    height: 1.5rem;
  }

  .progress-bar div {
    font-size: 1rem;
    padding-right: 0.5rem;
  }

  .service-box {
    min-height: 30rem;
  }

  .service-info {
    padding: 1.5rem;
  }

  .service-info i {
    font-size: 4rem;
    margin-bottom: 1rem;
  }

  .service-info h4 {
    font-size: 2rem;
    margin: 1rem 0;
  }

  .service-info p {
    font-size: 1rem;
  }

  .project-card {
    padding: 1.5rem;
    min-height: 30rem;
  }

  .project-card img {
    height: auto;
  }

  .project-card h3 {
    font-size: 1.8rem;
  }

  .project-card p {
    font-size: 1rem;
  }

  .timeline-content {
    margin: 0 0.5rem;
    padding: 1rem;
  }

  .timeline-title {
    font-size: 1.4rem;
  }

  .timeline-subtitle {
    font-size: 1rem;
  }

  .timeline-description {
    font-size: 1rem;
  }

  .timeline-date {
    font-size: 1rem;
    padding: 0.3rem 0.8rem;
  }

  .column-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .column-title i {
    font-size: 1.8rem;
  }


  .pro-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
  }

  .circle {
    width: 12rem;
    height: 12rem;
  }

  .circle i {
    font-size: 6.5rem;
  }

  .pro-circle span {
    font-size: 2.2rem;
  }
  

  .contact form .input-box input,
  .contact form textarea {
    padding: 1rem;
    font-size: 1.2rem;
  }

  .mode-btn {
    bottom: 1rem;
    left: 1rem;
    width: 6rem;
    height: 6rem;
  }

  .mode-btn i {
    font-size: 2.6rem;
  }

  .overlay i {
    font-size: 5rem;
  }

  .overlay {
    font-size: 1.4rem;
  }

  .navbar {
    padding: 6rem 2rem 2rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 35%;
  }

  .logo img {
    width: 25rem;
    height: auto;
    margin-top: 0px;
    margin-left: 20px;
    display: block;
    
  }

  .logo  {
    margin-top: -3%;
  }


  .dropdown {
    left: 2rem;
    width: auto;
    height: auto;
  }

  .flag-icon {
    width: auto;
    height: auto;
    margin-right: 8px;
    object-fit: cover;
  }

  



  .home-content h1 {
    font-size: 3rem;
  }

  .home-img img {
    width: 80vw;
    min-width: 15rem;
    max-width: 20rem;
  }

  .heading {
    font-size: 3.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .skill-box {
    padding: 1.5rem;
    border-radius: 1.5rem;
  }
  .service-box {
    min-height: 25rem;
  }

  .project-card {
    min-height: 25rem;
  }

  .project-card img {
    height: auto;
  }

  .timeline-content {
    padding: 1rem;
  }

  .pro-skills-grid {
    gap: 1.5rem;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 7%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: nowrap; 
  }

  .pro-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
  }

  .circle {
    width: 12rem;
    height: 12rem;
  }

  .circle i {
    font-size: 6.5rem;
  }

  .pro-circle span {
    font-size: 2.2rem;
  }
  
}

/* Utility Classes */
.text-center { 
  text-align: center; 
}

.text-left { 
  text-align: left; 
}

.text-right { 
  text-align: right; 
}

.mb-1 { 
  margin-bottom: 1rem; 
}

.mb-2 { 
  margin-bottom: 2rem; 
}

.mb-3 { 
  margin-bottom: 3rem; 
}

.mt-1 { 
  margin-top: 1rem; 
}

.mt-2 { 
  margin-top: 2rem; 
}

.mt-3 { 
  margin-top: 3rem; 
}

.p-1 { 
  padding: 1rem; 
}

.p-2 { 
  padding: 2rem; 
}

.p-3 { 
  padding: 3rem; 
}

/* Animation and transition improvements */
.smooth-transition {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(3rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media print {
  * {
    all: unset !important;
    all: revert !important;

    color: black !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;

    animation: none !important;
    transition: none !important;
  }

  img {
    max-width: 100% !important;
    height: auto !important;
    page-break-inside: avoid;
  }

  .mode-btn,
  .navbar,
  #menu-icon {
    display: none !important;
  }
}
