
@import "https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap";
@import "https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap";

:root {

    --font-primary: "Poppins", sans-serif;
    --font-secondary: "Inter", sans-serif;

    /* Primary Purple Color Palette */
    --purple-50: #f8f5ff;
    --purple-100: #eee6ff;
    --purple-200: #d9c6ff;
    --purple-300: #c4a7ff;
    --purple-400: #a988ff;
    --purple-500: #8a66ff;
    --purple-600: #6f44ff;
    --purple-700: #5c31e6;
    --purple-800: #4a21cc;
    --purple-900: #3817a3;

    /* Neutral Color Palette */
    --neutral-50: #ffffff;
    --neutral-100: #f5f5fa;
    --neutral-200: #eeeef5;
    --neutral-300: #e0e0eb;
    --neutral-400: #bdbdce;
    --neutral-500: #9e9eba;
    --neutral-600: #7c7c9f;
    --neutral-700: #5e5e80;
    --neutral-800: #36364a;
    --neutral-900: #16162b;

    /* Accent Colors */
    --accent-pink: #ff5ea3;
    --accent-teal: #2eebc9;
    --accent-indigo: #7b61ff;

    /* Semantic Colors */
    --success: #2ecb94;
    --warning: #ffb547;
    --error: #ff5e5e;
    --info: #60a5fa;

    /* Functional Color Assignments */
    --primary: var(--purple-600);
    --primary-light: var(--purple-500);
    --primary-dark: var(--purple-700);
    --secondary: var(--accent-pink);
    --light: var(--neutral-50);
    --dark: var(--neutral-900);
    --gray-dark: var(--neutral-800);
    --gray-medium: var(--neutral-700);
    --gray-light: var(--neutral-500);
    --accent: var(--accent-teal);
    --surface: var(--purple-50);

    /* Shadow Effects */
    --card-shadow: 0 8px 24px rgba(111, 68, 255, 0.12);
    --hover-shadow: 0 12px 32px rgba(111, 68, 255, 0.25);
}

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

