/* Reset & base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #000;
  color: #f0f0f0;
  transition: background-color 0.3s ease, color 0.3s ease;  
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background-color: #111;
  color: #fff;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ff4c29;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ff4c29;
}

/* Hero Section */
.hero-section {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 4rem 5%;
  background-color: #000;
  flex-wrap: wrap;
  text-align: left;
}

.hero-content {
  max-width: 600px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #fff;
}

.highlight {
  color: #ff4c29;
}

.hero-content h2 {
  font-size: 1.8rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1rem;
  color: #aaa;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  background-color: #ff4c29;
  color: #fff;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.btn:hover {
  transform: scale(1.05);
}

.btn-secondary {
  background-color: #333;
}
.btn-cv {
  background-color: #222;
  border: 2px solid #ff4c29;
  color: #ff4c29;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-cv:hover {
  background-color: #ff4c29;
  color: #fff;
  transform: translateY(-2px);
}


/* About Section */
.about-section {
  padding: 4rem 5%;
  background-color: #000;
  display: flex;
  justify-content: center;
}

.about-container {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1100px;
  width: 100%;
  animation: fadeInUp 1s ease-in-out;
}

.about-image img {
  width: 300px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 5px 25px rgba(255, 255, 255, 0.08);
  margin-right: 2.5rem;
  margin-left: 0.5rem;
}

.about-content {
  flex: 1;
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #ff4c29;
}

.about-content p {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Portfolio Section */
.portfolio-section {
  padding: 4rem 5%;
  background-color: #000;
  text-align: center;
}

.section-title h2 {
  font-size: 2.2rem;
  color: #ff4c29;
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.8s ease-in-out;
}

.section-title p {
  color: #aaa;
  font-size: 1rem;
  margin-bottom: 3rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  background-color: #111;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item h3 {
  color: #f0f0f0;
  margin-bottom: 0.5rem;
}

.portfolio-item p {
  color: #aaa;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.project-link {
  text-decoration: none;
  font-weight: bold;
  color: #ff4c29;
  border: 2px solid #ff4c29;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.project-link:hover {
  background-color: #ff4c29;
  color: #fff;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.1);
}

/* Contact Section */
.contact-section {
  padding: 4rem 5%;
  background-color: #000;
  text-align: center;
}

.contact-form {
  max-width: 600px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeInUp 1s ease-in-out;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #444;
  background-color: #111;
  color: #fff;
  font-size: 1rem;
  resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #ff4c29;
  box-shadow: 0 0 0 2px rgba(255, 76, 41, 0.2);
}

.contact-form button {
  align-self: flex-start;
}

/* Footer Section */
.footer {
  background-color: #111;
  color: #fff;
  text-align: center;
  padding: 2rem 5%;
  margin-top: 4rem;
}

.footer p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.footer .social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer .social-icons a {
  color: #ff4c29;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.footer .social-icons a:hover {
  color: #fff;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Light Theme Support */
body.light-theme {
  background-color: #fff;
  color: #000;
}

body.light-theme .navbar {
  background-color: #f0f0f0;
  color: #000;
}

body.light-theme .nav-links a {
  color: #000;
}

body.light-theme .hero-section,
body.light-theme .about-section,
body.light-theme .portfolio-section,
body.light-theme .contact-section {
  background-color: #fff;
  color: #000;
}

body.light-theme .hero-content h1,
body.light-theme .hero-content h2,
body.light-theme .hero-content p,
body.light-theme .about-content p,
body.light-theme .portfolio-item h3,
body.light-theme .portfolio-item p,
body.light-theme .section-title p,
body.light-theme .section-title h2 {
  color: #000;
}

body.light-theme .portfolio-item {
  background-color: #f8f8f8;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.light-theme .project-link {
  color: #ff4c29;
  border-color: #ff4c29;
}

body.light-theme .project-link:hover {
  background-color: #ff4c29;
  color: #fff;
}

body.light-theme .contact-form input,
body.light-theme .contact-form textarea {
  background-color: #f0f0f0;
  color: #000;
  border-color: #ccc;
}

body.light-theme .footer {
  background-color: #f0f0f0;
  color: #000;
}

body.light-theme .footer .social-icons a {
  color: #000;
}

/* Toggle Switch Styles */
.toggle-switch {
  margin-top: 1rem;
}

.toggle-switch label {
  cursor: pointer;
  color: #ff4c29;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 5%;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
  }

  .hero-section {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding-top: 6rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-image img {
    width: 200px;
    margin: 0 auto 1rem auto;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    width: 100%;
    padding: 0 1rem;
  }

  .hero-buttons {
    justify-content: center;
  }
}
.project-details {
  margin-top: 1rem;
  animation: fadeInUp 0.5s ease-in-out;
}

.project-details.hidden {
  display: none;
}

.view-btn {
  background-color: transparent;
  border: 2px solid #ff4c29;
  color: #ff4c29;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.view-btn:hover {
  background-color: #ff4c29;
  color: #fff;
}
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.splash-text {
  font-size: 2.5rem;
  color: #ff4c29;
  font-family: monospace;
}

body.loaded #splash-screen {
  animation: fadeOut 1s ease forwards;
  animation-delay: 0.5s;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
.hamburger {
  display: none;
  font-size: 1.8rem;
  color: #ff4c29;
  cursor: pointer;
}

@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    margin-top: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
    margin-left: auto;
  }

  .hero-section,
  .about-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .about-image img {
    width: 200px;
    margin: 0 auto 1rem auto;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .contact-form {
    width: 100%;
    padding: 0 1rem;
  }
}
.project-page {
  padding: 5rem 10%;
  background-color: #000;
  color: #f0f0f0;
  min-height: 100vh;
}

.project-page h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #ff4c29;
}

.project-page h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  color: #ff4c29;
}

.project-page p, .project-page li {
  font-size: 1.1rem;
  line-height: 1.6;
}

.project-page ul {
  padding-left: 1.2rem;
  list-style-type: disc;
}
.timeline-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.timeline-card {
  background-color: #111;
  border: 2px solid #ff4c29;
  padding: 0.8rem 1rem; /* reduced padding */
  border-radius: 10px;
  transition: transform 0.3s ease;
  text-align: left;
  font-size: 0.9rem; /* slightly smaller text */
  line-height: 1.4;
}

.timeline-card:hover {
  transform: translateY(-5px);
}

.timeline-year {
  display: inline-block;
  font-weight: bold;
  color: #ff4c29;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

body.light-theme .timeline-card {
  background-color: #fff;
  border-color: #ff4c29;
  color: #000;
}
.theme-toggle-floating {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
}

.theme-toggle-floating input {
  display: none;
}

.theme-toggle-floating label {
  font-size: 1.8rem;
  cursor: pointer;
  color: #ff4c29;
  transition: transform 0.3s ease;
}

.theme-toggle-floating label:hover {
  transform: scale(1.1);
}
.image-text-row {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  align-items: center;
  flex-wrap: wrap;
}

.image-box img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.text-box {
  flex: 1;
  min-width: 250px;
  font-size: 1rem;
  line-height: 1.6;
  color: #ccc;
}

body.light-theme .text-box {
  color: #000;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.gallery-item {
  background-color: #111;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.gallery-item p {
  color: #ccc;
  font-size: 0.9rem;
}

body.light-theme .gallery-item {
  background-color: #f8f8f8;
  color: #000;
}

body.light-theme .gallery-item p {
  color: #000;
}
