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

body {
  background-color: #0a0a0a;
  color: #f5f5f5;
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

/* === HEADER === */
header.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 70px;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
}

/* LOGO */
.logo h1 {
  font-size: 1.6rem;
  font-weight: 700;
}

.logo span {
  color: #e50914;
}

/* NAV LINKS */
.nav-links ul {
  list-style: none;
  display: flex;
  gap: 35px;
}

.nav-links ul li a {
  text-decoration: none;
  color: #f5f5f5;
  font-weight: 500;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links ul li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #e50914;
  transition: width 0.3s ease;
}

.nav-links ul li a:hover::after {
  width: 100%;
}

.nav-links ul li a:hover,
.nav-links ul li a:hover i {
  color: #e50914;
}

/* === HAMBURGER ICON === */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  transition: color 0.3s ease;
}

.menu-toggle.open {
  color: #e50914;
}

/* === HERO SECTION === */
.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  padding: 140px 60px 80px;
  flex-wrap: wrap;
}

.hero-content {
  max-width: 550px;
  animation: fadeIn 1.2s ease;
}

.hero h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero h2 span {
  color: #e50914;
}

.hero p {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 35px;
}

.btn {
  background-color: #e50914;
  color: #fff;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.btn:hover {
  background-color: #ff1a1a;
  transform: scale(1.05);
}

/* === HERO PHOTO === */
.hero-photo img {
  width: 340px;
  height: auto;
  object-fit: cover;
  border-radius: 50% 50% 12px 12px / 45% 45% 10px 10px;
  background-color: #0a0a0a;
  box-shadow: 0 0 35px rgba(229, 9, 20, 0.3);
  transition: all 0.4s ease;
}

.hero-photo img:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 55px rgba(229, 9, 20, 0.5);
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  header.topbar {
    padding: 20px 30px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 220px;
    height: auto;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    transition: right 0.3s ease;
    border-left: 2px solid #e50914;
    border-radius: 8px 0 0 8px;
  }

  .nav-links.active {
    right: 20px;
  }

  .nav-links ul {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .nav-links ul li a {
    font-size: 1.1rem;
  }

  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 120px 20px 60px;
  }

  .hero h2 {
    font-size: 2.2rem;
  }

  .hero-photo img {
    width: 220px;
  }
}

.skills-section {
  background-color: #0d0d0d;
  color: #fff;
  padding: 80px 10%;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  color: #ff2e2e;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.skill-card {
  background: #1a1a1a;
  border: 1px solid #ff2e2e33;
  border-radius: 16px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 0 10px rgba(255, 46, 46, 0.15);
  transition: all 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px rgba(255, 46, 46, 0.25);
  border-color: #ff2e2e;
}

