/* Reset & Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Custom Selection */
::selection {
    background: var(--color-primary);
    color: white;
}

/* Branded Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Breadcrumbs Section */
.breadcrumb-container {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-item a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--color-primary-light);
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

.breadcrumb-item.active {
    color: var(--text-main);
    font-weight: 500;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.02);
    /* Very transparent */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(1, 2, 4, 0.6);
    /* Slightly more opaque on scroll */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .site-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .site-header.scrolled {
    background: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    /* Minimum gap */
}

.logo-img {
    height: 48px;
    /* Slightly reduced to fit vertical stack */
    width: auto;
    object-fit: contain;
    margin-bottom: -2px;

}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    /* Smaller size */
    font-weight: 700;
    padding-top: 4px;
    /* Little padding */
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Responsive Media Query */
.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.mobile-nav-actions {
    display: none;
    margin-top: 3rem;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Responsive Media Query Updates */
@media (max-width: 991px) {

    .header-actions .theme-switch-wrapper,
    .header-actions .desktop-cta {
        display: none;
    }

    .mobile-nav-actions {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: rgba(10, 10, 20, 0.95);
        /* Nearly solid with slight translucency */
        backdrop-filter: blur(80px) saturate(200%);
        /* Stronger 'frosted' blur */
        -webkit-backdrop-filter: blur(80px) saturate(200%);
        box-shadow: -20px 0 50px rgba(0, 0, 0, 0.7);
        /* Deep styling shadow */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 1000;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        /* Subtle icy edge */
    }

    /* Light Mode Glassmorphism Override - Mobile Only */
    [data-theme="light"] .main-nav {
        background: rgba(255, 255, 255, 0.95);
        /* Nearly solid white */
        backdrop-filter: blur(80px) saturate(200%);
        /* Match stronger blur */
        -webkit-backdrop-filter: blur(80px) saturate(200%);
        border-left: 1px solid rgba(255, 255, 255, 0.5);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    /* Hamburger Animation */
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

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

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

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

/* Premium 3D Button Styles */
.header-cta {
    cursor: pointer;
    font-size: 1rem;
    border-radius: 16px;
    border: none;
    padding: 2px;
    background: radial-gradient(circle 80px at 80% -10%, #ffffff, var(--bg-surface));
    position: relative;
    text-decoration: none;
    display: inline-block;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.header-cta:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.header-cta::after {
    content: "";
    position: absolute;
    width: 65%;
    height: 60%;
    border-radius: 120px;
    top: 0;
    right: 0;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    z-index: 0;
}

.header-cta .blob1 {
    position: absolute;
    width: 70px;
    height: 100%;
    border-radius: 16px;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle 60px at 0% 100%,
            var(--color-primary-light),
            var(--color-primary),
            transparent);
    box-shadow: -10px 10px 30px rgba(99, 39, 160, 0.3);
    z-index: 1;
}

.header-cta .inner {
    padding: 10px 25px;
    border-radius: 14px;
    color: #fff;
    z-index: 2;
    position: relative;
    background: radial-gradient(circle 80px at 80% -50%, #444, var(--bg-main));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.header-cta .inner::before {
    content: "";
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border-radius: 14px;
    background: radial-gradient(circle 60px at 0% 100%,
            rgba(159, 77, 155, 0.2),
            rgba(99, 39, 160, 0.1),
            transparent);
    position: absolute;
}

.theme-btn-header {
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    color: var(--text-main);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
}

.theme-btn-header:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(15deg);
}

[data-theme="light"] .header-cta {
    /* Obsidian Look: Glossy Black with subtle Purple Tint */
    background: radial-gradient(circle 80px at 80% -10%, #ffffff, #0d0d12);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .header-cta:hover {
    box-shadow: 0 8px 30px rgba(99, 39, 160, 0.3);
    /* Purple glow on hover */
    background: radial-gradient(circle 80px at 80% -10%, #ffffff, #1a1a2e);
    /* Slightly lighter on hover */
    transform: scale(1.05) translateY(-2px);
}

[data-theme="light"] .header-cta .inner {
    /* Deep Matte Inner */
    background: radial-gradient(circle 80px at 80% -50%, #2a2a2a, #000000);
    color: #ffffff;
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .header-cta .inner::before {
    background: radial-gradient(circle 60px at 0% 100%,
            rgba(255, 255, 255, 0.15),
            rgba(159, 77, 155, 0.1),
            transparent);
}

[data-theme="light"] .header-cta::after {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
    opacity: 0.7;
}

[data-theme="light"] .header-cta .blob1 {
    /* Vibrant blob to contrast with black */
    background: radial-gradient(circle 60px at 0% 100%,
            #e9565e,
            #6327a0,
            transparent);
    opacity: 0.9;
    filter: blur(2px);
}

/* Footer Section */
.site-footer {
    background: var(--color-primary-dark);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h3 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}