/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #0a1628;
    color: #ffffff;
    overflow-x: hidden;
}

::selection {
    background: #34d4a8;
    color: #0a1628;
}

::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #34d4a8;
}

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

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

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

.nav-link:hover {
    color: #34d4a8 !important;
}

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

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

.mobile-menu-open #bar1 {
    transform: translateY(3px) rotate(45deg);
}

.mobile-menu-open #bar2 {
    opacity: 0;
}

.mobile-menu-open #bar3 {
    transform: translateY(-3px) rotate(-45deg);
}

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #34d4a8;
    transition: width 0.3s ease;
}

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

/* ===== HERO SHAPES ===== */
.hero-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-1 {
    top: 10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(52, 212, 168, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 8s ease-in-out infinite;
}

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

.shape-rect-1 {
    top: 25%;
    right: 5%;
    width: 120px;
    height: 120px;
    background: rgba(52, 212, 168, 0.06);
    border: 1px solid rgba(52, 212, 168, 0.15);
    border-radius: 24px;
    transform: rotate(45deg);
    animation: float-medium 6s ease-in-out infinite;
}

.shape-triangle {
    bottom: 20%;
    right: 15%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(52, 212, 168, 0.05);
    animation: float-medium 7s ease-in-out infinite reverse;
}

.shape-dots {
    top: 15%;
    left: 5%;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(52, 212, 168, 0.3) 1px, transparent 1px);
    background-size: 12px 12px;
    opacity: 0.5;
    animation: float-slow 9s ease-in-out infinite;
}

/* Hero animations */
.hero-badge {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero-badge {
    animation-delay: 0.1s;
}

h1 {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

.hero-float-card {
    animation: fadeInUp 0.8s ease forwards, float-medium 4s ease-in-out infinite;
    animation-delay: 0.5s, 2s;
    opacity: 0;
}

.hero-img-main {
    animation: fadeIn 1s ease forwards, float-slow 6s ease-in-out infinite;
    animation-delay: 0.4s, 3s;
    opacity: 0;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* ===== SERVICE CARDS ===== */
.service-card {
    position: relative;
    transform: translateY(0);
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(52, 212, 168, 0.1);
}

/* ===== PROPERTY CARDS ===== */
.property-card {
    transform: translateY(0);
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    border-color: rgba(52, 212, 168, 0.3) !important;
}

.property-card .relative h3 {
    transition: color 0.3s ease;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
    transform: translateY(0);
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* ===== ABOUT IMAGES ===== */
.about-img-1 {
    animation: fadeIn 1s ease forwards, float-slow 7s ease-in-out infinite;
    animation-delay: 0.3s, 2s;
    opacity: 0;
}

.about-img-2 {
    animation: fadeIn 1s ease forwards, float-medium 5s ease-in-out infinite reverse;
    animation-delay: 0.6s, 3s;
    opacity: 0;
}

/* ===== BACK TO TOP ===== */
#back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top.show {
    opacity: 1 !important;
    pointer-events: all !important;
}

#back-to-top.hide {
    opacity: 0 !important;
    pointer-events: none !important;
}

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

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

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

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

@keyframes scroll-down {
    0% { top: -16px; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 32px; opacity: 0; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 300px;
        height: 300px;
    }

    .shape-circle-2 {
        width: 200px;
        height: 200px;
    }

    .shape-rect-1 {
        width: 60px;
        height: 60px;
    }

    .shape-triangle {
        display: none;
    }

    .shape-dots {
        display: none;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2.75rem !important;
    }

    h1 span:nth-child(5) {
        font-size: 2rem !important;
    }
}
