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

:root {
  --primary-color: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1e40af;
  --secondary-color: #4f46e5;
  --secondary-light: #6366f1;
  --accent-color: #06b6d4;
  --dark-color: #1e293b;
  --light-color: #f8fafc;
  --gray-color: #64748b;
  --border-color: #e2e8f0;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --box-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
  overflow-x: hidden;
  cursor: none;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  mix-blend-mode: difference;
}

.cursor-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.3s ease;
  opacity: 0.5;
}

.custom-cursor.hover {
  transform: scale(1.5);
}

.cursor-follower.hover {
  transform: scale(1.5);
  border-color: var(--accent-color);
}

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-light));
  background-size: 200% 100%;
  animation: gradientMove 3s ease infinite;
  z-index: 1001;
  transition: width 0.1s ease;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

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

/* Floating Shapes */
.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(6, 182, 212, 0.1));
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.shape-3 {
  width: 80px;
  height: 80px;
  bottom: 30%;
  left: 20%;
  animation-delay: 4s;
}

.shape-4 {
  width: 120px;
  height: 120px;
  top: 40%;
  right: 30%;
  animation-delay: 1s;
}

/* Enhanced 3D Background */
.background-3d {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-element {
  position: absolute;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(6, 182, 212, 0.05));
  border-radius: 20px;
  animation: float3D 8s ease-in-out infinite;
  backdrop-filter: blur(2px);
}

.bg-element-1 {
  width: 200px;
  height: 300px;
  top: 10%;
  right: 5%;
  animation-delay: 0s;
  transform: rotateY(45deg) rotateX(15deg);
}

.bg-element-2 {
  width: 150px;
  height: 250px;
  bottom: 20%;
  left: 5%;
  animation-delay: 3s;
  transform: rotateY(-30deg) rotateX(-10deg);
}

.bg-element-3 {
  width: 100px;
  height: 200px;
  top: 50%;
  left: 50%;
  animation-delay: 6s;
  transform: rotateY(60deg) rotateX(20deg);
}

@keyframes float3D {
  0%,
  100% {
    transform: translateY(0px) rotateY(0deg) rotateX(0deg);
  }
  25% {
    transform: translateY(-20px) rotateY(90deg) rotateX(10deg);
  }
  50% {
    transform: translateY(-40px) rotateY(180deg) rotateX(-5deg);
  }
  75% {
    transform: translateY(-20px) rotateY(270deg) rotateX(15deg);
  }
}

/* Add more floating shapes */
.shape-5 {
  width: 60px;
  height: 60px;
  top: 80%;
  right: 20%;
  animation-delay: 3s;
}

.shape-6 {
  width: 90px;
  height: 90px;
  top: 10%;
  left: 60%;
  animation-delay: 5s;
}

/* 3D Image Effects */
.image-3d-container {
  position: relative;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.scroll-3d-image {
  border-radius: 20px;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
  transform: rotateY(-5deg) rotateX(5deg);
  position: relative;
  z-index: 2;
}

.image-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 20px;
  opacity: 0.2;
  filter: blur(20px);
  transform: translateZ(-10px);
  z-index: 1;
  transition: all 0.3s ease;
}

.image-3d-container:hover .scroll-3d-image {
  transform: rotateY(0deg) rotateX(0deg) translateZ(20px);
  box-shadow: var(--box-shadow-hover);
}

.image-3d-container:hover .image-glow {
  opacity: 0.4;
  filter: blur(30px);
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  font-weight: 700;
  transform: translateY(30px);
  opacity: 0;
  transition: var(--transition-slow);
}

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

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
}

.primary-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  transition: var(--transition);
  z-index: -1;
}

.primary-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.15);
}

.primary-btn:hover::before {
  width: 100%;
}

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

.secondary-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  transition: var(--transition);
  z-index: -1;
}

.secondary-btn:hover {
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.15);
}

