:root {
  /* Darker Color Scheme */
  --primary: #1e4fd8;
  --primary-dark: #1539a3;
  --secondary: #0d8fcf;
  --accent: #0e9d8f;
  --dark: #0f1a2e;
  --darker: #0a1220;
  --light: #e2e8f0;
  --light-gray: #cbd5e1;
  --card-bg: rgba(255, 255, 255, 0.9);
  --text: #1e293b;
  --text-light: #64748b;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.2);
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));

  /* Dark Theme */
  --dark-primary: #3b82f6;
  --dark-primary-dark: #2563eb;
  --dark-secondary: #0ea5e9;
  --dark-accent: #14b8a6;
  --dark-bg: #0a1220;
  --dark-card: #152238;
  --dark-text: #e2e8f0;
  --dark-text-light: #94a3b8;
  --dark-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
  --dark-shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.4);
  --dark-header-bg: rgba(10, 18, 32, 0.95);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.7;
  background: linear-gradient(45deg, #1a2a4f, #2a3a5f);
  color: var(--light);
  overflow-x: hidden;
  background-attachment: fixed;
}

body.dark-mode {
  background: linear-gradient(45deg, #090f1c, #0d1525);
  color: var(--dark-text);
}

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

section {
  padding: 6rem 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 4rem;
  font-family: "Montserrat", sans-serif;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -1px;
}

.dark-mode h1 {
  background: linear-gradient(
    135deg,
    var(--dark-primary),
    var(--dark-secondary)
  );
  -webkit-background-clip: text;
  background-clip: text;
}

h2 {
  font-size: 2.8rem;
  font-family: "Montserrat", sans-serif;
  position: relative;
  display: inline-block;
  margin-bottom: 4rem;
  color: var(--light);
}

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

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -15px;
  width: 70px;
  height: 5px;
  background: var(--gradient);
  border-radius: 5px;
}

.dark-mode h2::after {
  background: linear-gradient(
    135deg,
    var(--dark-primary),
    var(--dark-secondary)
  );
}

h3 {
  font-size: 1.8rem;
  color: var(--primary);
}

.dark-mode h3 {
  color: var(--dark-primary);
}

p {
  margin-bottom: 1.5rem;
  color: var(--light-gray);
  font-size: 1.1rem;
}

.dark-mode p {
  color: var(--dark-text-light);
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: var(--gradient);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: -1;
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

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

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

.btn-outline:hover {
  background: var(--gradient);
  color: white;
}

/* Header & Navigation with Scroll Animation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 26, 46, 0.92);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  padding: 1.5rem 0;
  transition: all 0.4s ease;
}

header.shrink {
  padding: 0.8rem 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.dark-mode header {
  background: var(--dark-header-bg);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--light);
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  display: flex;
  align-items: center;
  transition: all 0.4s ease;
}

header.shrink .logo {
  font-size: 1.5rem;
}

.logo i {
  margin-right: 0.5rem;
  font-size: 1.5rem;
  transition: all 0.4s ease;
}

.nav-links {
  display: flex;
  list-style: none;
  transition: all 0.4s ease;
  align-items: center;
}

.nav-links li {
  margin-left: 2.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--light);
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
  font-size: 1.1rem;
}

header.shrink .nav-links a {
  font-size: 1rem;
}

.dark-mode .nav-links a {
  color: var(--dark-text);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--secondary);
}

.dark-mode .nav-links a:hover {
  color: var(--dark-secondary);
}

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

.theme-toggle {
  background: var(--light-gray);
  border: none;
  width: 50px;
  height: 26px;
  border-radius: 50px;
  position: relative;
  cursor: pointer;
  margin-left: 2rem;
}

.dark-mode .theme-toggle {
  background: #334155;
}

.toggle-circle {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.dark-mode .toggle-circle {
  left: 27px;
  background: var(--dark-primary);
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--light);
}

.dark-mode .hamburger {
  color: var(--dark-primary);
}

/* Navigation Right Container */
.nav-right {
  display: flex;
  align-items: center;
}

/* Hero Section */
#hero {
  padding-top: 12rem;
  padding-bottom: 8rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -300px;
  right: -200px;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  bottom: -200px;
  left: -100px;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--accent);
  top: 150px;
  left: 150px;
  opacity: 0.15;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--secondary);
}

