:root {
  --primary-color: #e63946;
  --secondary-color: #ff6b6b;
  --accent-color: #fbbf24;
  --text-color: #23272f;
  --light-gray: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(230,57,70,0.08);
  --transition: all 0.2s cubic-bezier(.4,0,.2,1);
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.navbar {
  background: var(--white);
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--primary-color);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.profile-pic {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
  background: var(--white);
}
.logo h1 {
  color: var(--primary-color);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
  padding-bottom: 4px;
}
.nav-links a:hover, .nav-links a:focus {
  color: var(--primary-color);
}
.nav-links a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width .3s;
  position: absolute;
  left: 0;
  bottom: 0;
}
.nav-links a:hover::after, .nav-links a:focus::after {
  width: 100%;
}

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  text-align: center;
  padding-top: 90px;
  position: relative;
  overflow: hidden;
}
.hero-content {
  padding: 3rem 0 2rem 0;
}
.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}
.subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}
.cta-buttons {
  margin-top: 2rem;
}
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.btn.primary {
  background: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}
.btn.secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn:hover, .btn:focus {
  background: var(--accent-color);
  color: var(--primary-color);
  border-color: var(--accent-color);
  transform: translateY(-2px) scale(1.04);
}

section {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

h2 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Timeline for Experience */
.timeline-item {
  background: var(--white);
  margin-bottom: 2rem;
  padding: 1.5rem 1.5rem 1.5rem 2.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--primary-color);
  position: relative;
}
.timeline-item h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.timeline-item .duration {
  color: var(--secondary-color);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: block;
}
.timeline-item ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
}
.timeline-item ul li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Project Grid */
.projects {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 3rem 2rem;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.project-card {
  background: var(--light-gray);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 1.5rem 1.2rem;
  transition: var(--transition);
  border-left: 5px solid var(--primary-color);
}
.project-card h3 {
  color: var(--primary-color);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.project-card p {
  color: var(--secondary-color);
  font-size: 1rem;
  margin-bottom: 0.6rem;
}
.project-card ul {
  padding-left: 1.1rem;
}
.project-card ul li {
  margin-bottom: 0.4rem;
}
.project-card:hover, .project-card:focus {
  /* Removed yellow hover color and text color change */
  transform: scale(1.03);
  background: var(--light-gray);
  color: inherit;
  border-color: var(--primary-color);
}

/* About, Education, Awards */
.about, .education, .awards {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 3rem 2rem;
}
.about-text {
  font-size: 1.1rem;
  color: var(--text-color);
}
.education-list, .awards ul {
  margin-top: 1.5rem;
}
.education-item, .awards li {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}
.education-item h3 {
  color: var(--primary-color);
  font-size: 1.12rem;
  font-weight: 600;
}

/* Contact Section */
.contact {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 3rem 2rem;
}
.contact-content {
  max-width: 600px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 1.5rem;
}
input, textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1.5px solid var(--primary-color);
  border-radius: 5px;
  font-family: inherit;
  font-size: 1.05rem;
  transition: var(--transition);
}
input:focus, textarea:focus {
  border-color: var(--accent-color);
  outline: none;
}
textarea {
  height: 120px;
  resize: vertical;
}
button[type="submit"] {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}
button[type="submit"]:hover, button[type="submit"]:focus {
  background: var(--accent-color);
  color: var(--primary-color);
}

.footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 2.5rem 0;
  text-align: center;
  margin-top: 3rem;
}
.social-links {
  margin-bottom: 1rem;
}
.social-links a {
  color: var(--white);
  margin: 0 1rem;
  font-size: 1.5rem;
  transition: var(--transition);
}
.social-links a:hover, .social-links a:focus {
  color: var(--accent-color);
}

@media (max-width: 900px) {
  .container {
      padding: 0 10px;
  }
  .hero h1 {
      font-size: 2.2rem;
  }
  .timeline-item, .project-card, .about, .education, .awards, .contact, .projects {
      padding: 1.5rem 1rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
      display: none;
  }
  .timeline {
      padding-left: 1rem;
  }
  .hero h1 {
      font-size: 1.5rem;
  }
  .about-content {
      flex-direction: column;
      text-align: center;
  }
}

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

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

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

/* Navbar */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

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

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 500;
  transition: var(--transition);
}

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

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  text-align: center;
}

.hero-content {
  padding: 2rem;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

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

.btn.secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  margin-left: 1rem;
}

.btn:hover {
  transform: translateY(-2px);
}

/* Projects Section */
.projects {
  padding: 5rem 0;
  background: var(--light-gray);
}

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

/* About Section */
.about {
  padding: 5rem 0;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background: var(--light-gray);
}

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

.form-group {
  margin-bottom: 1.5rem;
}

input, textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
}

textarea {
  height: 150px;
  resize: vertical;
}

/* Popup Modal Styles */
.project-popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}
.project-popup.show {
  display: flex;
}
.popup-content {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  max-width: 520px;
  width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.close-popup {
  position: absolute;
  top: 10px; right: 18px;
  font-size: 2rem;
  color: #e63946;
  cursor: pointer;
  font-weight: bold;
  z-index: 2;
}
.popup-images {
  margin-top: 1rem;
  text-align: center;
}
.popup-images img {
  max-width: 100%;
  max-height: 250px;
  border-radius: 8px;
  margin: 0 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.slider-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}
.slider-controls button {
  background: #e63946;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
}
.slider-controls button:hover {
  background: #ff6b6b;
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.social-links {
  margin-bottom: 1rem;
}

.social-links a {
  color: var(--white);
  margin: 0 1rem;
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
      display: none;
  }
  
  .hero h1 {
      font-size: 3rem;
  }
  
  .about-content {
      flex-direction: column;
      text-align: center;
  }
}
