/* Main Styles Extracted from index.html */
:root {
    --bg-light: #f8fafc;
    --bg-secondary: #ffffff;
    --accent-cyan: #0891b2;
    --accent-green: #059669;
    --accent-purple: #7c3aed;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(8, 145, 178, 0.2);
    --gradient-main: linear-gradient(135deg, #0891b2 0%, #059669 50%, #0891b2 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(8, 145, 178, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(5, 150, 105, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(124, 58, 237, 0.04) 0%, transparent 60%),
        linear-gradient(180deg, #f0f9ff 0%, #f8fafc 50%, #ecfdf5 100%);
}

.bg-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230891b2' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: bgFloat 60s linear infinite;
}

@keyframes bgFloat {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-50%, -50%);
    }
}

/* Header / Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 45px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(8, 145, 178, 0.25);
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.login-btn {
    background: var(--gradient-main);
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(8, 145, 178, 0.35);
}

.login-btn::after {
    display: none !important;
}

.login-btn:hover {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(8, 145, 178, 0.5);
}

/* Dropdown Navigation - Robust Version */
.nav-dropdown {
    position: relative;
}

.nav-dropdown>a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-dropdown>a::after {
    content: '▼';
    font-size: 0.6rem;
    transition: transform 0.3s;
}

.nav-dropdown:hover>a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
}

.nav-dropdown:hover>.dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background: rgba(8, 145, 178, 0.08);
    color: var(--accent-cyan);
    padding-left: 25px;
}

/* Nested Dropdown */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

