/* =========================================================
   RESPONSIVE CSS
   Personal Teaching / Mentor Website
   ========================================================= */


/* =========================================================
   LARGE DESKTOP — 1440px+
   ========================================================= */

@media (min-width: 1440px) {

  .container {
    max-width: 1280px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-copy h1 {
    font-size: clamp(3.8rem, 5vw, 5.6rem);
  }

  .section {
    padding: 120px 0;
  }

  .section-sm {
    padding: 80px 0;
  }

  .hero-layout {
    gap: 80px;
  }

  .hero-visual {
    min-height: 600px;
  }

  .profile-card {
    max-width: 440px;
  }

}


/* =========================================================
   DESKTOP / LAPTOP — 1200px
   ========================================================= */

@media (max-width: 1200px) {

  .container {
    width: min(100% - 48px, 1120px);
  }

  .hero-layout {
    gap: 40px;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
  }

  .hero-visual {
    min-height: 520px;
  }

  .profile-card {
    width: 390px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}


/* =========================================================
   TABLET / SMALL LAPTOP — 1024px
   ========================================================= */

@media (max-width: 1024px) {

  .container {
    width: min(100% - 40px, 920px);
  }

  .section {
    padding: 90px 0;
  }

  .section-sm {
    padding: 60px 0;
  }


  /* ---------- NAVBAR ---------- */

  .navbar {
    min-height: 72px;
  }

  .nav-menu {
    gap: 20px;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .nav-cta {
    padding: 10px 15px;
  }


  /* ---------- HERO ---------- */

  .hero {
    min-height: auto;
    padding: 100px 0 80px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 70px;
    text-align: center;
  }

  .hero-copy {
    max-width: 850px;
    margin: 0 auto;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 7vw, 4.5rem);
  }

  .hero-copy p {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-meta {
    justify-content: center;
  }

  .hero-visual {
    min-height: 500px;
  }

  .profile-card {
    margin: 0 auto;
  }


  /* ---------- ABOUT ---------- */

  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }


  /* ---------- PROJECT ---------- */

  .project-layout {
    grid-template-columns: 1fr;
  }

  .project-stack {
    max-width: 700px;
    margin: 0 auto;
  }

  .project-main {
    min-height: 430px;
  }


  /* ---------- WORKSHOP ---------- */

  .workshop-panel {
    grid-template-columns: 1fr;
  }

  .workshop-copy {
    padding: 50px;
  }

  .workshop-visual {
    min-height: 400px;
  }


  /* ---------- MENTORSHIP ---------- */

  .mentorship-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .mentor-visual {
    max-width: 700px;
    margin: 0 auto;
  }


  /* ---------- FAQ ---------- */

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }


  /* ---------- CONTACT ---------- */

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    padding: 50px;
  }


  /* ---------- FOOTER ---------- */

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

}


/* =========================================================
   TABLET — 900px
   ========================================================= */

@media (max-width: 900px) {

  .nav-menu {
    gap: 14px;
  }

  .nav-link {
    font-size: 0.8rem;
  }

  .brand-text {
    font-size: 0.95rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.8rem, 7vw, 4rem);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .format-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}


/* =========================================================
   MOBILE NAVIGATION + TABLET — 768px
   ========================================================= */