.secondary-btn:hover::before {
  left: 0;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

header .container {
  padding: 15px 20px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
}

.logo {
  position: relative;
  z-index: 2;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: var(--transition);
}

.logo h1:hover {
  transform: scale(1.05);
}

/* Navbar Toggler */
.navbar-toggler {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 2;
  transition: var(--transition);
}

.toggler-icon {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--dark-color);
  border-radius: 3px;
  transition: var(--transition);
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.navbar-toggler.active .toggler-icon:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.navbar-toggler.active .toggler-icon:nth-child(2) {
  opacity: 0;
}

.navbar-toggler.active .toggler-icon:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.navbar-collapse {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  position: relative;
  background: rgba(37, 99, 235, 0.05);
  border-radius: 50px;
  padding: 8px;
  backdrop-filter: blur(10px);
}

/* Follow Along Navigation Highlight */
.nav-highlight {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 25px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  opacity: 1;
}

.nav-links li {
  position: relative;
  z-index: 2;
}

.nav-links a {
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 12px 24px;
  border-radius: 25px;
  display: block;
  z-index: 2;
}

.nav-links a.active {
  color: white;
}

.nav-links a:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.nav-links a:not(.active):hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  padding-top: 180px;
  padding-bottom: 120px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0) 70%);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0) 70%);
  z-index: 0;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  animation: fadeInUp 1s ease forwards;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content h2 {
  font-size: 2rem;
  color: var(--gray-color);
  margin-bottom: 20px;
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
  transform: translateY(20px);
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--gray-color);
  animation: fadeInUp 1s ease 0.4s forwards;
  opacity: 0;
  transform: translateY(20px);
}

.hero > .highlight {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(37, 99, 235, 0.2);
  z-index: -1;
  transform: translateY(-5px);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.6s forwards;
  opacity: 0;
  transform: translateY(20px);
}

.social-icons {
  display: flex;
  gap: 15px;
  animation: fadeInUp 1s ease 0.8s forwards;
  opacity: 0;
  transform: translateY(20px);
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.social-icons a:hover {
  transform: translateY(-5px) rotate(10deg);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
}

.hero-image {
  flex: 1;
  position: relative;
  animation: fadeInRight 1s ease forwards;
  opacity: 0;
  transform: translateX(50px);
}

.hero-image::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--primary-color);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.3;
  animation: pulse 3s infinite;
}

/* About Section */
.about {
  background-color: white;
  position: relative;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, #f0f9ff, white);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
  position: relative;
  transform: translateX(-50px);
  opacity: 0;
  transition: var(--transition);
}

.about-image.fade-in {
  transform: translateX(0);
  opacity: 1;
}

.about-image::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--primary-color);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.3;
}

.about-text {
  flex: 1;
  transform: translateX(50px);
  opacity: 0;
  transition: var(--transition);
}

.about-text.fade-in {
  transform: translateX(0);
  opacity: 1;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--gray-color);
}

.about-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.detail {
  display: flex;
  gap: 10px;
  transition: var(--transition);
}

.detail:hover {
  transform: translateX(5px);
}

.label {
  font-weight: 600;
  color: var(--dark-color);
}

.value {
  color: var(--gray-color);
}

/* Skills Section */
.skills {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  position: relative;
}

.skills::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, white, #f0f9ff);
}

.skills-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
}

.skill-category {
  transform: translateY(30px);
  opacity: 0;
  transition: var(--transition);
}

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

.skill-category h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.skill-bar {
  display: flex;
  align-items: center;
  gap: 40px;
  transition: var(--transition);
}

.skill-bar:hover {
  transform: translateX(5px);
}

.skill-name {
  width: 100px;
  font-weight: 500;
  transition: var(--transition);
}

.skill-bar:hover .skill-name {
  color: var(--primary-color);
}

.skill-progress {
  flex: 1;
  height: 10px;
  background-color: var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 10px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.progress::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  animation: pulse 2s infinite;
}

