/* ============================================
   Nails by Mendy ATX — Custom Styles
   ============================================ */

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

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

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
}

/* Selection color */
::selection {
    background: rgba(243, 199, 52, 0.3);
    color: #f3c734;
}

/* ============================================
   Geometric Background Shapes
   ============================================ */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.geo-circle-1 {
    top: 15%;
    right: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(243, 199, 52, 0.08) 0%, transparent 70%);
    animation: floatShape 20s ease-in-out infinite;
}

.geo-circle-2 {
    bottom: 20%;
    left: -8%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(65, 100, 175, 0.1) 0%, transparent 70%);
    animation: floatShape 25s ease-in-out infinite reverse;
}

.geo-triangle {
    top: 45%;
    right: 5%;
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(243, 199, 52, 0.04);
    animation: rotateShape 30s linear infinite;
}

.geo-square {
    bottom: 10%;
    left: 8%;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(243, 199, 52, 0.06);
    transform: rotate(45deg);
    animation: floatShape 18s ease-in-out infinite;
}

.geo-ring {
    top: 70%;
    right: 15%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(65, 100, 175, 0.08);
    animation: rotateShape 22s linear infinite reverse;
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(2deg); }
    50% { transform: translateY(10px) rotate(-1deg); }
    75% { transform: translateY(-15px) rotate(1deg); }
}

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

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

#navbar.scrolled {
    background: rgba(6, 14, 21, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #f3c734 !important;
}

/* Mobile menu */
.mobile-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* ============================================
   Reveal Animations (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
    .reveal:nth-child(5) { transition-delay: 0.4s; }
    .reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* Always visible for reduced motion or no-JS */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Gallery hover effects
   ============================================ */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* ============================================
   Form Styles
   ============================================ */
select option {
    background: #0d1823;
    color: #fff;
}

input:focus,
textarea:focus,
select:focus {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .geo-circle-1,
    .geo-circle-2,
    .geo-triangle,
    .geo-square,
    .geo-ring {
        display: none;
    }

    #hero h1 {
        font-size: 2.75rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .geo-shape {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .geo-circle-1 {
        width: 250px;
        height: 250px;
    }

    .geo-circle-2 {
        width: 300px;
        height: 300px;
    }
}

/* ============================================
   Utility & Misc
   ============================================ */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth focus visible */
*:focus-visible {
    outline: 2px solid #f3c734;
    outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
    background: #0d1823;
}

::-webkit-scrollbar-thumb {
    background: rgba(243, 199, 52, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(243, 199, 52, 0.5);
}
