.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=Syne:wght@700;800&display=swap');

:root {
    --primary-glow: conic-gradient(from 180deg at 50% 50%, #10b981 0deg, #059669 55deg, #fbbf24 120deg, #d97706 160deg, transparent 360deg);
}

body {
    font-family: 'Outfit', sans-serif;
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1), color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Unified Theme Support */
.dark body {
    background-color: #020617; /* slate-950 */
    color: #f8fafc; /* slate-50 */
}

@media (max-width: 768px) {
    h1 { font-size: 3rem !important; line-height: 1.1 !important; letter-spacing: -0.04em !important; }
    h2 { font-size: 2.25rem !important; line-height: 1.1 !important; letter-spacing: -0.03em !important; }
    h3 { font-size: 1.75rem !important; }
    p { font-size: 0.95rem !important; }
    .section-padding { padding-top: 4rem !important; padding-bottom: 4rem !important; }
}

.text-editorial-gradient {
    background: linear-gradient(135deg, #064e3b 0%, #10b981 50%, #fbbf24 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .glass {
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 768px) {
    .glass-card { 
        padding: 1.5rem !important; 
        border-radius: 1.5rem !important; 
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

.dark .glass-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Shimmer Effect for Buttons */
.shimmer-btn {
    position: relative;
    overflow: hidden;
}

.shimmer-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(45deg);
    transition: all 0.5s;
    pointer-events: none;
}

.shimmer-btn:hover::after {
    left: 100%;
    top: 100%;
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Blob Background */
.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--primary-glow);
    filter: blur(80px);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.2;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #10b981; border-radius: 20px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #fbbf24; }

html { 
    scroll-behavior: smooth; 
    scroll-padding-top: 100px;
}

/* Global Transition for Theme Switching */
*, *::before, *::after {
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Remove all other transitions from affecting specific animations */
.reveal, .shimmer-btn, .burger-line, .nav-link span {
    transition-duration: 0.8s;
}

/* Grid Background */
.bg-grid {
    background-size: 40px 40px;
    background-image: radial-gradient(circle, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
}

.dark .bg-grid {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Mobile Bottom Bar Overlay */
.mobile-bottom-bar {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 450px;
    z-index: 1000;
    display: none;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 0.6rem 1rem;
    align-items: center;
    justify-content: space-around;
}

.dark .mobile-bottom-bar {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-bottom-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #475569;
    text-decoration: none;
}

.dark .mobile-bottom-icon { color: #94a3b8; }

.mobile-bottom-icon.active { color: #10b981; }

.mobile-bottom-icon span { font-size: 24px; }
.mobile-bottom-icon label { font-size: 10px; font-weight: 800; text-transform: uppercase; cursor: pointer; }

@media (max-width: 768px) {
    .mobile-bottom-bar { display: flex; animation: barSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1); }
}

/* Premium Hamburger Animation */
.burger-btn {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.burger-line {
    width: 100%;
    height: 3px;
    background-color: currentColor;
    border-radius: 99px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu-btn:not(.active) .burger-line:nth-child(2) { width: 70%; }

#mobile-menu-btn.active .burger-line:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
#mobile-menu-btn.active .burger-line:nth-child(2) { opacity: 0; transform: translateX(20px); }
#mobile-menu-btn.active .burger-line:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-capsule {
    background: rgba(16, 185, 129, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 0.5rem;
    padding: 0.4rem;
    border-radius: 9999px;
}

.dark .mobile-capsule {
    background: rgba(255, 255, 255, 0.05);
}

/* Premium Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Glass Highlight for Mobile Bar */
.mobile-bottom-bar::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}
