/* ============================================
   Domaine St Gregory — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* ============================================
   Geometric Shapes (Hero & Section Decor)
   ============================================ */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #facc15;
    top: 10%;
    left: -5%;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: #fde047;
    bottom: 15%;
    right: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.circle-3 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #fef08a;
    top: 40%;
    right: 15%;
    animation: float 10s ease-in-out infinite;
}

.square-1 {
    width: 120px;
    height: 120px;
    background: #facc15;
    top: 25%;
    right: 25%;
    transform: rotate(45deg);
    animation: rotate 12s linear infinite;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #fde047;
    bottom: 25%;
    left: 10%;
    animation: float 7s ease-in-out infinite reverse;
}

.ring-1 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 20px solid #fef08a;
    background: transparent;
    top: 60%;
    left: 20%;
    animation: rotate 15s linear infinite reverse;
}

.circle-4 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: #facc15;
    top: -10%;
    right: -10%;
    animation: float 12s ease-in-out infinite;
}

.square-2 {
    width: 180px;
    height: 180px;
    background: #fde047;
    bottom: 10%;
    left: 5%;
    transform: rotate(30deg);
    animation: rotate 20s linear infinite;
}

.triangle-2 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 138px solid #fef08a;
    top: 30%;
    left: 15%;
    animation: float 9s ease-in-out infinite reverse;
}

.circle-5 {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: #fef08a;
    bottom: -15%;
    left: -5%;
    animation: float 8s ease-in-out infinite;
}

.square-3 {
    width: 140px;
    height: 140px;
    background: #fde047;
    top: 10%;
    right: 10%;
    transform: rotate(20deg);
    animation: rotate 18s linear infinite reverse;
}

/* ============================================
   Animations
   ============================================ */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
}

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

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   Marquee
   ============================================ */
.marquee-track {
    animation: marquee 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .font-serif {
    color: #3b0d08;
}

#navbar.scrolled .nav-link {
    color: #78716c;
}

#navbar.scrolled .nav-link:hover {
    color: #d84028;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    transition: color 0.3s ease;
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Progressive enhancement: only animate if JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 0;
        transform: translateY(40px);
    }
    
    .reveal-left {
        transform: translateX(-40px);
    }
    
    .reveal-right {
        transform: translateX(40px);
    }
    
    .reveal-up.visible,
    .reveal-left.visible,
    .reveal-right.visible {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* ============================================
   Button Hover Effects
   ============================================ */
a {
    transition: all 0.3s ease;
}

/* ============================================
   Image Hover
   ============================================ */
img {
    transition: transform 0.5s ease;
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background-color: #d84028;
    color: #fff8f0;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #c7321c;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .circle-2 {
        width: 120px;
        height: 120px;
    }
    
    .circle-3 {
        width: 80px;
        height: 80px;
    }
    
    .square-1 {
        width: 60px;
        height: 60px;
    }
    
    .triangle-1 {
        border-left: 30px solid transparent;
        border-right: 30px solid transparent;
        border-bottom: 52px solid #fde047;
    }
    
    .ring-1 {
        width: 100px;
        height: 100px;
        border-width: 10px;
    }
    
    .circle-4 {
        width: 250px;
        height: 250px;
    }
    
    .square-2 {
        width: 90px;
        height: 90px;
    }
    
    .triangle-2 {
        border-left: 40px solid transparent;
        border-right: 40px solid transparent;
        border-bottom: 69px solid #fef08a;
    }
    
    .circle-5 {
        width: 175px;
        height: 175px;
    }
    
    .square-3 {
        width: 70px;
        height: 70px;
    }
}