.skill-percent {
  width: 50px;
  text-align: right;
  font-weight: 500;
  transition: var(--transition);
}

.skill-bar:hover .skill-percent {
  color: var(--primary-color);
}

/* Projects Section */
.projects {
  background-color: white;
  position: relative;
}

.projects::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, #f0f9ff, white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
}

.project-card {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  transform: translateY(50px);
  opacity: 0;
  background-color: white;
}

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

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

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

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

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(6, 182, 212, 0.95));
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10;
}

.project-card:hover .project-overlay {
  opacity: 1;
  visibility: visible;
}

.project-links {
  display: flex;
  gap: 20px;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 11;
}

.project-card:hover .project-links {
  transform: translateY(0);
}

.project-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: white;
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 12;
}

.project-links a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.project-info {
  padding: 25px;
}

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  transition: var(--transition);
}

.project-card:hover .project-info h3 {
  color: var(--primary-color);
}

.project-info p {
  color: var(--gray-color);
  margin-bottom: 15px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-tech span {
  padding: 5px 15px;
  background-color: #e0f2fe;
  color: var(--primary-color);
  border-radius: 50px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.project-tech span:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* Resume Section */
.resume {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  position: relative;
}

.resume::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, white, #f0f9ff);
}

.resume-content {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.resume-download {
  text-align: center;
  margin-bottom: 30px;
  transform: translateY(30px);
  opacity: 0;
  transition: var(--transition);
}

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

.resume-download p {
  margin-bottom: 20px;
  color: var(--gray-color);
}

.resume-sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
}

.resume-section {
  transform: translateY(30px);
  opacity: 0;
  transition: var(--transition);
}

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

.resume-section h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}

.timeline-item {
  position: relative;
  padding-left: 50px;
  margin-bottom: 40px;
  transition: var(--transition);
}

.timeline-item:hover {
  transform: translateX(5px);
}

.timeline-dot {
  position: absolute;
  top: 0;
  left: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  z-index: 1;
  transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.5);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

.timeline-date {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.timeline-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.timeline-item:hover .timeline-content {
  box-shadow: var(--box-shadow-hover);
}

.timeline-content h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.timeline-content p {
  color: var(--gray-color);
}

/* Contact Section */
.contact {
  background-color: white;
  position: relative;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, #f0f9ff, white);
}

.contact-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
}

.contact-info {
  transform: translateX(-50px);
  opacity: 0;
  transition: var(--transition);
}

.contact-info.fade-in {
  transform: translateX(0);
  opacity: 1;
}

.contact-form {
  transform: translateX(50px);
  opacity: 0;
  transition: var(--transition);
}

.contact-form.fade-in {
  transform: translateX(0);
  opacity: 1;
}

.contact-info h3,
.contact-form h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-info p {
  color: var(--gray-color);
  margin-bottom: 30px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  transition: var(--transition);
  padding: 15px;
  border-radius: 10px;
}

.contact-item:hover {
  background-color: #f0f9ff;
  transform: translateX(5px);
}

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

.contact-item:hover i {
  transform: scale(1.2);
}

.contact-item h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.contact-item p {
  color: var(--gray-color);
  margin-bottom: 0;
}

.contact-item a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.contact-item a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.contact-item a p {
  margin: 0;
  transition: all 0.3s ease;
}

.contact-item a:hover p {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.social-links a:hover {
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  transform: translateY(-5px) rotate(10deg);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
}

.form-group {
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-family: "Poppins", sans-serif;
  transition: var(--transition);
  background-color: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background-color: white;
}

.form-group textarea {
  height: 150px;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-color);
  transition: var(--transition);
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
  opacity: 0.7;
  transform: translateX(10px);
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--dark-color), #0f172a);
  color: white;
  padding: 40px 0;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  transition: var(--transition);
  position: relative;
  padding: 5px 0;
}

.footer-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: var(--transition);
}

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