.dark-mode .hero-text h3 {
  color: var(--dark-secondary);
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

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

.profile-img-container {
  position: relative;
  width: 350px;
  height: 350px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 8px solid rgba(255, 255, 255, 0.1);
  animation: morph 8s ease-in-out infinite;
}

.dark-mode .profile-img-container {
  border-color: rgba(30, 41, 59, 0.1);
}

@keyframes morph {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  50% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
}

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

.hero-btns {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.social-icons {
  display: flex;
  gap: 1.2rem;
  margin-top: 3rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--light);
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  font-size: 1.3rem;
}

.dark-mode .social-icons a {
  background: var(--dark-card);
  color: var(--dark-primary);
}

.social-icons a:hover {
  transform: translateY(-7px);
  background: var(--gradient);
  color: white;
  box-shadow: var(--shadow-hover);
}

.dark-mode .social-icons a:hover {
  background: linear-gradient(
    135deg,
    var(--dark-primary),
    var(--dark-secondary)
  );
}

/* Services Section */
#services {
  position: relative;
  background: linear-gradient(to bottom, #0f1a2e, #152238);
}

.dark-mode #services {
  background: linear-gradient(to bottom, #0a1220, #0f1a2e);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.dark-mode .service-card {
  background: rgba(21, 34, 56, 0.4);
  box-shadow: var(--dark-shadow);
  border: 1px solid rgba(21, 34, 56, 0.3);
}

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

.dark-mode .service-card:hover {
  box-shadow: var(--dark-shadow-hover);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.dark-mode .service-icon {
  background: linear-gradient(
    135deg,
    var(--dark-primary),
    var(--dark-secondary)
  );
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.service-card p {
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* Experience Section */
#experience {
  position: relative;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><circle cx="20" cy="20" r="3" fill="%231e4fd8" opacity="0.1"/><circle cx="50" cy="50" r="2" fill="%230d8fcf" opacity="0.1"/><circle cx="80" cy="80" r="4" fill="%230e9d8f" opacity="0.1"/></svg>');
}

.dark-mode #experience {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><circle cx="20" cy="20" r="3" fill="%233b82f6" opacity="0.1"/><circle cx="50" cy="50" r="2" fill="%230ea5e9" opacity="0.1"/><circle cx="80" cy="80" r="4" fill="%2314b8a6" opacity="0.1"/></svg>');
}

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

.section-header h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  border-radius: 10px;
}

.dark-mode .timeline::after {
  background: linear-gradient(
    to bottom,
    var(--dark-primary),
    var(--dark-secondary)
  );
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1.5rem 2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.timeline-item::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--card-bg);
  border: 4px solid var(--primary);
  border-radius: 50%;
  top: 1.8rem;
  z-index: 1;
  box-shadow: 0 0 0 6px rgba(30, 79, 216, 0.2);
}

.dark-mode .timeline-item::after {
  background: var(--dark-card);
  border-color: var(--dark-primary);
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.2);
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.left::after {
  right: -10px;
}

.right::after {
  left: -10px;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .timeline-content {
  background: rgba(21, 34, 56, 0.4);
  box-shadow: var(--dark-shadow);
  border: 1px solid rgba(21, 34, 56, 0.3);
}

.timeline-content:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-hover);
}

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

.timeline-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
}

.timeline-content .date {
  display: inline-block;
  background: rgba(30, 79, 216, 0.15);
  color: var(--light);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
}

.dark-mode .timeline-content .date {
  background: rgba(59, 130, 246, 0.15);
  color: var(--dark-text);
}

.timeline-content p {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

/* Projects Section */
#projects {
  background: linear-gradient(to bottom, #0f1a2e, #152238);
}

.dark-mode #projects {
  background: linear-gradient(to bottom, #0a1220, #0f1a2e);
}

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

.project-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(30px);
}

.dark-mode .project-card {
  background: rgba(21, 34, 56, 0.4);
  box-shadow: var(--dark-shadow);
  border: 1px solid rgba(21, 34, 56, 0.3);
}

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

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

.dark-mode .project-card:hover {
  box-shadow: var(--dark-shadow-hover);
}

.project-img {
  width: 100%;
  /* height: 220px; */
  object-fit: cover;
  transition: all 0.3s ease;
}

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

.project-content {
  padding: 1.8rem;
}

.project-content h3 {
  margin-bottom: 0.8rem;
  transition: all 0.3s ease;
  font-size: 1.6rem;
}

.project-card:hover .project-content h3 {
  color: var(--secondary);
}

.dark-mode .project-card:hover .project-content h3 {
  color: var(--dark-secondary);
}

