/* Global Styles */
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --light-color: #121212;
  --dark-color: #1e1e1e;
  --text-color: #e0e0e0;
  --text-light: #b0b0b0;
  --card-bg: #2d2d2d;
  --header-bg: #1a1a1a;
  --form-bg: #252525;
}

[data-theme="light"] {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --light-color: #f9f9f9;
  --dark-color: #ffffff;
  --text-color: #333333;
  --text-light: #515a5b;
  --card-bg: #ffffff;
  --header-bg: #ffffff;
  --form-bg: #f5f5f5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }
}

/* Header Styles */
header {
  background-color: var(--header-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 700;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* Theme Toggle Styles */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  margin-left: 2rem;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.theme-toggle:hover {
  color: var(--primary-color);
}

.theme-toggle i {
  font-size: 1.2rem;
}

.toggle-text {
  font-size: 0.9rem;
  font-weight: 600;
}

.hamburger {
  display: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  background: linear-gradient(
    135deg,
    var(--light-color) 0%,
    var(--dark-color) 100%
  );
  transition: background 0.3s ease;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.image-container {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: var(--primary-color);
  opacity: 0.8;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: box-shadow 0.3s ease;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  line-height: 1.2;
  transition: color 0.3s ease;
}

.hero h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  color: var(--text-light);
  transition: color 0.3s ease;
}

.typing-text {
  color: var(--primary-color);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  transition: color 0.3s ease;
}

.btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #2980b9;
  transform: translateY(-3px);
}

/* About Section */
.about-section {
  padding: 6rem 0;
  background: var(--dark-color);
  transition: background-color 0.3s ease;
}

.about-content {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
}

.about-text {
  flex: 1;
}

.tagline {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: var(--text-light);
  transition: color 0.3s ease;
}

/* Skills Section */
.tech-stack h4 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.skill-pill {
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 0.9rem;
  display: inline-block;
}

/* Education Section */
.education {
  flex: 1;
}

.education-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.education-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.education-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.education-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 30%;
  background: #333;
  padding: 5px;
}

.education-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.education-date {
  font-weight: 500;
  color: var(--primary-color);
  font-size: 0.9rem;
}

.education-divider {
  height: 1px;
  background-color: #444;
  margin: 0.5rem 0;
  transition: background-color 0.3s ease;
}

[data-theme="light"] .education-divider {
  background-color: #e0e0e0;
}

/* Projects Section */
.projects-section {
  padding: 6rem 0;
  background: var(--dark-color);
  transition: background-color 0.3s ease;
}

.section-title {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
  margin-bottom: 30px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 2rem;
}

.project-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.project-image-container {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #333;
  transition: background-color 0.3s ease;
}

[data-theme="light"] .project-image-container {
  background: #f0f0f0;
}

.project-image {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border: none;
}

.project-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  color: var(--primary-color);
}

.project-description {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.7;
  transition: color 0.3s ease;
}

.project-features {
  color: var(--text-light);
  padding-left: 20px;
  transition: color 0.3s ease;
}

.project-features li {
  margin-bottom: 5px;
}

.tech-stack {
  margin-top: auto;
}

.tech-stack h4 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.tech-stack-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-stack-item {
  background-color: var(--primary-color);
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
}

.view-details-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 20px;
  align-self: flex-start;
  transition: background-color 0.3s;
}

.view-details-btn:hover {
  background-color: #2980b9;
}

/* Contact Section */
.contact-section {
  padding: 6rem 0;
  background: var(--dark-color);
  transition: background-color 0.3s ease;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.contact-columns {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info-column,
.contact-form-column {
  flex: 1;
}

.contact-info-column h3,
.contact-form-column h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.contact-info-column h3::after,
.contact-form-column h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 0.3rem;
}

.contact-item h4 {
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.contact-item p {
  color: var(--text-light);
  line-height: 1.6;
  transition: color 0.3s ease;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group:nth-child(5) {
  grid-column: span 2;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #444;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: var(--form-bg);
  color: var(--text-color);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
  border-color: #ddd;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background: var(--header-bg);
  color: rgb(73, 71, 71);
  padding: 2rem 0;
  text-align: center;
  transition: background-color 0.3s ease;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-links {
  margin-top: 1rem;
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: rgb(73, 71, 71);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 6rem 0 2rem;
  }

  .hero-content {
    margin-bottom: 2rem;
  }

  .image-container {
    width: 250px;
    height: 250px;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--header-bg);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  }

  .nav-links li {
    margin: 1rem 0;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .contact-item {
    padding: 1.2rem;
  }
}

@media (max-width: 576px) {
  .contact-columns {
    flex-direction: column;
  }
}
