/* =====================================================
   RESPONSIVE STYLESHEET
   CATALYSIS & CHEMICAL ENGINEERING 2027
===================================================== */


/* =====================================================
   LARGE TABLETS & SMALL LAPTOPS
   1200px
===================================================== */

@media (max-width: 1200px) {

    .hero-container {
        gap: 40px;
    }

    .hero-content h1 {
        font-size: clamp(3rem, 5vw, 4.8rem);
    }

    .nav-menu {
        gap: 18px;
    }

    .science-card {
        width: 100%;
    }

    .about-grid,
    .venue-grid {
        gap: 55px;
    }

    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .footer-grid > :last-child {
        grid-column: span 3;
    }
}


/* =====================================================
   TABLETS
   1024px
===================================================== */

@media (max-width: 1024px) {

    .section-padding {
        padding: 90px 0;
    }

    /* NAVIGATION */

    .nav-menu {
        gap: 14px;
    }

    .nav-link {
        font-size: 0.82rem;
    }

    .nav-actions .btn {
        padding: 10px 16px;
    }


    /* HERO */

    .hero-container {
        grid-template-columns: 1fr;

        padding-top: 80px;
        padding-bottom: 100px;

        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-description {
        margin-inline: auto;
    }

    .hero-event-info,
    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        min-height: 500px;
        width: min(100%, 650px);

        margin-inline: auto;
    }

    .science-card {
        width: min(100%, 500px);
    }


    /* ABOUT */

    .about-grid {
        grid-template-columns: 1fr;

        gap: 60px;
    }

    .about-visual {
        width: min(100%, 600px);

        margin-inline: auto;
    }

    .about-content {
        max-width: 750px;

        margin-inline: auto;
    }


    /* VENUE */

    .venue-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .venue-content {
        max-width: 750px;
    }

    .valencia-card {
        width: min(100%, 750px);

        margin-inline: auto;
    }


    /* HIGHLIGHTS */

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .highlight-item:nth-child(2) {
        border-right: none;
    }

    .highlight-item:nth-child(-n+2) {
        border-bottom: 1px solid var(--border);
    }


    /* TRACKS */

    .tracks-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* DATES */

    .dates-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .date-card {
        padding: 30px 18px;
    }


    /* FOOTER */

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid > :last-child {
        grid-column: auto;
    }
}


/* =====================================================
   MOBILE NAVIGATION
   850px
===================================================== */

@media (max-width: 850px) {

    .top-bar {
        display: none;
    }

    #header {
        top: 0;
    }

    .navbar {
        min-height: 70px;
    }

    .nav-menu {
        position: fixed;

        top: 70px;
        left: 0;

        width: 100%;
        height: calc(100vh - 70px);

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;

        gap: 24px;

        padding: 45px 20px;

        background: rgba(255, 255, 255, 0.98);

        backdrop-filter: blur(20px);

        opacity: 0;
        visibility: hidden;

        transform: translateY(-15px);

        transition: all 0.35s ease;

        overflow-y: auto;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);
    }

    .nav-link {
        font-size: 1.05rem;
    }

    .nav-link::after {
        bottom: -5px;
    }

    .nav-actions .btn {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }


    /* MOBILE MENU ICON */

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }


    /* HERO */

    .hero-section {
        min-height: auto;
    }

    .hero-container {
        padding-top: 75px;
        padding-bottom: 90px;
    }

    .hero-content h1 {
        font-size: clamp(2.7rem, 10vw, 4.5rem);
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 1rem;
    }

    .scroll-down {
        display: none;
    }


    /* FLOATING CARDS */

    .card-one {
        left: 0;
    }

    .card-two {
        right: 0;
    }
}


/* =====================================================
   MOBILE DEVICES
   768px
===================================================== */

