/* EYESEU - Modern Responsive Design */
/* Color Palette: #4d0989 (purple), #ea0070 (pink), #0d173a (dark blue), #00bff2 (sky blue), #4d0989 (accent), #eff3f4 (light grey) */

:root {
    --primary-purple: #4d0989;
    --primary-pink: #ea0070;
    --dark-blue: #0d173a;
    --sky-blue: #00bff2;
    --lime-green: #4d0989;
    --light-grey: #eff3f4;
    --white: #ffffff;
    --black: #000000;
    --gradient-primary: linear-gradient(135deg, #4d0989 0%, #ea0070 100%);
    --gradient-secondary: linear-gradient(135deg, #00bff2 0%, #4d0989 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-blue);
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(13, 23, 58, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--sky-blue);
}

.header-top {
    background: var(--dark-blue);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top a {
    color: var(--white);
    text-decoration: none;
    margin-right: 15px;
}

.header-top .social-icons a {
    margin-left: 6px;
    font-size: 18px;
}

.header-top .social-icons {
    gap: 6px;
    align-items: center;
}

.header-top .social-icons .elearning-label {
    color: white;
    font-weight: 600;
    margin-right: 10px;
    font-size: 14px;
    text-decoration: none;
}

.header-main {
    padding: 15px 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.header-main .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-blue);
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .logo-img {
        height: 45px;
        max-width: 200px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-menu li {
    list-style: none;
    position: relative;
}

.nav-menu a {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 0 6px;
}

.nav-menu a:hover {
    color: var(--primary-pink);
}

.nav-menu li.has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 6px;
    font-size: 12px;
}

.nav-submenu {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 300px;
    background: white;
    border: 1px solid rgba(13, 23, 58, 0.08);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(13, 23, 58, 0.15);
    display: none;
    padding: 12px 0;
    z-index: 1000;
}

.nav-submenu li {
    width: 100%;
    padding: 0 20px;
}

.nav-submenu a {
    width: 100%;
    padding: 8px 0;
    font-weight: 500;
}

.nav-submenu .nav-submenu {
    top: 0;
    left: 100%;
}

.nav-menu li:hover > .nav-submenu {
    display: block;
}

.login-icon {
    font-size: 24px;
    color: var(--dark-blue);
    margin-right: 15px;
    text-decoration: none;
}

.login-icon:hover {
    color: var(--primary-pink);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(13, 23, 58, 0.1);
    background: white;
    margin-right: 15px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark-blue);
    transition: transform 0.3s ease;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 23, 58, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 900;
}

body.menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-secondary);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.language-selector {
    position: relative;
}

.language-selector select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: var(--white);
    cursor: pointer;
    font-size: 14px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    text-align: center;
    color: var(--white);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(77, 9, 137, 0.3);
}

.btn-secondary {
    background: var(--sky-blue);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--primary-purple);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--sky-blue);
    color: var(--sky-blue);
}

.btn-outline:hover {
    background: var(--sky-blue);
    color: var(--white);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 23, 58, 0.8) 0%, rgba(234, 0, 112, 0.6) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.slide-tag {
    display: inline-block;
    background: var(--lime-green);
    color: var(--dark-blue);
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 14px;
}

.slide-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.slide-description {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: var(--lime-green);
    width: 30px;
    border-radius: 6px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

/* Container */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    color: var(--sky-blue);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 42px;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 18px;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(13, 23, 58, 0.15);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(0, 191, 242, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 191, 242, 0.4);
    border-color: var(--sky-blue);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--white);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 191, 242, 0.3);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 191, 242, 0.5);
}

.feature-card h3 {
    font-size: 24px;
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-card p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 500;
}

