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

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

body {
    margin: 0;
    overflow-x: hidden;
}

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

.shape-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2dd4bf, #0d9488);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5eead4, #14b8a6);
    bottom: 10%;
    right: 5%;
    animation-delay: -3s;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 200px solid #2dd4bf;
    top: 20%;
    right: 15%;
    animation-delay: -2s;
    opacity: 0.06;
}

.shape-diamond {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #99f6e4, #5eead4);
    bottom: 20%;
    left: 10%;
    transform: rotate(45deg);
    animation-delay: -5s;
}

.shape-rect {
    width: 160px;
    height: 80px;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    top: 60%;
    right: 25%;
    border-radius: 16px;
    transform: rotate(-15deg);
    animation-delay: -1s;
}

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

.shape-diamond {
    animation-name: floatDiamond;
}

@keyframes floatDiamond {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-25px) rotate(45deg); }
}

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

#navbar.scrolled {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile Menu */
.mobile-nav-link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* Feature Items */
.feature-item {
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
}

/* Menu Cards */
.menu-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.menu-card:hover {
    box-shadow: 0 20px 60px rgba(13, 148, 136, 0.15);
}

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

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

/* Gallery Items */
.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    opacity: 1;
}

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

/* Selection */
::selection {
    background: rgba(45, 212, 191, 0.3);
    color: #f0fdfa;
}

/* 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;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .shape-circle-2 {
        width: 120px;
        height: 120px;
    }
    
    .shape-triangle {
        border-left-width: 60px;
        border-right-width: 60px;
        border-bottom-width: 100px;
    }
    
    .shape-diamond {
        width: 50px;
        height: 50px;
    }
    
    .shape-rect {
        width: 80px;
        height: 40px;
    }
}
