:root {
  --primary-color: lab(62.36% -22.54 -14.15);
  --secondary-color: #459aa0;
  --text-color: #8bd5ff;
  --bg-color: #1a1a1a;
  --card-bg: #232323;
  --border-color: rgba(255, 255, 255, 0.1);
  --accent-color: #4CAF50;
  --navbar-bg: #222;
  --navbar-text: #fff;
  --logo-color: #fff;
  --nav-links-color: #fff;
  --nav-links-active-color: #4CAF50;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 20px;
  line-height: 1.6;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

nav button {
  background: var(--card-bg);
  border: none;
  padding: 10px 20px;
  color: var(--text-color);
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s, transform 0.3s;
}

nav button:hover {
  background: var(--accent-color);
  transform: scale(1.05);
}

#themeToggle {
  margin-left: auto;
  background: transparent;
  color: var(--text-color);
  border: none;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

#themeToggle:hover {
  transform: scale(1.1);
  color: var(--accent-color);
}

#themeToggle i {
  font-size: 1.2rem;
}

.section {
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.section h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
}

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

.project {
  background: rgba(35, 35, 35, 0.7);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border: 1px solid rgba(0, 255, 247, 0.1);
}

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

.project h3 {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.project-tech {
  margin: 1rem 0;
}

.tech-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: #111;
  color: #fff;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.project-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.skill-category {
  background: rgba(35, 35, 35, 0.7);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border: 1px solid rgba(0, 255, 247, 0.1);
}

.skill-category:hover {
  transform: translateY(-5px);
}

.skill-category h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.skills-list {
  list-style: none;
}

