:root {
    --primary: #0ea5e9;
    --secondary: #06b6d4;
    --accent: #ef4444;
    --success: #22c55e;
    --white: #ffffff;
    --dark-bg: #111827;
    --dark-card: #1f2937;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: var(--white);
}

header {
    background: var(--success);
    color: white;
    padding: 2rem 0;
    text-align: center;
    padding-top: 6rem !important;
    /* Override any other padding */
    margin-top: 1rem;
}

header h1 {
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
}

main {
    padding: 2rem;
}

section {
    margin-bottom: 2rem;
}

h2 {
    color: var(--success);
    margin-bottom: 1rem;
}

ul {
    list-style: none;
    padding-left: 1rem;
}

ul li {
    margin-bottom: 0.5rem;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 2rem;
    background: var(--primary);
    color: white;
}

@media (max-width: 768px) {
    main {
        padding: 1rem;
    }
}

/* Custom animations and overrides */
.btn {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border: none;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
}

.btn:hover::after {
    transform: translateX(100%);
    transition: transform 0.7s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.2);
    text-decoration: none !important;
    /* Ensure no underline */
}

.btn-danger {
    background: linear-gradient(45deg, var(--accent), var(--primary));
}

/* Custom gradient animations */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.bg-gradient-animate {
    background: linear-gradient(-45deg, var(--primary), var(--secondary), var(--accent), var(--success));
    background-size: 300% 300%;
    animation: gradientBG 15s ease infinite;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    overflow-x: hidden;
}

/* Smooth content reveal */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Enhanced feature card effects */
.feature-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: perspective(1000px) translateZ(0);
    will-change: transform;
    transform-style: preserve-3d;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.feature-card a {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card:hover i,
.feature-card:hover h3 {
    transform: scale(1.1);
}

.feature-card:hover {
    transform: perspective(1000px) translateZ(40px) translateY(-5px);
    box-shadow:
        0 20px 25px -5px rgba(14, 165, 233, 0.3),
        0 10px 10px -5px rgba(14, 165, 233, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.2),
            rgba(255, 255, 255, 0.1));
    border-radius: inherit;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.feature-card:hover::after {
    transform: translateX(100%);
}

.feature-card i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.feature-card:hover i {
    transform: scale(1.2);
    color: var(--primary) !important;
}

.feature-card h3 {
    transition: transform 0.3s ease;
}

.feature-card:hover h3 {
    transform: translateY(-2px);
    color: var(--primary);
}

/* Dark mode card effects */
.dark .feature-card:hover {
    box-shadow:
        0 20px 25px -5px rgba(14, 165, 233, 0.2),
        0 10px 10px -5px rgba(14, 165, 233, 0.1);
    background: rgba(31, 41, 55, 0.95);
}

.dark .feature-card:hover h3 {
    color: var(--secondary);
}

.dark .feature-card:hover i {
    color: var(--secondary) !important;
}

.dark .feature-card {
    background: rgba(31, 41, 55, 0.8);
}

/* Loading animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Glass morphism effects */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Add shimmer effect */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(14, 165, 233, 0.1),
            transparent);
    animation: shimmer 2s infinite;
}

/* Dark mode styles */
.dark body {
    background-color: var(--dark-bg);
    color: var(--white);
}

.dark .feature-card {
    background-color: var(--dark-card);
    border-color: var(--primary);
}

.dark .feature-card:hover {
    box-shadow: 0 20px 25px -5px rgba(14, 165, 233, 0.2),
        0 10px 10px -5px rgba(14, 165, 233, 0.1);
}

/* Update glass morphism for dark mode */
.dark .glass {
    background: rgba(31, 41, 55, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Update shimmer effect for dark mode */
.dark .shimmer::after {
    background: linear-gradient(90deg,
            transparent,
            rgba(14, 165, 233, 0.05),
            transparent);
}

/* Update button styles for dark mode */
.dark .btn {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: var(--white);
}

.dark .btn-light {
    background: var(--dark-card);
    color: var(--white);
}

/* Add smooth transition for theme switching */
.transition-theme {
    transition:
        background-color 0.5s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

/* Mobile menu transitions */
#mobileMenu {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
    backdrop-filter: blur(10px);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.95);
    /* Ensure solid background */
}

.dark #mobileMenu {
    background-color: rgba(31, 41, 55, 0.95);
    /* Ensure solid background for dark mode */
}

#mobileMenu.hidden {
    display: none;
}

/* Dark mode fixes */
.dark .bg-white {
    background-color: rgba(31, 41, 55, 0.9);
}

.dark .shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3),
        0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

/* Ensure text is visible in dark mode */
.dark .text-gray-600 {
    color: rgba(209, 213, 219, var(--tw-text-opacity));
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Improve tap targets on mobile */
    #mobileMenu a,
    #mobileMenu button {
        padding: 0.75rem 0;
        display: block;
        width: 100%;
        text-align: left;
    }

    /* Floating theme toggle button for mobile */
    .fixed.bottom-4.right-4 {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(8px);
        z-index: 100;
    }

    .fixed.bottom-4.right-4:hover {
        transform: scale(1.1) rotate(360deg);
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .feature-card {
        transform: none !important;
    }

    header {
        padding-top: 5rem !important;
    }

    nav {
        height: 3.5rem;
    }

    nav .container {
        padding: 0 1rem;
    }

    nav h1.text-2xl {
        font-size: 1.25rem;
        width: auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }

    #mobileMenu {
        top: 3.5rem;
        background: inherit;
        width: 100%;
        z-index: 50;
    }

    #mobileMenu a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }

    #mobileMenu a:last-child {
        border-bottom: none;
    }

    #mobileMenu a:hover {
        padding-left: 1rem;
        background: rgba(14, 165, 233, 0.1);
    }

    #mobileMenu {
        background-color: #ffffff !important;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .dark #mobileMenu {
        background-color: #1f2937 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    #mobileMenu a {
        color: #374151;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        font-weight: 500;
    }

    .dark #mobileMenu a {
        color: #e5e7eb;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    #mobileMenu a:hover {
        background-color: rgba(14, 165, 233, 0.1);
        color: var(--primary);
    }

    .dark #mobileMenu a:hover {
        background-color: rgba(14, 165, 233, 0.1);
        color: var(--primary);
    }
}

