/* Global Styles */
:root {
  --primary-color: #4f46e5;
  --secondary-color: #1e293b;
  --text-color: #475569;
  --light-color: #f8fafc;
  --accent-color: #6366f1;
  --transition: all 0.3s ease;
  --bg-color: #ffffff;
  --card-bg: white;
  --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  --header-bg: white;
  --hero-bg: #f1f5f9;
  --skills-bg: #f1f5f9;
  --testimonials-bg: #f1f5f9;
  --portfolio-bg: white;
  --contact-bg: white;
  --footer-bg: #1e293b;
  --footer-text: white;
  --footer-text-muted: rgba(255, 255, 255, 0.6);
  --footer-link-bg: rgba(255, 255, 255, 0.1);
  --input-bg: white;
  --input-border: #e2e8f0;
  --input-text: #475569;
  --nav-link-color: var(--text-color);
  --filter-btn-bg: #f1f5f9;
  --filter-btn-text: #475569;
  --section-title-color: var(--secondary-color);
  --section-title-after: var(--primary-color);
  --skill-tag-bg: rgba(79, 70, 229, 0.1);
  --skill-tag-text: var(--primary-color);
  --about-img-border: var(--primary-color);
  --info-icon-color: var(--primary-color);
  --skill-icon-bg: rgba(79, 70, 229, 0.1);
  --skill-icon-color: var(--primary-color);
  --dot-bg: #e2e8f0;
  --dot-active: var(--primary-color);
  --contact-icon-bg: rgba(79, 70, 229, 0.1);
  --social-link-bg: #f1f5f9;
  --social-link-color: var(--secondary-color);
  --back-to-top-bg: var(--primary-color);
  --back-to-top-color: white;
  --footer-social-hover: var(--primary-color);
  --hamburger-color: var(--secondary-color);
}

/* Dark Mode Variables */
body.dark-mode {
  --primary-color: #8b5cf6;
  --secondary-color: #f1f5f9;
  --text-color: #e2e8f0;
  --light-color: #1f2937;
  --accent-color: #a78bfa;
  --bg-color: #0f172a;
  --card-bg: #1e293b;
  --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  --header-bg: rgba(15, 23, 42, 0.95);
  --hero-bg: #0f172a;
  --skills-bg: #111827;
  --testimonials-bg: #111827;
  --portfolio-bg: #0f172a;
  --contact-bg: #0f172a;
  --footer-bg: #0c1118;
  --footer-text: #f8fafc;
  --footer-text-muted: rgba(241, 245, 249, 0.6);
  --footer-link-bg: rgba(241, 245, 249, 0.1);
  --input-bg: #1e293b;
  --input-border: #334155;
  --input-text: #e2e8f0;
  --nav-link-color: #e2e8f0;
  --filter-btn-bg: #1e293b;
  --filter-btn-text: #e2e8f0;
  --section-title-color: #f1f5f9;
  --section-title-after: #8b5cf6;
  --skill-tag-bg: rgba(139, 92, 246, 0.2);
  --skill-tag-text: #a78bfa;
  --about-img-border: #8b5cf6;
  --info-icon-color: #a78bfa;
  --skill-icon-bg: rgba(139, 92, 246, 0.15);
  --skill-icon-color: #a78bfa;
  --dot-bg: #334155;
  --dot-active: #8b5cf6;
  --contact-icon-bg: rgba(139, 92, 246, 0.15);
  --social-link-bg: #1e293b;
  --social-link-color: #e2e8f0;
  --back-to-top-bg: #8b5cf6;
  --back-to-top-color: white;
  --footer-social-hover: #a78bfa;
  --hamburger-color: #f1f5f9;
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  scroll-behavior: smooth;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

ul {
  list-style: none;
}

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

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

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.btn:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.3);
}

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

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

.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--section-title-color);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--section-title-after);
  border-radius: 2px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--header-bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
}