.skills-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.skills-list i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form {
  background: rgba(0, 0, 0, 0.3);
  padding: 2rem;
  border-radius: 10px;
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-button {
  background: #007bff;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.3s ease;
  width: 100%;
}

.submit-button:hover {
  background: #0056b3;
}

footer {
  background: var(--card-bg);
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
  color: var(--text-color);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.footer-section h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.social-links a {
  color: var(--text-color);
  font-size: 1.5rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.navbar {
  background-color: var(--navbar-bg, rgba(0, 0, 0, 0.85));
  color: var(--navbar-text, white);
}

body.dark-theme .navbar {
  background-color: #222 !important;
  color: #fff;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--logo-color, white);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  z-index: 2001 !important;
  pointer-events: auto !important;
  background: var(--navbar-bg, #222);
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--nav-links-active-color, #007bff);
}

.theme-toggle {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.menu-toggle {
  display: none !important;
}

.nav-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000 !important;
}

.nav-backdrop.active {
  display: block;
  opacity: 1;
}

.nav-links button {
  background-color: #444;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 0.3rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.nav-links button:hover {
  background-color: #ff6b6b;
}

.hero-video {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

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

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

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: #0056b3;
}

/* About section */
.about-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.about-image {
  position: relative;
}

.profile-photo {
  width: 100%;
  max-width: 300px;
  height: auto;
  border: 4px solid var(--primary-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto;
}

.profile-photo:hover {
  transform: scale(1.02);
}

.social-links-about {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links-about a {
  color: var(--primary-color);
  font-size: 1.5rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-links-about a:hover {
  transform: translateY(-3px);
  color: var(--secondary-color);
}

.about-content {
  padding: 1rem;
}

.about-content h3 {
  color: var(--primary-color);
  margin: 2rem 0 1rem;
  font-size: 1.5rem;
}

.journey-list {
  list-style: none;
  margin: 1rem 0;
}

.journey-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.journey-list li::before {
  content: "→";
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

/* Projects section */
.project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project:hover .project-image img {
  transform: scale(1.05);
}

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

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Responsive design */
@media (max-width: 900px) {
  .nav-links {
    position: static !important;
    right: 0 !important;
    top: auto !important;
    height: auto !important;
    width: auto !important;
    max-width: none !important;
    z-index: auto !important;
    background: none !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-items: center !important;
    padding-top: 0 !important;
    box-shadow: none !important;
    transition: none !important;
    visibility: visible !important;
  }
  .nav-links.active {
    right: 0 !important;
    visibility: visible !important;
  }
  .nav-backdrop {
    display: none !important;
  }
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
  }
  .about-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem 1rem;
    justify-items: center;
    align-items: center;
  }
  .about-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
  }
  .profile-photo {
    max-width: 220px;
    width: 100%;
    border-width: 2px;
    margin-bottom: 1rem;
  }
  .about-content {
    padding: 0.5rem;
    text-align: center;
  }
  .about-content h3 {
    font-size: 1.2rem;
    margin: 1.2rem 0 0.7rem;
  }
  .about-content p, .about-content ul {
    font-size: 1rem;
  }
  .nav-links .contact-button {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 2rem 0.5rem;
  }
  .section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .hero-content {
    padding: 1rem;
    border-radius: 6px;
  }
  .hero-content h1 {
    font-size: 1.2rem;
  }
  .hero-content p {
    font-size: 0.95rem;
  }
  .cta-button, .submit-button {
    font-size: 1rem;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
  }
  .form-group input, .form-group textarea {
    font-size: 1rem;
    padding: 0.7rem;
    border-radius: 6px;
  }
  .footer-section h3 {
    font-size: 1rem;
  }
  .footer-bottom {
    font-size: 0.9rem;
    padding-top: 1rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 5px;
    font-size: 1rem;
  }
  .section {
    padding: 1.2rem 0.2rem;
  }
  .hero-content {
    padding: 0.5rem;
    border-radius: 4px;
  }
  .hero-content h1 {
    font-size: 1rem;
  }
  .hero-content p {
    font-size: 0.85rem;
  }
  .cta-button, .submit-button {
    font-size: 0.95rem;
    padding: 0.7rem 1rem;
    border-radius: 5px;
  }
  .form-group input, .form-group textarea {
    font-size: 0.95rem;
    padding: 0.6rem;
    border-radius: 5px;
  }
}

body.dark-theme .nav-backdrop {
  background: rgba(0,0,0,0.7);
}

/* Navbar theme-aware styles */
.navbar {
  background-color: var(--navbar-bg, rgba(0, 0, 0, 0.85));
  color: var(--navbar-text, white);
}

body.dark-theme .navbar {
  background-color: #222 !important;
  color: #fff;
}

body.dark-theme .logo {
  color: #fff;
}

body.dark-theme .nav-links a {
  color: #fff;
}

body.dark-theme .nav-links a:hover,
body.dark-theme .nav-links a.active {
  color: #4CAF50;
}

/* Technical Skills section theme-aware styles */
body.dark-theme .skills-container {
  background: transparent;
}

body.dark-theme .skill-category {
  background: rgba(51, 51, 51, 0.7);
  color: #fff;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
}

body.dark-theme .skill-category h3 {
  color: #4CAF50;
}

body.dark-theme .skills-list li {
  color: #e0e0e0;
}

body.dark-theme .skills-list i {
  color: #4CAF50;
}

/* Footer bar theme-aware styles */
footer {
  background: var(--card-bg);
  color: var(--text-color);
}

body.dark-theme footer {
  background: #232323;
  color: #fff;
}

body.dark-theme .footer-content {
  background: #232323;
  color: #fff;
}

body.dark-theme .footer-section h3 {
  color: #4CAF50;
}

body.dark-theme .footer-links a {
  color: #fff;
}

body.dark-theme .footer-links a:hover {
  color: #4CAF50;
}

body.dark-theme .footer-bottom {
  background: #1a1a1a;
  color: #fff;
}

/* Parallax Effect */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.parallax-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Update link colors */
a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Update specific link styles */
.project-link {
  color: var(--text-color);
}

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

.contact-item a {
  color: var(--text-color);
}

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

.footer-links a {
  color: var(--text-color);
}

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

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

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

.social-links-about a {
  color: var(--text-color);
}

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

.nav-links .contact-button {
  display: inline-block;
}

#robot-3d-container {
  z-index: 1000 !important;
  pointer-events: none !important;
}

/* Remove pointer-events: none from .nav-links everywhere else */
.nav-links {
  pointer-events: auto !important;
}

#resume {
  display: none !important;
}

/* Qualifications Section Styles */
.qualifications-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
  letter-spacing: 2px;
  color: #00fff7;
  text-shadow: 0 0 8px #00fff7;
  font-size: 2.5rem;
}

/* Car Animation */
.car-container {
  position: relative;
  height: 200px;
  margin: 4rem 0;
  overflow: hidden;
  background: linear-gradient(to bottom, #87CEEB 0%, #98FB98 100%);
  border-radius: 10px;
}

.car {
  position: absolute;
  bottom: 60px;
  left: -100px;
  width: 120px;
  height: 60px;
  animation: drive 8s linear infinite;
}

.car-body {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
  border-radius: 20px 40px 8px 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.car-top {
  position: absolute;
  top: -15px;
  left: 15px;
  width: 40px;
  height: 20px;
  background: linear-gradient(135deg, #00ffaa 0%, #00ff88 100%);
  border-radius: 10px 25px 5px 5px;
}

.car-window {
  position: absolute;
  top: -12px;
  left: 20px;
  width: 30px;
  height: 15px;
  background: linear-gradient(135deg, #87ceeb 0%, #5f9ea0 100%);
  border-radius: 8px 20px 3px 3px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.car-door {
  position: absolute;
  top: 5px;
  left: 15px;
  width: 70px;
  height: 30px;
  border: 2px solid #FF4500;
  border-radius: 15px 30px 5px 5px;
}

.car-wheel {
  position: absolute;
  bottom: -8px;
  width: 16px;
  height: 16px;
  background: #333;
  border-radius: 50%;
  border: 2px solid #666;
  animation: rotate 0.5s linear infinite;
}

.car-wheel::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: #666;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.wheel-front {
  left: 15px;
}

.wheel-back {
  right: 15px;
}

.car-light {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  background: #ffff00;
  border-radius: 50%;
  animation: blink 1s ease-in-out infinite alternate;
  box-shadow: 0 0 10px #ffff00;
}

.road {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to bottom, #696969, #808080);
}

.road-line {
  position: absolute;
  top: 50%;
  width: 100px;
  height: 4px;
  background: #FFF;
  animation: moveRoad 2s linear infinite;
}

.road-line:nth-child(1) {
  left: 0;
  animation-delay: 0s;
}

.road-line:nth-child(2) {
  left: 200px;
  animation-delay: 0.5s;
}

.road-line:nth-child(3) {
  left: 400px;
  animation-delay: 1s;
}

@keyframes drive {
  0% {
    left: -100px;
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    left: calc(100% + 100px);
    transform: translateY(0);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0.3;
  }
}

@keyframes moveRoad {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-300px);
  }
}

/* Qualifications Grid */
.qualifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.qualification-card {
  background: rgba(35, 35, 35, 0.9);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid rgba(0, 255, 247, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.qualification-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 247, 0.1), transparent);
  transition: left 0.5s ease;
}

.qualification-card:hover::before {
  left: 100%;
}

.qualification-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 255, 247, 0.3);
  border-color: rgba(0, 255, 247, 0.5);
}

.qualification-icon {
  text-align: center;
  margin-bottom: 1.5rem;
}

.qualification-icon i {
  font-size: 3rem;
  color: #00fff7;
  text-shadow: 0 0 15px #00fff7;
  transition: all 0.3s ease;
}

.qualification-card:hover .qualification-icon i {
  transform: scale(1.1);
  text-shadow: 0 0 20px #00fff7;
}

.qualification-card h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
  text-align: center;
}