.footer-links a:hover::after {
  width: 100%;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  box-shadow: var(--box-shadow);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  cursor: pointer;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  animation: bounce 2s infinite;
}

.back-to-top:hover {
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  transform: translateY(-5px);
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-on-scroll.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.slide-in-left {
  transform: translateX(-50px);
}

.animate-on-scroll.slide-in-left.fade-in {
  transform: translateX(0);
}

.animate-on-scroll.slide-in-right {
  transform: translateX(50px);
}

.animate-on-scroll.slide-in-right.fade-in {
  transform: translateX(0);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

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

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

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

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: rotate 1s linear infinite;
}

/* Responsive Styles */
/* Large Devices (Desktops) */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }

  section {
    padding: 100px 0;
  }
}

/* Medium Devices (Tablets) */
@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }

  .container {
    max-width: 720px;
  }

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

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 2.2rem;
    margin-bottom: 50px;
  }

  .resume-sections {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-image::before,
  .about-image::after {
    width: 90%;
    height: 90%;
  }

  .skills-content {
    gap: 30px;
  }
}

/* Small Devices (Landscape Phones) */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  body {
    cursor: auto;
  }

  .custom-cursor,
  .cursor-follower {
    display: none;
  }

  .container {
    max-width: 540px;
  }

  .navbar-toggler {
    display: block;
  }

  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    z-index: 1;
  }

  .navbar-collapse.show {
    max-height: 300px;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    background: white;
    border-radius: 0;
  }

  .nav-highlight {
    display: none;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 12px 20px;
    border-radius: 0;
  }

  .nav-links a.active {
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.05);
  }

  .nav-links a:hover {
    background-color: rgba(37, 99, 235, 0.05);
  }

  .hero .container,
  .about-content,
  .contact-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-content,
  .hero-image,
  .about-image,
  .about-text {
    flex: none;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

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

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

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

  .skills-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .about-image::after,
  .hero-image::before {
    display: none;
  }

  .detail {
    justify-content: center;
  }

  section {
    padding: 80px 0;
  }
}

/* Extra Small Devices (Portrait Phones) */
@media (max-width: 576px) {
  html {
    font-size: 13px;
  }
  .hero-image {
    display: none;
  }

  .container {
    padding: 0 15px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content h2 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .about-text h3 {
    font-size: 1.8rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .project-filters {
    flex-wrap: wrap;
  }

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

  .detail {
    flex-direction: column;
    gap: 5px;
    align-items: center;
  }

  .timeline-item {
    padding-left: 40px;
  }

  .timeline::before {
    left: 15px;
  }

  .timeline-dot {
    left: 11px;
  }

  .btn {
    width: 100%;
  }

  section {
    padding: 60px 0;
  }

  .skill-bar {
    flex-wrap: wrap;
  }

  .skill-name {
    width: 100%;
    margin-bottom: 5px;
  }

  .skill-percent {
    width: auto;
    margin-left: 10px;
  }
}

/* Very Small Devices */
@media (max-width: 375px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content h2 {
    font-size: 1.3rem;
  }

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

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

  .about-details {
    gap: 15px;
  }
  .footer-links {
    gap: -10px;
  }

  .footer-links a {
    padding: 4px 0;
  }
}

/* Print Styles */
@media print {
  .navbar-toggler,
  .back-to-top,
  .hero-buttons,
  .social-icons,
  footer,
  .custom-cursor,
  .cursor-follower,
  .scroll-progress-bar {
    display: none !important;
  }

  header {
    position: relative;
    box-shadow: none;
  }

  section {
    padding: 20px 0;
    page-break-inside: avoid;
  }

  .hero {
    padding-top: 50px;
  }

  .container {
    max-width: 100%;
  }

  .hero-image img,
  .about-image img {
    max-width: 300px;
    margin: 0 auto;
  }

  .section-title {
    margin-bottom: 30px;
  }

  .progress {
    width: 100% !important;
  }
}
