@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* Mobile hamburger menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.mobile-menu-toggle.active span:first-child {
    transform: rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Mobile menu styles */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(17, 17, 17, 0.98);
    z-index: 999;
    padding-top: 80px;
}

.mobile-nav.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 100px;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.mobile-nav-list li a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 15px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    min-width: 200px;
}

.mobile-nav-list li a:hover,
.mobile-nav-list li a.active {
    background: #333;
    color: #fff;
    transform: scale(1.05);
}

/* Mobile-first responsive design */
* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Montserrat', 'Poppins', Arial, sans-serif;
    background: #111;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

.main-header {
    width: 100%;
    background: #111;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.logo-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 32px 0 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo svg {
    display: block;
    filter: invert(1) grayscale(1);
}

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 38px;
    margin: 0;
    padding: 0;
}

.nav-list li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 1.08rem;
    transition: color 0.2s, border-bottom 0.2s;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    position: relative;
}

.nav-list li a.active, .nav-list li a:hover {
    color: #fff;
    border-bottom: 2px solid #fff;
}

.nav-list li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s;
    position: absolute;
    left: 0;
    bottom: -2px;
}

.nav-list li a:hover::after, .nav-list li a.active::after {
    width: 100%;
}

/* Ensure navigation hover states are properly reset */
.nav-list li a:not(:hover):not(.active) {
    color: #fff;
    border-bottom: 2px solid transparent;
}

.nav-list li a:not(:hover):not(.active)::after {
    width: 0;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 32px 0 32px;
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 48px;
    flex-wrap: wrap;
    gap: 32px;
}

.hero-text {
    flex: 1 1 350px;
    min-width: 320px;
}

.hero-text h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 18px 0;
    line-height: 1.2;
    color: #fff;
    letter-spacing: 0.5px;
}

.for-students {
    color: #bbb;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 28px;
    margin-top: 0;
    letter-spacing: 0.2px;
}

