/* Theme variables */
:root {
    /* Dark theme (default) */
    --primary-color: #0fe0e0;
    --secondary-color: #ff00ff;
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;

    /* Light theme */
    --light-bg-dark: #ffffff;
    --light-bg-card: #f5f5f5;
    --light-text-primary: #121212;
    --light-text-secondary: #666666;
}

/* Light theme class */
body.light-theme {
    --bg-dark: var(--light-bg-dark);
    --bg-card: var(--light-bg-card);
    --text-primary: var(--light-text-primary);
    --text-secondary: var(--light-text-secondary);
}

/* Theme toggle button styles */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    transition: all 0.3s;
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
}

/* Update existing styles for light theme compatibility */
.auth-box {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.feature-card, .mentor-card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.light-theme .auth-box {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

body.light-theme .feature-card,
body.light-theme .mentor-card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.light-theme nav {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.light-theme .contact-form input,
body.light-theme .contact-form textarea {
    border: 1px solid #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.auth-buttons button {
    padding: 0.5rem 1.5rem;
    margin-left: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.signup-btn {
    background: var(--primary-color);
    color: var(--bg-dark);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    margin-top: 60px;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.responsive-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 5px;
    color: var(--bg-dark);
    cursor: pointer;
    transition: transform 0.3s;
}

.cta-btn:hover {
    transform: scale(1.05);
}

/* Hero Section Enhancements */
.hero-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.cta-btn.secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

/* Floating Cards */
.floating-cards {
    position: absolute;
    width: 100%;
    height: 100%;
}

.float-card {
    position: absolute;
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
}

.float-card.mentor-card {
    top: 20%;
    left: -20%;
}

.float-card.stats-card {
    bottom: 20%;
    right: -10%;
}

/* Features Section */
.features {
    padding: 5rem 5%;
    text-align: center;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Mentors Section */
.mentors {
    padding: 5rem 5%;
    text-align: center;
}

.mentor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.mentor-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s;
}

.mentor-card:hover {
    transform: translateY(-10px);
}

.mentor-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* Process Section */
.process-steps {
    display: flex;
    justify-content: space-around;
    margin: 4rem 0;
    gap: 2rem;
}

.step {
    text-align: center;
    flex: 1;
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step-icon i {
    font-size: 2rem;
    color: var(--bg-dark);
}

/* Subject Cards */
.subjects-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 0;
}

.subject-card {
    min-width: 250px;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.subject-card:hover {
    transform: translateY(-10px);
}

/* Testimonial Slider */
.testimonial-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 0;
}

.testimonial-card {
    min-width: 300px;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.student-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.rating {
    color: #ffd700;
    margin-top: 1rem;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* CTA Section */
.cta-section {
    padding: 5rem 5%;
    text-align: center;
    background: var(--bg-card);
    margin: 3rem 0 0;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-section .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .cta-section .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-section .cta-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Contact Section */
.contact {
    padding: 5rem 5%;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--text-secondary);
    border-radius: 5px;
    color: var(--text-primary);
}

.submit-btn {
    padding: 1rem;
    background: var(--primary-color);
    border: none;
    border-radius: 5px;
    color: var(--bg-dark);
    cursor: pointer;
    transition: transform 0.3s;
}

/* Footer */
footer {
    background: var(--bg-card);
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Developer Credits Section */
.developer-credits {
    padding: 2rem 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.developer-credits h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.developers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.developer-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.developer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.developer-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.developer-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.developer-card:hover .developer-img img {
    transform: scale(1.1);
}

.developer-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.developer-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}

.developer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.developer-links a {
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.developer-links a:hover {
    color: var(--primary-color);
}

/* Light theme styles for developer cards */
body.light-theme .developer-card {
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

body.light-theme .developer-img {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.light-theme .developer-credits {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive styles for developer credits */
@media (max-width: 768px) {
    .developers-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .developer-card {
        padding: 1.2rem;
    }

    .developer-img {
        width: 80px;
        height: 80px;
    }

    .developer-credits h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .developers-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
    }

    .developer-img {
        width: 90px;
        height: 90px;
    }

    .developer-card {
        margin-bottom: 1rem;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--text-secondary);
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin-top: 60px;
    transition: background-color 0.3s ease;
}

.auth-box {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Light theme specific styles for auth pages */
body.light-theme .auth-container {
    background-color: #f5f8fa;
}

body.light-theme .auth-box {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.light-theme .auth-form input,
body.light-theme .form-select,
body.light-theme textarea {
    background: #f5f8fa;
    border: 1px solid #ddd;
    color: var(--light-text-primary);
}

body.light-theme .social-auth-btn {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

body.light-theme .divider::before,
body.light-theme .divider::after {
    background: #ddd;
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-options {
    margin-bottom: 2rem;
}

.social-auth-btn {
    width: 100%;
    padding: 0.8rem;
    background: #fff;
    color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.divider {
    text-align: center;
    margin: 1rem 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: var(--text-secondary);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.auth-form .form-group {
    margin-bottom: 1rem;
}

.auth-form input {
    width: 100%;
    padding: 0.8rem;
    background: var(--bg-dark);
    border: 1px solid var(--text-secondary);
    border-radius: 5px;
    color: var(--text-primary);
}

.auth-links {
    margin-top: 1rem;
    text-align: center;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.back-home {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.back-home:hover {
    color: var(--primary-color);
}

/* Signup specific styles */
.signup-box {
    max-width: 500px;
}

.role-selector {
    margin-bottom: 2rem;
    text-align: center;
}

.role-dropdown {
    width: 200px;
    padding: 0.8rem;
    border-radius: 5px;
    background: var(--bg-dark);
    color: var(--text-primary);
    border: 1px solid var(--text-secondary);
    margin-top: 0.5rem;
}

.form-select {
    width: 100%;
    padding: 0.8rem;
    background: var(--bg-dark);
    border: 1px solid var(--text-secondary);
    border-radius: 5px;
    color: var(--text-primary);
}

.form-select[multiple] {
    height: 120px;
}

textarea {
    width: 100%;
    padding: 0.8rem;
    background: var(--bg-dark);
    border: 1px solid var(--text-secondary);
    border-radius: 5px;
    color: var(--text-primary);
    min-height: 100px;
    resize: vertical;
}

.signup-form {
    display: none;
}

.signup-form.active {
    display: block;
}

/* Dashboard Styles */
.dashboard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--bg-card);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.session-item, .mentor-item, .schedule-item, .request-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.action-btn {
    width: 100%;
    padding: 0.8rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.action-btn:hover {
    background-color: #00a6a6;
}

/* Responsive Design */
/* Mobile Navigation Menu */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav .nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.mobile-nav .nav-links a {
    font-size: 1.2rem;
}

.mobile-nav .auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav .auth-buttons button {
    width: 100%;
    margin: 0;
}

.close-menu {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero-image img {
        width: 500px;
        height: 500px;
    }
}

@media (max-width: 992px) {
    .hero {
        padding: 0 3%;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-image img {
        width: 400px;
        height: 400px;
    }

    .process-steps {
        flex-wrap: wrap;
    }

    .step {
        flex-basis: 45%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links, .auth-buttons {
        display: none;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        background: var(--text-primary);
        transition: all 0.3s;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
        padding-bottom: 3rem;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-image img {
        width: 100%;
        max-width: 350px;
        height: auto;
    }

    .float-card.stats-card {
        bottom: 5%;
        right: 5%;
    }

    .process-steps {
        flex-direction: column;
    }

    .step {
        flex-basis: 100%;
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 1rem;
    }

    .features-grid, .mentor-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .subjects-carousel, .testimonial-slider {
        padding-bottom: 1rem;
    }

    .subject-card, .testimonial-card {
        min-width: 85%;
    }
}

@media (min-width: 769px) {
    .hamburger {
        display: none;
    }

    .mobile-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .features h2, .mentors h2, .process h2, .subjects h2, .testimonials h2 {
        font-size: 2rem;
    }

    .feature-card, .mentor-card, .subject-card, .testimonial-card {
        padding: 1.5rem;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .footer-section h3 {
        margin-top: 1.5rem;
    }
}

/* Dark/Light Theme Specific Styles */
body.light-theme .float-card {
    background: var(--light-bg-card);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.light-theme .step-icon {
    box-shadow: 0 4px 15px rgba(15, 224, 224, 0.2);
}

body.light-theme .mobile-nav {
    background: var(--light-bg-dark);
}

