:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #475569;
  --dark: #0f172a;
  --light: #f8fafc;
  --gray: #64748b;
  --gray-light: #e2e8f0;
  --card-bg: #ffffff;
  --bg: #f1f5f9;
  --shadow: rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

.dark-mode {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --secondary: #b3b3b3;
  --dark: #f1f5f9;
  --light: #181818;
  --gray: #b3b3b3;
  --gray-light: #2b2a2a;
  --card-bg: #2b2a2a;
  --bg: #181818;
  --shadow: rgba(0, 0, 0, 0.3);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  transition: var(--transition);
}

h1, h2, h3, h4, h5 {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  font-weight: 600;
}

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

section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background: var(--primary);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--secondary);
  max-width: 700px;
  margin: 0 auto 50px;
}

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

.dark-mode header {
  background-color: rgba(43, 42, 42, 0.95);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 1.1rem;
  transition: var(--transition);
  position: relative;
}

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

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

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary);
  bottom: -5px;
  left: 0;
  transition: var(--transition);
}

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

.theme-toggle {
  background: var(--primary);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  /* margin-left: 20px; */
}

.theme-toggle:hover {
  background: var(--primary-dark);
  transform: rotate(20deg);
}

/* Hero Section */
#hero {
  padding-top: 180px;
  padding-bottom: 100px;
  display: flex;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
}

.dark-mode #hero {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
}

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

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-text h1 span {
  color: var(--primary);
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 30px;
  max-width: 600px;
}

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

.profile-img {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--primary);
  box-shadow: 0 10px 30px var(--shadow);
  transition: var(--transition);
}

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

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

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

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

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px var(--shadow);
  transition: var(--transition);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

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

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

.service-icon {
  width: 70px;
  height: 70px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 30px;
  color: var(--primary);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: white;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--secondary);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.dark-mode .project-img {
  background: #181818;
}

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

.project-img {
  width: 100%;
  height: 250px;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 3rem;
  transition: var(--transition);
}

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

.project-content {
  padding: 25px;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

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

.project-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  transition: var(--transition);
}

.project-link:hover {
  color: var(--primary-dark);
  transform: translateX(5px);
}

/* Experience */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background: var(--primary);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 20px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

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

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

.timeline-content {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px var(--shadow);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.timeline-content::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  top: 30px;
}

.timeline-item:nth-child(odd) .timeline-content::after {
  right: -50px;
}

.timeline-item:nth-child(even) .timeline-content::after {
  left: -50px;
}

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

.timeline-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.timeline-desc {
  color: var(--secondary);
}

/* Testimonials */
.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.testimonial-card {
  min-width: 100%;
  background: var(--card-bg);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--shadow);
  margin: 20px 0;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 5rem;
  color: var(--primary);
  opacity: 0.1;
  font-family: serif;
  line-height: 1;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  line-height: 1.8;
}

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

.author-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gray-light);
  margin-right: 15px;
  background-size: cover;
  background-position: center;
}

.author-info h4 {
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.author-info p {
  color: var(--secondary);
  font-size: 0.9rem;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.slider-prev, .slider-next {
  background: var(--primary);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.slider-prev:hover, .slider-next:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

/* Contact */
.contact-container {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  flex: 1;
  display: flex;
  grid-template-columns: 1fr;
  gap: 20px;
}

.contact-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--shadow);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  width: 35%;
}

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

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--shadow);
}

.contact-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.contact-card h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.contact-card a, .contact-card p {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}

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

.social-links {
  flex: 1;
  background: var(--card-bg);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--shadow);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-mode .social-links {
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links h3 {
  margin-bottom: 30px;
  font-size: 1.5rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  text-decoration: none;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-5px);
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 60px 0 30px;
  text-align: center;
}

.dark-mode footer {
  background: #0a0a0a;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-content h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.footer-content p {
  margin: 20px 0;
  color: #cbd5e1;
}

.copyright {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-top: 30px;
}


/* Mobile Menu Styles */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--dark);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
}

.dark-mode .mobile-menu-toggle {
  color: var(--dark);
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav-links {
  display: flex;
  list-style: none;
  transition: var(--transition);
}

.nav-links .mobile-theme-toggle {
  display: none;
}

/* Mobile view styles */
@media (max-width: 768px) {
  .mobile-menu-toggle {
      display: block;
  }
  
  .desktop-theme-toggle {
      display: none;
  }
  
  .nav-links {
      position: fixed;
      top: 0;
      left: -100%;
      width: 80%;
      max-width: 300px;
      height: 100vh;
      background: var(--card-bg);
      flex-direction: column;
      padding: 80px 30px 30px;
      z-index: 999;
      box-shadow: 5px 0 15px var(--shadow);
  }
  
  .nav-links.active {
      left: 0;
  }
  
  .nav-links li {
      margin: 15px 0;
  }
  
  .nav-links a {
      font-size: 1.2rem;
      padding: 10px 0;
      display: block;
  }
  
  .nav-links .mobile-theme-toggle {
      display: block;
      margin-top: 30px;
  }
  
  .nav-links .mobile-theme-toggle .theme-toggle {
      /* width: 100%; */
      border-radius: 8px;
      /* padding: 12px; */
      /* justify-content: flex-start; */
      gap: 10px;
  }
}


/* Responsive */
@media (max-width: 992px) {
  .hero-content {
      flex-direction: column-reverse;
      text-align: center;
  }
  
  .hero-text p {
      margin: 0 auto 30px;
  }
  
  .timeline::after {
      left: 31px;
  }
  
  .timeline-item {
      width: 100%;
      padding-left: 70px;
      padding-right: 25px;
      left: 0 !important;
  }
  
  .timeline-content::after {
      left: -50px !important;
      top: 30px;
  }
  
  .contact-container {
      flex-direction: column;
  }

  .contact-info {
    display: grid;
  }

  .contact-card {
    width: 100%;
  }
}


@media (max-width: 768px) {
  /* .nav-links {
      display: none;
  } */
  
  .section-title h2 {
      font-size: 2rem;
  }
  
  .hero-text h1 {
      font-size: 2.5rem;
  }
  
  .profile-img {
      width: 250px;
      height: 250px;
  }
  
  .projects-grid {
      grid-template-columns: 1fr;
  }
  
  section {
      padding: 80px 0;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
      font-size: 2rem;
  }
  
  .hero-text p {
      font-size: 1rem;
  }
  
  .btn, .btn-outline {
      display: block;
      width: 100%;
      margin: 10px 0;
  }
  
  .testimonial-card {
      padding: 30px 20px;
  }
}