body {
    height: 100dvh;
    width: 100dvw;
    font-family: var(--font-primary);
    background-color: var(--neutral-50);
    color: var(--dark);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ========== Button Styles ========== */

/* .btn-class {
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    
    &.primary-btn {
        background-color: var(--primary);
        color: var(--light);
        
        &:hover {
            background-color: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(107, 56, 251, 0.3);
        }
    }
} */



/* ========== Navbar Styles ========== */

.header-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: sticky;
    left: 0;
    top: 0;
    background: white;
    box-shadow: 1px 1px 15px -10px black;
    z-index: 100;
    padding: 20px 32px;

    .nav-left {
        display: flex;
        align-items: center;
    }

    .logo {
        font-weight: 800;
        color: var(--primary);
        font-size: 26px;
        font-family: var(--font-primary);
        margin: 10px 0;
        margin-left: 20px;
    }

    .nav-right {
        display: flex;
        align-items: center;
        gap: 20px;
    }
    
    /* .search-bar {
        display: flex;
        align-items: center;
        background-color: rgba(111, 68, 255, 0.08);
        border-radius: 50px;
        padding: 10px 16px;
        width: 240px;
        transition: all 0.3s ease;

        i {
            color: var(--primary);
            font-size: 20px;
            margin-right: 8px;
        }
    
        input {
            border: none;
            background: transparent;
            outline: none;
            font-size: 14px;
            width: 100%;
            color: var(--dark);
        }

        &:has(input:focus) {
            width: 320px;
        }

        .clear-icon {
            font-size: 20px;
            color: #6f44ff;
            margin-left: 10px;
            cursor: pointer;
            transition: opacity 0.3s ease;
        }
    
        &.expanded {
            width: 320px;

            .clear-icon {
                opacity: 1;
                pointer-events: all;
            }
        }
    
    } */

    .header-navbar-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .mobile-search-form-wrapper {
        display: none;
    }

    

    .header-search-form {
        width: 320px;

        &.mobile {
            display: none;
        }
    
        .search-input-container {
            position: relative;
            display: flex;
            align-items: center;
            background-color: var(--neutral-100);
            border-radius: 12px;
            padding: 5px;
            box-shadow: 0 4px 16px rgba(111, 68, 255, 0.1);
            border: 1px solid var(--purple-100);
            transition: all 0.3s ease;
            
            &:focus-within {
                box-shadow: 0 6px 20px rgba(111, 68, 255, 0.2);
                border-color: var(--primary);
            }

            &.invalid-input {
                border: 1px solid red;
            }
            
            .search-input {
                flex: 1;
                border: none;
                background: none;
                padding: 4px;
                font-size: 14px;
                color: var(--neutral-900);
                font-family: var(--font-primary);
                outline: none;
                width: 100%;
                
                &::placeholder {
                    color: var(--neutral-500);
                }
            }
            
            .search-button {
                background-color: var(--primary);
                color: var(--light);
                border: none;
                border-radius: 8px;
                padding: 5px;
                font-weight: 600;
                font-size: 15px;
                cursor: pointer;
                transition: all 0.2s ease;
                font-family: var(--font-primary);
                
                &:hover {
                    background-color: var(--primary-dark);
                    transform: translateY(-1px);
                    box-shadow: 0 4px 10px rgba(111, 68, 255, 0.3);
                }
    
                .search-button-icon {
                    display: flex;
                    font-size: 20px;
                }
            }
        }
    }
            
    .mobile-search-toggle-button {
        display: none;
        background-color: var(--primary);
        color: var(--light);
        border: none;
        border-radius: 8px;
        padding: 5px;
        font-weight: 600;
        font-size: 15px;
        cursor: pointer;
        transition: all 300ms ease;
        font-family: var(--font-primary);
        
        &:hover {
            background-color: var(--primary-dark);
            transform: translateY(-1px);
            box-shadow: 0 4px 10px rgba(111, 68, 255, 0.3);
        }

        .search-button-icon {
            display: flex;
            font-size: 24px;
        }
    }
            
    /* .nav-search-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        background-color: var(--purple-100);
        color: var(--primary);
        border: none;
        border-radius: 8px;
        padding: 10px 16px;
        font-weight: 600;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.2s ease;
        
        &:hover {
            background-color: var(--primary);
            color: var(--light);
        }
        
        i {
            font-size: 18px;
        }
    } */
    
    /* .hidden {
        opacity: 0;
        pointer-events: none;
    } */

    
    /* Hamburger Menu */
    .hamburger {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 2;
    
        .hamburger-lines {
            width: 25px;
            height: 20px;
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            transition: all 100ms ease;
        }
    
        .line {
            display: block;
            height: 3px;
            width: 100%;
            border-radius: 10px;
            background: var(--primary);
            transition: all 300ms ease;
            transform-origin: 0% 50%;
        }
    
        &.active .hamburger-lines {
            height: 25px;

            .line1 {
                transform: rotate(45deg);
                width: calc(100% + 5.5px);
            }
        
            .line2 {
                opacity: 0;
            }
        
            .line3 {
                transform: rotate(-45deg);
                width: calc(100% + 5.5px);
            }
        }
    }
}

.pages-sidebar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(22, 22, 43, 0.5);
    z-index: 999;
    transition: all 200ms ease;
    opacity: 0;
    backdrop-filter: blur(2px);
    pointer-events: none;
    
    &.show {
        opacity: 1;
        pointer-events: all;

        .sidebar-content {
            translate: 0;
        }
    }

    .sidebar-content {
        width: 250px;
        background-color: var(--light);
        padding: 1rem;
        display: flex;
        flex-direction: column;
        position: fixed;
        right: 0;
        top: 85px;
        z-index: 1000;
        border-radius: 13px;
        border: 1px solid var(--purple-100);
        box-shadow: 0px 4px 4px 0px rgba(111, 68, 255, 0.1);
        transition: all 400ms ease;
        translate: 250px 0;

        .sidebar-items .sidebar-item {
            display: flex;
            align-items: center;
            padding: 12px 15px;
            color: var(--neutral-800);
            font-size: 15px;
            border-radius: 8px;
            transition: all 0.3s ease;
            margin: 4px 0;
            font-weight: 500;

            i {
                margin-right: 12px;
                font-size: 20px;
            }

            &:hover {
                background-color: var(--purple-100);
                color: var(--primary);
                transform: translateX(5px);
            }
        }

        .divider {
            width: 100%;
            height: 1px;
            background-color: var(--purple-100);
            margin: 8px 0;
        }
    }
}

.mobile-search-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: all 300ms ease;
    z-index: 99;

    &.active {
        opacity: 1;
        pointer-events: all;
    }
}


.body-content-container {
    overflow: auto;
    flex: 1;

    display: flex;
    flex-direction: column;
    position: relative;
}

.page-content-container {
    flex: 1;
}




/* ========== Footer Styles ========== */

