/* Global Styles */
:root {
    --primary-color: #3a86ff;
    --secondary-color: #8338ec;
    --accent-color: #ff006e;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'arial', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #fff;
    color: var(--dark-color);
    line-height: 1.6;
    font-family: 'arial',  sans-serif;

    
}

/* Container */
.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.container {
    margin: 0 auto;
    padding: 0 15px;
    max-width:1200px;
}

/* Sections */
section {
    padding: 50px 0;
    
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    font-weight: 600;
}


.section-title p {
    color: var(--gray-color);
    max-width: 500px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 20px;
    background: hsl(259, 100%, 62%);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
}

.logo span {
    color: #7b3dff;
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Nav links (desktop) */
.nav-links {
    display: flex;
    list-style: none;
    justify-content: center;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
    position: relative;
}

.nav-links a {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-links a:hover {
    color: #7b3dff;
}


.nav-close {
    display: none;
}

/* Dropdowns */
.dropdown > a::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}



.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    padding: 12px 20px;
    display: block;
    color: var(--dark-color);
    transition: all 0.3s ease;
    white-space: nowrap;
    color: #6c757d;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #7b3dff;
    padding-left: 25px;
}

.mobile-navbtns {
    display: none;
}

.nav-btns {
    display: flex;
    list-style: none;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    align-items: center;
    gap: 10px;
}


.nav-btns li {
    display: flex;
    list-style: none;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    align-items: center;
}


/* Mobile Sidebar (Slide from Right) */
@media (max-width: 992px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -300px; /* hidden offscreen to right */
        width: 300px;
        height: 100%;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 60px 20px;
        box-shadow: -2px 0 15px rgba(0, 0, 0, 0.2);
        transition: right 0.4s ease-in-out;
        z-index: 1002;
        justify-content:flex-start;
    }

    .nav-links.active {
        right: 0; /* slides in from right */
    }

    /* Close button */
    .nav-close {
        position: absolute;
        display: block;
        top: 20px;
        right: 20px;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--dark-color);
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        margin: 0;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        width: 100%;
        padding: 15px 0;
        font-weight: 500;
    }

    .nav-btn {
        margin: 15px 0 0 0;
        text-align: center;
        width: 100%;
        
    }

    .mobile-navbtns {
    display: block;
}

    .nav-btns {
        display: none;
    }

    /* Mobile Dropdown */
    .dropdown > a::after {
        margin-left: 5%;
    }

    .dropdown-menu {
        position: static;
        max-height: 0;
        overflow: hidden;
        width: 100%;
        transition: max-height 0.3s ease;
        background: #f8f9fa;
        border-radius: 0;
    }

    .dropdown.active .dropdown-menu {
        max-height: 300px; /* expand on click */
    }

    .dropdown-menu li {
        border-bottom: 1px solid #e9ecef;
    }

    .dropdown-menu a {
        padding-left: 30px;
        color: #6c757d;
    }
}
