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

/* ================= VARIABLES ================= */
:root {
    --bg-main: #f9fafb;
    --bg-card: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --accent: #2563eb;
    --border-light: #e5e7eb;
    --radius: 14px;
    --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.06);
    --max-width: 1200px;
}

/* ================= BODY ================= */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #d9ecff 0%, #ffe8d6 100%);
    color: #333;
}
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    background: rgba(255, 255, 255, 0.71); /* semi-transparent for glass effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}
/* -----------------------------
* -----------------------------
    NAVBAR / HEADER
------------------------------*/
/* ================= HEADER / NAV ================= */
.logo {
    height: 65px;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navbar a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 6px 12px;
    border-radius: 6px;
}

.navbar a:hover,
.navbar a.active {
    color: #007bff;
    background-color: rgba(0, 119, 255, 0.1);
}

.sign-btn {
    padding: 6px 14px;
    border-radius: 6px;
    background-color: #007bff;
    color: #fff !important;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.sign-btn:hover {
    background-color: #005fcc;
    padding: 6px 14px;
    border-radius: 6px;
    color: #fff !important;
    font-weight: 500;
}

/* ================= HAMBURGER - HIDDEN ON DESKTOP ================= */
.hamburger {
    display: none;          /* Hidden on desktop by default */
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    margin-left: auto;      /* Push to right when shown */
}
/* ================= RESPONSIVE ================= */
/* ================= MOBILE HAMBURGER MENU ================= */
@media (max-width: 700px) {
    /* Header layout - logo left, hamburger right */
    .main-header {
        flex-direction: row;
        justify-content: space-between; /* Logo left, hamburger right */
        align-items: center;
        padding: 12px 20px;
    }
    
    /* Logo stays on left */
    .logo {
        height: 50px;
        order: 1; /* First item (left) */
    }
    
    /* Hamburger button - show on mobile */
    .hamburger {
        display: block;          /* Show hamburger on mobile */
        margin-left: 0;          /* Don't push - controlled by order */
        font-size: 28px;
        cursor: pointer;
        background: none;
        border: none;
        color: #333;
        padding: 5px;
        order: 3;               /* Last item (far right) */
        z-index: 101;           /* Above everything */
    }
    
    /* Hide the regular navigation menu on mobile */
    .navbar {
        order: 2; /* This keeps nav in middle if needed, but it will be hidden */
        width: 100%;
        margin-top: 10px;
    }
    
    .navbar ul {
        display: none;          /* Hide menu initially */
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;              /* Dropdown below header */
        right: 0;               /* Align to right edge */
        left: 0;                /* Full width dropdown */
        background: rgba(255, 255, 255, 0.95); /* Solid white with slight transparency */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 15px 0;
        margin: 0 15px;         /* Add some margin on sides */
        border-radius: 0 0 12px 12px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        z-index: 100;           /* Below hamburger but above content */
    }
    
    /* Show menu when toggled */
    .navbar ul.show {
        display: flex;
    }
    
    /* Menu items styling */
    .navbar li {
        width: 100%;
        text-align: center;
    }
    
    .navbar a {
        display: block;
        padding: 14px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        font-size: 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .navbar li:last-child a {
        border-bottom: none;
    }
    
    /* Active state for mobile menu */
    .navbar a.active {
        background: rgba(0, 119, 255, 0.1);
        color: #0077ff;
        font-weight: 600;
    }
}

/* ================= PAGE HEADER ================= */
.page-header {
    max-width: 100%;
    margin: 3rem auto;
    padding: 0 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
}

/* ================= GRID ================= */
.tutor-grid {
    max-width: var(--max-width);
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

/* ================= CARD ================= */
.tutor-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform 0.2s ease;
}

.tutor-card:hover {
    transform: translateY(-4px);
}


.tutor-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.tutor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================= SKILLS ================= */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin: 0.8rem 0;
}

.skills span {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--accent);
    font-weight: 500;
}

/* ================= INDUSTRIES ================= */
.industries {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ================= CTA ================= */
.mentor-cta {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.6rem;
    border-radius: 8px;
    border: 1px dashed var(--border-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* Hide text on hover */
.mentor-cta:hover {
    background: #fb923c;
    border-color: #fb923c;
    color: transparent;
}

/* Replace text */
.mentor-cta:hover::after {
    content: "Sign Up";
    color: #ffffff;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
}

/* ================= FOOTER ================= */
footer {
    background-color: #f8f9fa;
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    border-top: 1px solid #e0e0e0;
}

footer img {
    height: 40px;
    margin-bottom: 10px;
}

.footer-left p {
    color: #555;
}

.footer-links, .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #FF6B00; /* Orange hover */
    transition: color 0.2s ease;
}

.footer-contact p {
    color: #555;
    font-size: 0.9rem;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }

    .cta-section {
        margin: 40px 20px;
    }

    .feature-grid {
        padding: 40px 20px;
        gap: 20px;
    }
}

@media (max-width: 500px) {
    .main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .navbar ul {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .navbar a, .sign-btn {
        width: 100%;
        text-align: center;
    }
}
/* ================= FOOTER ================= */