/* Custom Styles for Phyllis Frantzis Real Estate Website */

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

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a1628;
    color: #ffffff;
}

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

::-webkit-scrollbar-thumb {
    background: #d4a017;
    border-radius: 4px;
}

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

/* Selection */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #ffffff;
}

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

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

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

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-up-delay {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-up-delayed {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes mobile-menu-in {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes mobile-menu-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

@keyframes line-in {
    from { width: 0; opacity: 0; }
    to { width: 1.5rem; opacity: 1; }
}

@keyframes line-in-delayed {
    from { width: 0; opacity: 0; }
    to { width: 1.5rem; opacity: 1; }
}

@keyframes line-in-short {
    from { width: 0; opacity: 0; }
    to { width: 1rem; opacity: 1; margin-left: auto; }
}

@keyframes line-out-top {
    from { transform: rotate(0deg); width: 1.5rem; }
    to { transform: rotate(45deg); width: 1.5rem; }
}

@keyframes line-out-middle {
    from { opacity: 1; }
    to { opacity: 0; width: 0; }
}

@keyframes line-out-bottom {
    from { transform: rotate(0deg); width: 1rem; margin-left: auto; }
    to { transform: rotate(-45deg); width: 1.5rem; margin-left: 0; }
}

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

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out forwards;
}

.animate-slide-up {
    animation: slide-up 0.8s ease-out forwards;
    opacity: 0;
}

.animate-slide-up-delay {
    animation: slide-up-delay 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-slide-up-delayed {
    animation: slide-up-delayed 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

/* Intersection Observer Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    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; }

/* 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, #d4a017, #e8b828);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

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

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

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: -10px;
    right: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 8rem;
    color: rgba(212, 160, 23, 0.05);
    line-height: 1;
    pointer-events: none;
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(212, 160, 23, 0.1) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Mobile Menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-menu-closed {
    opacity: 0 !important;
    pointer-events: none !important;
}

.mobile-link {
    animation: mobile-menu-in 0.4s ease forwards;
}

.mobile-link:nth-child(2) { animation-delay: 0.1s; }
.mobile-link:nth-child(3) { animation-delay: 0.2s; }
.mobile-link:nth-child(4) { animation-delay: 0.3s; }

/* Menu Lines */
.menu-line {
    animation: line-in 0.3s ease forwards, line-in-delayed 0.3s ease forwards, line-in-short 0.3s ease forwards;
}

.menu-open .menu-line:nth-child(1) {
    animation: line-out-top 0.3s ease forwards;
}

.menu-open .menu-line:nth-child(2) {
    animation: line-out-middle 0.3s ease forwards;
}

.menu-open .menu-line:nth-child(3) {
    animation: line-out-bottom 0.3s ease forwards;
}

/* Form Styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(212, 160, 23, 0.5);
}

select option {
    background: #0a1628;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .font-display {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    
    #hero h1 {
        font-size: clamp(2.5rem, 10vw, 4.5rem);
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .testimonial-card::after {
        font-size: 5rem;
        top: 5px;
        right: 10px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .service-card, .testimonial-card {
        break-inside: avoid;
    }
}
