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

/* ==================== CSS VARIABLES ==================== */
:root {
    /* Modern Color Palette */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #4AC29A 0%, #BDFFF3 100%);
    --accent-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --bg-light: #f8f9fa;

    /* Colors */
    --primary-color: #667eea;
    --secondary-color: #4AC29A;
    --accent-color: #764ba2;
    --text-dark: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(102, 126, 234, 0.1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== HEADER NAVIGATION ==================== */
header {
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(230, 233, 255, 0.95), rgba(255, 245, 250, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-base);
}

header.scrolled {
    padding: 0.75rem 5%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1001;
}

.left img {
    height: 50px;
    width: 50px;
    cursor: pointer;
    transition: transform var(--transition-base);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.left img:hover {
    transform: rotate(360deg) scale(1.1);
}

.left h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.left h1 span {
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all var(--transition-base);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.right ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.right ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: all var(--transition-base);
}

.right ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-base);
}

.right ul li a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.right ul li a:hover::after {
    width: 100%;
}

/* ==================== SECTION HEADINGS ==================== */
.course-des h1,
.success h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    text-align: center;
    margin: 3rem 0 2rem;
    color: var(--text-dark);
    letter-spacing: -1px;
}

/* ==================== COURSE CARDS ==================== */
.container-1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.first {
    background: linear-gradient(135deg, rgba(230, 233, 255, 0.6), rgba(255, 245, 250, 0.6));
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-slow);
    cursor: pointer;
    border: 1px solid rgba(102, 126, 234, 0.15);
    position: relative;
    overflow: hidden;
}

.first::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-slow);
    z-index: 0;
}

.first:hover::before {
    opacity: 0.1;
}

.first:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.first-pic {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    z-index: 1;
}

.first-pic img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-slow);
    display: block;
}

.first:hover .first-pic img {
    transform: scale(1.1);
}

.first-description {
    position: relative;
    z-index: 1;
}

.first-description h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.first-description button {
    width: 100%;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary-gradient);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

.first-description button:hover::before {
    left: 100%;
}

.first-description button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
    filter: brightness(1.1);
}

.first-description button:active {
    transform: translateY(-1px) scale(1);
}

/* ==================== SUCCESS STORIES / VIDEOS ==================== */
.success {
    margin-top: 4rem;
}

.video-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.video {
    background: linear-gradient(135deg, rgba(230, 233, 255, 0.7), rgba(255, 245, 250, 0.7));
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    cursor: pointer;
}

.video:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.vid-wrapper {
    position: relative;
    padding-top: 56.25%;
    background: #000;
}

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

.vid-des {
    padding: 1.5rem;
}

.vid-des h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
}

/* ==================== CONTACT FORM ==================== */
.queries {
    background: linear-gradient(135deg, rgba(230, 233, 255, 0.4), rgba(255, 245, 250, 0.4));
    backdrop-filter: blur(20px);
    padding: 4rem 5%;
    margin-top: 4rem;
}

.queries h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
}

.queries form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.lazy input,
.lazy textarea {
    width: 100%;
    padding: 1.125rem 1.5rem;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.8);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all var(--transition-base);
    outline: none;
}

.lazy input:focus,
.lazy textarea:focus {
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.lazy textarea {
    resize: vertical;
    min-height: 150px;
}

.sub-btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: var(--radius-md);
    background: var(--primary-gradient);
    color: var(--white);
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    align-self: center;
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

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

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

.sub-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
    filter: brightness(1.1);
}

.sub-btn:active {
    transform: translateY(-1px) scale(1);
}

/* ==================== FOOTER ==================== */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    background: linear-gradient(135deg, rgba(230, 233, 255, 0.8), rgba(255, 245, 250, 0.8));
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.05);
}

.bottom-left h3 {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
}

.logos {
    display: flex;
    gap: 1.25rem;
}

.social {
    transition: all var(--transition-base);
    cursor: pointer;
}

.social img {
    filter: brightness(0) saturate(100%);
    opacity: 0.7;
    transition: all var(--transition-base);
}

.social:hover {
    transform: translateY(-5px) scale(1.1);
}

.social:hover img {
    opacity: 1;
    filter: brightness(0) saturate(100%) drop-shadow(0 4px 12px rgba(102, 126, 234, 0.4));
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablet Devices */
@media (max-width: 1024px) {
    header {
        padding: 1rem 3%;
    }

    .container-1,
    .video-container {
        padding: 1.5rem 3%;
        gap: 1.5rem;
    }

    .right ul {
        gap: 1.5rem;
    }

    .right ul li a {
        font-size: 0.95rem;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    header {
        padding: 1rem 4%;
    }

    .left h1 {
        font-size: 1.5rem;
    }

    .left img {
        height: 40px;
        width: 40px;
    }

    /* Mobile Menu */
    .menu-toggle {
        display: flex;
    }

    .right ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: linear-gradient(135deg, rgba(230, 233, 255, 0.98), rgba(255, 245, 250, 0.98));
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: right var(--transition-slow);
        padding: 2rem;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    }

    .right ul.active {
        right: 0;
    }

    .right ul li a {
        font-size: 1.25rem;
        padding: 0.75rem 0;
    }

    .container-1 {
        grid-template-columns: 1fr;
        padding: 1.5rem 4%;
    }

    .video-container {
        grid-template-columns: 1fr;
        padding: 1.5rem 4%;
    }

    .queries {
        padding: 3rem 4%;
    }

    .queries form {
        padding: 0;
    }

    footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 2rem 4%;
    }

    .bottom-left h3 {
        font-size: 0.875rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .left h1 {
        font-size: 1.25rem;
    }

    .course-des h1,
    .success h1 {
        font-size: 1.75rem;
        margin: 2rem 0 1.5rem;
    }

    .first {
        padding: 1.25rem;
    }

    .first-description h3 {
        font-size: 1.125rem;
    }

    .queries h2 {
        font-size: 1.75rem;
    }

    .sub-btn {
        width: 100%;
        min-width: unset;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.first,
.video {
    animation: fadeInUp 0.6s ease backwards;
}

.first:nth-child(1) {
    animation-delay: 0.1s;
}

.first:nth-child(2) {
    animation-delay: 0.2s;
}

.first:nth-child(3) {
    animation-delay: 0.3s;
}

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

/* Selection Styling */
::selection {
    background: var(--primary-color);
    color: var(--white);
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gradient);
}