@media (max-width: 768px) {

  .container {
    width: min(100% - 32px, 680px);
  }

  .section {
    padding: 75px 0;
  }

  .section-sm {
    padding: 50px 0;
  }


  /* ---------- HEADER ---------- */

  .site-header {
    background: rgba(7, 10, 18, 0.92);
  }

  .navbar {
    min-height: 68px;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    z-index: 1001;
  }

  .menu-toggle span {
    width: 19px;
    height: 2px;
    border-radius: 10px;
    background: var(--text);
    transition:
      transform 0.3s ease,
      opacity 0.3s ease;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    top: 76px;
    left: 16px;
    right: 16px;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;

    padding: 14px;

    background: rgba(12, 17, 29, 0.97);
    border: 1px solid var(--border);
    border-radius: 20px;

    box-shadow: var(--shadow-lg);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);

    transition:
      opacity 0.25s ease,
      visibility 0.25s ease,
      transform 0.25s ease;

    z-index: 1000;
  }

  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    padding: 13px 16px;

    border-radius: 12px;
    font-size: 0.95rem;
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-cta {
    justify-content: center;
    margin-top: 6px;
    width: 100%;
  }


  /* ---------- HERO ---------- */

  .hero {
    padding: 95px 0 65px;
  }

  .hero-layout {
    gap: 50px;
  }

  .hero-copy h1 {
    font-size: clamp(2.5rem, 9vw, 3.6rem);
    line-height: 1.05;
  }

  .hero-copy p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .hero-meta {
    flex-wrap: wrap;
  }

  .hero-visual {
    min-height: 430px;
  }

  .profile-card {
    width: min(100%, 370px);
  }

  .floating-badge {
    transform: scale(0.85);
  }

  .orbit {
    opacity: 0.35;
  }

  .scroll-cue {
    display: none;
  }


  /* ---------- SECTION HEADING ---------- */

  .section-heading {
    max-width: 650px;
  }

  .section-heading h2 {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .section-heading p {
    font-size: 0.98rem;
  }


  /* ---------- STATS ---------- */

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-item {
    padding: 22px 15px;
  }

  .stat-number {
    font-size: 2rem;
  }


  /* ---------- ABOUT ---------- */

  .about-grid {
    gap: 40px;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .timeline {
    padding-left: 25px;
  }


  /* ---------- SERVICES ---------- */

  .service-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .service-card {
    padding: 24px;
  }


  /* ---------- FORMATS ---------- */

  .format-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }


  /* ---------- COURSES ---------- */

  .course-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }


  /* ---------- PROJECT LEARNING ---------- */

  .project-layout {
    gap: 40px;
  }

  .project-main {
    min-height: 400px;
  }


  /* ---------- WORKSHOP ---------- */

  .workshop-copy {
    padding: 35px;
  }

  .workshop-visual {
    min-height: 340px;
  }


  /* ---------- MENTORSHIP ---------- */

  .mentor-card {
    width: min(100%, 380px);
  }


  /* ---------- METHOD ---------- */

  .method-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }


  /* ---------- TECH ---------- */

  .tech-cloud {
    justify-content: center;
  }


  /* ---------- BENEFITS ---------- */

  .benefit-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }


  /* ---------- TESTIMONIAL ---------- */

  .testimonial-grid {
    grid-template-columns: 1fr;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
  }


  /* ---------- FAQ ---------- */

  .faq-layout {
    gap: 35px;
  }


  /* ---------- CONTACT ---------- */

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    padding: 35px;
  }

  .contact-form-wrap {
    padding: 35px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }


  /* ---------- FOOTER ---------- */

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

}


/* =========================================================
   MOBILE — 600px
   ========================================================= */

