/* ===== Custom Styles for Cornfield Point Beach House ===== */

:root {
    --tc-400: #e1634d;
    --tc-600: #b83520;
    --oc-400: #38bdf8;
    --oc-600: #0284c7;
    --sc-400: #edc96b;
    --sc-600: #c79739;
    --gc-400: #22c55e;
    --gc-600: #16a34a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* ===== Geometric Shapes ===== */
.geometric-shape {
    position: absolute;
    opacity: 0.1;
    pointer-events: none;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--sand-400);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: var(--ocean-300);
    bottom: 10%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 170px solid var(--sand-300);
    top: 20%;
    left: 10%;
    animation: rotate 12s linear infinite;
}

.shape-square {
    width: 120px;
    height: 120px;
    background: var(--ocean-200);
    border-radius: 20px;
    bottom: 15%;
    right: 15%;
    animation: float 7s ease-in-out infinite;
    transform: rotate(45deg);
}

.shape-ring {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 30px solid var(--sand-200);
    top: 40%;
    right: 5%;
    animation: float 9s ease-in-out infinite reverse;
}

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

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

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

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

/* ===== Navbar ===== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(184, 53, 32, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

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

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

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

::-webkit-scrollbar-track {
    background: var(--sand-100);
}

::-webkit-scrollbar-thumb {
    background: var(--tc-400);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--tc-500);
}

/* ===== Focus Styles ===== */
input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: none;
}

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

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

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    .geometric-shape,
    img,
    a,
    button {
        animation: none !important;
        transition: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .shape-circle-1,
    .shape-circle-2,
    .shape-triangle,
    .shape-square,
    .shape-ring {
        display: none;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
    
    #hero p {
        font-size: 1.1rem;
    }
    
    .grid lg\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .grid md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid lg\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid lg\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}
