/* ============================================
   The Stone Cottage — Custom Styles
   ============================================ */

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

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

body {
    min-height: 100vh;
}

/* ============================================
   Geometric Decorative Elements
   ============================================ */
.geo-circle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.geo-circle--1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(128, 0, 32, 0.04) 0%, transparent 70%);
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle--2 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    right: -50px;
    background: radial-gradient(circle, rgba(249, 197, 208, 0.15) 0%, transparent 70%);
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-triangle {
    position: fixed;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 60px 104px 60px;
    border-color: transparent transparent rgba(128, 0, 32, 0.03) transparent;
    top: 40%;
    right: 5%;
    pointer-events: none;
    z-index: 0;
    animation: rotate-slow 30s linear infinite;
    transform-origin: center center;
}

.geo-triangle::after {
    content: '';
    position: absolute;
    top: 20px;
    left: -40px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 69px 40px;
    border-color: transparent transparent rgba(128, 0, 32, 0.02) transparent;
}

.geo-rect {
    position: fixed;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(128, 0, 32, 0.05);
    border-radius: 16px;
    top: 60%;
    left: 3%;
    pointer-events: none;
    z-index: 0;
    transform: rotate(45deg);
    animation: float-slow 18s ease-in-out infinite;
}

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

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

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

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(128, 0, 32, 0.08);
}

.nav-logo-text {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

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

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

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

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

.mobile-link {
    position: relative;
    padding-left: 0;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-content {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero-image {
    animation: fadeInRight 0.8s ease 0.2s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   About Section
   ============================================ */
.about-images {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

.about-content {
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   Feature Cards
   ============================================ */
.feature-card {
    transform: translateY(0);
    transition: transform 0.3s ease, background 0.3s ease;
}

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

/* ============================================
   Scroll-triggered Animations
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   Form Styles
   ============================================ */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.1);
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .geo-circle--1 {
        width: 200px;
        height: 200px;
    }

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

    .geo-triangle {
        display: none;
    }

    .geo-rect {
        width: 40px;
        height: 40px;
        border-width: 1px;
    }

    /* Reduce hero image offset on mobile */
    .hero-image .absolute {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-images {
        margin-bottom: 2rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .geo-circle,
    .geo-triangle,
    .geo-rect {
        display: none;
    }

    #navbar {
        position: static;
        background: white;
    }
}
