/* ===================================
   Paris Perfumes — Custom Styles
   =================================== */

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

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

body {
    position: relative;
}

::selection {
    background: #14b8a6;
    color: white;
}

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

.geo-circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -150px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-square-1 {
    width: 200px;
    height: 200px;
    background: rgba(13, 148, 136, 0.04);
    border-radius: 30px;
    bottom: 20%;
    left: -50px;
    transform: rotate(45deg);
    animation: float-slow 25s ease-in-out infinite reverse;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 10%;
    right: 5%;
    animation: float-slow 18s ease-in-out infinite;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(13, 148, 136, 0.03);
    top: 50%;
    left: 3%;
    transform: translateY(-50%) rotate(15deg);
    animation: float-slow 22s ease-in-out infinite reverse;
}

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

/* --- Hero Geometric Elements --- */
.hero {
    position: relative;
    background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 40%, #f8fafc 100%);
    min-height: 100vh;
}

.hero-geo {
    position: absolute;
    pointer-events: none;
}

.hero-geo-circle {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -100px;
}

.hero-geo-square {
    width: 150px;
    height: 150px;
    background: rgba(13, 148, 136, 0.06);
    border-radius: 24px;
    bottom: 15%;
    left: 5%;
    transform: rotate(30deg);
    animation: float-slow 15s ease-in-out infinite;
}

.hero-geo-dots {
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, rgba(13, 148, 136, 0.15) 1px, transparent 1px);
    background-size: 12px 12px;
    top: 30%;
    right: 2%;
    animation: float-slow 12s ease-in-out infinite reverse;
}

/* --- Hero Image Animation --- */
.hero-image-wrapper {
    animation: hero-image-in 1s ease-out forwards;
    opacity: 0;
    transform: translateX(40px);
}

@keyframes hero-image-in {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content {
    animation: hero-content-in 1s ease-out 0.2s forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes hero-content-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Floating animations --- */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
    animation: float 6s ease-in-out 2s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* --- Navbar --- */
.nav-fixed {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all duration-300;
}

.nav-fixed.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

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

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

/* --- Mobile Menu --- */
.mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

.service-card-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.02) 0%, transparent 60%);
    border-radius: 1.5rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover .service-card-bg {
    opacity: 1;
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    animation: bounce-soft 2s ease-in-out infinite;
}

@keyframes bounce-soft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

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

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

/* Default state: visible (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* --- Contact Form --- */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #14b8a6;
    color: white;
    border-radius: 14px;
    display: flex;
    items-center: justify-center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.4);
    cursor: pointer;
    text-decoration: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #0d9488;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(20, 184, 166, 0.5);
}

/* --- Footer --- */
.footer {
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #14b8a6, #0d9488, #0f766e, #14b8a6);
}

/* --- Responsive --- */
@media (max-width: 1023px) {
    .hero {
        padding-top: 80px;
    }
    
    .hero-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .geo-shape {
        display: none;
    }
    
    .geo-circle-1, .geo-square-1, .geo-circle-2, .geo-triangle {
        display: none;
    }
}

/* --- 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;
    }
    
    .hero-image-wrapper,
    .hero-content {
        opacity: 1;
        transform: none;
    }
}