.navbar img {
  width: 30px;
  height: 30px;
  margin-right: 0;
}

.logo {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 0;
}

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

.nav-menu {
  display: flex;
}

.nav-item {
  margin-left: 2rem;
}

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

.nav-link:hover {
  color: var(--primary-color);
}

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

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

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: var(--transition);
  background-color: var(--hamburger-color);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  width: 40px;
  height: 40px;
  background-color: transparent;
  border: none;
  color: var(--text-color);
  font-size: 1.25rem;
  cursor: pointer;
  margin-left: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  padding: 0;
}

.dark-mode-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--primary-color);
}

body.dark-mode .dark-mode-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

.dark-mode-toggle:hover i {
  transform: rotate(30deg);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 8rem 0 6rem;
  background: var(--bg-color);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
}

.shape {
  position: absolute;
  filter: blur(50px);
  opacity: 0.5;
  border-radius: 50%;
}

.shape-1 {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  width: 500px;
  height: 500px;
  top: -250px;
  right: -100px;
}

.shape-2 {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  width: 300px;
  height: 300px;
  bottom: -150px;
  left: -150px;
}

.shape-3 {
  background: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
  width: 200px;
  height: 200px;
  bottom: 50%;
  right: 15%;
}

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

.hero-content {
  max-width: 650px;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  animation: fadeInDown 1s ease forwards;
  opacity: 0;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.gradient-text {
  background: linear-gradient(45deg, var(--primary-color), #8b5cf6, #6366f1);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient 3s ease infinite;
}

.highlight {
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
}

.highlight:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 600px;
  color: var(--text-color);
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.9s;
  opacity: 0;
}

.hero-stats {
  display: flex;
  gap: 3rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-color);
}

.hero-image {
  position: relative;
}