.register-btn, .about-btn {
    display: inline-block;
    background: linear-gradient(120deg, #bfc1c6 0%, #e6e7e9 20%, #fff 40%, #bfc1c6 60%, #8a8c8e 80%, #bfc1c6 100%);
    background-size: 300% 300%;
    background-position: 0% 50%;
    color: #222;
    font-weight: 700;
    font-size: 1.08rem;
    padding: 12px 32px;
    border: none;
    border-radius: 24px;
    text-decoration: none;
    box-shadow: 0 2px 12px #000a, 0 1px 0 #fff2 inset;
    transition: color 0.2s, box-shadow 0.2s, transform 0.15s;
    letter-spacing: 0.5px;
    cursor: pointer;
    outline: none;
    position: relative;
    overflow: hidden;
    animation: metallic-gradient-move 6s linear infinite alternate;
}

@keyframes metallic-gradient-move {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.register-btn:hover, .register-btn:focus, .about-btn:hover, .about-btn:focus {
    /* Use a slightly lighter metallic gradient, but keep the animation and avoid pure white */
    background: linear-gradient(120deg, #e6e7e9 0%, #fff 20%, #bfc1c6 40%, #8a8c8e 60%, #bfc1c6 80%, #e6e7e9 100%);
    background-size: 300% 300%;
    background-position: 100% 50%;
    color: #111 !important;
    box-shadow: 0 4px 24px #fff2, 0 2px 12px #000a;
    transform: translateY(-2px) scale(1.04);
    animation: metallic-gradient-move 6s linear infinite alternate;
}

/* Ensure hover states are properly reset */
.register-btn:not(:hover):not(:focus), .about-btn:not(:hover):not(:focus) {
    background: linear-gradient(120deg, #bfc1c6 0%, #e6e7e9 20%, #fff 40%, #bfc1c6 60%, #8a8c8e 80%, #bfc1c6 100%);
    background-size: 300% 300%;
    background-position: 0% 50%;
    color: #222;
    box-shadow: 0 2px 12px #000a, 0 1px 0 #fff2 inset;
    transform: none;
}

.register-btn:active, .about-btn:active {
    transform: scale(0.97);
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

/* Remove the ::before shine overlay for a cleaner look */
.register-btn::before, .about-btn::before {
    content: none;
}

.hero-illustration {
    flex: 1 1 350px;
    min-width: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-illustration img {
    max-width: 340px;
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(1) contrast(1.1);
    border-radius: 18px;
    box-shadow: 0 4px 32px #000a;
}

.hero-illustration.no-box {
    box-shadow: none !important;
    background: none !important;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-illustration.no-box img {
    width: 240px;
    height: 240px;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
    background: none;
}

.stats-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 64px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 24px;
}

.stat {
    flex: 1 1 180px;
    min-width: 120px;
    text-align: center;
    background: #181818;
    border-radius: 16px;
    padding: 24px 0 18px 0;
    box-shadow: 0 2px 12px #0006;
    transition: box-shadow 0.2s, transform 0.15s;
}

.stat:hover {
    box-shadow: 0 6px 32px #000b;
    transform: translateY(-2px) scale(1.03);
}

/* Ensure stat hover states are properly reset */
.stat:not(:hover) {
    box-shadow: 0 2px 12px #0006;
    transform: none;
}

.stat-number {
    display: block;
    font-size: 2.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.stat-label {
    display: block;
    font-size: 1.08rem;
    color: #bbb;
    font-weight: 500;
    letter-spacing: 0.5px;
}

footer {
    text-align: center;
    color: #bbb;
    margin-top: 32px;
    margin-bottom: 18px;
    font-size: 1rem;
    opacity: 0.8;
}

.info-banner {
    width: 100%;
    background: #181818;
    color: #fff;
    text-align: center;
    padding: 32px 12px 28px 12px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 0;
    border-radius: 14px;
    border: 1.5px solid #fff;
    box-shadow: 0 2px 16px #0007;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 900px;
    margin: 32px auto 0 auto;
}

.info-banner p {
    margin: 0;
    font-weight: 700;
    color: #fff;
    font-size: 1.2rem;
}

.course-section {
    margin: 64px auto 0 auto;
    max-width: 1200px;
    padding: 0 32px;
}

.course-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 48px;
    color: #fff;
    letter-spacing: 0.5px;
}

.course-steps {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.course-step {
    flex: 1 1 280px;
    min-width: 220px;
    background: #181818;
    border-radius: 18px;
    padding: 36px 24px 28px 24px;
    box-shadow: 0 2px 16px #0007;
    position: relative;
    margin-bottom: 32px;
    transition: box-shadow 0.2s, transform 0.15s;
    overflow: hidden;
}

.course-step:hover {
    box-shadow: 0 6px 32px #000b;
    transform: translateY(-2px) scale(1.03);
}

/* Ensure course-step hover states are properly reset */
.course-step:not(:hover) {
    box-shadow: 0 2px 16px #0007;
    transform: none;
}

.step-number {
    position: absolute;
    top: 18px;
    left: 18px;
    font-size: 4.5rem;
    font-weight: 700;
    color: #fff;
    opacity: 0.08;
    z-index: 0;
    user-select: none;
    pointer-events: none;
}

.step1 { color: #fff; }
.step2 { color: #fff; }
.step3 { color: #fff; }

.course-step h3 {
    position: relative;
    z-index: 1;
    font-size: 1.18rem;
    font-weight: 700;
    margin: 0 0 18px 0;
    color: #fff;
    letter-spacing: 0.2px;
}

.course-step p {
    position: relative;
    z-index: 1;
    color: #bbb;
    font-size: 1.01rem;
    margin: 0;
    line-height: 1.6;
}

.course-step-rectangle {
    min-width: 220px;
    width: auto;
    flex: 1 1 280px;
    border-radius: 18px;
    margin-bottom: 32px;
    margin-top: 0;
    display: block;
}

.step4 {
    color: #fff;
}

.site-footer {
    width: 100%;
    background: #222;
    color: #fff;
    padding: 38px 0 24px 0;
    margin-top: 64px;
    border-top: 1px solid #333;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.footer-text {
    text-align: center;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.5;
}

.footer-icons {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.footer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #333;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 2px 8px #0005;
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
}

.footer-icon:hover, .footer-icon:focus {
    background: #fff;
    color: #222;
    transform: scale(1.08);
}

/* Ensure footer icon hover states are properly reset */
.footer-icon:not(:hover):not(:focus) {
    background: #333;
    color: #fff;
    transform: none;
}

.footer-icon svg {
    display: block;
}

.about-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 64px 0 64px 0;
}

.about-center {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
    background: none;
}

.about-label {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #fff;
    margin-bottom: 18px;
}

.about-title {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin: 0 0 24px 0;
    color: #fff;
}

.green-accent {
    color: #7ed957;
}

.about-desc {
    font-size: 1.25rem;
    color: #fff;
    font-weight: 400;
    margin-bottom: 38px;
    line-height: 1.6;
}

.about-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.about-btn {
    display: inline-block;
    background: #222;
    color: #fff;
    font-weight: 700;
    font-size: 1.08rem;
    padding: 12px 32px;
    border: none;
    border-radius: 24px;
    text-decoration: none;
    box-shadow: 0 2px 12px #000a;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
    letter-spacing: 0.5px;
    cursor: pointer;
    outline: none;
    position: relative;
    overflow: hidden;
}

.about-btn:hover, .about-btn:focus {
    background: #111;
    color: #7ed957;
    box-shadow: 0 4px 24px #000c;
    transform: translateY(-2px) scale(1.04);
}

/* Ensure about button hover states are properly reset */
.about-btn:not(:hover):not(:focus) {
    background: #222;
    color: #fff;
    box-shadow: 0 2px 12px #000a;
    transform: none;
}

.about-actions .footer-icon {
    background: #111;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px #0005, 0 1px 0 #fff2 inset;
    font-size: 1.3rem;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.about-actions .footer-icon::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0.01) 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.about-actions .footer-icon:hover, .about-actions .footer-icon:focus {
    background: #fff;
    color: #111;
    transform: scale(1.08);
}

/* Ensure about actions footer icon hover states are properly reset */
.about-actions .footer-icon:not(:hover):not(:focus) {
    background: #111;
    color: #fff;
    transform: none;
}

.about-actions .footer-icon:hover::before, .about-actions .footer-icon:focus::before {
    background: linear-gradient(100deg, rgba(0,0,0,0.08) 0%, rgba(255,255,255,0.22) 100%);
}

/* Enhanced Mobile-First Responsive Design */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .main-content {
        padding: 100px 40px 0 40px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .about-title {
        font-size: 3.5rem;
    }
}

/* Large Devices (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .logo-nav {
        padding: 18px 24px 0 24px;
    }
    
    .main-content {
        padding: 80px 24px 0 24px;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
}

/* Medium Devices (768px to 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .logo-nav {
        padding: 16px 20px 0 20px;
    }
    
    .main-content {
        padding: 70px 20px 0 20px;
    }
    
    .hero-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text {
        flex: 1 1 100%;
        min-width: auto;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .stats-section {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .course-steps {
        flex-direction: column;
        gap: 24px;
    }
    
    .about-title {
        font-size: 2.5rem;
    }
    
    .about-desc {
        font-size: 1.1rem;
    }
}

/* Small Devices (576px to 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .logo-nav {
        padding: 14px 16px 0 16px;
    }
    
    .main-content {
        padding: 60px 16px 0 16px;
    }
    
    .hero-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 32px;
        margin-top: 32px;
    }
    
    .hero-text {
        flex: 1 1 100%;
        min-width: auto;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .for-students {
        font-size: 1rem;
    }
    
    .register-btn, .about-btn {
        font-size: 1rem;
        padding: 10px 28px;
    }
    
    .stats-section {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-top: 40px;
    }
    
    .stat {
        flex: 1 1 100%;
        min-width: auto;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .course-section {
        padding: 0 16px;
    }
    
    .course-title {
        font-size: 1.6rem;
        margin-bottom: 32px;
    }
    
    .course-steps {
        flex-direction: column;
        gap: 20px;
    }
    
    .course-step {
        flex: 1 1 100%;
        min-width: auto;
        padding: 28px 20px 24px 20px;
    }
    
    .step-number {
        font-size: 3.5rem;
        top: 15px;
        left: 15px;
    }
    
    .about-title {
        font-size: 2.2rem;
    }
    
    .about-desc {
        font-size: 1rem;
    }
    
    .info-banner {
        font-size: 1.1rem;
        padding: 24px 8px 20px 8px;
    }
    
    .site-footer {
        padding: 32px 0 20px 0;
        margin-top: 48px;
    }
    
    .footer-text {
        font-size: 1rem;
    }
}

/* Extra Small Devices (up to 575px) */
@media (max-width: 575px) {
    .logo-nav {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0;
        padding: 12px 12px 0 12px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .nav-list {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-content {
        padding: 80px 12px 0 12px;
    }
    
    .hero-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
        margin-top: 24px;
    }
    
    .hero-text {
        flex: 1 1 100%;
        min-width: auto;
    }
    
    .hero-text h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .for-students {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .register-btn, .about-btn {
        font-size: 0.95rem;
        padding: 10px 24px;
        border-radius: 20px;
    }
    
    .hero-illustration {
        flex: 1 1 100%;
        min-width: auto;
    }
    
    .hero-illustration img {
        max-width: 280px;
    }
    
    .hero-illustration.no-box img {
        width: 200px;
        height: 200px;
    }
    
    .stats-section {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 32px;
        margin-bottom: 24px;
    }
    
    .stat {
        flex: 1 1 100%;
        min-width: auto;
        padding: 20px 0 16px 0;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.95rem;
    }
    
    .info-banner {
        font-size: 1rem;
        padding: 20px 6px 18px 6px;
        margin: 24px auto 0 auto;
    }
    
    .info-banner p {
        font-size: 1rem;
    }
    
    .course-section {
        padding: 0 8px;
        margin: 40px auto 0 auto;
    }
    
    .course-title {
        font-size: 1.4rem;
        margin-bottom: 24px;
    }
    
    .course-steps {
        flex-direction: column;
        gap: 16px;
    }
    
    .course-step {
        flex: 1 1 100%;
        min-width: auto;
        padding: 24px 16px 20px 16px;
        margin-bottom: 16px;
    }
    
    .step-number {
        font-size: 3rem;
        top: 12px;
        left: 12px;
    }
    
    .course-step h3 {
        font-size: 1.05rem;
        margin: 0 0 12px 0;
    }
    
    .course-step p {
        font-size: 0.9rem;
    }
    
    .about-section {
        padding: 32px 0 32px 0;
        min-height: 50vh;
    }
    
    .about-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
        margin: 0 0 16px 0;
    }
    
    .about-desc {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }
    
    .about-actions {
        gap: 12px;
    }
    
    .about-btn {
        font-size: 0.95rem;
        padding: 10px 20px;
    }
    
    .site-footer {
        padding: 24px 0 16px 0;
        margin-top: 32px;
    }
    
    .footer-content {
        gap: 12px;
    }
    
    .footer-text {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }
    
    .footer-icons {
        gap: 16px;
    }
    
    .footer-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}

/* Ultra Small Devices (up to 375px) */
@media (max-width: 375px) {
    .logo-nav {
        padding: 10px 8px 0 8px;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    
    .mobile-menu-toggle {
        width: 25px;
        height: 20px;
    }
    
    .mobile-menu-toggle span {
        height: 2px;
    }
    
    .main-content {
        padding: 70px 8px 0 8px;
    }
    
    .hero-text h1 {
        font-size: 1.4rem;
    }
    
    .for-students {
        font-size: 0.9rem;
    }
    
    .register-btn, .about-btn {
        font-size: 0.9rem;
        padding: 8px 20px;
    }
    
    .hero-illustration img {
        max-width: 240px;
    }
    
    .hero-illustration.no-box img {
        width: 180px;
        height: 180px;
    }
    
    .stat {
        padding: 16px 0 12px 0;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .info-banner {
        font-size: 0.9rem;
        padding: 16px 4px 14px 4px;
    }
    
    .info-banner p {
        font-size: 0.9rem;
    }
    
    .course-title {
        font-size: 1.2rem;
    }
    
    .course-step {
        padding: 20px 12px 16px 12px;
    }
    
    .step-number {
        font-size: 2.5rem;
        top: 10px;
        left: 10px;
    }
    
    .course-step h3 {
        font-size: 0.95rem;
    }
    
    .course-step p {
        font-size: 0.85rem;
    }
    
    .about-title {
        font-size: 1.5rem;
    }
    
    .about-desc {
        font-size: 0.9rem;
    }
    
    .about-btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    .footer-text {
        font-size: 0.85rem;
    }
    
    .footer-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .mobile-nav-list li a {
        font-size: 1.1rem;
        padding: 12px 25px;
        min-width: 180px;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        margin-top: 16px;
        gap: 20px;
    }
    
    .hero-text h1 {
        font-size: 1.4rem;
        margin: 0 0 12px 0;
    }
    
    .for-students {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }
    
    .about-section {
        padding: 24px 0 24px 0;
        min-height: 40vh;
    }
    
    .about-title {
        font-size: 1.6rem;
        margin: 0 0 12px 0;
    }
    
    .about-desc {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }
}

/* Touch-friendly improvements for mobile devices */
@media (max-width: 767px) {
    /* Increase touch targets for better mobile usability */
    .register-btn, .about-btn {
        min-height: 44px; /* Apple's recommended minimum touch target size */
        padding: 12px 28px;
    }
    
    .footer-icon {
        min-width: 44px;
        min-height: 44px;
    }
    
    .nav-list li a {
        padding: 8px 12px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .mobile-nav-list li a {
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improve spacing for mobile */
    .hero-section {
        gap: 40px;
        margin-top: 40px;
    }
    
    .stats-section {
        gap: 20px;
        margin-top: 40px;
    }
    
    .course-steps {
        gap: 24px;
    }
    
    /* Better text readability on mobile */
    .hero-text h1 {
        line-height: 1.4;
        margin-bottom: 20px;
    }
    
    .about-title {
        line-height: 1.3;
    }
    
    .course-step h3 {
        line-height: 1.4;
    }
    
    .course-step p {
        line-height: 1.6;
    }
}

/* Extra small devices with better touch targets */
@media (max-width: 375px) {
    .register-btn, .about-btn {
        min-height: 48px;
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .mobile-nav-list li a {
        min-height: 55px;
        font-size: 1.1rem;
        padding: 15px 30px;
    }
    
    .footer-icon {
        min-width: 48px;
        min-height: 48px;
    }
}

/* Prevent zoom on input focus for iOS */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    select,
    textarea,
    input {
        font-size: 16px;
    }
}

/* Better performance for animations on mobile */
@media (max-width: 767px) {
    .register-btn, .about-btn {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .stat, .course-step {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .footer-icon {
        transition: transform 0.2s ease, background 0.2s ease;
    }
}

/* Improved focus states for accessibility */
.register-btn:focus,
.about-btn:focus,
.footer-icon:focus,
.mobile-nav-list li a:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Better contrast for mobile */
@media (max-width: 767px) {
    .stat {
        background: #1a1a1a;
        border: 1px solid #333;
    }
    
    .course-step {
        background: #1a1a1a;
        border: 1px solid #333;
    }
    
    .info-banner {
        background: #1a1a1a;
        border: 2px solid #fff;
    }
}

/* Landscape orientation improvements */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        margin-top: 20px;
        gap: 30px;
    }
    
    .about-section {
        padding: 20px 0;
        min-height: 35vh;
    }
    
    .mobile-nav {
        padding-top: 60px;
    }
    
    .mobile-nav.active {
        padding-top: 80px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .main-header {
        position: static;
        box-shadow: none;
    }
    
    .main-content {
        padding: 20px 0 0 0;
    }
    
    .site-footer {
        margin-top: 20px;
        padding: 20px 0;
    }
    
    .register-btn, .about-btn {
        background: #333 !important;
        color: #fff !important;
        box-shadow: none !important;
    }
    
    .mobile-menu-toggle,
    .mobile-nav {
        display: none !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support (if user prefers dark mode) */
@media (prefers-color-scheme: dark) {
    /* Already dark theme, no changes needed */
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .register-btn, .about-btn {
        border: 2px solid #fff;
    }
    
    .nav-list li a {
        border-bottom: 2px solid #fff;
    }
    
    .mobile-nav-list li a {
        border: 2px solid #fff;
    }
}

.fade-out {
    animation: fadeOutPage 0.6s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes fadeOutPage {
    from { opacity: 1; }
    to { opacity: 0; }
} 