:root {
  --primary-color: #40e0d0;
  --secondary-color: #20b2aa;
  --text-color: #333;
  --bg-color: #ffffff;
  --card-bg: #f8f9fa;
  --border-color: #e9ecef;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

[data-theme='dark'] {
  --primary-color: #40e0d0;
  --secondary-color: #20b2aa;
  --text-color: #e9ecef;
  --bg-color: #1a1a1a;
  --card-bg: #2d2d2d;
  --border-color: #404040;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

* {
  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(--bg-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 98vw;
  margin: 0;
  padding: 0;
}

/* Header */
header {
  background-color: var(--bg-color);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 1vw;
  max-width: 98vw;
  margin: 0;
  position: relative;
}

.hamburger-menu {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
  position: absolute;
  left: 1vw;
}

.theme-toggle {
  position: absolute;
  right: 1vw;
}

@media (min-width: 769px) {
  .nav-container {
    justify-content: space-between;
  }
  
  .theme-toggle {
    position: static;
    margin-left: 2rem;
  }
}

.logo h1 {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.logo-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

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

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

.theme-toggle {
  background: none;
  border: 2px solid var(--border-color);
  border-radius: 50px;
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  border-color: var(--primary-color);
}

[data-theme='dark'] .sun-icon {
  display: none;
}

[data-theme='light'] .moon-icon,
body:not([data-theme]) .moon-icon {
  display: none;
}

/* Hero Section */
.hero {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--text-color);
  min-height: 25vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.0625rem 0;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 100%;
  padding: 0 0.25rem;
  text-align: center;
}

.hero-text-top, .hero-text-bottom {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.hero-text {
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.hero-image {
  flex: 0 0 auto;
}

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

.hero h1, .hero p, .hero-text-top, .hero-text-bottom {
  color: #2c3e50;
}

[data-theme='dark'] .hero h1,
[data-theme='dark'] .hero p,
[data-theme='dark'] .hero-text-top,
[data-theme='dark'] .hero-text-bottom {
  color: #2c3e50;
}

.hero h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

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

.cta-button {
  background-color: #2c3e50;
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme='dark'] .cta-button {
  background-color: #1a1a1a;
  color: var(--text-color);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.profile-picture {
  width: 15vw;
  height: 15vw;
  border-radius: 0;
  object-fit: cover;
  margin: 0.25rem 0;
  border: 4px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about {
  padding: 5rem 0;
  background-color: var(--card-bg);
}

.about h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2vw;
  align-items: start;
  max-width: 96vw;
  margin: 0 auto;
}

.about-text {
  grid-column: 1;
  grid-row: 1;
}

.skills {
  grid-column: 2;
  grid-row: 1;
}

.certifications-section {
  grid-column: 1;
  grid-row: 2;
}

.certifications-image {
  grid-column: 2;
  grid-row: 2;
}

.certificates-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  box-shadow: var(--shadow);
}

.certifications-section h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-style: italic;
}

.certifications-text {
  margin-bottom: 1rem;
}

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

.skills h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

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

.skill-tag {
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

[data-theme='dark'] .skill-tag {
  color: #2c3e50;
}

/* Projects Section */
.projects {
  padding: 5rem 0;
}

.projects h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

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

.project-card {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.project-card p {
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

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

.project-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Contact Section */
.contact {
  padding: 5rem 0;
  background-color: var(--card-bg);
  text-align: center;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.contact p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

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

/* Page Content Styles */
.page-content {
  padding: 1rem 1vw 0 1vw;
  min-height: 60vh;
}

.resume-page {
  padding: 1rem 0.5vw 0 0.5vw;
}

.resume-page h1 {
  margin-left: 0;
  padding-left: 0;
  text-align: center;
}

.page-content h1 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin: 0 0 1rem 0;
  text-align: center;
  padding-left: 0;
}

/* Resume Styles */
.resume-content {
  width: 98vw;
  max-width: 98vw;
  margin: 0 auto;
  padding: 0 0.5vw;
}

.resume-section {
  margin-bottom: 1.5rem;
}

.resume-section h2 {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin: 0 0 1.5rem 0;
  padding: 0;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(48%, 1fr));
  gap: 1%;
  width: 100%;
}

.experience-item,
.education-item {
  margin-bottom: 1rem;
  padding: 1.5rem;
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: var(--shadow);
  width: 100%;
  box-sizing: border-box;
}

.experience-item h3,
.education-item h3 {
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.company,
.school {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.location {
  color: var(--text-color);
  font-style: italic;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.experience-item ul {
  margin-left: 1.5rem;
}

.skills-list {
  margin: 0 1.25rem 0 1.25rem;
  list-style-type: disc;
}

.skills-list li {
  margin-bottom: 0.5rem;
}

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

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

.skill-category {
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.skill-category h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Contact Styles */
.contact-content {
  max-width: 100vw;
  margin: 0 auto;
  text-align: center;
}

.contact-text {
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-method {
  flex: 1 1 250px;
  max-width: 300px;
}

.contact-method {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  flex: 1 1 200px;
  max-width: 250px;
}

.contact-method:hover {
  transform: translateY(-5px);
}

.contact-method h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

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

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

.resume-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.resume-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.pdf-download {
  margin-bottom: 1.5rem;
  text-align: center;
}

.pdf-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.pdf-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Featured Section */
.featured {
  padding: 0.5rem 0;
  background-color: var(--card-bg);
  min-height: 35vh;
}

.featured h2 {
  text-align: center;
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* Active Navigation */
.nav-menu a.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* Responsive Design */
@media (min-width: 1200px) {
  .hero {
    min-height: 50vh;
    padding: 0;
  }

  .hero-content {
    gap: 0.25rem;
    padding: 0;
  }

  .featured {
    padding: 0.25rem 0;
    min-height: 30vh;
  }
}

@media (min-width: 769px) {
  .nav-menu {
    display: flex;
    position: static;
    flex-direction: row;
    padding: 0;
    box-shadow: none;
    background: none;
    width: auto;
  }
}

@media (max-width: 768px) {
  .hamburger-menu {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow);
    gap: 0.5rem;
    z-index: 1000;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-container {
    min-height: 4rem;
  }
  
  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

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

  .profile-picture {
    width: 60vw;
    height: 60vw;
  }

  .hero {
    padding: 1rem 0;
    min-height: auto;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 0 1rem;
  }

  .hero-text {
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

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

  .featured {
    padding: 1rem 0;
  }

  .about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  
  .about-text {
    order: 1;
  }
  
  .certifications-section {
    order: 2;
  }
  
  .certifications-image {
    order: 3;
  }
  
  .skills {
    order: 4;
  }
  
  .certificates-img {
    width: 90vw;
    max-width: 90vw;
  }
  
  .certifications-image {
    text-align: center;
  }

  .contact-methods {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .page-content h1 {
    font-size: 2rem;
  }

  .experience-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .resume-content {
    padding: 0 2vw;
  }
}
