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

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

body {
    overflow-x: hidden;
}

/* Geometric Animations */
.geo-shape {
    position: absolute;
    opacity: 0.15;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-1 {
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 3px solid rgba(255, 116, 145, 0.5);
    animation-delay: 0s;
}

.geo-circle-2 {
    top: 60%;
    right: 8%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 77, 117, 0.3);
    animation-delay: -2s;
}

.geo-circle-3 {
    bottom: 15%;
    left: 15%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid rgba(255, 173, 185, 0.4);
    animation-delay: -4s;
}

.geo-triangle {
    top: 20%;
    right: 15%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(255, 116, 145, 0.2);
    animation: rotate 12s linear infinite;
    animation-delay: -3s;
}

.geo-square {
    top: 70%;
    left: 8%;
    width: 80px;
    height: 80px;
    background: rgba(255, 173, 185, 0.2);
    border-radius: 12px;
    transform: rotate(45deg);
    animation: float 6s ease-in-out infinite reverse;
    animation-delay: -1s;
}

.geo-dots {
    top: 40%;
    left: 50%;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 2px, transparent 2px);
    background-size: 20px 20px;
    animation: float 10s ease-in-out infinite;
    animation-delay: -5s;
}

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

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Scroll Reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Navbar */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 248, 244, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 4px 30px rgba(123, 45, 59, 0.1);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile Menu */
.mobile-line {
    transition: all 0.3s ease;
}

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

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

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

.mobile-link {
    position: relative;
}

/* Button Hover Effects */
a {
    text-decoration: none;
}

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

::-webkit-scrollbar-track {
    background: #FDF8F4;
}

::-webkit-scrollbar-thumb {
    background: #7B2D3B;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b2431;
}

/* Selection */
::selection {
    background: #ff4d75;
    color: white;
}

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

/* Form styles (for future use) */
input, textarea {
    font-family: inherit;
}

/* Smooth transitions for interactive elements */
button, a {
    transition: all 0.3s ease;
}

/* Print styles */
@media print {
    #navbar, .geo-shape {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
