/* General Styles */
:root {
  --primary-color: #2563eb;
  --secondary-color: #0f172a;
  --accent-color: #1e40af;
  --text-color: #334155;
  --light-text: #94a3b8;
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --success-color: #10b981;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Dark mode variables */
.dark-mode {
  --primary-color: #3b82f6;
  --secondary-color: #f8fafc;
  --accent-color: #60a5fa;
  --text-color: #e2e8f0;
  --light-text: #cbd5e1;
  --light-bg: #0f172a;
  --card-bg: #1e293b;
  --border-color: #334155;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--secondary-color);
  position: relative;
  padding-bottom: 1rem;
}

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

section {
  padding: 5rem 0;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

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

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

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

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

/* Header and Navigation */
header {
  background-color: var(--card-bg);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

#navbar {
  padding: 1rem 0;
}

#navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.nav-links {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-links li {
  margin-left: 1.5rem;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
  display: flex;
  align-items: center;
  height: 100%;
}

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

.theme-toggle {
  display: flex;
  align-items: center;
  height: 100%;
}

#theme-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-color);
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

#theme-toggle-btn:hover {
  background-color: var(--border-color);
}

#theme-toggle-btn .fa-sun {
  display: none;
}

.dark-mode #theme-toggle-btn .fa-moon {
  display: none;
}

.dark-mode #theme-toggle-btn .fa-sun {
  display: block;
  color: var(--primary-color);
}

.hamburger {
  display: none;
  cursor: pointer;
  align-items: center;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero Section */
#hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  transition: var(--transition);
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('https://images.unsplash.com/photo-1542831371-29b0f74f9713?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

/* Add dark mode version for hero background */
.dark-mode #hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('https://images.unsplash.com/photo-1542831371-29b0f74f9713?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.hero-content h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.highlight {
  color: var(--primary-color);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* About Section */
.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.about-text {
  flex: 1;
  max-width: 700px;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.personal-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail i {
  color: var(--primary-color);
}

/* Education Section */
.education-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

.education-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.education-content h4 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.duration {
  font-size: 0.9rem;
  color: var(--light-text);
  margin-bottom: 0.5rem;
}

.description {
  margin-top: 0.5rem;
}

/* Experience Section */
.experience-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.experience-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.experience-content h4 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.experience-content ul {
  margin-top: 1rem;
  padding-left: 1.5rem;
  list-style-type: disc;
}

.experience-content li {
  margin-bottom: 0.5rem;
}

/* Skills Section */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.skills-category {
  flex: 1;
  min-width: 300px;
}

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

.language-skills {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.language {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: var(--card-bg);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.language p {
  margin: 0;
}

.level {
  color: var(--primary-color);
  font-weight: 500;
}

.tech-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.skill-tag {
  padding: 0.5rem 1rem;
  background-color: var(--card-bg);
  border-radius: 4px;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary-color);
  transition: var(--transition);
}

.skill-tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
  background-color: var(--primary-color);
  color: white;
}

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

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

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

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.project-content p {
  margin-bottom: 1rem;
}

.project-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
  list-style-type: disc;
}

.project-content li {
  margin-bottom: 0.5rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.project-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Hobbies Section */
.hobbies-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.hobby-item {
  text-align: center;
  max-width: 250px;
}

.hobby-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Contact Section */
.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

.contact-buttons {
  margin-top: 0.5rem;
  display: flex;
  gap: 1rem;
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: var(--light-bg);
  text-align: center;
  padding: 2rem 0;
}

/* Media Queries */
@media screen and (max-width: 768px) {
  .nav-links {
      position: fixed;
      top: 70px;
      left: -100%;
      width: 100%;
      height: calc(100vh - 70px);
      background-color: var(--card-bg);
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2rem;
      transition: var(--transition);
      box-shadow: var(--shadow);
  }

  .nav-links.active {
      left: 0;
  }
  
  .nav-links li {
      margin: 0;
  }
  
  .hamburger {
      display: block;
  }
  
  .hamburger.active .bar:nth-child(1) {
      transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .hamburger.active .bar:nth-child(2) {
      opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(3) {
      transform: rotate(45deg) translate(-5px, -6px);
  }
  
  .hero-content h1 {
      font-size: 2.5rem;
  }
  
  .hero-content h2 {
      font-size: 1.5rem;
  }
  
  .hero-buttons {
      flex-direction: column;
  }
  
  .section-title {
      font-size: 1.8rem;
  }

  .theme-toggle {
    margin: 1rem 0;
  }
}

@media screen and (max-width: 480px) {
  .hero-content h1 {
      font-size: 2rem;
  }
  
  .hero-content h2 {
      font-size: 1.2rem;
  }
  
  .hero-content p {
      font-size: 1rem;
  }
  
  .section-title {
      font-size: 1.5rem;
  }
}