/* ========================================
   Dressmaker Rossy & Alterations
   Custom Styles
======================================== */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Geometric Background Shapes --- */
.geometric-shapes {
    z-index: 0;
}

.shape-circle-1 {
    position: absolute;
    top: 10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(125, 160, 87, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.shape-circle-2 {
    position: absolute;
    bottom: 15%;
    left: -8%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(69, 102, 46, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.shape-triangle {
    position: absolute;
    top: 45%;
    left: 5%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(163, 191, 134, 0.12);
    transform: rotate(15deg);
    pointer-events: none;
}

.shape-square {
    position: absolute;
    top: 30%;
    right: 15%;
    width: 80px;
    height: 80px;
    background: rgba(92, 129, 58, 0.08);
    border-radius: 16px;
    transform: rotate(45deg);
    pointer-events: none;
}

.shape-dots {
    position: absolute;
    bottom: 25%;
    right: 8%;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(69, 102, 46, 0.15) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    pointer-events: none;
}

/* --- Floating Cards --- */
.floating-card-1 {
    animation: float-1 6s ease-in-out infinite;
}

.floating-card-2 {
    animation: float-2 5s ease-in-out infinite;
}

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

@keyframes float-2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}

/* --- Service Cards --- */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #45662e, #7da057);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* --- Process Steps --- */
.process-step::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #45662e, #7da057);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.process-step:hover::after {
    width: 60%;
}

/* --- Gallery --- */
.gallery-item {
    position: relative;
}

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

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

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

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(30px);
}

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

/* --- Navbar --- */
#navbar.scrolled {
    background: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(37, 52, 26, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #45662e;
    border-radius: 1px;
    transition: width 0.3s ease;
}

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

/* --- Mobile Menu --- */
.mobile-nav-link {
    display: block;
}

/* --- Button Hover Effects --- */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* --- Selection Color --- */
::selection {
    background: rgba(69, 102, 46, 0.2);
    color: #2d4020;
}

/* --- Focus Styles --- */
:focus-visible {
    outline: 2px solid #45662e;
    outline-offset: 2px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 640px) {
    .shape-circle-1 {
        width: 250px;
        height: 250px;
    }
    
    .shape-circle-2 {
        width: 200px;
        height: 200px;
    }
    
    .shape-triangle {
        border-left-width: 30px;
        border-right-width: 30px;
        border-bottom-width: 52px;
    }
    
    .shape-square {
        width: 40px;
        height: 40px;
    }
    
    .shape-dots {
        width: 60px;
        height: 60px;
        background-size: 10px 10px;
    }
}

/* --- Print Styles --- */
@media print {
    .geometric-shapes,
    .floating-card-1,
    .floating-card-2 {
        display: none;
    }
}