.project-content p {
  font-size: 1rem;
  margin-bottom: 1.2rem;
  min-height: 70px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.tech {
  background: rgba(30, 79, 216, 0.15);
  color: var(--light);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.dark-mode .tech {
  background: rgba(59, 130, 246, 0.15);
  color: var(--dark-text);
}

.project-card:hover .tech {
  background: var(--primary);
  color: white;
}

.dark-mode .project-card:hover .tech {
  background: var(--dark-primary);
}

.project-link {
  display: inline-flex;
  align-items: center;
  color: var(--light);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.dark-mode .project-link {
  color: var(--dark-text);
}

.project-link i {
  margin-left: 0.5rem;
  transition: all 0.3s ease;
}

.project-link:hover {
  color: var(--secondary);
}

.dark-mode .project-link:hover {
  color: var(--dark-secondary);
}

.project-link:hover i {
  transform: translateX(5px);
}

/* Skills Section */
#skills {
  position: relative;
  background: linear-gradient(to bottom, #152238, #0f1a2e);
}

.dark-mode #skills {
  background: linear-gradient(to bottom, #0a1220, #0f1a2e);
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.skill-category {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .skill-category {
  background: rgba(21, 34, 56, 0.4);
  box-shadow: var(--dark-shadow);
  border: 1px solid rgba(21, 34, 56, 0.3);
}

.skill-category h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  color: var(--secondary);
}

.dark-mode .skill-category h3 {
  color: var(--dark-secondary);
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.skill {
  background: rgba(30, 79, 216, 0.15);
  color: var(--light);
  padding: 0.7rem 1.2rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.dark-mode .skill {
  background: rgba(59, 130, 246, 0.15);
  color: var(--dark-text);
}

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

.dark-mode .skill:hover {
  background: var(--dark-primary);
}

/* Contact Section */
#contact {
  position: relative;
  background: linear-gradient(to bottom, #152238, #0f1a2e);
}

.dark-mode #contact {
  background: linear-gradient(to bottom, #0f1a2e, #0a1220);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

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

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .contact-item {
  background: rgba(21, 34, 56, 0.4);
  box-shadow: var(--dark-shadow);
  border: 1px solid rgba(21, 34, 56, 0.3);
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.dark-mode .contact-item:hover {
  box-shadow: var(--dark-shadow-hover);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.dark-mode .contact-icon {
  background: linear-gradient(
    135deg,
    var(--dark-primary),
    var(--dark-secondary)
  );
}

.contact-details h4 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.contact-details p {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.contact-form {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .contact-form {
  background: rgba(21, 34, 56, 0.4);
  box-shadow: var(--dark-shadow);
  border: 1px solid rgba(21, 34, 56, 0.3);
}

.contact-form:hover {
  box-shadow: var(--shadow-hover);
}

.dark-mode .contact-form:hover {
  box-shadow: var(--dark-shadow-hover);
}

.form-group {
  margin-bottom: 1.8rem;
  position: relative;
}

.form-group label {
  position: absolute;
  top: -10px;
  left: 15px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0 10px;
  font-size: 0.9rem;
  color: var(--light);
  font-weight: 500;
}

.dark-mode .form-group label {
  background: rgba(21, 34, 56, 0.4);
  color: var(--dark-text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1.2rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  color: var(--light);
}

.dark-mode .contact-form input,
.dark-mode .contact-form textarea {
  border-color: rgba(21, 34, 56, 0.3);
  background: rgba(21, 34, 56, 0.3);
  color: var(--dark-text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 79, 216, 0.2);
}

.dark-mode .contact-form input:focus,
.dark-mode .contact-form textarea:focus {
  border-color: var(--dark-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

textarea {
  min-height: 180px;
  resize: vertical;
}

/* Footer */
footer {
  background: var(--darker);
  color: white;
  padding: 4rem 0 2rem;
  text-align: center;
}

.dark-mode footer {
  background: #080e1a;
}

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

.footer-logo {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  font-family: "Montserrat", sans-serif;
}

.footer-links {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

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

.dark-mode .footer-links a:hover {
  color: var(--dark-secondary);
}

.social-footer {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.social-footer a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-footer a:hover {
  background: var(--gradient);
  transform: translateY(-5px);
}

.dark-mode .social-footer a:hover {
  background: linear-gradient(
    135deg,
    var(--dark-primary),
    var(--dark-secondary)
  );
}

.copyright {
  color: #94a3b8;
  font-size: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .hero-btns,
  .social-icons {
    justify-content: center;
  }

  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .left::after,
  .right::after {
    left: 21px;
  }

  .right {
    left: 0;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
    margin-left: 1.5rem;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(15, 26, 46, 0.95);
    flex-direction: column;
    align-items: center;
    padding-top: 3rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
  }

  .dark-mode .nav-links {
    background: rgba(10, 18, 32, 0.95);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 1.8rem 0;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.3rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  .social-footer {
    margin-bottom: 1.5rem;
  }

  .copyright {
    font-size: 0.9rem;
  }

  /* Fixed dark mode toggle positioning */
  .theme-toggle {
    margin-left: 0;
  }
}

@media (max-width: 576px) {
  section {
    padding: 4rem 0;
  }

  .hero-content {
    padding-top: 2rem;
  }

  .profile-img-container {
    width: 280px;
    height: 280px;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

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

  .contact-form {
    padding: 1.8rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 1rem;
  }

  .form-group label {
    left: 10px;
  }
}

@media (min-width: 769px) {
  nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .nav-links {
    justify-self: center;
  }

  .nav-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
}
