:root {
    --chrome-primary: #c0c0c0;
    --chrome-secondary: #808080;
    --chrome-highlight: #ffffff;
    --chrome-shadow: #404040;
    --chrome-dark: #202020;
    --liquid-1: linear-gradient(45deg, #c0c0c0, #e0e0e0, #a0a0a0);
    --liquid-2: linear-gradient(135deg, #b0b0b0, #d0d0d0, #909090);
    --liquid-3: linear-gradient(225deg, #a8a8a8, #c8c8c8, #888888);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: radial-gradient(circle at 20% 50%, #1a1a1a 0%, #0a0a0a 40%, #000000 100%);
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Mobile optimizations */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Prevent zoom on double tap */
    touch-action: manipulation;
    /* Smooth scrolling */
    scroll-behavior: smooth;
    /* Better tap highlights */
    -webkit-tap-highlight-color: rgba(59, 130, 246, 0.2);
}

/* Chrome Liquid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 20% 50%, #1a1a1a 0%, #0a0a0a 40%, #000000 100%);
    pointer-events: none;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Chrome Liquid Background Elements */
.chrome-liquid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.liquid-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    mix-blend-mode: screen;
    animation: liquidFloat 20s infinite linear;
}

.liquid-blob:nth-child(1) {
    width: 300px;
    height: 300px;
    background: var(--liquid-1);
    top: 10%;
    left: 10%;
    animation-duration: 25s;
    animation-delay: 0s;
}

.liquid-blob:nth-child(2) {
    width: 250px;
    height: 250px;
    background: var(--liquid-2);
    top: 60%;
    right: 15%;
    animation-duration: 30s;
    animation-delay: -5s;
    animation-direction: reverse;
}

.liquid-blob:nth-child(3) {
    width: 200px;
    height: 200px;
    background: var(--liquid-3);
    bottom: 20%;
    left: 20%;
    animation-duration: 35s;
    animation-delay: -10s;
}

.liquid-blob:nth-child(4) {
    width: 180px;
    height: 180px;
    background: var(--liquid-1);
    top: 30%;
    right: 30%;
    animation-duration: 28s;
    animation-delay: -15s;
    animation-direction: reverse;
}

.liquid-blob:nth-child(5) {
    width: 220px;
    height: 220px;
    background: var(--liquid-2);
    bottom: 40%;
    right: 10%;
    animation-duration: 32s;
    animation-delay: -8s;
}

/* Chrome Reflections */
.liquid-blob::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 30%;
    height: 30%;
    background: radial-gradient(ellipse at center, 
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%);
    border-radius: 50%;
    filter: blur(10px);
    animation: reflectionMove 4s ease-in-out infinite alternate;
}

@keyframes reflectionMove {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(20px, -20px) scale(1.2);
        opacity: 0.8;
    }
}

/* Chrome Liquid Animations */
@keyframes liquidFloat {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        border-radius: 50% 40% 60% 30%;
    }
    25% {
        transform: translate(100px, -50px) rotate(90deg) scale(1.1);
        border-radius: 40% 60% 30% 50%;
    }
    50% {
        transform: translate(-50px, 100px) rotate(180deg) scale(0.9);
        border-radius: 60% 30% 50% 40%;
    }
    75% {
        transform: translate(-100px, -100px) rotate(270deg) scale(1.05);
        border-radius: 30% 50% 40% 60%;
    }
    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
        border-radius: 50% 40% 60% 30%;
    }
}

/* Additional Chrome Effects */
.chrome-liquid-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, 
        rgba(192, 192, 192, 0.1) 0%,
        rgba(160, 160, 160, 0.05) 30%,
        transparent 60%),
    radial-gradient(circle at 30% 70%, 
        rgba(224, 224, 224, 0.08) 0%,
        rgba(176, 176, 176, 0.04) 35%,
        transparent 65%);
    animation: chromeShine 15s ease-in-out infinite;
}

.chrome-liquid-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(192, 192, 192, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 40%, rgba(160, 160, 160, 0.02) 0%, transparent 50%);
    animation: chromeFlow 20s linear infinite;
}

@keyframes chromeShine {
    0%, 100% {
        opacity: 0.3;
        transform: rotate(0deg) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: rotate(180deg) scale(1.1);
    }
}

