:root {
  --primary: #4361ee;
  --secondary: #3f37c9;
  --accent: #4895ef;
  --text: #212529;
  --bg: #f8f9fa;
  --card-bg: #f0f0f0;
  --header-bg: #f0f0f0;
  --footer-bg: #6b7e92;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  --primary: #4895ef;
  --secondary: #4361ee;
  --accent: #3f37c9;
  --text: #f8f9fa;
  --bg: #121212;
  --card-bg: #1e1e1e;
  --header-bg: #1a1a1a;
  --footer-bg: #121212;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

body {
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
}

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

/* Header Styles */
header {
  background-color: var(--header-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  z-index: 1000;
}

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

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

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

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

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s;
}

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

.theme-toggle {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.theme-toggle svg {
  transition: transform 0.25s ease;
}
.theme-toggle.rotating svg {
  transform: rotate(180deg);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hero Section */
.hero {
  padding: 150px 0 100px;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  color: var(--text);
  opacity: 0.9;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.social-links a {
  color: var(--text);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s;
  border: 2px solid var(--primary);
}

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

/* About Section */
.about {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--text);
  margin-bottom: 15px;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}
.about-img {
  flex: 1;
  min-width: 200px;
  max-width: 350px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary);
}

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

/* Tech Stack */
.tech-stack-section {
  padding: 80px 0;
  background-color: var(--card-bg);
}

.tech-icons-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.tech-icon {
  width: 100px;
  height: 100px;
  background-color: var(--card-bg);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  padding: 15px;
  text-align: center;
}

.tech-icon i {
  font-size: 2rem;
  margin-bottom: 10px;
}

.tech-icon span {
  font-size: 0.9rem;
  color: var(--text);
}

/* Projects Section */
.projects {
  padding: 100px 0;
  background-color: var(--card-bg);
}

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

.project-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

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

.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-content {
  padding: 20px;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text);
}

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

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

.project-link {
  padding: 8px 15px;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9rem;
  transition: all 0.3s;
}

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

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

.footer-content p {
  margin-bottom: 20px;
  opacity: 0.8;
}

.copyright {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #bbb;
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  .about-content {
    flex-direction: column;
    gap: 20px;
  }

  .about-img {
    min-width: 150px;
    max-width: 250px;
    margin: 0 auto;
  }

  .about-text {
    min-width: auto;
    width: 100%;
    text-align: center;
  }

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

  .about-text p {
    font-size: 0.95rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
  }

  .project-card {
    width: 90%;
    max-width: 350px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

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

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

  .nav-links {
    display: none;
  }
}
