/* ===========================================
   GLOBAL STYLES
   =========================================== */
:root {
    --primary-color: #5f6cff;
    --primary-dark: #4555f2;
    --primary-light: #8e97ff;
    --secondary-color: #32d6e2;
    --secondary-dark: #29b9c3;
    --dark-color: #2a2a42;
    --dark-color-2: #3f3f5f;
    --light-color: #f7f9fc;
    --grey-color: #a0a0b8;
    --grey-light: #e5e7eb;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
    --cubic-bezier: cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Poppins', -apple-system, sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===========================================
   HEADER STYLES
   =========================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.brand-title span {
    color: var(--secondary-color);
}

.brand-tagline {
    font-size: 0.8rem;
    color: var(--grey-color);
    margin: 0;
}

.site-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px;
}

.nav-menu li a {
    color: var(--dark-color-2);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu li a i {
    font-size: 0.9rem;
    transition: transform 0.3s var(--cubic-bezier);
}

.nav-menu li a:hover {
    color: var(--primary-color);
    background-color: rgba(95, 108, 255, 0.05);
}

.nav-menu li a:hover i {
    transform: translateY(-2px);
}

.nav-menu li a.active {
    color: var(--primary-color);
    background-color: rgba(95, 108, 255, 0.1);
}

.nav-cta {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    padding: 10px 18px !important;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(95, 108, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%);
    transition: all 0.5s ease;
}

.nav-cta:hover::before {
    left: 100%;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(95, 108, 255, 0.4) !important;
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-color)) !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
}

.icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Mobile Menu Toggle Animation */
.menu-toggle.active .icon-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .icon-bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -5px);
}

.menu-toggle.active .icon-bar:nth-child(4) {
    transform: rotate(-45deg) translate(-5px, 5px);
}

/* ===========================================
   MAIN CONTENT STYLES
   =========================================== */
.site-main {
    margin-top: 80px; /* Height of the fixed header */
    min-height: calc(100vh - 80px - 350px); /* 350px is approx footer height */
    position: relative;
    overflow: hidden;
    padding: 40px 0;
}

/* Animated Background */
.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
}

.shape-1 {
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: var(--primary-light);
    animation: float-slow 15s infinite alternate;
}

.shape-2 {
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    animation: float-slow 10s infinite alternate-reverse;
}

.shape-3 {
    top: 40%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    animation: float-slow 12s infinite alternate;
}

.shape-4 {
    bottom: 30%;
    left: 10%;
    width: 250px;
    height: 250px;
    background: var(--secondary-dark);
    animation: float-slow 8s infinite alternate-reverse;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-light), var(--secondary-color));
    opacity: 0.2;
    animation: float 15s infinite ease-in-out;
}

@keyframes float-slow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(20px, 20px) rotate(5deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-15px) translateX(10px); }
    50% { transform: translateY(-25px) translateX(-15px); }
    75% { transform: translateY(-10px) translateX(-25px); }
}

.main-content-wrapper {
    position: relative;
    z-index: 1;
}

/* ===========================================
   FOOTER STYLES
   =========================================== */
.site-footer {
    background-color: var(--dark-color);
    color: white;
    position: relative;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-waves {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.footer-waves svg {
    position: absolute;
    width: 100%;
    height: auto;
}

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

.footer-widget {
    line-height: 1.7;
}

.widget-header {
    margin-bottom: 20px;
    position: relative;
}

.widget-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.title-underline {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.footer-widget p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links li a i {
    font-size: 0.7rem;
    transition: transform 0.3s var(--cubic-bezier);
}

.footer-links li a:hover {
    color: white;
    transform: translateX(5px);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-info p i {
    color: var(--secondary-color);
    font-size: 1rem;
}

.contact-info p a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info p a:hover {
    color: white;
}

.newsletter-form {
    position: relative;
    margin-top: 20px;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 50px 12px 15px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    transform: translateY(-50%) scale(1.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: white;
}

/* ===========================================
   RESPONSIVE STYLES
   =========================================== */
@media (max-width: 992px) {
    .site-main {
        margin-top: 70px;
    }

    .site-footer {
        padding: 40px 0 20px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: var(--shadow);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li a {
        width: 100%;
        display: flex;
        justify-content: center;
    }

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

@media (max-width: 576px) {
    .brand-title {
        font-size: 1.5rem;
    }

    .footer-widgets {
        gap: 30px;
    }
}

/* ===========================================
   NOTIFICATIONS
   =========================================== */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    background-color: white;
    color: var(--dark-color);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    min-width: 280px;
    max-width: 90%;
    transform: translateX(110%);
    transition: transform 0.3s var(--cubic-bezier);
    border-left: 4px solid var(--primary-color);
}

.notification-visible {
    transform: translateX(0);
}

.notification-icon {
    margin-right: 15px;
    font-size: 1.2rem;
}

.notification-success {
    border-left-color: var(--success-color);
}

.notification-error {
    border-left-color: var(--danger-color);
}

.notification-warning {
    border-left-color: var(--warning-color);
}

.notification-success .notification-icon {
    color: var(--success-color);
}

.notification-error .notification-icon {
    color: var(--danger-color);
}

.notification-warning .notification-icon {
    color: var(--warning-color);
}

.notification-info .notification-icon {
    color: var(--primary-color);
}

.notification-message {
    flex: 1;
    font-size: 0.9rem;
}

.notification-close {
    margin-left: 15px;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
}

.notification-close:hover {
    opacity: 1;
}

/* ===========================================
   TOOLTIPS
   =========================================== */
.tooltip {
    position: absolute;
    background-color: var(--dark-color);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    z-index: 1100;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s var(--cubic-bezier), transform 0.3s var(--cubic-bezier);
    white-space: nowrap;
    box-shadow: var(--shadow);
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--dark-color) transparent transparent transparent;
}

.tooltip-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tooltip positions */
.tooltip-top {
    bottom: calc(100% + 10px);
}

.tooltip-bottom {
    top: calc(100% + 10px);
}

.tooltip-left {
    right: calc(100% + 10px);
}

.tooltip-right {
    left: calc(100% + 10px);
}

/* Tooltip arrow positions */
.tooltip-top::after {
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-color: var(--dark-color) transparent transparent transparent;
}

.tooltip-bottom::after {
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-color: transparent transparent var(--dark-color) transparent;
}

.tooltip-left::after {
    top: 50%;
    left: 100%;
    margin-top: -5px;
    border-color: transparent transparent transparent var(--dark-color);
}

.tooltip-right::after {
    top: 50%;
    right: 100%;
    margin-top: -5px;
    border-color: transparent var(--dark-color) transparent transparent;
}

/* Background gradient for CTA section */
.bg-gradient-primary {
    background: linear-gradient(135deg, #3a1c71, #d76d77, #ffaf7b);
    background-size: 200% 200%;
    animation: gradient-animation 15s ease infinite;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Card hover effect */
.card {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-5px);
}

/* Badge styling enhancements */
.badge.bg-warning {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}