@keyframes chromeFlow {
    0% {
        transform: translateX(-100%) rotate(0deg);
    }
    100% {
        transform: translateX(100%) rotate(360deg);
    }
}

/* Chrome Particles */
.liquid-blob.particle {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(192, 192, 192, 0.6);
    filter: blur(1px);
    animation: particleFloat 8s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) translateX(0) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(10vh) translateX(100px) scale(1);
    }
    100% {
        transform: translateY(0) translateX(200px) scale(0);
        opacity: 0;
    }
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 28px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.9);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #333;
    animation: slideDown 1s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo {
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    font-family: 'Fira Code', 'Courier New', monospace;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.share-btn {
    background: transparent;
    border: 1px solid #333;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    /* Mobile touch optimizations */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px; /* Minimum touch target size */
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.share-btn:hover::before {
    left: 100%;
}

.share-btn:hover {
    background: #ffffff;
    color: #0a0a0a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Active state for mobile */
.share-btn:active {
    transform: translateY(0) scale(0.95);
    background: rgba(255, 255, 255, 0.1);
}

/* Focus state for accessibility */
.share-btn:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

/* User Button Styles */
.user-btn {
    margin-left: 1.5rem;
    padding: 0.5rem 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59,130,246,0.18) 0%, rgba(59,130,246,0.09) 100%);
    color: #fff;
    border: 1px solid rgba(59,130,246,0.3);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(59,130,246,0.08);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    text-decoration: none;
}
.user-btn:hover {
    background: linear-gradient(135deg, rgba(59,130,246,0.28) 0%, rgba(59,130,246,0.18) 100%);
    border-color: rgba(59,130,246,0.5);
    color: #60a5fa;
}
.user-icon {
    width: 22px;
    height: 22px;
    stroke: #fff;
    transition: stroke 0.2s;
}
.user-btn:hover .user-icon {
    stroke: #60a5fa;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.user-square-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}
.user-square-btn .user-icon {
    width: 22px;
    height: 22px;
}

/* Courses Navigation Styles */
.courses-nav {
    padding: 80px 40px 60px;
    position: relative;
    z-index: 50;
}

.courses-container {
    max-width: 1200px;
    margin: 0 auto;
}

.courses-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'Space Grotesk', sans-serif;
    text-shadow: 
        0 0 30px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(0, 0, 0, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.5);
    animation: titleFadeIn 1s ease-out 0.5s both;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    animation: coursesFadeIn 1s ease-out 1s both;
}

.course-card {
    background: linear-gradient(145deg, 
        rgba(30, 30, 30, 0.95) 0%,
        rgba(20, 20, 20, 0.90) 100%);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.6),
        0 6px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.08) 25%,
        rgba(59, 130, 246, 0.15) 50%,
        rgba(59, 130, 246, 0.08) 75%,
        transparent 100%);
    transition: left 0.7s ease;
    pointer-events: none;
}

.course-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(59, 130, 246, 0.4) 0%,
        rgba(147, 197, 253, 0.2) 25%,
        rgba(59, 130, 246, 0.4) 50%,
        rgba(147, 197, 253, 0.2) 75%,
        rgba(59, 130, 246, 0.4) 100%);
    border-radius: 26px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.course-card:hover::before {
    left: 100%;
}

.course-card:hover::after {
    opacity: 1;
}

.course-card:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.7),
        0 12px 30px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

.course-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.8rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 12px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.course-card:hover .course-icon {
    transform: scale(1.1) translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.course-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.course-card:hover .course-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

/* Legacy SVG support for backward compatibility */
.course-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.3));
    color: #3b82f6;
}

.course-content {
    margin-bottom: 2.5rem;
    flex: 1;
}

.course-name {
    font-size: 1.65rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.course-description {
    font-size: 1.05rem;
    color: #e0e0e0;
    line-height: 1.7;
    margin-bottom: 1.8rem;
    font-weight: 400;
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(0, 0, 0, 0.3);
}

.course-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.course-level,
.course-duration {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.25) 0%,
        rgba(59, 130, 246, 0.15) 100%);
    color: #bfdbfe;
    border: 1px solid rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.course-card:hover .course-level,
