/* ===== VARIABLES ===== */
:root {
  /* Colors */
  --primary-color: #5e72e4;
  --secondary-color: #7795f8;
  --accent-color: #11cdef;
  --dark-color: #1a1a1a;
  --light-color: #ffffff;
  --gray-color: #f5f5f5;
  --text-color: #333333;
  --text-light: #777777;

  /* Fonts */
  --font-primary: "Poppins", sans-serif;
  --font-secondary: "Montserrat", sans-serif;

  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-normal: 0.5s ease;
  --transition-slow: 0.8s ease;

  /* Shadows */
  --shadow-small: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 5px 15px rgba(0, 0, 0, 0.07);
  --shadow-large: 0 10px 30px rgba(0, 0, 0, 0.1);

  /* Border Radius */
  --radius-small: 4px;
  --radius-medium: 8px;
  --radius-large: 16px;
  --radius-full: 50%;
}

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

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

body {
  font-family: var(--font-primary);
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
  overflow-x: hidden;
}

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

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* ===== PRELOADER ===== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dark-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader svg {
  width: 8rem;
  height: 8rem;
  transform-origin: center;
  animation: rotate 2s linear infinite;
}

#loader-circle {
  fill: none;
  stroke: var(--primary-color);
  stroke-width: 4;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: dash 2s ease-in-out infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dashoffset: 200;
  }
  50% {
    stroke-dashoffset: 50;
    stroke: var(--secondary-color);
  }
  100% {
    stroke-dashoffset: 200;
    stroke: var(--accent-color);
  }
}

.loader-text {
  margin-top: 2rem;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--light-color);
  letter-spacing: 0.2rem;
}

.loader-text span {
  animation: dots 1.5s infinite;
  opacity: 0;
}

.loader-text span:nth-child(1) {
  animation-delay: 0s;
}

.loader-text span:nth-child(2) {
  animation-delay: 0.5s;
}

.loader-text span:nth-child(3) {
  animation-delay: 1s;
}

@keyframes dots {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

/* ===== CUSTOM CURSOR ===== */
.cursor-dot,
.cursor-dot-outline {
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
}

.cursor-dot-outline {
  width: 40px;
  height: 40px;
  background-color: rgba(94, 114, 228, 0.2);
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: var(--transition-normal);
}

header.scrolled {
  background-color: var(--light-color);
  box-shadow: var(--shadow-small);
  padding: 1.5rem 5%;
}

.logo {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
}

.logo-text {
  position: relative;
}

.accent {
  color: var(--primary-color);
}

.menu-toggle {
  display: none;
  cursor: pointer;
}

.hamburger {
  width: 3rem;
  height: 2.4rem;
  position: relative;
  cursor: pointer;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--text-color);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: var(--transition-fast);
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 10px;
}

.hamburger span:nth-child(3) {
  top: 20px;
}

.hamburger.active span:nth-child(1) {
  top: 10px;
  transform: rotate(135deg);
}

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

.hamburger.active span:nth-child(3) {
  top: 10px;
  transform: rotate(-135deg);
}

.nav-menu {
  display: flex;
}

.nav-menu ul {
  display: flex;
  align-items: center;
}

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

