/* ================= GLOBAL RESPONSIVE SYSTEM ================= */

/* Large Tablets */
@media (max-width: 1200px) {
  .container {
    padding: 0 30px;
  }
}

/* Tablets */
@media (max-width: 992px) {

  /* Header */
  .nav-links {
    gap: 20px;
  }

  /* About Grid */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-carousel {
    max-width: 100%;
    height: 420px;
  }

  /* Timeline */
  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 80px;
    padding-right: 20px;
    left: 0 !important;
    text-align: left;
    margin-bottom: 60px;
  }

  .timeline-item::before {
    left: 20px;
  }

  .year-badge {
    left: auto !important;
    right: 20px;
  }

  /* Footer */
  .footer-content {
    gap: 40px;
  }
}


/* Mobile */
@media (max-width: 768px) {

  /* Typography */
  h1 { font-size: 34px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }

  /* Container */
  .container {
    margin: 90px auto;
    padding: 0 20px;
  }

  .copyright {
    padding: 0 20px;
  }


  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }

  .nav-links a {
    display: block;
    padding: 8px 0;
  }

  /* Hero */
  .hero {
    height: 50vh;
    padding: 20px;
  }

  .hero-content p {
    font-size: 16px;
  }

  /* Cards */
  .card {
    padding: 25px;
  }

  /* Contact */
  .contact-card {
    padding: 30px;
  }

  .contact-row {
    flex-direction: column;
    gap: 15px;
  }

  .contact-icon {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .contact-details{
    margin-left: 5px;
  }

  /* Timeline */

  .timeline-item {
    padding-left: 60px;
  }

  .timeline-item::before {
    left: 15px;
    top: 45px;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    margin: 0;
  }

}


/* Small Phones */
@media (max-width: 480px) {

  .container {
    padding: 0 15px;
  }

  h1 { font-size: 28px; }
  h2 { font-size: 22px; }

  .about-carousel {
    height: 320px;
  }

  .timeline-content {
    padding: 20px;
  }

  .year-badge {
    font-size: 10px;
    padding: 4px 10px;
  }

  .contact-card {
    padding: 20px;
  }

}
/* ================= HEADER MOBILE FIX ================= */

@media (max-width: 900px) {

  .header-inner {
    display: block;
  }

  .logo-toggle-bar{
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  nav {
    position: static;
  }

}

/* Mobile */
@media (max-width: 768px) {
  .logo img {
    height: 40px;
  }

  .nav-links a {
    color: var(--primary);
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--accent);
  }

  .nav-links a {
    padding: 10px;
    border-radius: 6px;
    transition: background 0.3s ease;
  }

  .nav-links a:active {
    background: rgba(202,166,51,0.15);
  }

  .nav-links a::after {
    left: 10px;
    
  }

  .hero-content{
    margin-top: 40px;
  }
}