.skill-card h3 {
  color: #ff2e2e;
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.skill-card ul {
  list-style: none;
  padding-left: 0;
}

.skill-card ul li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.skill-card strong {
  color: #fff;
  font-weight: 600;
}

.projects-section {
  background-color: #0d0d0d;
  color: #fff;
  padding: 80px 10%;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  color: #ff2e2e;
  margin-bottom: 50px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.project-card {
  background: #1a1a1a;
  border: 1px solid #ff2e2e33;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 46, 46, 0.15);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px rgba(255, 46, 46, 0.25);
  border-color: #ff2e2e;
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-content {
  padding: 20px;
  text-align: left;
}

.project-content h3 {
  color: #ff2e2e;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.project-content p {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.6;
}

.tech-stack {
  font-style: italic;
  color: #ff5a5a;
  margin-top: 10px;
}

.project-links {
  margin-top: 15px;
}

.btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: #ff2e2e;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
  font-weight: 500;
}

.btn:hover {
  background-color: #ff4848;
}

.contact-section {
  background-color: #0d0d0d;
  color: #fff;
  padding: 80px 10%;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  color: #ff2e2e;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.contact-intro {
  color: #ccc;
  margin-bottom: 50px;
  font-size: 1.1rem;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  align-items: start;
}

/* Contact Info */
.contact-info {
  text-align: left;
  background: #1a1a1a;
  padding: 25px;
  border-radius: 16px;
  border: 1px solid #ff2e2e33;
  box-shadow: 0 0 10px rgba(255, 46, 46, 0.15);
}

.contact-info h3 {
  color: #ff2e2e;
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 15px;
  color: #ccc;
}

.contact-info i {
  color: #ff2e2e;
  margin-right: 8px;
}

.contact-info a {
  color: #fff;
  text-decoration: none;
}

.contact-info a:hover {
  color: #ff2e2e;
}

.social-links {
  margin-top: 15px;
}

.social-links a {
  display: inline-block;
  color: #fff;
  font-size: 1.3rem;
  margin-right: 15px;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #ff2e2e;
}

/* Contact Form */
.contact-form {
  background: #1a1a1a;
  padding: 25px;
  border-radius: 16px;
  border: 1px solid #ff2e2e33;
  box-shadow: 0 0 10px rgba(255, 46, 46, 0.15);
}

.form-group {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: #0d0d0d;
  color: #fff;
  outline: none;
  border: 1px solid #333;
  transition: border 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #ff2e2e;
}

.btn {
  background-color: #ff2e2e;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #ff4848;
}

.footer {
  background-color: #0d0d0d;
  color: #ccc;
  padding: 60px 10% 20px;
  text-align: center;
  border-top: 1px solid #ff2e2e33;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
}

/* Brand */
.footer-brand h2 {
  color: #ff2e2e;
  font-size: 1.6rem;
  margin-bottom: 5px;
}

.footer-brand p {
  font-size: 0.95rem;
  color: #aaa;
}

/* Links */
.footer-links a {
  color: #ccc;
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

.footer-links a:hover {
  color: #ff2e2e;
}

/* Social Icons */
.footer-social a {
  color: #fff;
  font-size: 1.3rem;
  margin: 0 10px;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: #ff2e2e;
}

/* Bottom Line */
.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 15px;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: #888;
}

.footer-bottom span {
  color: #ff2e2e;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 700px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

.education-section {
  background-color: #111;
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  color: #ff3b3b;
  margin-bottom: 60px;
  position: relative;
}

/* Timeline container */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 35px;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: #ff3b3b33;
  border-radius: 2px;
}

/* Timeline items */
.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.7s forwards;
}

.timeline-item:nth-child(1) {
  animation-delay: 0.2s;
}

.timeline-item:nth-child(2) {
  animation-delay: 0.4s;
}

.timeline-item:nth-child(3) {
  animation-delay: 0.6s;
}

.timeline-icon {
  background-color: #ff3b3b;
  color: #fff;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 20px;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.timeline-content {
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 12px;
  text-align: left;
  flex: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.timeline-content h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 5px;
}

.timeline-content .school {
  font-weight: bold;
  color: #ff3b3b;
  margin-bottom: 3px;
}

.timeline-content .year {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 10px;
}

.timeline-content .details {
  font-size: 0.95rem;
  color: #ddd;
  line-height: 1.6;
}

/* Animation */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  .timeline {
    padding-left: 30px;
  }

  .timeline::before {
    left: 25px;
  }
}

@media (max-width: 700px) {
  .timeline {
    padding-left: 20px;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-icon {
    margin-bottom: 10px;
    margin-right: 0;
  }

  .timeline-content {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.7rem;
  }

  .timeline-icon {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 1.2rem;
  }

  .timeline-content h3 {
    font-size: 1.1rem;
  }

  .timeline-content .details {
    font-size: 0.9rem;
  }
}
.about-section {
  background-color: #111;
  color: #fff;
  padding: 80px 20px;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.about-image img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ff3b3b;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.6);
}

.about-content {
  max-width: 550px;
  text-align: left;
}

.about-content h2 {
  color: #ff3b3b;
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: #ddd;
  margin-bottom: 15px;
}

.about-content span {
  color: #ff3b3b;
  font-weight: bold;
}

.btn {
  display: inline-block;
  background-color: #ff3b3b;
  color: #fff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #fff;
  color: #ff3b3b;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }
  .about-image img {
    width: 220px;
    height: 220px;
  }
  .about-content {
    max-width: 100%;
  }
  .about-content h2 {
    font-size: 1.7rem;
  }
}