.course-card:hover .course-duration {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.35) 0%,
        rgba(59, 130, 246, 0.25) 100%);
    border-color: rgba(59, 130, 246, 0.6);
    color: #dbeafe;
    transform: translateY(-1px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.course-action {
    display: flex;
    justify-content: center;
    margin-top: auto;
    padding-top: 1rem;
}

/* Add flex layout to course card */
.course-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-btn {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.25) 0%,
        rgba(59, 130, 246, 0.15) 50%,
        rgba(59, 130, 246, 0.2) 100%);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 
        0 6px 20px rgba(59, 130, 246, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.course-btn:hover {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.4) 0%,
        rgba(59, 130, 246, 0.25) 50%,
        rgba(59, 130, 246, 0.35) 100%);
    border-color: rgba(59, 130, 246, 0.7);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 10px 30px rgba(59, 130, 246, 0.4),
        0 6px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 20px rgba(59, 130, 246, 0.2);
}

.course-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 
        0 4px 15px rgba(59, 130, 246, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@keyframes coursesFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 60px;
    text-align: left;
    min-height: calc(100vh - 80px);
    position: relative;
}

.hero-text {
    max-width: 800px;
    width: 100%;
    animation: fadeInUp 1.2s ease-out 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    font-family: 'Space Grotesk', sans-serif;
    opacity: 0;
    animation: titleFadeIn 1s ease-out 1s both;
    display: inline-block;
    /* Enhanced text visibility for mobile */
    text-shadow: 
        0 0 30px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(0, 0, 0, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

/* Cursor animation */
.typing-cursor {
    border-right: 2px solid #ffffff;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { 
        border-color: #ffffff; 
    }
    50% { 
        border-color: transparent; 
    }
}

@keyframes titleFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.highlight {
    background: linear-gradient(45deg, #3b82f6, #60a5fa, #93c5fd);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
    font-weight: 600;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #e0e0e0;
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    font-family: 'Space Grotesk', sans-serif;
    opacity: 0;
    /* Enhanced text visibility for mobile */
    text-shadow: 
        0 0 20px rgba(0, 0, 0, 0.7),
        0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeInBounce 1s ease-out 3s both;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    transform: translateX(-50%) scale(1.1);
    opacity: 1;
}

.scroll-text {
    font-size: 0.9rem;
    color: #a0a0a0;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    color: #3b82f6;
    animation: bounce 2s infinite;
}

.scroll-arrow svg {
    width: 100%;
    height: 100%;
    stroke-width: 2;
}

@keyframes fadeInBounce {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    100% {
        opacity: 0.8;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* Footer */
.footer {
    padding: 40px;
    border-top: 1px solid #222;
    animation: slideUp 1s ease-out 2.5s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links span {
    color: #888;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    /* Mobile touch optimizations */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px; /* Minimum touch target size */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    border-radius: 4px;
    text-align: center;
}

.footer-links span::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 4px;
    right: 4px;
    width: calc(100% - 8px);
    height: 1px;
    background: #3b82f6;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.footer-links span:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-links span:hover::after {
    transform: scaleX(1);
}

/* Active state for mobile */
.footer-links span:active {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(0) scale(0.95);
}

/* Focus state for accessibility */
.footer-links span:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

.chat-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: 14px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

.chat-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: dotPulse 2s infinite;
    box-shadow: 0 0 10px #00ff88;
}

@keyframes dotPulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Auth Modal Styles */
.auth-btn {
    background: linear-gradient(135deg, rgba(59,130,246,0.18) 0%, rgba(59,130,246,0.09) 100%);
    color: #fff;
    border: 1px solid rgba(59,130,246,0.3);
    border-radius: 12px;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    margin-left: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 2px 8px rgba(59,130,246,0.08);
}
.auth-btn:hover {
    background: linear-gradient(135deg, rgba(59,130,246,0.28) 0%, rgba(59,130,246,0.18) 100%);
    border-color: rgba(59,130,246,0.5);
}

.auth-modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.85);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.4s cubic-bezier(0.4,0,0.2,1);
}
.auth-modal-content {
    background: linear-gradient(145deg, rgba(30,30,30,0.98) 0%, rgba(20,20,20,0.95) 100%);
    border-radius: 24px;
    padding: 2.5rem 2rem 2rem;
    min-width: 320px;
    max-width: 370px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 10px 30px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.auth-close {
    position: absolute;
    top: 18px; right: 22px;
    background: rgba(255,255,255,0.08);
    border: none;
    color: #fff;
    font-size: 1.3rem;
    border-radius: 10px;
    width: 36px; height: 36px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.auth-close:hover {
    background: rgba(255,255,255,0.18);
    color: #3b82f6;
}
.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
}
.auth-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.2rem;
    width: 100%;
}
.auth-field label {
    font-size: 1rem;
    color: #93c5fd;
    margin-bottom: 0.3rem;
    font-weight: 500;
}
.auth-field input {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(59,130,246,0.18);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    color: #fff;
    font-family: 'Fira Code', monospace;
    outline: none;
    transition: border-color 0.2s;
}
.auth-field input:focus {
    border-color: #3b82f6;
}
.auth-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.2rem;
}
.auth-action-btn {
    background: linear-gradient(135deg, rgba(59,130,246,0.25) 0%, rgba(59,130,246,0.15) 100%);
    border: 1px solid rgba(59,130,246,0.4);
    color: #fff;
    padding: 0.7rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 4px 16px rgba(59,130,246,0.15);
}
.auth-action-btn:hover {
    background: linear-gradient(135deg, rgba(59,130,246,0.35) 0%, rgba(59,130,246,0.25) 100%);
    border-color: rgba(59,130,246,0.6);
}
.auth-switch {
    background: none;
    border: none;
    color: #60a5fa;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    font-family: 'Space Grotesk', sans-serif;
    transition: color 0.2s;
}
.auth-switch:hover {
    color: #3b82f6;
}
@media (max-width: 480px) {
    .auth-modal-content {
        padding: 2rem 1rem 1.5rem;
        min-width: 90vw;
        max-width: 98vw;
    }
    .auth-title {
        font-size: 1.2rem;
    }
    .auth-field input {
        font-size: 0.95rem;
        padding: 0.6rem 0.8rem;
    }
    .auth-action-btn {
        font-size: 0.95rem;
        padding: 0.6rem 1.2rem;
    }
}

/* Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .header {
        padding: 20px 30px;
    }
    
    .main-content {
        padding: 100px 30px 40px;
    }
    
    .main-title {
        font-size: clamp(3rem, 8vw, 5rem);
    }
    
    .description {
        font-size: clamp(1.1rem, 2.2vw, 1.2rem);
        max-width: 550px;
    }
    
    .footer {
        padding: 35px 30px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    /* Optimize chrome liquid background for tablets */
    .chrome-liquid-bg {
        opacity: 0.5;
    }
    
    .liquid-blob {
        filter: blur(50px);
        opacity: 0.6;
    }
    
    .header {
        padding: 15px 25px;
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        background: rgba(10, 10, 10, 0.92);
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .share-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .main-content {
        padding: 120px 25px 60px;
        text-align: center;
        min-height: calc(100vh - 80px);
    }
    
    .main-title {
        font-size: clamp(2.5rem, 9vw, 4rem);
        margin-bottom: 1.5rem;
        text-shadow: 
            0 0 35px rgba(0, 0, 0, 0.8),
            0 0 70px rgba(0, 0, 0, 0.6),
            0 2px 5px rgba(0, 0, 0, 0.5);
    }
    
    .description {
        font-size: clamp(1rem, 2.8vw, 1.1rem);
        text-align: center;
        max-width: 500px;
        margin: 0 auto;
        line-height: 1.5;
        text-shadow: 
            0 0 20px rgba(0, 0, 0, 0.7),
            0 1px 3px rgba(0, 0, 0, 0.5);
        color: #e0e0e0;
    }
    
    .footer {
        padding: 30px 25px;
        background: rgba(10, 10, 10, 0.92);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
    }
    
    .footer-content {
        justify-content: space-between;
        text-align: left;
    }
    
    .footer-links {
        gap: 1.5rem;
    }
    
    .footer-link {
        font-size: 0.95rem;
    }
    
    .chat-indicator {
        position: relative;
        justify-self: center;
    }
    
    /* Courses Navigation Tablet Optimizations */
    .courses-nav {
        padding: 110px 25px 50px;
    }
    
    .courses-title {
        font-size: clamp(2.2rem, 6vw, 2.8rem);
        margin-bottom: 2.5rem;
    }
    
    .courses-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .course-card {
        padding: 2rem;
    }
    
    .course-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1.5rem;
        padding: 10px;
    }
    
    .course-name {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }
    
    .course-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .course-btn {
        padding: 0.8rem 1.6rem;
        font-size: 0.95rem;
    }
    
    /* Scroll Indicator Tablet Optimizations */
    .scroll-indicator {
        bottom: 30px;
    }
    
    .scroll-text {
        font-size: 0.8rem;
    }
    
    .scroll-arrow {
        width: 20px;
        height: 20px;
    }
}