.feature-card a {
    color: var(--sky-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.feature-card a:hover {
    color: var(--primary-pink);
}

/* Feature card color accents */
.feature-card:nth-child(1) {
    border-top: 4px solid var(--primary-purple);
    box-shadow: 0 12px 30px rgba(77, 9, 137, 0.2);
}

.feature-card:nth-child(1) .feature-icon {
    background: linear-gradient(135deg, var(--primary-purple), #6a1fb1);
    box-shadow: 0 10px 25px rgba(77, 9, 137, 0.35);
}

.feature-card:nth-child(1) a {
    color: var(--primary-purple);
}

.feature-card:nth-child(2) {
    border-top: 4px solid var(--primary-pink);
    box-shadow: 0 12px 30px rgba(234, 0, 112, 0.2);
}

.feature-card:nth-child(2) .feature-icon {
    background: linear-gradient(135deg, var(--primary-pink), #ff4ca0);
    box-shadow: 0 10px 25px rgba(234, 0, 112, 0.35);
}

.feature-card:nth-child(2) a {
    color: var(--primary-pink);
}

.feature-card:nth-child(3) {
    border-top: 4px solid var(--sky-blue);
    box-shadow: 0 12px 30px rgba(0, 191, 242, 0.2);
}

.feature-card:nth-child(3) .feature-icon {
    background: linear-gradient(135deg, var(--sky-blue), #40d6ff);
    box-shadow: 0 10px 25px rgba(0, 191, 242, 0.35);
}

.feature-card:nth-child(3) a {
    color: var(--sky-blue);
}

.feature-card:nth-child(4) {
    border-top: 4px solid var(--lime-green);
    box-shadow: 0 12px 30px rgba(0, 247, 82, 0.25);
}

.feature-card:nth-child(4) .feature-icon {
    background: linear-gradient(135deg, var(--lime-green), #63ff9f);
    box-shadow: 0 10px 25px rgba(0, 247, 82, 0.35);
}

.feature-card:nth-child(4) a {
    color: var(--lime-green);
}

/* Events Section */
.events-section {
    background: var(--light-grey);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.event-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(13, 23, 58, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(234, 0, 112, 0.4);
    border-color: var(--primary-pink);
}

.event-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.event-card:hover::after {
    transform: scaleX(1);
}

.event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-content {
    padding: 25px;
}

.event-date {
    color: var(--primary-pink);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.event-card h3 {
    font-size: 22px;
    color: var(--dark-blue);
    margin-bottom: 10px;
    font-weight: 700;
}

.event-card p {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
    font-weight: 500;
}

/* News/Blog Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(13, 23, 58, 0.15);
    transition: all 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(234, 0, 112, 0.3);
    border-color: var(--primary-pink);
}

.news-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--sky-blue);
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 600;
}

.news-card h3 {
    font-size: 22px;
    color: var(--dark-blue);
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 700;
}

.news-card p {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
    font-weight: 500;
}

/* Auth Pages */
.auth-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 191, 242, 0.08) 0%, rgba(0, 247, 82, 0.08) 100%);
    padding: 60px 0;
}

.auth-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.auth-side-info {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(13, 23, 58, 0.12);
}

.auth-side-info .badge {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(77, 9, 137, 0.1);
    color: var(--primary-purple);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
}

.auth-side-info h2 {
    color: var(--dark-blue);
    font-size: 34px;
    margin-bottom: 15px;
}

.auth-side-info p {
    color: #4b5563;
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.7;
}

.auth-side-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-side-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1f2937;
    font-weight: 600;
}

.auth-side-info li i {
    color: var(--primary-pink);
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(13, 23, 58, 0.18);
}

.auth-card-header h3 {
    margin: 0;
    font-size: 28px;
    color: var(--dark-blue);
}

.auth-card-header p {
    margin-top: 8px;
    color: #6b7280;
}

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: 500;
}

.alert-error {
    background: rgba(234, 0, 112, 0.08);
    color: #b4235a;
}

.alert-success {
    background: rgba(0, 247, 82, 0.1);
    color: #0f9d58;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 6px;
}

.input-with-icon {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    gap: 10px;
    transition: border 0.2s, box-shadow 0.2s;
}

.input-with-icon input {
    border: none;
    flex: 1;
    font-size: 16px;
    font-family: inherit;
}

.input-with-icon:focus-within {
    border-color: var(--sky-blue);
    box-shadow: 0 0 0 3px rgba(0, 191, 242, 0.15);
}

.auth-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
}

.auth-form-actions a {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
}

.btn-gradient {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    box-shadow: 0 15px 30px rgba(234, 0, 112, 0.3);
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-gradient:hover {
    transform: translateY(-2px);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: #6b7280;
}

.auth-footer a {
    color: var(--primary-pink);
    font-weight: 600;
    text-decoration: none;
}

/* Footer */
.footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-section ul {
    list-style: none;
    color: #ffffff;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #ffffff;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-icons a {
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary-pink);
    transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 75px;
        right: -100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        background: white;
        width: 80%;
        max-width: 320px;
        height: calc(100vh - 75px);
        padding: 30px;
        border-radius: 0 0 0 24px;
        box-shadow: -15px 0 40px rgba(13, 23, 58, 0.2);
        z-index: 950;
    }

    body.menu-open .nav-menu {
        right: 0;
    }

    .nav-menu li .nav-submenu {
        position: static;
        width: 100%;
        border: none;
        box-shadow: none;
        padding: 5px 0 5px 15px;
        display: none;
    }

    .nav-menu li.has-children.open > .nav-submenu {
        display: block;
    }
    
    .slide-title {
        font-size: 32px;
    }
    
    .slide-description {
        font-size: 16px;
    }
    
    .section-title h2 {
        font-size: 32px;
    }
    
    .features-grid,
    .events-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    /* Project Overview responsive */
    .section > .container > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    .section > .container > div[style*="grid-template-columns: 1fr 1fr"] > div:first-child > div {
        width: 300px !important;
        height: 300px !important;
    }
    
    /* Education curricula responsive */
    .section > .container > div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    .auth-wrapper {
        grid-template-columns: 1fr;
    }

    .auth-card,
    .auth-side-info {
        padding: 25px;
    }

    .auth-form-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .slide-title {
        font-size: 24px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .hero-slider {
        height: 400px;
    }
}

/* Statistics Section */
.stats-section {
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.stat-item {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.news-card,
.event-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

