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

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

body {
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #fefdf8;
}
::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Selection */
::selection {
    background: #065f46;
    color: #fefdf8;
}

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

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

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

/* Mobile Nav Links */
.mobile-nav-link {
    position: relative;
}

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

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-headline {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-desc {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-cta {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

.hero-float-img {
    animation: fadeIn 1s ease forwards, float 6s ease-in-out infinite;
    animation-delay: 1.2s, 1.2s;
}

/* Scroll Reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-on-scroll.revealed:nth-child(1) { transition-delay: 0s; }
.reveal-on-scroll.revealed:nth-child(2) { transition-delay: 0.1s; }
.reveal-on-scroll.revealed:nth-child(3) { transition-delay: 0.2s; }
.reveal-on-scroll.revealed:nth-child(4) { transition-delay: 0.3s; }

/* Mobile Menu */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* Mobile Menu Icon Animation */
#mobileMenu.open #line1 {
    transform: rotate(45deg) translate(3px, 3px);
}

#mobileMenu.open #line2 {
    opacity: 0;
    transform: translateX(10px);
}

#mobileMenu.open #line3 {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Navbar Scroll State */
.nav-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(6, 95, 70, 0.08);
}

.nav-scrolled .nav-logo-text {
    color: #065f46 !important;
}

.nav-scrolled .nav-subtext {
    color: #047857 !important;
}

.nav-scrolled .nav-link {
    color: #065f46 !important;
    opacity: 0.7;
}

.nav-scrolled .nav-link:hover {
    opacity: 1;
}

.nav-scrolled #menuIcon span {
    background: #065f46 !important;
}

/* Property Card Hover */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Form Focus States */
input:focus,
textarea:focus {
    outline: none;
}

input:focus ~ label,
textarea:focus ~ label {
    color: #065f46;
}

/* Smooth Image Loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Print Styles */
@media print {
    nav, #contact, footer {
        display: none;
    }
    body {
        background: white;
    }
}
