/* Common styles shared across all pages */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0f;
    min-height: 100vh;
    color: #f0f0f5;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 15% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.04) 0%, transparent 60%);
    z-index: -1;
}

/* Noise texture overlay for premium feel */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

::selection {
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
}

.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-elements::before,
.floating-elements::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    filter: blur(80px);
    animation: floatAround 25s linear infinite;
}

.floating-elements::before {
    width: 500px;
    height: 500px;
    background: #6366f1;
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.floating-elements::after {
    width: 400px;
    height: 400px;
    background: #8b5cf6;
    bottom: 10%;
    right: -5%;
    animation-delay: -12s;
}

@keyframes floatAround {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(40px, -40px) rotate(120deg); }
    66% { transform: translate(-30px, 30px) rotate(240deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* ─── Premium Glass Navbar ─── */
.simple-navbar {
    background: rgba(10, 10, 15, 0.7) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 0.8rem 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    backdrop-filter: blur(20px) saturate(1.4) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.4) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 4px 30px rgba(0, 0, 0, 0.3) !important;
    height: auto !important;
    min-height: auto !important;
}

.navbar-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 2rem !important;
    height: auto !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #f0f0f5;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-brand:hover {
    color: #a5b4fc;
    transform: translateY(-1px);
}

.navbar-brand .logo-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: white;
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.navbar-brand:hover .logo-icon {
    transform: rotate(5deg) scale(1.08);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.navbar-brand .logo-text {
    background: linear-gradient(135deg, #e0e7ff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.5px;
    position: relative;
}

.navbar-brand .logo-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.navbar-brand:hover .logo-text::after {
    width: 100%;
}

.navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.navbar-nav .nav-link {
    color: rgba(240, 240, 245, 0.7) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 0.88rem !important;
    padding: 0.5rem 1.1rem !important;
    border-radius: 8px !important;
    transition: all 0.25s ease !important;
    position: relative !important;
    display: inline-block !important;
    letter-spacing: 0.01em !important;
}

.navbar-nav .nav-link:hover {
    color: #f0f0f5 !important;
    background: rgba(99, 102, 241, 0.1) !important;
}

.navbar-nav .nav-link.active {
    color: #fff !important;
    background: linear-gradient(135deg, #6366f1, #7c3aed) !important;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.35) !important;
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1rem !important;
    }

    .navbar-nav {
        gap: 0.2rem;
        padding: 0.2rem;
    }

    .navbar-nav .nav-link {
        font-size: 0.82rem !important;
        padding: 0.4rem 0.8rem !important;
    }
}

/* ─── Header ─── */
.header {
    padding: 5rem 2rem 4rem;
    text-align: center;
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

.subtitle {
    color: rgba(165, 180, 252, 0.7);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* ─── Main Logo ─── */
.main-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
}

.main-logo-icon.floating-p {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    font-weight: 800;
    box-shadow:
        0 12px 40px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 4s ease-in-out infinite;
    cursor: pointer;
}

.main-logo-icon.floating-p:hover {
    transform: rotate(10deg) scale(1.12);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.5);
    animation-play-state: paused;
}

.main-logo-text {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #e0e7ff, #a5b4fc, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    position: relative;
}

.main-logo-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #6366f1, #8b5cf6, transparent);
    border-radius: 2px;
    opacity: 0.6;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    .main-logo {
        gap: 1rem;
    }

    .main-logo-icon.floating-p {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }

    .main-logo-text {
        font-size: 2.5rem;
    }
}
