/* ===== Custom Styles for Historic Frankfort Properties ===== */

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

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

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

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

.shape-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -150px;
    border-radius: 50%;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    bottom: 10%;
    left: -100px;
    border-radius: 50%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.2) 0%, transparent 70%);
    top: 40%;
    right: 10%;
    border-radius: 50%;
    animation: float-medium 10s ease-in-out infinite;
}

.shape-circle-4 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    bottom: -200px;
    left: -100px;
    border-radius: 50%;
    animation: float-slow 18s ease-in-out infinite;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(45, 212, 191, 0.1);
    top: 20%;
    left: 5%;
    transform: rotate(15deg);
    animation: float-medium 12s ease-in-out infinite;
}

.shape-triangle-2 {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 69px solid rgba(255, 255, 255, 0.08);
    bottom: 30%;
    right: 8%;
    transform: rotate(-20deg);
    animation: float-medium 14s ease-in-out infinite reverse;
}

.shape-rect-1 {
    width: 120px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    top: 30%;
    right: 5%;
    transform: rotate(30deg);
    animation: float-slow 16s ease-in-out infinite;
}

.shape-diamond-1 {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(45, 212, 191, 0.15);
    bottom: 20%;
    left: 8%;
    transform: rotate(45deg);
    animation: float-medium 11s ease-in-out infinite;
}

/* ===== Animations ===== */
@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(15px, -20px) rotate(3deg); }
    66% { transform: translate(-10px, 15px) rotate(-2deg); }
}

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

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.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; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== Navbar ===== */
.nav-link {
    position: relative;
}

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

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

/* Mobile menu link styles */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ===== 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, #0d9488, #2dd4bf);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

/* ===== Buttons ===== */
.btn-primary {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(13, 148, 136, 0.3);
}

.btn-secondary {
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* ===== Form Styles ===== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* ===== Custom Select Arrow ===== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    appearance: none;
    -webkit-appearance: none;
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    position: relative;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0d9488, #2dd4bf);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover::after {
    opacity: 1;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
    
    .shape-circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .shape-circle-2 {
        width: 200px;
        height: 200px;
    }
    
    .shape-triangle-1 {
        border-left: 30px solid transparent;
        border-right: 30px solid transparent;
        border-bottom: 52px solid rgba(45, 212, 191, 0.1);
    }
    
    .shape-rect-1 {
        width: 60px;
        height: 40px;
    }
    
    .shape-diamond-1 {
        width: 40px;
        height: 40px;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    .geo-shape,
    .shape-circle-1,
    .shape-circle-2,
    .shape-circle-3,
    .shape-circle-4,
    .shape-triangle-1,
    .shape-triangle-2,
    .shape-rect-1,
    .shape-diamond-1 {
        animation: none;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}