.footer {
    z-index: 100;
    background-color: var(--dark);
    color: var(--light);
    padding: 60px 0 30px;


    .footer-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    .footer-grid {
        gap: 40px;
        margin-bottom: 50px;
        display: flex;
    }

    .footer-column {
        flex: 1;

        &.footer-info {
            flex: 1.5;
        }

        &.footer-contact {
            flex: 1.2;
        }
    }
    
    .footer-logo {
        font-size: 24px;
        font-weight: 800;
        font-family: var(--font-primary);
        color: white;
        margin-bottom: 20px;
    }
    
    .footer-about {
        font-size: 16px;
        line-height: 1.6;
        color: var(--gray-light);
        margin-bottom: 20px;
    }
    
    .footer-heading {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 20px;
        color: white;
    }
    
    .footer-links {
        list-style: none;
        padding: 0;
        margin: 0;
        margin-left: 6px;

        li {
            margin-bottom: 18px;
        }
        
        a {
            color: var(--gray-light);
            text-decoration: none;
            font-size: 16px;
            display: inline-block;
            position: relative;
            padding-left: 15px;
            transition: all 0.3s ease;

            &:before {
                content: "";
                position: absolute;
                left: 0;
                top: 50%;
                transform: translateY(-50%);
                width: 6px;
                height: 6px;
                border-radius: 50%;
                background-color: var(--primary);
            }
            
            &:hover {
                color: var(--primary-light);
                padding-left: 20px;
            }
        }
        
    }
    
    
    .contact-info {
        list-style: none;
        padding: 0;
        margin: 0;

        li {
            display: flex;
            align-items: flex-start;
            margin-bottom: 15px;
            gap: 10px;
        }

        .social-link {
            display: flex;
            align-items: center;
            transition: all 0.3s ease;
            border-radius: 18px;

            .social-link-icon {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 36px;
                height: 36px;
                border-radius: 50%;
                background-color: var(--gray-dark);
                color: var(--gray-light);
                font-size: 18px;
                margin-right: 10px;
                transition: all 0.3s ease;
            }
            
            .social-link-text {
                color: var(--gray-light);
                font-size: 16px;
                line-height: 1.6;
                margin-right: 9px;
                transition: all 0.3s ease;
            }
            
            &:hover {
                transform: translateY(-3px);
                
                .social-link-icon {
                    background-color: var(--primary);
                    color: var(--light);
                }
                
                .social-link-text {
                    color: var(--light);
                }
            }
        }
        
        
    }
    
    
    .footer-bottom {
        border-top: 1px solid var(--gray-dark);
        padding-top: 20px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }
    
    .copyright {
        color: var(--gray-light);
        font-size: 14px;
    }
}







@media (max-width: 767px) {
    .header-navbar {
        padding: 10px 20px;

        .logo {
            font-size: 20px;
            margin-left: 0;
        }

        .nav-right {
            gap: 12px;
        }

        /* .search-bar {
            display: none !important;
        }

        .search-bar i {
            margin-right: 0;
        }

        .search-bar input {
            display: none;
        } */
    }

    .footer {
        .footer-grid {
            flex-direction: column;
            gap: 30px;
        }

        .footer-bottom {
            flex-direction: column;
            text-align: center;
        }
    }
}


/* @media (max-width: 359px) {
    .header-navbar .nav-search-btn .nav-search-text {
        display: none;
    }
} */

@media (max-width: 575px) {
    .header-navbar {
        flex-direction: column;

        .mobile-search-form-wrapper {
            display: block;
            width: 100%;
            padding: 0 10px;
            max-height: 0;
            overflow: hidden;
            transition: all 300ms ease;

            &.active {
                max-height: 100px;
                transition: all 600ms ease;
            }
        }

        .header-search-form {
            width: 100%;

            &.desktop {
                display: none !important;
            }

            &.mobile {
                display: block;
                margin: 0 auto;
            }

            .search-input-container {
                padding: 5px;

                .search-input {
                    padding: 3px;
                    font-size: 15px; 
                }
            }

            .search-button {
                padding: 5px;

                .search-button-icon {
                    font-size: 20px;
                }
            }
        }

        .mobile-search-toggle-button {
            display: block;
            transition: all 300ms ease;
            opacity: 1;
            pointer-events: all;

            &.search-active {
                opacity: 0;
                pointer-events: none;
                /* transition: all 600ms ease; */
            }
        }
    }

    .mobile-search-backdrop {
        display: block;
    }
}