/* ===== Base & Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    min-height: 100vh;
}

::selection {
    background: #d97706;
    color: #1a0720;
}

/* ===== Geometric Shapes ===== */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.15;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.4) 0%, transparent 70%);
    top: 10%;
    right: -5%;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(190, 24, 93, 0.5) 0%, transparent 70%);
    bottom: 20%;
    left: -3%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.6) 0%, transparent 70%);
    top: 40%;
    left: 15%;
    animation: float-medium 12s ease-in-out infinite;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(217, 119, 6, 0.15);
    top: 25%;
    left: 5%;
    transform: rotate(15deg);
    animation: float-medium 18s ease-in-out infinite;
}

.shape-square-1 {
    width: 100px;
    height: 100px;
    background: rgba(157, 23, 77, 0.2);
    border: 2px solid rgba(217, 119, 6, 0.2);
    top: 60%;
    right: 10%;
    transform: rotate(45deg);
    animation: float-slow 22s ease-in-out infinite reverse;
}

.shape-dots {
    background-image: radial-gradient(circle, rgba(217, 119, 6, 0.3) 1px, transparent 1px);
    background-size: 30px 30px;
    width: 300px;
    height: 300px;
    top: 50%;
    right: 20%;
    animation: float-medium 16s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(3deg); }
    66% { transform: translateY(15px) rotate(-2deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

/* ===== Scroll Reveal Animations ===== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 0;
    }
    
    .reveal-up {
        transform: translateY(40px);
    }
    
    .reveal-left {
        transform: translateX(-40px);
    }
    
    .reveal-right {
        transform: translateX(40px);
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* ===== Navbar ===== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(15, 5, 21, 0.92);
    backdrop-blur-xl;
    border-bottom: 1px solid rgba(217, 119, 6, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Mobile Menu ===== */
.menu-line {
    display: block;
}

#mobile-menu.open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu.open .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu.open .menu-line:nth-child(3) {
    width: 6px;
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.mobile-link:hover {
    padding-left: 0.75rem;
}

/* ===== Image Hover ===== */
img {
    max-width: 100%;
    height: auto;
}

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

::-webkit-scrollbar-track {
    background: #1a0720;
}

::-webkit-scrollbar-thumb {
    background: #4a154b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d97706;
}

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d97706;
    outline-offset: 4px;
    border-radius: 4px;
}

/* ===== Utility ===== */
@media (max-width: 768px) {
    .shape-circle-1,
    .shape-circle-2,
    .shape-circle-3,
    .shape-triangle-1,
    .shape-square-1,
    .shape-dots {
        display: none;
    }
}