/* Large phones */
@media (max-width: 480px) {
    /* Add contrast overlay for mobile */
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(ellipse at center, 
            transparent 0%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.4) 100%);
        z-index: -1;
        pointer-events: none;
    }
    
    /* Optimize chrome liquid background for mobile */
    .chrome-liquid-bg {
        opacity: 0.3;
    }
    
    .liquid-blob {
        filter: blur(60px);
        opacity: 0.4;
    }
    
    .liquid-blob:nth-child(1) {
        width: 200px;
        height: 200px;
    }
    
    .liquid-blob:nth-child(2) {
        width: 150px;
        height: 150px;
    }
    
    .liquid-blob:nth-child(3) {
        width: 120px;
        height: 120px;
    }
    
    .liquid-blob:nth-child(4) {
        width: 100px;
        height: 100px;
    }
    
    .liquid-blob:nth-child(5) {
        width: 130px;
        height: 130px;
    }
    
    .header {
        padding: 15px 20px;
        background: rgba(10, 10, 10, 0.95);
        -webkit-backdrop-filter: blur(25px);
        backdrop-filter: blur(25px);
    }
    
    .logo {
        font-size: 1rem;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }
    
    .share-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
        border-radius: 8px;
        background: rgba(10, 10, 10, 0.8);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .main-content {
        padding: 100px 20px 50px;
        min-height: calc(100vh - 80px);
    }
    
    .main-title {
        font-size: clamp(2rem, 12vw, 3rem);
        margin-bottom: 1.2rem;
        line-height: 1.1;
        text-shadow: 
            0 0 40px rgba(0, 0, 0, 0.9),
            0 0 80px rgba(0, 0, 0, 0.7),
            0 3px 6px rgba(0, 0, 0, 0.6);
    }
    
    .description {
        font-size: clamp(0.9rem, 4vw, 1rem);
        max-width: 280px;
        line-height: 1.4;
        text-shadow: 
            0 0 25px rgba(0, 0, 0, 0.8),
            0 2px 4px rgba(0, 0, 0, 0.6);
        color: #f0f0f0;
    }
    
    /* Courses Navigation Mobile Optimizations */
    .courses-nav {
        padding: 60px 20px 40px;
    }
    
    .courses-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 2rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .course-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .course-card:hover {
        transform: translateY(-6px) scale(1.02);
    }
    
    .course-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 1.2rem;
        padding: 8px;
        border-radius: 14px;
    }
    
    .course-name {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }
    
    .course-description {
        font-size: 1rem;
        margin-bottom: 1.3rem;
        line-height: 1.6;
    }
    
    .course-meta {
        gap: 0.8rem;
        margin-bottom: 1.2rem;
    }
    
    .course-level,
    .course-duration {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
    
    .course-level,
    .course-duration {
        font-size: 0.85rem;
        padding: 0.3rem 0.8rem;
    }
    
    .course-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 14px;
    }
    
    /* Course Modal Mobile Optimizations */
    .course-modal {
        padding: 10px;
    }
    
    .course-modal-content {
        padding: 1.5rem;
        max-height: 95vh;
    }
    
    .modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding-right: 2rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-price {
        font-size: 1.2rem;
        padding: 0.4rem 0.8rem;
    }
    
    .modal-description {
        font-size: 1rem;
    }
    
    .modal-section h3 {
        font-size: 1.1rem;
    }
    
    .topics-list li {
        font-size: 0.9rem;
        padding: 0.4rem 0;
        padding-left: 1.2rem;
    }
    
    .modal-info {
        padding: 1rem;
    }
    
    .info-item {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .enroll-btn,
    .info-btn {
        width: 100%;
        padding: 0.8rem 1rem;
        text-align: center;
    }
    
    .footer {
        padding: 25px 20px;
        background: rgba(10, 10, 10, 0.95);
        -webkit-backdrop-filter: blur(25px);
        backdrop-filter: blur(25px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-content {
        justify-content: space-between;
        text-align: left;
    }
    
    .footer-links {
        gap: 1rem;
    }
    
    .footer-links span {
        color: #d0d0d0;
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    }
    
    .footer-link {
        font-size: 0.9rem;
        padding: 8px 0;
    }
    
    .chat-indicator {
        font-size: 0.8rem;
        padding: 4px 8px;
        color: #d0d0d0;
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    }
    
    .chat-dot {
        width: 6px;
        height: 6px;
    }
    
    /* Scroll Indicator Mobile Optimizations */
    .scroll-indicator {
        bottom: 25px;
    }
    
    .scroll-text {
        font-size: 0.75rem;
        letter-spacing: 0.08em;
    }
    
    .scroll-arrow {
        width: 18px;
        height: 18px;
    }
}

/* Extra small phones */
@media (max-width: 360px) {
    /* Further optimize chrome liquid background for very small screens */
    .chrome-liquid-bg {
        opacity: 0.2;
    }
    
    .liquid-blob {
        filter: blur(80px);
        opacity: 0.3;
    }
    
    .header {
        padding: 12px 15px;
        background: rgba(10, 10, 10, 0.98);
    }
    
    .logo {
        font-size: 0.9rem;
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    }
    
    .share-btn {
        padding: 5px 10px;
        background: rgba(10, 10, 10, 0.9);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        font-size: 0.8rem;
    }
    
    .main-content {
        padding: 90px 15px 40px;
        min-height: calc(100vh - 80px);
    }
    
    .main-title {
        font-size: clamp(1.8rem, 14vw, 2.5rem);
        margin-bottom: 1rem;
    }
    
    .description {
        font-size: 0.85rem;
        max-width: 250px;
        line-height: 1.3;
    }
    
    .courses-nav {
        padding: 50px 15px 30px;
    }
    
    .footer {
        padding: 20px 15px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        gap: 0.8rem;
        justify-content: center;
    }
    
    .footer-link {
        font-size: 0.85rem;
        padding: 6px 0;
    }
    
    /* Scroll Indicator Extra Small Phone Optimizations */
    .scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-text {
        font-size: 0.7rem;
        letter-spacing: 0.06em;
    }
    
    .scroll-arrow {
        width: 16px;
        height: 16px;
    }
}

/* Landscape orientation for phones */
@media (max-height: 500px) and (orientation: landscape) {
    .main-content {
        padding: 60px 20px 20px;
        min-height: calc(100vh - 100px);
    }
    
    .main-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 0.8rem;
    }
    
    .description {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        line-height: 1.3;
    }
    
    .footer {
        padding: 20px;
    }
    
    .footer-content {
        flex-direction: row;
        gap: 2rem;
    }
    
    .footer-links {
        flex-direction: row;
        gap: 1rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .main-title {
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .description {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Additional cool animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glassmorphism effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

/* Hover effect for the main container */
.main-content:hover .main-title {
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    transition: text-shadow 0.3s ease;
}

/* QR Modal Styles */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        -webkit-backdrop-filter: blur(0px);
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        -webkit-backdrop-filter: blur(15px);
        backdrop-filter: blur(15px);
    }
}

.qr-modal-content {
    background: linear-gradient(145deg, 
        rgba(25, 25, 25, 0.98) 0%,
        rgba(15, 15, 15, 0.95) 100%);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 50px 40px 40px;
    text-align: center;
    position: relative;
    max-width: 420px;
    width: 100%;
    animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 10px 30px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.85);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.qr-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.qr-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.05);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.qr-close:active {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg) scale(0.95);
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.qr-close:focus {
    outline: 2px solid rgba(59, 130, 246, 0.6);
    outline-offset: 2px;
}

.qr-title {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    font-family: 'Space Grotesk', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.qr-title-icon {
    width: 28px;
    height: 28px;
    color: #3b82f6;
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
}

.qr-description {
    color: #a0a0a0;
    font-size: 0.95rem;
    font-weight: 400;
    margin: 0 0 25px 0;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.4;
}

.qr-container {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 25px;
    margin: 25px 0;
    display: inline-block;
    position: relative;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 5px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.qr-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(59, 130, 246, 0.3) 0%,
        rgba(147, 197, 253, 0.2) 25%,
        rgba(59, 130, 246, 0.3) 50%,
        rgba(147, 197, 253, 0.2) 75%,
        rgba(59, 130, 246, 0.3) 100%);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qr-container:hover::before {
    opacity: 1;
}

.qr-container:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 8px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.qr-image {
    width: 220px;
    height: 220px;
    border-radius: 12px;
    transition: all 0.3s ease;
    filter: contrast(1.1) brightness(1.05);
}

.qr-image:hover {
    transform: scale(1.02);
    filter: contrast(1.15) brightness(1.1);
}

.qr-subtitle {
    color: #10b981;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 20px 0 15px 0;
    font-family: 'Space Grotesk', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-shadow: 0 1px 2px rgba(16, 185, 129, 0.3);
}

.qr-subtitle-icon {
    width: 20px;
    height: 20px;
    color: #10b981;
}

.qr-url {
    color: #e0e0e0;
    font-size: 0.85rem;
    font-family: 'Fira Code', monospace;
    word-break: break-all;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin: 20px 0;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.qr-url:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.qr-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
}

.qr-action-btn {
    background: rgba(59, 130, 246, 0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 
        0 4px 15px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.qr-action-btn:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.qr-action-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 10px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.qr-action-btn svg {
    width: 16px;
    height: 16px;
}

/* Mobile responsive for QR modal */
@media (max-width: 480px) {
    .qr-modal {
        padding: 15px;
    }
    
    .qr-modal-content {
        padding: 40px 25px 30px;
        max-width: 100%;
        border-radius: 20px;
    }
    
    .qr-close {
        top: 15px;
        right: 20px;
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .qr-title {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .qr-title-icon {
        width: 24px;
        height: 24px;
    }
    
    .qr-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .qr-container {
        padding: 20px;
        margin: 20px 0;
    }
    
    .qr-image {
        width: 180px;
        height: 180px;
    }
    
    .qr-subtitle {
        font-size: 1rem;
        margin: 15px 0 12px 0;
    }
    
    .qr-url {
        font-size: 0.8rem;
        padding: 10px 14px;
        margin: 15px 0 20px 0;
    }
    
    .qr-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .qr-action-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
        justify-content: center;
    }
}

/* Performance optimizations */
.main-title, .description {
    will-change: transform, opacity;
}

/* Prevent horizontal scroll on very small screens */
.container {
    overflow-x: hidden;
    width: 100%;
}

/* Better text selection */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(59, 130, 246, 0.3);
    color: #ffffff;
}

/* Improve contrast for accessibility */
@media (prefers-contrast: high) {
    .main-title {
        color: #ffffff;
        text-shadow: none;
    }
    
    .description {
        color: #ffffff;
    }
    
    .footer-links span {
        color: #cccccc;
    }
    
    .share-btn {
        border-color: #ffffff;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .header {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Course Modal Styles */
.course-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(20px);
       backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.course-modal.show {
    opacity: 1;
    visibility: visible;
}

.course-modal-content {
    background: var(--liquid-glass-bg);
    -webkit-backdrop-filter: var(--liquid-glass-backdrop);
    backdrop-filter: var(--liquid-glass-backdrop);
    border: 1px solid var(--liquid-glass-border);
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
    box-shadow: var(--liquid-glass-shadow);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-modal.show .course-modal-content {
    transform: scale(1) translateY(0);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-right: 3rem;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.modal-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.modal-body {
    margin-bottom: 2rem;
}

.modal-description {
    font-size: 1.1rem;
    color: #d0d0d0;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.topics-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topics-list li {
    color: #d0d0d0;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topics-list li:last-child {
    border-bottom: none;
}

.topics-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: bold;
}

.modal-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item {
    color: #d0d0d0;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item strong {
    color: #ffffff;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.enroll-btn,
.info-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.enroll-btn {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.3) 0%,
        rgba(59, 130, 246, 0.2) 50%,
        rgba(59, 130, 246, 0.25) 100%);
    border-color: rgba(59, 130, 246, 0.6);
    color: #ffffff;
}

.enroll-btn:hover {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.4) 0%,
        rgba(59, 130, 246, 0.3) 50%,
        rgba(59, 130, 246, 0.35) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.info-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.info-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}
