/* style.css */
:root {
    --color-white: #FFFFFF;
    --color-black: #222222;
    --color-orange: #F7A048;
    --color-orange-dark: #E68E3A;
    --color-gray-light: #F5F5F5;
    --color-gray: #888888;
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-elevated: 0 8px 30px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-quick: all 0.25s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 50%, #f5f7fa 100%);
    background-attachment: fixed;
    color: var(--color-black);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(247, 160, 72, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(247, 160, 72, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(247, 160, 72, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(247, 160, 72, 0.02) 2px,
            rgba(247, 160, 72, 0.02) 4px
        );
    pointer-events: none;
    z-index: 0;
    animation: subtleMove 20s linear infinite;
}

@keyframes subtleMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.spa-container {
    position: relative;
    min-height: 100vh;
    width: 100%;
    z-index: 1;
}

/* Screen Management */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    padding: 20px;
    overflow-y: auto;
    z-index: 1;
}

.screen.active {
    opacity: 1;
    visibility: visible;
}

/* Welcome Screen Styling */
#welcome-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
    text-align: center;
    z-index: 10;
}

.welcome-content {
    max-width: 600px;
    padding: 40px;
}

#welcome-heading {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.2;
}

#customer-name {
    color: var(--color-orange);
    position: relative;
    display: inline-block;
}

#customer-name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-orange);
    transform: scaleX(0);
    animation: underlineExpand 1s ease 0.5s forwards;
}

.proceed-btn {
    background-color: var(--color-orange);
    color: var(--color-white);
    border: none;
    padding: 18px 50px;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-quick);
    transform: translateY(20px);
    opacity: 0;
    box-shadow: var(--shadow-subtle);
}

.proceed-btn:hover {
    background-color: var(--color-orange-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
}

.proceed-btn:active {
    transform: translateY(0);
}

/* Course Screen Styling */
#course-screen {
    padding: 30px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 60px rgba(247, 160, 72, 0.1);
}

.course-header {
    margin-bottom: 40px;
    max-width: 800px;
    position: relative;
    padding: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.course-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.course-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray);
    font-weight: 400;
}

/* Video Section */
.video-section {
    margin-bottom: 50px;
}

.video-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 0 30px rgba(247, 160, 72, 0.2);
    position: relative;
    background: #000;
}

.video-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(247, 160, 72, 0.5), rgba(247, 160, 72, 0.2));
    border-radius: var(--border-radius);
    z-index: -1;
    opacity: 0.6;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Downloads Section */
.downloads-section {
    max-width: 1000px;
    margin: 0 auto 50px;
    position: relative;
    padding: 30px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.downloads-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.downloads-section h2 i {
    color: var(--color-orange);
}

.download-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-dark) 100%);
    color: var(--color-white);
    padding: 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-quick);
    box-shadow: 
        0 4px 15px rgba(247, 160, 72, 0.3),
        0 0 20px rgba(247, 160, 72, 0.1);
    position: relative;
    overflow: hidden;
}

.download-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;
}

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

.download-btn i {
    font-size: 1.5rem;
}

.download-btn:hover {
    background: linear-gradient(135deg, var(--color-orange-dark) 0%, var(--color-orange) 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(247, 160, 72, 0.4),
        0 0 30px rgba(247, 160, 72, 0.2);
}

/* Progress Section */
.progress-section {
    max-width: 1000px;
    margin: 0 auto 40px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(247, 160, 72, 0.1);
}

.progress-section h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.progress-bar {
    height: 10px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background-color: var(--color-orange);
    border-radius: 5px;
    transition: width 1s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--color-gray);
    font-weight: 500;
}

/* Footer */
.course-footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--color-gray-light);
    color: var(--color-gray);
    font-size: 0.9rem;
}

.course-footer a {
    color: var(--color-orange);
    text-decoration: none;
    font-weight: 500;
}

.course-footer a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes underlineExpand {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(20px);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
    80% {
        opacity: 1;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.fade-in-element {
    animation: fadeInUp 1s ease forwards;
}

.animate-in {
    animation: bounceIn 0.8s ease 2s forwards;
}

/* Screen Transition Animation */
.screen-exit {
    animation: slideUpOut 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .screen {
        padding: 15px;
    }
    
    .welcome-content {
        padding: 20px;
    }
    
    #welcome-heading {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }
    
    .proceed-btn {
        padding: 16px 40px;
        font-size: 1.125rem;
    }
    
    .course-header {
        margin-bottom: 30px;
    }
    
    .download-buttons {
        grid-template-columns: 1fr;
    }
    
}

@media (max-width: 480px) {
    #welcome-heading {
        font-size: 2rem;
    }
    
    .course-title {
        font-size: 1.75rem;
    }
    
    .course-subtitle {
        font-size: 1rem;
    }
}