.nav-link {
  font-size: 1.6rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

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

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

/* ===== MAIN CONTENT ===== */
main {
  overflow: hidden;
}

section {
  padding: 10rem 5%;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 6rem;
}

.section-title {
  font-size: 3.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-line {
  width: 6rem;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  margin: 0 auto;
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 8rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero-text {
  flex: 1;
  max-width: 60rem;
}

.hero-text h1 {
  font-size: 6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 2rem;
  position: relative;
}

.glitch {
  position: relative;
  color: var(--text-color);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip: rect(0, 0, 0, 0);
}

.glitch::before {
  left: 2px;
  text-shadow: -1px 0 var(--primary-color);
  animation: glitch-animation-1 2s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: 1px 0 var(--secondary-color);
  animation: glitch-animation-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-animation-1 {
  0% {
    clip: rect(36px, 9999px, 9px, 0);
  }
  5% {
    clip: rect(85px, 9999px, 78px, 0);
  }
  10% {
    clip: rect(32px, 9999px, 11px, 0);
  }
  15% {
    clip: rect(91px, 9999px, 59px, 0);
  }
  20% {
    clip: rect(27px, 9999px, 100px, 0);
  }
  25% {
    clip: rect(86px, 9999px, 30px, 0);
  }
  30% {
    clip: rect(25px, 9999px, 56px, 0);
  }
  35% {
    clip: rect(64px, 9999px, 49px, 0);
  }
  40% {
    clip: rect(75px, 9999px, 71px, 0);
  }
  45% {
    clip: rect(10px, 9999px, 93px, 0);
  }
  50% {
    clip: rect(37px, 9999px, 4px, 0);
  }
  55% {
    clip: rect(80px, 9999px, 85px, 0);
  }
  60% {
    clip: rect(75px, 9999px, 46px, 0);
  }
  65% {
    clip: rect(8px, 9999px, 95px, 0);
  }
  70% {
    clip: rect(83px, 9999px, 34px, 0);
  }
  75% {
    clip: rect(66px, 9999px, 91px, 0);
  }
  80% {
    clip: rect(66px, 9999px, 28px, 0);
  }
  85% {
    clip: rect(63px, 9999px, 70px, 0);
  }
  90% {
    clip: rect(43px, 9999px, 84px, 0);
  }
  95% {
    clip: rect(46px, 9999px, 33px, 0);
  }
  100% {
    clip: rect(40px, 9999px, 16px, 0);
  }
}

@keyframes glitch-animation-2 {
  0% {
    clip: rect(96px, 9999px, 2px, 0);
  }
  5% {
    clip: rect(22px, 9999px, 73px, 0);
  }
  10% {
    clip: rect(6px, 9999px, 46px, 0);
  }
  15% {
    clip: rect(94px, 9999px, 84px, 0);
  }
  20% {
    clip: rect(6px, 9999px, 67px, 0);
  }
  25% {
    clip: rect(34px, 9999px, 71px, 0);
  }
  30% {
    clip: rect(18px, 9999px, 79px, 0);
  }
  35% {
    clip: rect(81px, 9999px, 3px, 0);
  }
  40% {
    clip: rect(71px, 9999px, 22px, 0);
  }
  45% {
    clip: rect(70px, 9999px, 64px, 0);
  }
  50% {
    clip: rect(1px, 9999px, 58px, 0);
  }
  55% {
    clip: rect(13px, 9999px, 21px, 0);
  }
  60% {
    clip: rect(18px, 9999px, 39px, 0);
  }
  65% {
    clip: rect(12px, 9999px, 7px, 0);
  }
  70% {
    clip: rect(42px, 9999px, 11px, 0);
  }
  75% {
    clip: rect(75px, 9999px, 63px, 0);
  }
  80% {
    clip: rect(66px, 9999px, 98px, 0);
  }
  85% {
    clip: rect(99px, 9999px, 73px, 0);
  }
  90% {
    clip: rect(72px, 9999px, 59px, 0);
  }
  95% {
    clip: rect(38px, 9999px, 44px, 0);
  }
  100% {
    clip: rect(67px, 9999px, 78px, 0);
  }
}

.hero-subtitle {
  font-size: 2.4rem;
  font-weight: 500;
  margin-bottom: 2.5rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
}

.typed-text {
  color: var(--primary-color);
  font-weight: 600;
}

.cursor {
  display: inline-block;
  width: 3px;
  background-color: var(--text-color);
  margin-left: 0.5rem;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.hero-description {
  font-size: 1.8rem;
  margin-bottom: 3rem;
  color: var(--text-light);
  max-width: 50rem;
}

.hero-buttons {
  display: flex;
  gap: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 3rem;
  font-size: 1.6rem;
  font-weight: 600;
  border-radius: var(--radius-medium);
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.primary-btn {
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--light-color);
  box-shadow: 0 4px 15px rgba(94, 114, 228, 0.3);
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(94, 114, 228, 0.4);
}

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

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

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

.shape-container {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.shape {
  position: absolute;
  border-radius: var(--radius-full);
}

.shape-1 {
  width: 15rem;
  height: 15rem;
  background: linear-gradient(45deg, var(--primary-color), transparent);
  top: -20%;
  left: 10%;
  animation: float 6s ease-in-out infinite;
}

.shape-2 {
  width: 12rem;
  height: 12rem;
  background: linear-gradient(45deg, var(--secondary-color), transparent);
  bottom: 10%;
  right: 5%;
  animation: float 8s ease-in-out infinite;
}

.shape-3 {
  width: 8rem;
  height: 8rem;
  background: linear-gradient(45deg, var(--accent-color), transparent);
  bottom: 30%;
  left: 5%;
  animation: float 7s ease-in-out infinite;
}

.shape-4 {
  width: 10rem;
  height: 10rem;
  background: linear-gradient(45deg, #ff9d00, transparent);
  top: 20%;
  right: 15%;
  animation: float 9s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

.profile-img-container {
  width: 40rem;
  height: 40rem;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-large);
}

.profile-img {
  width: 100%;
  height: 100%;
  background-image: url("images/hero.png");
  background-size: cover;
  background-position: center;
  transition: var(--transition-normal);
}

.profile-img:hover {
  transform: scale(1.05);
}

.scroll-indicator {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.mouse {
  width: 3rem;
  height: 5rem;
  border: 2px solid var(--text-color);
  border-radius: 2rem;
  position: relative;
}

.wheel {
  width: 0.6rem;
  height: 0.6rem;
  background-color: var(--primary-color);
  border-radius: var(--radius-full);
  position: absolute;
  top: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(2rem);
  }
}

.arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.arrow span {
  display: block;
  width: 1rem;
  height: 1rem;
  border-bottom: 2px solid var(--text-color);
  border-right: 2px solid var(--text-color);
  transform: rotate(45deg);
  animation: arrow 2s infinite;
}

.arrow span:nth-child(2) {
  animation-delay: 0.2s;
}

.arrow span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes arrow {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-5px, -5px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(5px, 5px);
  }
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background-color: var(--gray-color);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 6rem;
}

.about-image {
  flex: 1;
  position: relative;
}

.image-frame {
  width: 40rem;
  height: 50rem;
  border: 1rem solid var(--light-color);
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  position: relative;
}

.image-inner {
  width: 100%;
  height: 100%;
  background-image: url("images/rahul.png");
  background-size: cover;
  background-position: center;
  transition: var(--transition-normal);
}

.image-inner:hover {
  transform: scale(1.05);
}

.experience-badge {
  position: absolute;
  bottom: -3rem;
  right: -3rem;
  width: 15rem;
  height: 15rem;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: var(--radius-full);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--light-color);
  box-shadow: var(--shadow-medium);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(94, 114, 228, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(94, 114, 228, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(94, 114, 228, 0);
  }
}

.years {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
}

.text {
  font-size: 1.4rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.about-text h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 6rem;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
}

.about-text p {
  font-size: 1.7rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.about-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.info-item {
  display: flex;
  flex-direction: column;
}

.info-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-color);
}

.info-value {
  font-size: 1.6rem;
  color: var(--text-light);
}

.about-buttons {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-top: 3rem;
}

/* ===== TOOLS SECTION ===== */
.tools-section {
  background-color: var(--light-color);
}

.tools-intro {
  text-align: center;
  max-width: 70rem;
  margin: 0 auto 4rem;
}

.tools-intro p {
  font-size: 1.8rem;
  color: var(--text-light);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr));
  gap: 3rem;
  margin-bottom: 5rem;
}

.tool-card {
  background-color: var(--light-color);
  border-radius: var(--radius-medium);
  padding: 3rem;
  box-shadow: var(--shadow-medium);
  transition: var(--transition-normal);
  text-align: center;
}

.tool-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-large);
}

.tool-icon {
  width: 8rem;
  height: 8rem;
  margin: 0 auto 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tool-icon img {
  max-width: 100%;
  max-height: 100%;
}

.tool-card h3 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.tool-card p {
  font-size: 1.6rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.services-section {
  background-color: var(--gray-color);
}

.services-intro {
  text-align: center;
  max-width: 70rem;
  margin: 0 auto 4rem;
}

.services-intro p {
  font-size: 1.8rem;
  color: var(--text-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
  gap: 3rem;
}

.service-card {
  background-color: var(--light-color);
  border-radius: var(--radius-medium);
  padding: 3rem;
  box-shadow: var(--shadow-medium);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-large);
}

.service-icon {
  font-size: 3.6rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.service-card h3 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.service-card p {
  font-size: 1.6rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.service-features {
  list-style: none;
}

.service-features li {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 2.5rem;
}

.service-features li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.2rem;
  color: var(--primary-color);
  font-size: 1.4rem;
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
  background-color: var(--light-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(35rem, 1fr));
  gap: 3rem;
}

.project-card {
  background-color: var(--light-color);
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-large);
}

.project-img {
  width: 100%;
  height: 25rem;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

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

.project-info {
  padding: 2.5rem;
  position: relative;
}

.project-title {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.project-category {
  font-size: 1.5rem;
  color: var(--text-light);
}

.project-meta {
  display: flex;
  gap: 2rem;
}

.project-meta a {
  font-size: 1.2rem;
  padding: 2px 4px;
  border-radius: var(--radius-medium);
  background-color: var(--primary-color);
  color: var(--light-color);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
  background-color: var(--gray-color);
}

.testimonials-intro {
  text-align: center;
  max-width: 70rem;
  margin: 0 auto 4rem;
}

.testimonials-intro p {
  font-size: 1.8rem;
  color: var(--text-light);
}

.testimonials-slider {
  position: relative;
  max-width: 120rem;
  margin: 0 auto;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  min-width: 100%;
  padding: 2rem;
  background-color: var(--light-color);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-medium);
}

.testimonial-content {
  padding: 3rem;
  position: relative;
}

.quote-icon {
  font-size: 3rem;
  color: var(--primary-color);
  opacity: 0.2;
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.testimonial-text {
  font-size: 1.8rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.testimonial-rating {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.testimonial-rating i {
  color: #ffd700;
  font-size: 1.8rem;
}

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

.author-img {
  width: 8rem;
  height: 8rem;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.author-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.author-position {
  font-size: 1.5rem;
  color: var(--text-light);
}

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

.testimonial-btn {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--radius-full);
  background-color: var(--light-color);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  color: var(--text-color);
  box-shadow: var(--shadow-small);
  transition: var(--transition-fast);
}

.testimonial-btn:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
}

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

.dot {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: var(--radius-full);
  background-color: var(--gray-color);
  transition: var(--transition-fast);
  cursor: pointer;
}

.dot.active {
  width: 3rem;
  background-color: var(--primary-color);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background-color: var(--light-color);
}

.contact-content {
  display: flex;
  gap: 6rem;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.contact-info h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 6rem;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
}

.contact-info p {
  font-size: 1.7rem;
  margin-bottom: 3rem;
  color: var(--text-light);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.contact-icon {
  width: 5rem;
  height: 5rem;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  color: var(--light-color);
  flex-shrink: 0;
}

.contact-text h4 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

.btn-text {
  margin-right: 1rem;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  width: 5rem;
  height: 5rem;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--light-color);
  font-size: 2rem;
  box-shadow: var(--shadow-medium);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
  z-index: 99;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 1200px) {
  html {
    font-size: 58%;
  }

  .hero-content {
    gap: 3rem;
  }

  .profile-img-container {
    width: 35rem;
    height: 35rem;
  }

  .about-content {
    gap: 4rem;
  }

  .image-frame {
    width: 35rem;
    height: 45rem;
  }

  .experience-badge {
    width: 12rem;
    height: 12rem;
  }

  .contact-content {
    gap: 4rem;
  }

  .timeline-item:nth-child(odd) .timeline-date,
  .timeline-item:nth-child(even) .timeline-date {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    margin-bottom: 1rem;
  }
}

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

  section {
    padding: 8rem 5%;
  }

  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-text h1::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-buttons {
    justify-content: center;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-text h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .about-buttons {
    justify-content: center;
  }

  .contact-content {
    flex-direction: column;
  }

  .contact-info h3::after {
    left: 0;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--light-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-large);
    z-index: 99;
  }

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

  .nav-menu ul {
    flex-direction: column;
    gap: 3rem;
  }

  .nav-menu li {
    margin: 0;
  }

  .nav-link {
    font-size: 2rem;
  }

  .timeline::before {
    left: 2rem;
  }

  .timeline-item {
    width: 100%;
    padding-left: 5rem;
    padding-right: 2rem;
  }

  .timeline-item:nth-child(odd) {
    padding-right: 2rem;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 0.75rem;
  }
}

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

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

  .hero-text h1 {
    font-size: 5rem;
  }

  .profile-img-container {
    width: 30rem;
    height: 30rem;
  }

  .image-frame {
    width: 30rem;
    height: 40rem;
  }

  .experience-badge {
    width: 10rem;
    height: 10rem;
    bottom: -2rem;
    right: -2rem;
  }

  .years {
    font-size: 3rem;
  }

  .text {
    font-size: 1.2rem;
  }

  .about-info {
    grid-template-columns: 1fr;
  }

  .tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr));
  }

  .contact-form-container {
    padding: 3rem;
  }

  .project-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

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

  section {
    padding: 6rem 5%;
  }

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

  .hero-text h1 {
    font-size: 4rem;
  }

  .hero-subtitle {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1.5rem;
  }

  .btn {
    width: 100%;
  }

  .profile-img-container {
    width: 25rem;
    height: 25rem;
  }

  .image-frame {
    width: 25rem;
    height: 35rem;
  }

  .about-buttons {
    flex-direction: column;
    gap: 2rem;
  }

  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }

  .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .nav-menu {
    width: 100%;
  }

  .scroll-indicator {
    position: absolute;
    bottom: -5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

.menu-toggle {
  z-index: 101;
  position: relative;
}

.hamburger.active span:nth-child(1) {
  top: 10px;
  transform: rotate(135deg);
}

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

.hamburger.active span:nth-child(3) {
  top: 10px;
  transform: rotate(-135deg);
}

.nav-menu.active {
  right: 0;
  z-index: 100;
}

@media screen and (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--light-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-large);
    z-index: 99;
  }

  body.no-scroll {
    overflow: hidden;
  }
}
