/* ===================================
   TN Eiendommer - THEME-AWARE PREMIUM CSS
   Award-Winning Modern Design System
   Respects Admin Panel Color Themes
   =================================== */

/* ===================================
   ANIMATION KEYFRAMES
   =================================== */

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

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

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideInBlur {
    from { opacity: 0; filter: blur(10px); transform: translateY(30px); }
    to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px var(--glow-color, rgba(233, 69, 96, 0.4)); }
    50% { box-shadow: 0 0 40px var(--glow-color, rgba(233, 69, 96, 0.8)); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

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

@keyframes ripple {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(4); opacity: 0; }
}

@keyframes text-reveal {
    0% { clip-path: inset(0 100% 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}

@keyframes line-expand {
    from { width: 0; }
    to { width: 60px; }
}

@keyframes slow-zoom {
    from { transform: scale(1.1); }
    to { transform: scale(1.2); }
}

@keyframes morph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

/* ===================================
   BASE STYLES & THEME INTEGRATION
   =================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body, 'Manrope', sans-serif);
    color: var(--color-text, #2d3436);
    background: var(--color-bg, #ffffff);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography - Theme Aware */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-text-heading, #1a1a2e);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
    animation: line-expand 1s ease-out 0.5s both;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    font-size: 1.1rem;
    color: var(--color-text, #4a4a5a);
}

a {
    color: var(--color-accent, #6D8196);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-accent-light, #8BA0B4);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* ===================================
   PRELOADER - PREMIUM
   =================================== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark, linear-gradient(135deg, #1a1a2e 0%, #16213e 100%));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 2.5rem;
    color: var(--color-accent, #6D8196);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease both;
    font-weight: 700;
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--color-accent, #6D8196);
    border-radius: 50%;
    animation: rotate-slow 1s linear infinite;
}

.preloader-text {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 20px;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease 0.3s both;
}

/* ===================================
   NAVIGATION - GLASSMORPHISM THEME AWARE
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm, 0 4px 20px rgba(0,0,0,0.06));
    padding: 15px 0;
}

.navbar.scrolled .nav-link {
    color: var(--color-primary, #1a1a2e);
}

.navbar.scrolled .logo {
    color: var(--color-primary, #1a1a2e);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-link {
    font-family: var(--font-body, 'Manrope', sans-serif);
    font-size: 0.95rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

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

.nav-link:hover {
    color: var(--color-accent, #6D8196);
    transform: translateY(-2px);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.navbar.scrolled .lang-switcher {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.lang-switcher:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

.lang-btn {
    background: none;
    border: none;
    font-family: var(--font-body, 'Manrope', sans-serif);
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar.scrolled .lang-btn {
    color: var(--color-primary, #1a1a2e);
}

.lang-btn.active {
    background: var(--color-accent, #6D8196);
    color: white;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-toggle span {
    width: 28px;
    height: 2px;
    background: white;
    transition: all 0.4s ease;
    border-radius: 2px;
}

.navbar.scrolled .mobile-toggle span {
    background: var(--color-primary, #1a1a2e);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 1024px) {
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 40px;
        gap: 30px;
        transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        color: var(--color-primary, #1a1a2e);
        font-size: 1.2rem;
    }
}

/* ===================================
   BUTTONS - THEME AWARE
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-body, 'Manrope', sans-serif);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--color-text-on-accent, white);
    box-shadow: var(--shadow-accent, 0 10px 40px rgba(109, 129, 150, 0.3));
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

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

.btn-outline {
    background: transparent;
    color: var(--color-accent, #6D8196);
    border: 2px solid var(--color-accent, #6D8196);
}

.btn-outline:hover {
    background: var(--color-accent, #6D8196);
    color: white;
    transform: translateY(-3px);
}

.btn-lg {
    padding: 20px 40px;
    font-size: 1rem;
}

.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(5px);
}

/* ===================================
   HERO SECTION - CINEMATIC THEME AWARE
   =================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--gradient-dark);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    animation: slow-zoom 20s ease-in-out infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 40px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--color-accent, #6D8196);
    border-radius: 50px;
    color: var(--color-accent-light, #8BA0B4);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease both;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    animation: bounce-subtle 2s ease infinite;
}

.hero-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease 0.2s both;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero-title .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradient-shift 5s ease infinite;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.4s both;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* Hero Stats Bar */
.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 40px 0;
    z-index: 3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, transparent, var(--color-accent, #6D8196), transparent);
}

.stat-number {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--color-text, #4a4a5a);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 968px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-item:nth-child(2)::after {
        display: none;
    }
    
    .hero-stats {
        padding: 30px 0;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ===================================
   SECTIONS - MODERN SPACING
   =================================== */

.section {
    padding: 120px 0;
    position: relative;
}

.section-alt {
    background: var(--color-bg-alt, #f8f9fa);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(109, 129, 150, 0.1);
    border-radius: 50px;
    color: var(--color-accent, #6D8196);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-title {
    margin-bottom: 20px;
}

.section-description {
    font-size: 1.2rem;
    color: var(--color-text, #4a4a5a);
}

/* ===================================
   PROPERTY CARDS - LUXURY THEME AWARE
   =================================== */

.properties-section {
    padding: 120px 0;
    background: var(--color-bg, #ffffff);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
}

@media (max-width: 768px) {
    .properties-grid {
        grid-template-columns: 1fr;
    }
}

/* Premium Property Card */
.property-card {
    position: relative;
    background: var(--color-bg, #ffffff);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 4px 20px rgba(0,0,0,0.06));
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.property-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg, 0 25px 60px rgba(0,0,0,0.12));
}

.property-image-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.property-card:hover .property-image {
    transform: scale(1.15);
}

.property-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.property-card:hover .property-overlay {
    opacity: 0.9;
}

.property-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.badge {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

.badge-featured {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow-accent);
}

.badge-type {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-primary, #1a1a2e);
}

.badge-status {
    background: rgba(109, 129, 150, 0.9);
    color: white;
}

.property-price-tag {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    z-index: 2;
}

.property-price-tag .amount {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.property-price-tag .period {
    font-size: 0.8rem;
    color: var(--color-text, #4a4a5a);
    display: block;
}

.property-content {
    padding: 30px;
}

.property-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.4rem;
    color: var(--color-text-heading, #1a1a2e);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.property-card:hover .property-title {
    color: var(--color-accent, #6D8196);
}

.property-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text, #4a4a5a);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.property-location i {
    color: var(--color-accent, #6D8196);
}

.property-features {
    display: flex;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--color-text, #4a4a5a);
}

.property-feature i {
    color: var(--color-accent, #6D8196);
    font-size: 1rem;
}

.property-feature strong {
    color: var(--color-text-heading, #1a1a2e);
    font-weight: 600;
}

.property-cta {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    padding: 14px;
    background: var(--gradient-accent);
    color: white;
    text-align: center;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    text-decoration: none;
    box-shadow: var(--shadow-accent);
}

.property-card:hover .property-cta {
    opacity: 1;
    transform: translateY(0);
}

.property-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* ===================================
   FEATURES SECTION - MODERN
   =================================== */

.features-section {
    padding: 120px 0;
    background: var(--color-bg-alt, #f8f9fa);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(109, 129, 150, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    position: relative;
    padding: 40px;
    background: var(--color-bg, #ffffff);
    border-radius: 20px;
    box-shadow: var(--shadow-sm, 0 4px 20px rgba(0,0,0,0.06));
    transition: all 0.5s ease;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-accent);
    transition: width 0.5s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg, 0 25px 60px rgba(0,0,0,0.12));
}

.feature-card:hover::before {
    width: 100%;
    opacity: 0.05;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-accent);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon i {
    font-size: 1.8rem;
    color: white;
}

.feature-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--color-text-heading, #1a1a2e);
}

.feature-text {
    font-size: 1rem;
    color: var(--color-text, #4a4a5a);
    line-height: 1.8;
}

/* ===================================
   TESTIMONIALS - ELEGANT
   =================================== */

.testimonials-section {
    padding: 120px 0;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '"';
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 20rem;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.testimonial-text {
    font-size: 1.5rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-accent, #6D8196);
    box-shadow: var(--shadow-accent);
}

.author-info {
    text-align: left;
}

.author-name {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.2rem;
    color: white;
    margin-bottom: 5px;
}

.author-title {
    font-size: 0.9rem;
    color: var(--color-accent, #6D8196);
}

/* ===================================
   CTA SECTION - DRAMATIC
   =================================== */

.cta-section {
    padding: 120px 0;
    background: var(--gradient-accent);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.cta-text h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-text h2::after {
    background: white;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.cta-btn {
    padding: 20px 50px;
    background: white;
    color: var(--color-accent, #6D8196);
    font-size: 1.1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.cta-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

@media (max-width: 968px) {
    .cta-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta-btn {
        justify-self: center;
    }
}

/* ===================================
   FOOTER - PREMIUM THEME AWARE
   =================================== */

.footer {
    background: var(--gradient-dark);
    color: white;
    padding: 80px 0 40px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 2rem;
    color: var(--color-accent, #6D8196);
    margin-bottom: 20px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social a:hover {
    background: var(--color-accent, #6D8196);
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-accent);
}

.footer-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.2rem;
    color: white;
    margin-bottom: 25px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-accent, #6D8196);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--color-accent, #6D8196);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--color-accent, #6D8196);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ===================================
   SCROLL ANIMATIONS
   =================================== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-fade-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger animation delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ===================================
   UTILITY CLASSES
   =================================== */

.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.shadow-soft {
    box-shadow: var(--shadow-md, 0 10px 40px rgba(0,0,0,0.1));
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--color-bg-alt, #f0f0f0) 25%, var(--color-bg, #e0e0e0) 50%, var(--color-bg-alt, #f0f0f0) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

/* Smooth parallax */
.parallax {
    will-change: transform;
    transform: translateZ(0);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1200px) {
    .section {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .section-header h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 600px) {
    .hero-stats {
        padding: 20px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }

    .stat-number {
        font-size: 1.8rem;
    }
}

/* Nav Overlay Backdrop */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ===================================
   SPECIAL EFFECTS
   =================================== */

/* Glow effect on hover */
.glow-hover {
    transition: box-shadow 0.3s ease;
}

.glow-hover:hover {
    box-shadow: 0 0 30px var(--shadow-accent);
}

/* Text glow */
.text-glow {
    text-shadow: 0 0 20px rgba(109, 129, 150, 0.5);
}

/* Gradient border */
.gradient-border {
    position: relative;
    background: var(--color-bg, #ffffff);
    border-radius: 20px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-accent);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gradient-border:hover::before {
    opacity: 1;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-accent);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Particle container */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--color-accent, #6D8196);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 10s ease-in-out infinite;
}

/* Cursor follower */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--color-accent, #6D8196);
    border-radius: 50%;
    pointer-events: none;
    mix-blend-mode: difference;
    z-index: 9999;
    transition: transform 0.15s ease-out;
}