@media (max-width: 768px) {

    .section-padding {
        padding: 75px 0;
    }

    .section-heading,
    .center-heading {
        margin-bottom: 40px;
    }

    .section-heading h2,
    .about-content h2,
    .venue-content h2 {
        font-size: clamp(2rem, 8vw, 3.2rem);
    }


    /* HERO */

    .conference-badge {
        font-size: 0.7rem;
    }

    .hero-event-info {
        width: 100%;
    }

    .event-info-card {
        flex: 1;
        min-width: 220px;
    }

    .hero-buttons {
        width: 100%;
    }

    .hero-buttons .btn {
        flex: 1;
    }

    .hero-visual {
        min-height: 470px;
    }


    /* SCIENCE VISUAL */

    .science-card {
        min-height: 430px;
    }

    .chemical-visual {
        transform: scale(0.9);
    }


    /* HIGHLIGHTS */

    .highlight-item {
        padding: 28px 18px;
    }

    .highlight-number {
        font-size: 2.3rem;
    }


    /* TRACKS */

    .tracks-grid {
        gap: 18px;
    }

    .track-card {
        min-height: 220px;

        padding: 25px;
    }


    /* ABOUT */

    .about-image-card {
        min-height: 460px;
    }

    .experience-card {
        right: 20px;
        bottom: -25px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }


    /* DATES */

    .dates-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .date-card {
        padding: 28px;
    }


    /* VENUE */

    .valencia-card {
        min-height: 430px;
    }


    /* CTA */

    .cta-section {
        padding: 80px 0;
    }

    .cta-buttons .btn {
        min-width: 220px;
    }
}


/* =====================================================
   SMALL MOBILE
   576px
===================================================== */

@media (max-width: 576px) {

    .container {
        width: min(92%, var(--container-width));
    }


    /* LOGO */

    .logo-icon {
        width: 40px;
        height: 40px;

        font-size: 1.1rem;
    }

    .logo-text strong {
        font-size: 0.88rem;
    }

    .logo-text span {
        font-size: 0.62rem;
        letter-spacing: 2px;
    }


    /* HERO */

    .hero-container {
        padding-top: 55px;
        padding-bottom: 65px;
    }

    .hero-content h1 {
        font-size: 2.55rem;
        line-height: 1.08;
    }

    .hero-content h1 span {
        margin-top: 8px;
    }

    .hero-description {
        margin-top: 20px;

        font-size: 0.93rem;
    }

    .hero-event-info {
        flex-direction: column;

        align-items: stretch;
    }

    .event-info-card {
        width: 100%;
        min-width: 0;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }


    /* HERO VISUAL */

    .hero-visual {
        min-height: 400px;
    }

    .science-card {
        min-height: 390px;

        padding: 18px;

        border-radius: 24px;
    }

    .chemical-visual {
        height: 250px;

        transform: scale(0.75);
    }

    .floating-card {
        padding: 9px 11px;

        gap: 8px;
    }

    .floating-card > span {
        font-size: 1.15rem;
    }

    .card-one {
        top: 70px;
        left: -5px;
    }

    .card-two {
        right: -5px;
        bottom: 70px;
    }


    /* HIGHLIGHTS */

    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .highlight-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .highlight-item:last-child {
        border-bottom: none;
    }


    /* ABOUT */

    .about-image-card {
        min-height: 390px;
    }

    .about-image-overlay {
        padding: 25px;
    }

    .about-image-overlay strong {
        font-size: 1.45rem;
    }

    .experience-card {
        position: relative;

        right: auto;
        bottom: auto;

        width: 100%;

        margin-top: 15px;
    }


    /* TRACKS */

    .tracks-grid {
        grid-template-columns: 1fr;
    }

    .track-card {
        min-height: auto;
    }


    /* VENUE */

    .valencia-card {
        min-height: 370px;
    }

    .valencia-overlay {
        padding: 28px;
    }


    /* CTA */

    .cta-container h2 {
        font-size: 2.35rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
        min-width: auto;
    }


    /* FOOTER */

    .footer {
        padding-top: 60px;
    }

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .footer-bottom {
        flex-direction: column;
        justify-content: center;

        padding: 20px 0;

        text-align: center;
    }


    /* BACK TO TOP */

    #back-to-top {
        right: 16px;
        bottom: 16px;

        width: 44px;
        height: 44px;
    }
}


/* =====================================================
   VERY SMALL DEVICES
   380px
===================================================== */

@media (max-width: 380px) {

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .section-heading h2,
    .about-content h2,
    .venue-content h2 {
        font-size: 1.9rem;
    }

    .logo-text strong {
        font-size: 0.8rem;
    }

    .logo-text span {
        letter-spacing: 1px;
    }

    .science-card {
        transform: scale(0.95);
    }

    .floating-card {
        display: none;
    }
}