﻿/* ===================================
   CSS Variables
   =================================== */
 

/* ===================================
   Global Styles
   =================================== */
html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
   /* overflow:hidden;*/
}


body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden; /* Critical: prevent horizontal overflow */
}

 
main {
    flex: 1 0 auto;
}
/* ===================================
   Navbar Styles
   =================================== */
#mainNav {
    background-color: transparent !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--white-alpha-20);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    height: var(--navbar-height);
    z-index:99;
}

    #mainNav.scrolled {
        background: white !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    #mainNav #navbarLogo {
        transition: all 0.3s ease;
        height: 130px;
        width: auto;
    }

    #mainNav.scrolled #navbarLogo {
        height: 125px;
    }

    /* Navbar Links */
    #mainNav .nav-link {
        color: white !important;
        font-weight: 500;
        font-size: 1rem;
        padding: 0.5rem 1.2rem !important;
        transition: all 0.3s ease;
        position: relative;
    }

    #mainNav.scrolled .nav-link {
        color: var(--text-dark) !important;
    }

    #mainNav .nav-link:hover {
        color: rgba(255, 255, 255, 0.8) !important;
    }

    #mainNav.scrolled .nav-link:hover {
        color: var(--primary-color) !important;
    }

    /* Active link underline effect */
    #mainNav .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: white;
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    #mainNav.scrolled .nav-link::after {
        background: var(--primary-color);
    }

    #mainNav .nav-link:hover::after {
        width: 70%;
    }

/* Login Link Button Style */
.login-link {
    background: var(--white-alpha-20) !important;
    border: 1px solid var(--white-alpha-30);
    border-radius: 25px;
    padding: 0.5rem 1.5rem !important;
    transition: all 0.3s ease;  
    background: var(--primary-gradient) !important;
    color: var(--nsr-color) !important;
    border: 1px solid transparent;
}

    .login-link:hover {
        background: var(--white-alpha-30) !important;
        transform: translateY(-2px);
    }

#mainNav.scrolled .login-link {
    background: var(--primary-gradient) !important;
    color: var(--nsr-color) !important;
    border: 1px solid transparent;
}

    #mainNav.scrolled .login-link:hover {
        background: var(--reverse-gradient) !important;
        color: var(--nsr-color) !important;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }

/* Dropdown Styles */
#mainNav .dropdown-menu {
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    margin-top: 0.5rem;
    animation: dropdownFade 0.3s ease;
}

#mainNav .dropdown-item {
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: var(--text-dark);
    font-weight: 500;
}

    #mainNav .dropdown-item:hover {
        background: var(--light-bg);
        color: var(--primary-color);
        transform: translateX(5px);
    }

    #mainNav .dropdown-item i {
        width: 20px;
        margin-right: 8px;
    }

/* Dropdown toggle icon */
#mainNav .dropdown-toggle::after {
    transition: transform 0.3s ease;
}

#mainNav .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Account dropdown user icon style */
#accountMenu i {
    font-size: 1.1rem;
    margin-right: 5px;
}

/* Logout button specific styling */
#mainNav form button.dropdown-item {
    border: none;
    background: transparent;
    cursor: pointer;
}

    #mainNav form button.dropdown-item:hover {
        background: #fff5f5 !important;
        color: var(--danger-color) !important;
    }

/* Hamburger Menu Styles */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

    .navbar-toggler:focus {
        box-shadow: none;
        border-color: rgba(255, 255, 255, 0.8);
    }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#mainNav.scrolled .navbar-toggler {
    border-color: rgba(102, 126, 234, 0.5);
}

#mainNav.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(102, 126, 234, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===================================
   Hero Section (Home Page)
   =================================== */
.x-jumbotron {
    position: relative;
    min-height: calc(100vh - 80px - 35px);
    display: flex;
    align-items: center;
    background: var(--primary-gradient);
     
}
    
    .x-jumbotron::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.3) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.3) 0%, transparent 50%);
        z-index: 0;
    }

    .x-jumbotron::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px);
        z-index: 0;
    }

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black-alpha-20);
    z-index: 0;
}