.qualification-card .institution {
  color: #00fff7;
  font-size: 1rem;
  margin-bottom: 0.3rem;
  text-align: center;
  font-weight: 600;
}

.qualification-card .year {
  color: #b2fefa;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-align: center;
  font-style: italic;
}

.qualification-card .description {
  color: #e0e0e0;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: center;
}

.qualification-card .grade {
  background: linear-gradient(135deg, #00fff7, #00bcd4);
  color: #1a1a1a;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-align: center;
  font-weight: bold;
  font-size: 0.9rem;
  font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
  box-shadow: 0 4px 15px rgba(0, 255, 247, 0.3);
}

/* Responsive Design for Qualifications */
@media (max-width: 768px) {
  .qualifications-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .qualification-card {
    padding: 1.5rem;
  }
  
  .car-container {
    height: 150px;
    margin: 2rem 0;
  }
  
  .car {
    width: 100px;
    height: 50px;
  }
  
  .car-body {
    width: 80px;
    height: 30px;
  }
  
  .car-top {
    width: 50px;
    height: 15px;
  }
  
  .car-window {
    width: 40px;
    height: 12px;
  }
  
  .car-wheel {
    width: 15px;
    height: 15px;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .qualification-card {
    padding: 1rem;
  }
  
  .qualification-icon i {
    font-size: 2.5rem;
  }
  
  .qualification-card h3 {
    font-size: 1.1rem;
  }
  
  .car-container {
    height: 120px;
  }
  
  .car {
    width: 80px;
    height: 40px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}

/* Book Library Styles */
.library-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.library-intro {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #b2fefa;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Bookshelf Design */
.bookshelf {
  margin-bottom: 3rem;
}

.shelf {
  margin-bottom: 3rem;
  background: linear-gradient(135deg, #D2B48C, #DEB887);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  position: relative;
  border: 2px solid #8B4513;
}

.shelf::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: linear-gradient(135deg, #8B4513, #A0522D);
  border-radius: 8px 8px 0 0;
}

.shelf-title {
  color: #2c3e50;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  font-family: 'Georgia', serif;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.shelf-title i {
  margin-right: 0.5rem;
  color: #8B4513;
}

.books-row {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  min-height: 120px;
  padding: 1rem 0;
}

/* 3D Book Design */
.book {
  position: relative;
  height: 100px;
  transform-style: preserve-3d;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Book thickness variations */
.thin-book {
  width: 35px;
}

.medium-book {
  width: 50px;
}

.thick-book {
  width: 70px;
}

.book:hover {
  transform: translateY(-5px);
  z-index: 10;
}

.book-spine {
  position: absolute;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
  border: 1px solid #2c2c2c;
}

.thin-book .book-spine {
  width: 35px;
  background: linear-gradient(135deg, #8B0000, #DC143C);
}

.medium-book .book-spine {
  width: 50px;
  background: linear-gradient(135deg, #006400, #228B22);
}

.thick-book .book-spine {
  width: 70px;
  background: linear-gradient(135deg, #2F4F4F, #708090);
}

/* Book color variations */
.book-red .book-spine {
  background: linear-gradient(135deg, #8B0000, #DC143C);
}

.book-green .book-spine {
  background: linear-gradient(135deg, #006400, #228B22);
}

.book-blue .book-spine {
  background: linear-gradient(135deg, #191970, #4169E1);
}

.book-brown .book-spine {
  background: linear-gradient(135deg, #8B4513, #A0522D);
}

.spine-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 3px;
  text-align: center;
}

.book-spine .book-title {
  font-size: 0.4rem;
  font-weight: bold;
  color: #FFD700;
  line-height: 1.1;
  margin-bottom: 2px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  text-align: center;
  max-width: 100%;
  word-wrap: break-word;
  font-family: 'Georgia', serif;
}

.book-spine .book-author {
  font-size: 0.3rem;
  color: #FFD700;
  font-style: italic;
  text-align: center;
  max-width: 100%;
  word-wrap: break-word;
  font-family: 'Georgia', serif;
}

.book-front {
  position: absolute;
  height: 100px;
  background: linear-gradient(135deg, #8B4513, #A0522D);
  border: 1px solid #2c2c2c;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.thin-book .book-front {
  width: 35px;
  transform: rotateY(90deg) translateZ(17.5px);
}

.medium-book .book-front {
  width: 50px;
  transform: rotateY(90deg) translateZ(25px);
}

.thick-book .book-front {
  width: 70px;
  transform: rotateY(90deg) translateZ(35px);
}

.book-cover-design {
  width: 40px;
  height: 70px;
  background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #FFD700;
  box-shadow: inset 0 0 5px rgba(255, 215, 0, 0.3);
}

.book-cover-design i {
  font-size: 0.8rem;
  color: #FFD700;
  text-shadow: 0 0 5px #FFD700;
}

/* Book Tooltip */
.book::after {
  content: attr(data-title) '\A' attr(data-author) '\A Rating: ' attr(data-rating) '/5';
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 0.8rem;
  white-space: pre-line;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  min-width: 150px;
  border: 1px solid #00fff7;
  box-shadow: 0 4px 15px rgba(0, 255, 247, 0.3);
}

.book:hover::after {
  opacity: 1;
  visibility: visible;
}

.library-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(35, 35, 35, 0.8);
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 247, 0.2);
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(20, 20, 20, 0.6);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: scale(1.05);
  background: rgba(30, 30, 30, 0.8);
  box-shadow: 0 5px 15px rgba(0, 255, 247, 0.2);
}

.stat-item i {
  font-size: 2rem;
  color: #00fff7;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 8px #00fff7;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0.5rem;
  font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
  text-shadow: 0 0 8px #00fff7;
}

.stat-label {
  color: #b2fefa;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive Design for Library */
@media (max-width: 768px) {
  .books-row {
    gap: 0.3rem;
    justify-content: center;
  }
  
  .thin-book {
    width: 30px;
    height: 80px;
  }
  
  .medium-book {
    width: 45px;
    height: 80px;
  }
  
  .thick-book {
    width: 60px;
    height: 80px;
  }
  
  .thin-book .book-spine {
    width: 30px;
    height: 80px;
  }
  
  .medium-book .book-spine {
    width: 45px;
    height: 80px;
  }
  
  .thick-book .book-spine {
    width: 60px;
    height: 80px;
  }
  
  .thin-book .book-front {
    width: 30px;
    height: 80px;
    transform: rotateY(90deg) translateZ(15px);
  }
  
  .medium-book .book-front {
    width: 45px;
    height: 80px;
    transform: rotateY(90deg) translateZ(22.5px);
  }
  
  .thick-book .book-front {
    width: 60px;
    height: 80px;
    transform: rotateY(90deg) translateZ(30px);
  }
  
  .book-spine .book-title {
    font-size: 0.35rem;
  }
  
  .book-spine .book-author {
    font-size: 0.25rem;
  }
  
  .book-cover-design {
    width: 25px;
    height: 55px;
  }
  
  .book-cover-design i {
    font-size: 0.7rem;
  }
  
  .library-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .stat-item {
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .library-container {
    padding: 1rem 0;
  }
  
  .library-intro {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .shelf-title {
    font-size: 1.3rem;
  }
  
  .books-row {
    gap: 0.2rem;
  }
  
  .thin-book {
    width: 25px;
    height: 70px;
  }
  
  .medium-book {
    width: 35px;
    height: 70px;
  }
  
  .thick-book {
    width: 45px;
    height: 70px;
  }
  
  .thin-book .book-spine {
    width: 25px;
    height: 70px;
  }
  
  .medium-book .book-spine {
    width: 35px;
    height: 70px;
  }
  
  .thick-book .book-spine {
    width: 45px;
    height: 70px;
  }
  
  .thin-book .book-front {
    width: 25px;
    height: 70px;
    transform: rotateY(90deg) translateZ(12.5px);
  }
  
  .medium-book .book-front {
    width: 35px;
    height: 70px;
    transform: rotateY(90deg) translateZ(17.5px);
  }
  
  .thick-book .book-front {
    width: 45px;
    height: 70px;
    transform: rotateY(90deg) translateZ(22.5px);
  }
  
  .book-spine .book-title {
    font-size: 0.3rem;
  }
  
  .book-spine .book-author {
    font-size: 0.2rem;
  }
  
  .book-cover-design {
    width: 20px;
    height: 45px;
  }
  
  .book-cover-design i {
    font-size: 0.6rem;
  }
}

/* Animated Timeline with Car Scrolling Effect */
.timeline-container {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  background-image: url('https://www.octaveagency.com/wp-content/uploads/2022/05/road-new4.jpg');
  background-size: initial;
  background-position: top center;
  background-repeat: repeat-y;
  background-blend-mode: multiply;
  overflow: hidden;
  padding: 80px 0 0 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.timeline-header {
  text-align: center;
  margin-bottom: 140px;
  position: relative;
  z-index: 2;
}

.timeline-header h2 {
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 15px;
  animation: slideInBottom 1s ease-out;
  color: #00fff7;
  text-shadow: 0 0 20px #00fff7;
  font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
  letter-spacing: 2px;
}

.timeline-header p {
  font-size: 18px;
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto -2px;
  animation: slideInBottom 1s ease-out 150ms;
  color: #ffffff;
}

.timeline-icon {
  width: 50px;
  height: 50px;
  color: #00fff7;
  margin: 40px auto 0;
  animation: slideInTop 1s ease-out 300ms;
  font-size: 40px;
}

.timeline-content {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.timeline-left, .timeline-right {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.timeline-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 8px;
  border-bottom: 3px solid #00fff7;
  box-shadow: 0 4px 20px rgba(0, 255, 247, 0.1);
  animation: slideInRight 1s ease-out;
  transform: translateX(0);
  opacity: 1;
  transition: all 0.6s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 247, 0.2);
}

.timeline-card.left {
  animation: slideInRight 1s ease-out;
}

.timeline-card.right {
  animation: slideInLeft 1s ease-out;
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 255, 247, 0.2);
  border-color: #00fff7;
}

.timeline-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #00fff7;
  text-shadow: 0 0 8px #00fff7;
  font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
  letter-spacing: 1px;
}

.timeline-card p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: #ffffff;
}

.timeline-center {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.car-parallax {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  pointer-events: none;
}

.center-car {
  width: 100%;
  height: auto;
  max-width: 120px;
  filter: drop-shadow(0 0 20px rgba(0, 255, 247, 0.3));
  transition: none;
  will-change: transform;
}

.center-car:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 30px rgba(0, 255, 247, 0.5));
}



/* Animations */
@keyframes slideInBottom {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInTop {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .timeline-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .timeline-car {
    display: none;
  }
  
  .timeline-header h2 {
    font-size: 32px;
  }
}

/* Hide Library Section */
#library {
  display: none !important;
}