/* Enhance animations and transitions */
.animate__fadeIn {
    animation-duration: 0.5s !important;
}

.animate__fadeOut {
    animation-duration: 0.3s !important;
}

.animate__fadeInUp {
    animation-duration: 0.8s !important;
    animation-delay: 0.1s;
}

/* Smooth transitions for all interactive elements */
a,
button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Override underline for buttons */
a.btn:hover,
button:hover,
.nav-links a:hover {
    text-decoration: none;
}

/* Enhanced navbar styles */
.nav-link {
    position: relative;
    white-space: nowrap;
    color: #374151;
    /* text-gray-700 */
    padding: 1rem 1rem;
    /* px-4 py-2 */

    .dark .nav-link {
        color: #D1D5DB;
        /* dark:text-gray-300 */
    }

    .nav-link:hover {
        color: #2563EB;
        /* hover:text-blue-600 */
    }

    .dark .nav-link:hover {
        color: #60A5FA;
        /* dark:hover:text-blue-400 */
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--primary);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .nav-link:hover::after {
        width: 80%;
    }

    /* Desktop navigation styles */
    .nav-links a {
        position: relative;
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        text-decoration: none;
        background-color: rgba(14, 165, 233, 0.1);
        border-radius: 6px;
    }

    .dark .nav-links a:hover {
        background-color: rgba(14, 165, 233, 0.05);
    }

    @media (min-width: 768px) {
        .nav-links {
            margin: 0 1rem;
        }
    }

    /* Update desktop navigation styles */
    @media (min-width: 768px) {
        .nav-links {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
    }

    /* Enhanced card effects */
    .feature-card {
        transform-style: preserve-3d;
        transform: perspective(1000px);
        backdrop-filter: blur(5px);
    }

    .feature-card::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: -1;
        background: linear-gradient(135deg,
                rgba(255, 255, 255, 0.1),
                rgba(255, 255, 255, 0.05));
        border-radius: inherit;
        backdrop-filter: blur(10px);
    }

    /* Glow effects */
    .glow {
        position: relative;
    }

    .glow::after {
        content: '';
        position: absolute;
        inset: -1px;
        background: linear-gradient(45deg,
                var(--primary),
                var(--secondary),
                var(--accent));
        filter: blur(15px);
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .glow:hover::after {
        opacity: 0.5;
    }

    /* Enhanced scroll behavior */
    html {
        scroll-behavior: smooth;
        scroll-padding-top: 5rem;
        overflow-x: hidden;
    }

    /* Parallax container */
    .parallax-container {
        transform: translateZ(0);
        will-change: transform;
    }

    /* Enhanced mobile animations */
    @media (max-width: 768px) {
        .feature-card {
            transform: none !important;
        }
    }

    /* Dark mode particle enhancement */
    .dark #navbar-particles canvas {
        filter: brightness(0.8);
    }

    /* Update theme toggle button styles */
    .theme-toggle-container {
        position: relative;
        display: inline-flex;
        gap: 0.5rem;

        .theme-toggle-container i:hover {
            padding: 0.5rem;
            background: var(--white);
            border-radius: 0.5rem;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .theme-toggle-container i {
            padding: 0.5rem;
            border-radius: 0.375rem;
            transition: all 0.3s ease;
        }

        .theme-toggle-container i:hover {
            background: rgba(0, 0, 0, 0.05);
        }

        background: rgba(0, 0, 0, 0.05);
    }

    /* Update theme toggle container styles */
    .theme-toggle-container {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 0.5rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .theme-toggle-container button {
        padding: 0.5rem;
        border-radius: 0.375rem;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .theme-toggle-container button:hover {
        background: rgba(0, 0, 0, 0.05);
    }

    /* Mobile navbar fixes */
    @media (max-width: 768px) {
        nav .container {
            padding: 0 1rem;
        }

        nav .text-2xl {
            font-size: 1.25rem;
            width: auto;
        }

        #mobileMenu {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: inherit;
            padding: 1rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
    }
}

/* Enhanced navbar link styles */
.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* Dark mode navbar styles */
.dark .nav-link {
    color: var(--white);
}

.dark .nav-link:hover {
    color: var(--primary) !important;
}

/* Update mobile menu link styles */
#mobileMenu a {
    position: relative;
    transition: all 0.3s ease;
    color: var(--dark-bg);
}

.dark #mobileMenu a {
    color: var(--white);
}

#mobileMenu a:hover {
    color: var(--primary);
    padding-left: 1.5rem;
    background: rgba(14, 165, 233, 0.1);
}

/* Mobile theme toggle specific styles */
#mobileThemeBtn i {
    transition: transform 0.3s ease;
}

#mobileThemeBtn:hover i {
    transform: rotate(180deg);
}

.dark #mobileMenu a:hover {
    color: var(--primary);
}

/* Mobile menu styles */
#mobileMenu {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 50;
}

.dark #mobileMenu {
    background: var(--dark-card);
}

#mobileMenu a {
    color: var(--dark-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dark #mobileMenu a {
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}