@media (max-width: 600px) {

  .container {
    width: min(100% - 28px, 540px);
  }

  .section {
    padding: 65px 0;
  }


  /* ---------- HERO ---------- */

  .hero {
    padding: 85px 0 55px;
  }

  .hero-copy h1 {
    font-size: clamp(2.3rem, 11vw, 3.2rem);
  }

  .hero-copy p {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-meta {
    gap: 10px;
    font-size: 0.78rem;
  }

  .hero-visual {
    min-height: 390px;
  }

  .profile-card {
    width: 100%;
  }

  .floating-badge {
    display: none;
  }


  /* ---------- STATS ---------- */

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }


  /* ---------- ABOUT ---------- */

  .why-grid {
    grid-template-columns: 1fr;
  }


  /* ---------- SERVICES ---------- */

  .service-grid {
    grid-template-columns: 1fr;
  }


  /* ---------- FORMATS ---------- */

  .format-grid {
    grid-template-columns: 1fr;
  }


  /* ---------- COURSES ---------- */

  .course-grid {
    grid-template-columns: 1fr;
  }


  /* ---------- PROJECT STACK ---------- */

  .project-stack {
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .project-card {
    position: relative !important;
    inset: auto !important;

    width: 100% !important;
    height: 140px;

    transform: none !important;
  }

  .project-main {
    grid-column: 1 / -1;

    min-height: 240px;
    height: 240px;
  }

  .project-side {
    min-height: 140px;
  }


  /* ---------- WORKSHOP ---------- */

  .workshop-copy {
    padding: 28px 22px;
  }

  .workshop-visual {
    min-height: 280px;
  }


  /* ---------- MENTORSHIP ---------- */

  .mentorship-layout {
    gap: 40px;
  }


  /* ---------- METHOD ---------- */

  .method-grid {
    grid-template-columns: 1fr;
  }


  /* ---------- BENEFITS ---------- */

  .benefit-grid {
    grid-template-columns: 1fr;
  }


  /* ---------- FAQ ---------- */

  .faq-question {
    padding: 18px 0;
    font-size: 0.95rem;
  }

  .faq-answer {
    font-size: 0.9rem;
  }


  /* ---------- CONTACT ---------- */

  .contact-copy,
  .contact-form-wrap {
    padding: 28px 22px;
  }


  /* ---------- FOOTER ---------- */

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

}


/* =========================================================
   SMALL MOBILE — 480px
   ========================================================= */

@media (max-width: 480px) {

  .container {
    width: min(100% - 24px, 450px);
  }

  .section {
    padding: 55px 0;
  }


  /* ---------- BRAND ---------- */

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-text {
    font-size: 0.9rem;
  }


  /* ---------- HERO ---------- */

  .hero {
    padding-top: 78px;
  }

  .hero-copy h1 {
    font-size: clamp(2.1rem, 12vw, 2.8rem);
  }

  .hero-copy p {
    font-size: 0.92rem;
  }

  .hero-visual {
    min-height: 350px;
  }

  .profile-card {
    border-radius: 20px;
  }


  /* ---------- STATS ---------- */

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .stat-item {
    padding: 18px 10px;
  }

  .stat-number {
    font-size: 1.65rem;
  }

  .stat-label {
    font-size: 0.72rem;
  }


  /* ---------- SECTION ---------- */

  .section-heading h2 {
    font-size: 2rem;
  }

  .section-heading p {
    font-size: 0.9rem;
  }


  /* ---------- BUTTON ---------- */

  .btn {
    width: 100%;
    justify-content: center;
  }


  /* ---------- PROJECT ---------- */

  .project-stack {
    grid-template-columns: 1fr;
  }

  .project-main {
    grid-column: auto;
  }

  .project-card {
    height: 150px;
  }


  /* ---------- TECH ---------- */

  .tech-cloud {
    gap: 8px;
  }

  .tech-chip {
    font-size: 0.75rem;
    padding: 8px 11px;
  }


  /* ---------- CONTACT ---------- */

  .contact-copy h2 {
    font-size: 1.9rem;
  }

  .form-control {
    font-size: 0.9rem;
  }


  /* ---------- BACK TO TOP ---------- */

  .back-top {
    width: 42px;
    height: 42px;
    right: 14px;
    bottom: 14px;
  }

}


/* =========================================================
   VERY SMALL MOBILE — 425px
   ========================================================= */

@media (max-width: 425px) {

  .container {
    width: calc(100% - 22px);
  }

  .navbar {
    min-height: 64px;
  }

  .nav-menu {
    top: 70px;
    left: 11px;
    right: 11px;
  }

  .hero-copy h1 {
    font-size: 2.05rem;
  }

  .hero-meta {
    flex-direction: column;
    gap: 7px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    padding: 18px;
  }

  .service-card,
  .course-card,
  .format-card,
  .benefit-card {
    padding: 20px;
  }

}


/* =========================================================
   VERY SMALL DEVICES — 375px
   ========================================================= */

@media (max-width: 375px) {

  .container {
    width: calc(100% - 18px);
  }

  .hero {
    padding-top: 70px;
  }

  .hero-copy h1 {
    font-size: 1.9rem;
  }

  .hero-copy p {
    font-size: 0.88rem;
  }

  .section-heading h2 {
    font-size: 1.8rem;
  }

  .section-heading p {
    font-size: 0.86rem;
  }

  .profile-card {
    padding: 15px;
  }

  .contact-copy,
  .contact-form-wrap {
    padding: 22px 17px;
  }

}


/* =========================================================
   EXTRA SMALL DEVICES — 320px
   ========================================================= */

@media (max-width: 320px) {

  .container {
    width: calc(100% - 14px);
  }

  .brand-text {
    font-size: 0.82rem;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
  }

  .hero-copy h1 {
    font-size: 1.72rem;
  }

  .hero-copy p {
    font-size: 0.84rem;
  }

  .section-heading h2 {
    font-size: 1.65rem;
  }

  .btn {
    padding: 11px 14px;
    font-size: 0.85rem;
  }

}


/* =========================================================
   LANDSCAPE MOBILE
   ========================================================= */

@media (max-height: 600px) and (orientation: landscape) {

  .hero {
    padding-top: 100px;
  }

  .hero-layout {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-copy p {
    margin-left: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-meta {
    justify-content: flex-start;
  }

  .hero-visual {
    min-height: 380px;
  }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .nav-menu,
  .menu-toggle span,
  .floating-badge,
  .orbit,
  .profile-card,
  .btn,
  .service-card,
  .course-card,
  .format-card,
  .benefit-card {
    transition: none !important;
    animation: none !important;
  }

}