/* Mobile adjustment for nested menu */
@media (max-width: 1200px) {
    .dropdown-submenu .dropdown-menu {
        left: auto;
        right: 100%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 140px 20px 80px;
    overflow: hidden;
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Section Styles */
.section {
    padding: 100px 40px;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 60px;
}

/* Content & Features */
.content-section {
    max-width: 1000px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.feature-grid,
.features,
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card,
.feature-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover,
.feature-item:hover {
    transform: translateY(-5px);
    border-color: rgba(8, 145, 178, 0.4);
    box-shadow: 0 10px 30px rgba(8, 145, 178, 0.1);
}

.feature-card h3,
.feature-item h3 {
    color: var(--accent-cyan);
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-card p,
.feature-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Login Modal */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-modal.active {
    display: flex;
}

.login-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 50px;
    width: min(450px, 100%);
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.login-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.login-close:hover {
    color: var(--text-primary);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: #f8fafc;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.login-submit {
    width: 100%;
    padding: 15px;
    background: var(--gradient-main);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(8, 145, 178, 0.5);
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    color: var(--text-secondary);
}

.login-footer a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    50% {
        transform: translateX(10px);
    }

    75% {
        transform: translateX(-10px);
    }

    100% {
        transform: translateX(0);
    }
}

.error-message {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
    display: none;
}

.success-message {
    color: var(--text-primary);
    background: rgba(16, 185, 129, 0.05);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: none;
    animation: fadeIn 0.5s ease;
}

/* Footer */
footer,
.footer {
    background: #1e293b;
    color: white;
    padding: 60px 40px;
    text-align: center;
    margin-top: auto;
    /* Push to bottom if flex container */
    border-top: none;
}

.footer p,
footer p {
    color: #94a3b8;
}

/* ENHANCED STYLES RESTORED FROM INDEX.HTML */

/* RELEASED ENHANCED STYLES */

/* Hero Section Enhanced */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 140px 20px 80px;
    overflow: hidden;
}

/* Animated Mesh Background */
.hero-bg-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 50%, rgba(8, 145, 178, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
    filter: blur(60px);
    animation: pulseMesh 10s ease-in-out infinite alternate;
}

@keyframes pulseMesh {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Floating Icons */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
}

.float-icon {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.15;
    filter: blur(1px);
    animation: float 6s ease-in-out infinite;
}

.float-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    color: #ef4444;
    animation-delay: 0s;
    font-size: 3rem;
}

.float-icon:nth-child(2) {
    top: 60%;
    left: 5%;
    color: #3b82f6;
    animation-delay: 2s;
    font-size: 2rem;
}

.float-icon:nth-child(3) {
    top: 15%;
    right: 15%;
    color: #f59e0b;
    animation-delay: 1s;
    font-size: 2.5rem;
}

.float-icon:nth-child(4) {
    top: 70%;
    right: 10%;
    color: #10b981;
    animation-delay: 3s;
    font-size: 3.5rem;
}

.float-icon:nth-child(5) {
    top: 40%;
    left: 80%;
    color: #8b5cf6;
    animation-delay: 4s;
    font-size: 2rem;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.hero-logo-container {
    position: relative;
    margin-bottom: 40px;
}

.hero-logo {
    width: min(550px, 90vw);
    border-radius: 20px;
    box-shadow: 0 20px 60px -10px rgba(8, 145, 178, 0.3);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: logoEnter 1s ease-out;
}

.hero-logo:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 30px 70px -15px rgba(8, 145, 178, 0.4);
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.1;
    background: linear-gradient(135deg, #0e7490 0%, #06b6d4 50%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    line-height: 1.8;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.cta-primary {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    color: white;
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    box-shadow: 0 10px 25px -5px rgba(8, 145, 178, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -10px rgba(8, 145, 178, 0.5);
    filter: brightness(1.1);
}

.cta-secondary {
    background: white;
    color: #0e7490;
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    border: 2px solid rgba(8, 145, 178, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-secondary:hover {
    border-color: #0891b2;
    background: rgba(8, 145, 178, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(8, 145, 178, 0.15);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoEnter {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Section Styles */
.section {
    padding: 100px 40px;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 60px;
}

/* Course Cards */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.course-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-accent, var(--gradient-main));
}

.course-card:hover {
    transform: translateY(-10px);
    border-color: rgba(8, 145, 178, 0.3);
    box-shadow: 0 20px 60px rgba(8, 145, 178, 0.15);
}

.course-card.html-card {
    --card-accent: linear-gradient(90deg, #e17055, #fd79a8);
}

.course-card.python-card {
    --card-accent: linear-gradient(90deg, #00b894, #00cec9);
}

.course-card.csharp-card {
    --card-accent: linear-gradient(90deg, #6c5ce7, #a29bfe);
}

.course-card.js-card {
    --card-accent: linear-gradient(90deg, #fdcb6e, #f39c12);
}

.course-card.mobile-card {
    --card-accent: linear-gradient(135deg, #6366f1, #a855f7);
}

.course-card.robot-card {
    --card-accent: linear-gradient(135deg, #059669, #34d399);
}

.course-card.graphic-card {
    --card-accent: linear-gradient(135deg, #db2777, #e11d48);
}

.course-card.office-card {
    --card-accent: linear-gradient(135deg, #ea580c, #c2410c);
}

.course-card.os-card {
    --card-accent: linear-gradient(135deg, #0f172a, #475569);
}

.course-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.course-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.course-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
}

.course-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.course-tag {
    background: rgba(8, 145, 178, 0.1);
    color: var(--accent-cyan);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.course-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--card-accent, var(--gradient-main));
    color: #ffffff;
}

.course-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(8, 145, 178, 0.3);
}

.course-btn.disabled {
    background: rgba(148, 163, 184, 0.3);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.course-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 40px 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: rgba(5, 150, 105, 0.3);
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(5, 150, 105, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Login Modal */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-modal.active {
    display: flex;
}

.login-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 50px;
    width: min(450px, 100%);
    position: relative;
}

.login-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.login-close:hover {
    color: var(--text-primary);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: #f8fafc;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}

.form-group input::placeholder {
    color: var(--text-secondary);
}

.login-submit {
    width: 100%;
    padding: 15px;
    background: var(--gradient-main);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(8, 145, 178, 0.5);
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    color: var(--text-secondary);
}

.login-footer a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    50% {
        transform: translateX(10px);
    }

    75% {
        transform: translateX(-10px);
    }

    100% {
        transform: translateX(0);
    }
}

.error-message {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
    display: none;
}

.success-message {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
    display: none;
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.nav-dropdown>a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-dropdown>a::after {
    content: '▼';
    font-size: 0.6rem;
    transition: transform 0.3s;
}

.nav-dropdown:hover>a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
}

.nav-dropdown:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background: rgba(8, 145, 178, 0.08);
    color: var(--accent-cyan);
    padding-left: 25px;
}

/* Nested Dropdown */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}

.dropdown-submenu:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile adjustment for nested menu to not go off screen */
@media (max-width: 1200px) {
    .dropdown-submenu .dropdown-menu {
        left: auto;
        right: 100%;
    }
}

/* Contact Section */
.contact-section {
    padding: 100px 40px;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #0d9488 100%);
}

.contact-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 60px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-map {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
}

.contact-info {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: rgba(8, 145, 178, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.contact-details p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-details a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* Enhanced Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    padding: 60px 60px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand img {
    height: 50px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--accent-cyan);
    transform: translateY(-3px);
}

.footer-column h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: var(--accent-cyan);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-contact-item span {
    font-size: 1.1rem;
}

.footer-bottom {
    background: #0f172a;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: #64748b;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: var(--accent-cyan);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-primary);
    cursor: pointer;
    line-height: 1;
}

@media (max-width: 768px) {
    .header {
        padding: 12px 20px;
    }

    /* Control mobile header layout with flex order */
    .logo-container {
        order: 1;
    }

    /* Push the login button and hamburger to the right */
    .login-btn[onclick*="openLogin"] {
        order: 2;
        margin-left: auto;
        margin-right: 15px;
        padding: 8px 18px;
        font-size: 0.95rem;
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        order: 3;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 1001;
    }
    
    .mobile-menu-btn span {
        width: 28px;
        height: 3px;
        background: var(--accent-cyan);
        border-radius: 4px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        transform-origin: center;
    }
    
    .mobile-menu-btn.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background: #ef4444;
    }
    
    .mobile-menu-btn.open span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background: #ef4444;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(20px);
        gap: 15px;
        order: 4;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        border-top: 1px solid var(--glass-border);
    }
    .nav-links.active {
        display: flex !important;
    }
    .nav-links a {
        padding: 10px;
        text-align: center;
    }

    .logo-text {
        display: none !important;
    }

    .section {
        padding: 40px 15px;
    }

    .content-section {
        padding: 0 5px;
    }

    .feature-card, .feature-item {
        padding: 24px 15px;
    }

    .course-card {
        padding: 24px 15px;
    }

    .courses-grid, .feature-grid, .features-grid, .features {
        grid-template-columns: 1fr !important;
    }

    .hero {
        padding: 100px 15px 40px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .login-card {
        padding: 30px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .contact-section {
        padding: 60px 20px;
    }
}

/* Scroll Animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Page Specific Hero Themes */
/* Security Page */
.hero-security {
    background: radial-gradient(circle at 50% 50%, rgba(220, 38, 38, 0.05) 0%, transparent 60%);
}

.hero-security h1 {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-security .hero-icon {
    animation: pulse-red 2s infinite;
}

.hero-security .feature-card:hover {
    border-color: #ef4444;
}

.hero-security .feature-card h3 {
    color: #b91c1c;
}

@keyframes pulse-red {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(239, 68, 68, 0));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.3));
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(239, 68, 68, 0));
    }
}

/* Audio Page */
.hero-audio {
    background: radial-gradient(circle at 50% 50%, rgba(255, 0, 255, 0.05) 0%, transparent 60%);
}

.hero-audio h1 {
    background: linear-gradient(135deg, #d946ef 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-audio .feature-card h3 {
    color: #7c3aed;
}

.hero-audio .hero-icon {
    animation: float 4s ease-in-out infinite;
}

/* Project Card Theme (Yellow/Gold) */
.project-card:hover {
    border-color: #EAB308;
    /* Yellow-500 */
    box-shadow: 0 10px 40px rgba(234, 179, 8, 0.15);
}

.project-card .course-icon {
    background: rgba(234, 179, 8, 0.1);
    color: #EAB308;
}

.project-card .course-tag {
    background: rgba(234, 179, 8, 0.1);
    color: #CA8A04;
    /* Yellow-600 */
}

.project-card .course-btn:hover {
    background: linear-gradient(135deg, #EAB308 0%, #CA8A04 100%);
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.3);
}

/* Hero Mini Gallery */
.hero-mini-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.mini-frame {
    width: 160px !important;
    height: 100px !important;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.mini-frame:hover {
    transform: scale(1.1) translateY(-5px);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 30px rgba(20, 184, 166, 0.2);
}

.mini-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lightbox */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    animation: zoomIn 0.3s;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}