.x-container-wide {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    
}

/* ===================================
   Typography
   =================================== */
.heading {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--nsr-color);
 
    margin-bottom: 0;
    padding-bottom: 0;
    line-height: 1.2;
    text-shadow: 0 4px 20px var(--black-alpha-30);
    animation: fadeInUp 0.8s ease-out;
}

.subheading {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    padding-top: 0;
    line-height: 1.6;
    text-shadow: 0 2px 10px var(--black-alpha-20);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ===================================
   Button Styles
   =================================== */
.button_slide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--nsr-color);
    background: var(--white-alpha-15);
    border: 2px solid var(--white-alpha-30);
    border-radius: 50px;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px var(--black-alpha-20);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

    .button_slide::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--white-alpha-20);
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: -1;
    }

    .button_slide:hover::before {
        left: 0;
    }

    .button_slide:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 40px var(--black-alpha-30);
        border-color: rgba(255, 255, 255, 0.6);
        background: rgba(255, 255, 255, 0.25);
        color: white;
    }

    .button_slide span {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .button_slide svg {
        transition: transform 0.3s ease;
    }

    .button_slide:hover svg {
        transform: translate(4px, -4px);
    }

    .button_slide:nth-child(1) {
        animation: fadeInUp 0.8s ease-out 0.4s both, pulse 3s ease-in-out 1.5s infinite;
    }

    .button_slide:nth-child(2) {
        animation: fadeInUp 0.8s ease-out 0.5s both, pulse 3s ease-in-out 2s infinite;
    }

/* ===================================
   Decorative Elements
   =================================== */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    background: var(--white-alpha-10);
    z-index: 0;
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    left: 5%;
    animation-delay: 2s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 20%;
    animation-delay: 4s;
}

/* Feature Badges */
.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--white-alpha-15);
    border-radius: 25px;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    margin-right: 12px;
    margin-bottom: 12px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

    .feature-badge i {
        font-size: 1.1rem;
    }

/* ===================================
   Footer Styles
   =================================== */
footer {
    background: var(--primary-gradient);
    color: white;
    padding: 2rem 0;
    flex-shrink: 0;
}

    footer a {
        color:var(--nsr-color) !important;
        text-decoration: none;
        transition: all 0.3s ease;
    }

        footer a:hover {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: underline;
        }

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 8px 30px var(--black-alpha-20);
    }

    50% {
        box-shadow: 0 8px 40px var(--white-alpha-30);
    }

    100% {
        box-shadow: 0 8px 30px var(--black-alpha-20);
    }
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 991px) {
    /* Mobile Menu */
    #navbarResponsive {
        background: white;
        padding: 1rem;
        border-radius: 12px;
        margin-top: 1rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    }

    #mainNav .nav-link {
        color: var(--text-dark) !important;
        padding: 0.7rem 1rem !important;
    }

        #mainNav .nav-link:hover {
            color: var(--primary-color) !important;
            background: var(--light-bg);
            border-radius: 8px;
        }

    .login-link {
        background: var(--primary-gradient) !important;
        color: white !important;
        text-align: center;
        margin-top: 0.5rem;
    }

    #mainNav .dropdown-menu {
        box-shadow: none;
        border: 1px solid #e9ecef;
    }
}

@media (max-width: 992px) {
    .heading {
        font-size: 2.5rem;
    }

    .subheading {
        font-size: 1.2rem;
    }

    .x-container-wide {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .heading {
        font-size: 2rem;
    }

    .subheading {
        font-size: 1rem;
    }

    .button_slide {
        padding: 15px 30px;
        font-size: 1rem;
        width: 100%;
        max-width: 350px;
    }

    .x-jumbotron {
        min-height: 90vh;
    }
}
