/* ========================================
   COMPREHENSIVE RESPONSIVE DESIGN
   ======================================== */

/* Global Image Reset for Responsiveness */
img {
    max-width: 100%;
    height: auto;
}

/* ========================================

/* ========================================
   MOBILE MENU STYLES
   ======================================== */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2100;
}

.mobile-menu-toggle i {
    font-size: 1.5rem;
    color: var(--primary);
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
    background: var(--primary);
}

.mobile-menu-toggle:hover i {
    color: white;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100%;
    background: var(--bg-secondary);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    z-index: 2501;
    padding: 80px 30px 30px;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-nav-menu.active {
    right: 0;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-nav-close i {
    font-size: 1.3rem;
    color: var(--primary);
}

.mobile-nav-close:hover {
    transform: rotate(90deg);
    background: var(--primary);
}

.mobile-nav-close:hover i {
    color: white;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-nav-links li {
    width: 100%;
}

.mobile-nav-links a {
    display: block;
    padding: 18px 25px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background: var(--primary);
    color: white;
    transform: translateX(10px);
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablets and smaller desktops (1200px and below) */
@media (max-width: 1200px) {
    header {
        width: 98%;
    }

    .navbar {
        padding: 12px 25px;
    }

    .nav-links {
        gap: 5px;
    }

    .nav-links a {
        padding: 8px 15px;
        font-size: 1rem;
    }

    /* Increased logo size for Tablets */
    .navbar-logo {
        width: 100px;
        max-height: 100px;
    }

    .logo-text h2 {
        font-size: 1rem;
    }

    section {
        padding: 80px 4%;
    }

    .hero {
        padding: 160px 4% 80px;
    }

    .hand {
        width: 500px;
    }

    /* Registration grid */
    .hero-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }

    /* Submission section */
    #submission .glass-panel>div {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    /* About section */
    .about-panel {
        grid-template-columns: 1fr !important;
    }

    .about-image-wrapper {
        max-width: 500px;
        margin: 30px auto 0;
    }
}

/* Tablets (900px and below) */
@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .navbar {
        padding: 10px 20px;
    }

    .nav-links {
        display: none;
    }

    .logo-text h2 {
        font-size: 0.9rem;
        line-height: 1.2;
    }

    .logo-text span {
        font-size: 0.7rem !important;
    }

    .theme-toggle {
        top: 15px;
        right: 15px;
        padding: 10px 16px;
    }

    .theme-toggle span {
        display: none;
    }

    .hero {
        padding: 140px 5% 70px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hand {
        width: 400px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .timer-container {
        gap: 15px;
    }

    .time-box-3d {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }

    .time-label {
        font-size: 0.7rem;
    }

    section {
        padding: 60px 5%;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    /* Tracks and Committee */
    .tree-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand-section {
        grid-column: 1 / -1;
    }
}

/* Mobile landscape and small tablets (768px and below) */
@media (max-width: 768px) {
    header {
        top: 10px;
        width: 95%;
    }

    .navbar {
        padding: 10px 15px;
        border-radius: 15px;
    }

    .navbar-logo {
        width: 90px;
        max-height: 90px;
    }

    .hero {
        padding: 130px 20px 60px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-date-glance {
        padding: 15px 20px;
        margin: 30px auto;
    }

    .hero-date-glance i {
        font-size: 1.5rem;
    }

    .hero-date-glance span {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 30px;
    }

    .hand {
        width: 350px;
    }

    .timer-container {
        gap: 12px;
    }

    .time-box-3d {
        width: 55px;
        height: 55px;
        font-size: 1.2rem;
    }

    .glass-card {
        padding: 30px;
    }

    .info-card {
        padding: 30px 20px;
    }

    .info-card i {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .info-card h3 {
        font-size: 1.2rem;
    }

    section {
        padding: 50px 20px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* Dates section */
    .conference-days-container {
        margin-top: 30px;
    }

    .date-highlight-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .date-big-text {
        font-size: 1.8rem !important;
    }

    /* Tree items */
    .tree-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tree-item {
        padding: 25px;
        min-height: 120px;
    }

    /* Committee cards */
    .committee-img {
        width: 80px;
        height: 80px;
        font-size: 1.4rem;
    }

    /* Registration section */
    .glass-card[style*="padding: 50px"] {
        padding: 30px !important;
    }

    /* Submission section */
    #submission .glass-panel {
        padding: 40px 20px !important;
    }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-logo-box {
        justify-content: center;
    }

    .social-links-row {
        justify-content: center;
    }

    .footer-nav-section ul,
    .footer-contact-section {
        text-align: center;
    }

    .contact-row {
        justify-content: center;
    }

    .footer-bottom-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Mobile portrait (600px and below) */
@media (max-width: 600px) {
    .hero {
        padding: 120px 20px 50px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-tag {
        font-size: 0.85rem;
        padding: 8px 20px;
    }

    .sponsor-line {
        font-size: 0.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .hero-date-glance {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        width: 100%;
    }

    .hero-date-glance i {
        font-size: 1.3rem;
    }

    .hero-date-glance span {
        font-size: 0.95rem;
        text-align: center;
    }

    .hand {
        display: none;
    }

    .timer-container {
        gap: 10px;
    }

    .time-box-3d {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
        border-radius: 10px;
    }

    .time-label {
        font-size: 0.65rem;
    }

    .glass-card {
        padding: 25px;
    }

    .info-card {
        padding: 25px 15px;
    }

    section {
        padding: 40px 20px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    /* About section */
    .about-panel {
        padding: 30px 20px;
    }

    .about-text p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    /* Dates section cards */
    .glass-card[style*="padding: 40px"] {
        padding: 25px !important;
    }

    .hero-tag[style*="margin-bottom: 15px"] {
        font-size: 0.75rem !important;
        padding: 4px 12px !important;
    }

    /* Registration pricing */
    div[style*="font-size: 3rem"] {
        font-size: 2.2rem !important;
    }

    /* Submission section */
    #submission .glass-panel {
        padding: 30px 20px !important;
    }

    #submission h3 {
        font-size: 1.3rem !important;
    }

    #submission p {
        font-size: 0.95rem !important;
    }

    /* Footer */
    .footer-brand-section p {
        font-size: 0.95rem;
    }

    .footer-nav-section h4,
    .footer-contact-section h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .social-pill {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .contact-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-bottom-bar p {
        font-size: 0.85rem;
    }

    .footer-legal a {
        font-size: 0.85rem;
    }
}

/* Extra small mobile (480px and below) */
@media (max-width: 480px) {
    header {
        width: 92%;
    }

    .navbar {
        padding: 8px 12px;
    }

    .navbar-logo {
        width: 80px;
        max-height: 80px;
    }

    .logo-text h2 {
        font-size: 0.75rem;
    }

    .logo-text span {
        font-size: 0.65rem !important;
    }

    .theme-toggle {
        padding: 8px 12px;
    }

    .theme-toggle i {
        font-size: 1rem;
    }

    .hero {
        padding: 110px 15px 40px;
    }

    .hero h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .time-box-3d {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .time-label {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }

    /* Hide minutes and seconds on very small screens */
    .time-unit:nth-child(n+3) {
        display: none;
    }

    .glass-card {
        padding: 20px;
    }

    section {
        padding: 35px 15px;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    .tree-item {
        padding: 20px;
        min-height: 100px;
    }

    .tree-item h4 {
        font-size: 1rem;
    }

    .committee-img {
        width: 70px;
        height: 70px;
        font-size: 1.2rem;
    }

    .committee-card h4 {
        font-size: 0.95rem;
    }

    .committee-card p {
        font-size: 0.85rem;
    }

    /* Info cards */
    .info-card i {
        font-size: 2rem;
    }

    .info-card h3 {
        font-size: 1.1rem;
    }

    .info-card p {
        font-size: 0.9rem;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 5% 50px;
    }

    .timer-wrapper {
        margin: 20px auto 15px;
    }

    .hero-actions {
        margin-bottom: 30px;
    }

    .hand {
        display: none;
    }
}

/* ========================================
   AGENDA SECTION RESPONSIVE
   ======================================== */

@media (max-width: 992px) {
    .day-toggle-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .agenda-day-btn {
        flex: 1 1 calc(50% - 10px);
        min-width: 200px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .timeline-time {
        border-right: none;
        border-bottom: 2px solid rgba(103, 0, 71, 0.2);
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    .venue-block {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .agenda-section-header {
        padding: 50px 20px 40px;
    }

    .agenda-section-header h2 {
        font-size: 2rem;
    }

    .agenda-intro-text {
        font-size: 0.95rem;
    }

    .day-toggle-buttons {
        gap: 10px;
        padding: 0 10px;
    }

    .agenda-day-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .agenda-day-btn .day-number {
        font-size: 1.1rem;
    }

    .venue-block h3 {
        font-size: 1.3rem;
    }

    .speaker-avatar {
        width: 60px;
        height: 60px;
        margin-top: -30px;
    }

    .speaker-name {
        font-size: 1rem;
    }

    .speaker-affiliation {
        font-size: 0.85rem;
    }
}

@media (max-width: 600px) {
    .agenda-day-btn {
        flex: 1 1 100%;
        padding: 15px;
    }

    .time-badge {
        font-size: 0.9rem;
        padding: 10px 15px;
    }

    .session-theme {
        font-size: 1.1rem;
    }

    .discussants-row {
        grid-template-columns: 1fr;
    }

    .scroll-cue-section {
        padding: 40px 20px;
    }
}

/* ========================================
   COMMITTEE SECTION RESPONSIVE
   ======================================== */

@media (max-width: 992px) {
    .committee-card-new {
        padding: 30px 20px;
    }

    .member-avatar {
        width: 150px;
        height: 150px;
        margin-top: -75px;
    }

    .member-info h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .committee-branch {
        padding: 40px 20px;
    }

    .branch-title {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }

    .committee-card-new {
        padding: 25px 15px;
    }

    .member-avatar {
        width: 130px;
        height: 130px;
        margin-top: -65px;
    }

    .avatar-placeholder {
        font-size: 2rem;
    }

    .member-info h4 {
        font-size: 1rem;
    }

    .member-info p {
        font-size: 0.85rem;
    }

    /* Registration subgroups */
    .subgroup-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .committee-card-new {
        padding: 20px 15px;
    }

    .member-avatar {
        width: 110px;
        height: 110px;
        margin-top: -55px;
    }

    .avatar-placeholder {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .member-avatar {
        width: 100px;
        height: 100px;
        margin-top: -50px;
    }

    .member-info h4 {
        font-size: 0.95rem;
    }

    .member-info p {
        font-size: 0.8rem;
    }
}

/* ========================================
   ORGANIZER LOGOS RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .organizer-logos {
        flex-direction: column;
        gap: 20px;
    }

    .organizer-logo-img:nth-child(2) {
        height: 180px;
    }

    .organizer-logo-img.uni-logo {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .organizer-logo-img:nth-child(2) {
        height: 150px;
    }

    .organizer-logo-img.uni-logo {
        height: 100px;
    }
}

/* Print styles */
@media print {

    header,
    .theme-toggle,
    #canvas-container,
    .hands-container,
    footer {
        display: none !important;
    }

    section {
        page-break-inside: avoid;
    }

    .glass-card,
    .glass-panel {
        border: 1px solid #ccc;
        background: white !important;
    }
}