.image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.image-wrapper:hover {
  transform: translateY(-10px);
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.tech-stack {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.tech-stack i {
  font-size: 1.75rem;
  color: white;
  opacity: 0.9;
  transition: transform 0.3s ease;
}

.tech-stack i:hover {
  transform: translateY(-5px);
  opacity: 1;
}

/* Responsive styles for hero section */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

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

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

  .hero-image {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 6rem 0 4rem;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .hero-description {
    font-size: 1.1rem;
    margin-bottom: 1.75rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 2rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .hero-image {
    display: none;  /* Hide hero image on mobile */
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 0;
  }

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-stats {
    justify-content: center;
    margin-top: 2rem;
  }
}

@media (max-width: 576px) {
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }

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

/* Dark mode specific styles */
body.dark-mode .hero-frame {
  background: var(--card-bg);
}

body.dark-mode .hero-greeting {
  background-color: rgba(59, 130, 246, 0.15);
}

/* Responsive styles */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

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

  .hero-image-wrapper {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 8rem 0 5rem;
  }
  
  /* Hide hero image on mobile */
  .hero-image-wrapper {
    display: none;
  }
  
  /* Center content and adjust spacing without image */
  .hero-container {
    text-align: center;
    justify-content: center;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-btns {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

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

  .hero-btns {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .hero-btns .btn {
    margin-bottom: 1rem;
    width: 100%;
    text-align: center;
    padding: 0.9rem 1.5rem;
  }
}

.email-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.5rem;
  padding: 0.4rem 0.8rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: var(--transition);
}

.email-link:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.email-link i {
  margin-right: 0.5rem;
}

body.dark-mode .email-link {
  background-color: var(--primary-color);
}

body.dark-mode .email-link:hover {
  background-color: #60a5fa;
}

/* About Section */
.about {
  background-color: var(--bg-color);
}

.about-container {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.about-img {
  flex: 1;
  position: relative;
  max-width: 450px;
}

.about-img img {
  border-radius: 10px;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.about-img::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--about-img-border);
  border-radius: 10px;
  z-index: -1;
}

.about-content {
  flex: 1;
}

.about-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  position: relative;
}

.about-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 1.5px;
}

.about-text {
  margin-bottom: 1.5rem;
}

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

.info-item {
  display: flex;
  align-items: center;
}

.info-icon {
  font-size: 1.25rem;
  color: var(--info-icon-color);
  margin-right: 0.5rem;
}

/* Skills Section */
.skills {
  background-color: var(--skills-bg);
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

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

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

.skill-icon {
  width: 60px;
  height: 60px;
  background-color: var(--skill-icon-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.skill-icon i {
  font-size: 1.75rem;
  color: var(--skill-icon-color);
}

.skill-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var (--secondary-color);
  margin-bottom: 1rem;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  padding: 0.25rem 0.75rem;
  background-color: var(--skill-tag-bg);
  color: var(--skill-tag-text);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Portfolio Section */
.portfolio {
  background-color: var(--portfolio-bg);
}

.portfolio-filter {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  background-color: var(--filter-btn-bg);
  color: var(--filter-btn-text);
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  height: 250px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.1);
}

.portfolio-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}

.portfolio-category {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.portfolio-links {
  display: flex;
  gap: 0.75rem;
}

.portfolio-link {
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.portfolio-link:hover {
  background-color: var(--primary-color);
  color: white;
}

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

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

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

.contact-info-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.contact-info-text {
  margin-bottom: 1.5rem;
}

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

.contact-icon {
  width: 45px;
  height: 45px;
  background-color: var(--contact-icon-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.contact-details h3 {
  font-size: 1rem;
  color: var(--secondary-color);
  margin-bottom: 0.25rem;
}

.contact-details p {
  font-size: 0.875rem;
  color: #6b7280;
}

.contact-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: var(--social-link-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

.social-link:hover i {
  color: white;
}

.social-link i {
  font-size: 1.25rem;
  color: var(--social-link-color);
  transition: var(--transition);
}

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

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--secondary-color);
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--input-text);
  border-radius: 0.375rem;
  transition: var(--transition);
}

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

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

/* Form Status Message */
.form-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  text-align: center;
  display: none;
}

.form-status.success {
  display: block;
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-status.error {
  display: block;
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

body.dark-mode .form-status.success {
  background-color: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

body.dark-mode .form-status.error {
  background-color: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Footer */
.footer {
  background-color: var(--footer-bg);
  padding: 3rem 0 1.5rem;
  color: var(--footer-text);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--footer-text);
}

.footer-logo img {
  width: 35px;
  height: 35px;
}

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

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-nav-link {
  color: var(--footer-text-muted);
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-nav-link:hover {
  color: var(--footer-text);
}

.footer-socials {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  background-color: var(--footer-link-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--footer-text);
}

.footer-social-link:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-copy {
  color: var(--footer-text-muted);
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .footer {
    padding: 2.5rem 0 1.25rem;
  }
  
  .footer-nav {
    gap: 1.25rem;
    margin-bottom: 1.5rem;
  }
  
  .footer-socials {
    gap: 1rem;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: var(--back-to-top-bg);
  color: var(--back-to-top-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var (--transition);
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.back-to-top:hover {
  background-color: #1d4ed8;
  transform: translateY(-3px);
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.animate {
  opacity: 0;
}

.animate.fade-up {
  animation: fadeInUp 0.7s ease forwards;
}

.animate.fade-left {
  animation: fadeInLeft 0.7s ease forwards;
}

.animate.fade-right {
  animation: fadeInRight 0.7s ease forwards;
}

.animate.zoom-in {
  animation: zoomIn 0.7s ease forwards;
}

.animate.bounce {
  animation: bounce 1s ease forwards;
}

/* Animation Delays */
.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.3s;
}

.delay-3 {
  animation-delay: 0.5s;
}

.delay-4 {
  animation-delay: 0.7s;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .about-container {
    flex-direction: column;
    gap: 3rem;
  }

  .about-img {
    max-width: 100%;
  }

  .contact-container {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    position: relative;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem 0;
  }

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

  .nav-item {
    margin: 1rem 0;
  }

  .hamburger {
    display: block;
  }

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

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

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

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

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

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

  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

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

@media (max-width: 576px) {
  .container {
    padding: 0 1.5rem;
  }

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

  .section {
    padding: 4rem 0;
  }

  .portfolio-filter {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
  }

  .portfolio-grid {
    gap: 1.5rem;
  }
}

/* Special Dark Mode Enhancements */
body.dark-mode {
  background-image: radial-gradient(
    circle at 80% 10%,
    rgba(59, 130, 246, 0.05) 0%,
    transparent 20%
  );
  background-attachment: fixed;
}

body.dark-mode .header {
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .skill-card {
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .skill-card:hover {
  background-color: #283548;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

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

body.dark-mode .skill-tag {
  background-color: rgba(59, 130, 246, 0.2);
}

body.dark-mode .form-input::placeholder {
  color: #64748b;
}

body.dark-mode .testimonial-slide {
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .contact-icon {
  background-color: rgba(59, 130, 246, 0.15);
}

body.dark-mode .social-link {
  background-color: #1e293b;
}

body.dark-mode .hero::before {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.15),
    rgba(96, 165, 250, 0.05)
  );
}

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

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 3px solid var(--primary-color);
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: var(--skill-icon-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon i {
  font-size: 1.75rem;
  color: var(--primary-color);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.service-description {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.service-link {
  color: var (--primary-color);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

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

.service-link:hover {
  color: #1d4ed8;
}

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

/* Experience/Timeline Section */
.experience {
  background-color: var(--hero-bg);
  position: relative;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  width: 2px;
  height: 100%;
  background-color: var(--dot-bg);
  left: 50%;
  transform: translateX(-50%);
  top: 0;
}

.timeline-item {
  margin-bottom: 3rem;
  position: relative;
  width: 100%;
}

.timeline-item:nth-child(odd) {
  padding-right: calc(50% + 30px);
  text-align: right;
}

.timeline-item:nth-child(even) {
  padding-left: calc(50% + 30px);
}

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

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

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

.timeline-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.25rem;
}

.timeline-company {
  font-size: 0.95rem;
  color: var(--text-color);
  opacity: 0.75;
  margin-bottom: 1rem;
}

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

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

.timeline-tags span {
  padding: 0.2rem 0.6rem;
  background-color: var(--skill-tag-bg);
  color: var(--skill-tag-text);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Dark mode specific overrides */
body.dark-mode .service-card {
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .service-card:hover {
  background-color: #283548;
  border-bottom: 3px solid var(--primary-color);
}

body.dark-mode .timeline::before {
  background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .timeline-content {
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .timeline::before {
    left: 30px;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 70px;
    padding-right: 0;
    text-align: left;
  }

  .timeline-dot {
    left: 30px;
  }
}

/* Mobile Menu Improvements */
body.dark-mode .nav-menu {
  background-color: var(--header-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  /* Mobile header improvements */
  .navbar {
    padding: 1rem 0;
  }
  
  /* More prominent hero elements on mobile */
  .hero-greeting {
    padding: 0.6rem 1.75rem;
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .hero-title {
    margin-bottom: 1.75rem;
  }
  
  .hero-description {
    padding: 0 0.5rem;
    margin-bottom: 2.75rem;
  }
  
  /* Improved spacing for sections on mobile */
  .section {
    padding: 4.5rem 0;
  }
  
  .section-title {
    margin-bottom: 2.5rem;
  }
  
  /* Highlight the scroll indicator more on mobile */
  .scroll-indicator {
    padding: 0.75rem 1.5rem;
    background-color: rgba(37, 99, 235, 0.08);
    border-radius: 30px;
  }
  
  body.dark-mode .scroll-indicator {
    background-color: rgba(59, 130, 246, 0.1);
  }
}
