/* ===== BASE & RESET ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    min-height: 100vh;
    overflow-x: hidden;
}

::selection {
    background: #ff9494;
    color: #3a0a11;
}

/* ===== NAVBAR ===== */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff9494;
    transition: width 0.3s ease;
}

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

#navbar.scrolled {
    background: rgba(58, 10, 17, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.4s; }

/* ===== HERO GEOMETRIC SHAPES ===== */
.geo-shape {
    position: absolute;
    opacity: 0.15;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border: 2px solid #ff9494;
    border-radius: 50%;
    top: -100px;
    right: 10%;
    animation-delay: 0s;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    background: #ff6b6b;
    border-radius: 50%;
    bottom: 15%;
    right: 5%;
    animation-delay: -2s;
}

.geo-rect-1 {
    width: 120px;
    height: 120px;
    background: #ffb8b8;
    top: 30%;
    left: 5%;
    transform: rotate(45deg);
    animation-delay: -4s;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid #ff9494;
    top: 60%;
    left: 15%;
    animation-delay: -1s;
    opacity: 0.1;
}

.geo-circle-3 {
    width: 100px;
    height: 100px;
    border: 2px solid #fce3e5;
    border-radius: 50%;
    bottom: 25%;
    left: 40%;
    animation-delay: -3s;
}

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

/* ===== HERO ANIMATIONS ===== */
.hero-tag {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

h1 {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

.hero-tag ~ p,
.hero-tag ~ * p {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.7s;
}

.hero-tag ~ * ~ p {
    animation-delay: 0.7s;
}

.hero-tag ~ * ~ * ~ p {
    animation-delay: 0.8s;
}

.hero-tag ~ * ~ * ~ * ~ div {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.9s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SCROLL REVEAL (Below Fold Only) ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== CARD HOVER EFFECTS ===== */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* ===== BUTTON TRANSITIONS ===== */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ===== MOBILE MENU ANIMATION ===== */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

/* ===== IMAGE PLACEHOLDERS ===== */
img {
    max-width: 100%;
    height: auto;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #3a0a11;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #9c1e30;
}

/* ===== RESPONSIVE FINE-TUNING ===== */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .geo-circle-2 {
        width: 100px;
        height: 100px;
    }
    
    .geo-rect-1 {
        width: 60px;
        height: 60px;
    }
    
    .geo-triangle {
        border-left-width: 30px;
        border-right-width: 30px;
        border-bottom-width: 50px;
    }
}
