/* Fonts */
@font-face {
    font-family: 'Cinzel';
    src: url('../assets/fonts/cinzel-v26-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Cinzel';
    src: url('../assets/fonts/cinzel-v26-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Cinzel';
    src: url('../assets/fonts/cinzel-v26-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../assets/fonts/playfair-display-v37-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('https://fonts.gstatic.com/s/inter/v13/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfMZhrib2Bg-4.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

:root {
    --color-bg: #f8f6f3;
    /* Default: Warm Alabaster */
    --color-bg-home: #f8f6f3;     /* Warm Alabaster */
    --color-bg-about: #ebe7e0;    /* Muted Linen (Darker) */
    --color-bg-portfolio: #e3dfd6;   /* Stone Beige (Darker) */
    --color-bg-opportunities: #dbe2db; /* Soft Sage (Distinct Green) */
    --color-bg-services: #d6dde3; /* Steel Mist (Distinct Blue) */
    --color-bg-contact: #ece9df;  /* Warm Sand */

    --color-surface: #FFFFFF;
    /* White */
    --color-surface-light: #f2f0ed;
    --color-text-primary: #1A1A1A;
    /* Charcoal */
    --color-text-secondary: #555555;
    /* Dark Grey */
    --color-accent: #a8a8a8;
    /* Brushed Silver */
    --color-accent-dark: #404040;
    --color-accent-dim: rgba(168, 168, 168, 0.1);

    --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 30px 80px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 40px rgba(168, 168, 168, 0.2);

    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Cinzel', serif;
    --font-accent: 'Playfair Display', serif;

    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: all 0.2s ease;
}

/* ========== DARK MODE ========== */
body.dark-mode {
    --color-bg: #1a1a1a;
    --color-bg-home: #1a1a1a;
    --color-bg-about: #1f1f1f;
    --color-bg-portfolio: #242424;
    --color-bg-opportunities: #1e2420;
    --color-bg-services: #1e2124;
    --color-bg-contact: #222220;
    
    --color-surface: #2a2a2a;
    --color-surface-light: #333333;
    --color-text-primary: #f5f5f5;
    --color-text-secondary: #b0b0b0;
    --color-accent: #c0c0c0;
    --color-accent-dark: #e0e0e0;
    --color-accent-dim: rgba(192, 192, 192, 0.1);
    
    --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 30px 80px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(192, 192, 192, 0.15);
}

body.dark-mode {
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.03) 1px, transparent 0);
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 1px solid var(--color-text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

.dark-mode-toggle i {
    font-size: 1.2rem;
    color: var(--color-text-primary);
    transition: transform 0.3s ease;
}

.dark-mode-toggle:hover i {
    transform: rotate(20deg);
}

.dark-mode-toggle .fa-sun {
    display: none;
}

.dark-mode-toggle .fa-moon {
    display: block;
}

body.dark-mode .dark-mode-toggle .fa-sun {
    display: block;
}

body.dark-mode .dark-mode-toggle .fa-moon {
    display: none;
}

/* ========== KEYFRAME ANIMATIONS ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(168, 168, 168, 0.2); }
    50% { box-shadow: 0 0 20px rgba(168, 168, 168, 0.4); }
}

@keyframes borderGlow {
    0%, 100% { border-color: rgba(168, 168, 168, 0.3); }
    50% { border-color: rgba(168, 168, 168, 0.8); }
}

@keyframes slideInFromLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes ripple {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(4); opacity: 0; }
}

/* ========== ANIMATION UTILITY CLASSES ========== */
.animate-fade-up { animation: fadeInUp 0.8s ease forwards; }
.animate-fade-down { animation: fadeInDown 0.8s ease forwards; }
.animate-fade-left { animation: fadeInLeft 0.8s ease forwards; }
.animate-fade-right { animation: fadeInRight 0.8s ease forwards; }
.animate-scale { animation: scaleIn 0.6s ease forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-glow { animation: glow 2s ease-in-out infinite; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    background-image: radial-gradient(circle at 2px 2px, rgba(0,0,0,0.01) 1px, transparent 0);
    background-size: 40px 40px;
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    max-width: 100vw;
}

/* Page Specific Backgrounds */
.page-home { --color-bg: var(--color-bg-home); }
.page-about { --color-bg: var(--color-bg-about); }
.page-portfolio { --color-bg: var(--color-bg-portfolio); }
.page-opportunities { --color-bg: var(--color-bg-opportunities); }
.page-services { --color-bg: var(--color-bg-services); }
.page-contact { --color-bg: var(--color-bg-contact); }

html {
    overflow-x: hidden;
    width: 100%;
}

/* Typography & Reveals */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--color-text-primary);
    line-height: 1.2;
    letter-spacing: 0.05em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 600;
    letter-spacing: 0.1em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 500;
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 500;
    letter-spacing: 0.08em;
}

p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

/* Accent Font - for elegant subtitles and taglines */
.font-accent {
    font-family: var(--font-accent);
    font-style: italic;
    letter-spacing: 0.02em;
}

/* Decorative text styles */
.text-elegant {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.03em;
}

.text-caps {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
}

.text-display {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 600;
    letter-spacing: 0.15em;
    line-height: 1.1;
}

/* Decorative line before/after text */
.text-decorated {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.text-decorated::before,
.text-decorated::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-text-primary), transparent);
}

.reveal-text-wrapper {
    overflow: hidden;
    position: relative;
    display: block;
}

.reveal-text {
    display: block;
    transform: translateY(110%);
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1), opacity 1.2s ease;
    opacity: 0;
}

.reveal-text.visible {
    transform: translateY(0);
    opacity: 1;
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    position: relative;
}

/* Animated underline for text links */
a:not(.btn):not(.property-card):not(.logo):not(.footer-logo)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-text-primary);
    transition: width 0.3s ease;
}

a:not(.btn):not(.property-card):not(.logo):not(.footer-logo):hover::after {
    width: 100%;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 10rem 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3rem;
    border: 1px solid var(--color-text-primary);
    /* Dark border for light theme */
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    cursor: pointer;
    background: transparent;
    transition: var(--transition), transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Shimmer effect on hover */
.btn::after {
    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.5s ease;
}

.btn:hover::after {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn:active {
    transform: translateY(-1px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--color-text-primary);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover {
    color: var(--color-surface);
    /* White text on hover */
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: var(--color-text-primary);
    color: var(--color-surface);
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-text-primary);
    border-color: var(--color-text-primary);
}

.btn-primary:hover::before {
    width: 0%;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: transparent;
    transition: all 0.4s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Restore spacing for logo and links */
}

/* Logo in nav restored and enlarged */
.logo {
    display: flex;
    align-items: center;
    z-index: 1002;
}

.logo img {
    height: 180px !important; /* Large desktop size */
    width: auto !important;
    transition: var(--transition);
    object-fit: contain;
}

nav.scrolled .logo img {
    height: 90px !important; /* Scrolled size */
}

/* Removed the massive hero logo as requested */
.hero-logo-img {
    display: none !important;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    text-transform: uppercase;
    font-size: 0.6rem; /* Reduced to match user's request for a smaller feel */
    letter-spacing: 0.12em; /* Adjusted letter spacing for the smaller size */
    position: relative;
    color: var(--color-text-primary);
    padding: 0.4rem 0;
    opacity: 0.8;
}

nav:not(.scrolled) .nav-links a {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--color-text-primary);
    transition: var(--transition);
}

/* White underline on dark hero */
nav:not(.scrolled) .nav-links a::after {
    background-color: #fff;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    cursor: pointer;
    z-index: 1002;
    margin-right: 1rem;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

nav:not(.scrolled) .mobile-menu-btn span {
    background-color: #fff;
}

/* Mobile Menu Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 80vh;
    background: var(--color-surface);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 6rem 0 3rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin: 1rem 0;
    overflow: hidden;
}

.mobile-nav-links a {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-text-primary);
    display: block;
    transform: translateY(100%);
    transition: transform 0.5s ease, color 0.3s ease, letter-spacing 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mobile-nav-links a:hover {
    color: var(--color-accent-dark);
    letter-spacing: 0.15em;
}

.mobile-nav.active .mobile-nav-links a {
    transform: translateY(0);
    transition-delay: 0.2s;
}

/* Hamburger Animation */
body.menu-open .mobile-menu-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background-color: var(--color-text-primary);
}

body.menu-open .mobile-menu-btn span:nth-child(2) {
    opacity: 0;
}

body.menu-open .mobile-menu-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background-color: var(--color-text-primary);
}

.theme-icon {
    width: 24px;
    height: 24px;
}

nav:not(.scrolled) .theme-icon {
    fill: #fff;
}

nav.scrolled .theme-icon {
    fill: var(--color-text-primary);
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover; /* Large and wide on PC */
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1.1);
}

body:not(.menu-open) .hero-bg.visible {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 0 2rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin-top: 15vh; /* Push text down */
}

.hero h1 {
    font-size: 5.5rem;
    margin-bottom: 2rem;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #fff;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    z-index: 2;
    opacity: 0.8;
}

.mouse {
    width: 20px;
    height: 35px;
    border: 2px solid #fff;
    border-radius: 10px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    transform: translateX(-50%);
    animation: mouseWheel 2s infinite;
}

@keyframes mouseWheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* Page Headers (Small Hero) */
.page-header {
    height: 50vh; /* Reduced from 70vh to be more compact */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: #000;
    padding-top: 10vh; /* Push content down */
}

.page-header h1 {
    font-size: 3.5rem; /* Slightly smaller for sub-pages */
    position: relative;
    z-index: 2;
    text-align: center;
    letter-spacing: 0.1em;
    color: #fff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Sections */
section {
    position: relative;
    z-index: 1;
    background: var(--color-bg);
}

.section-header {
    margin-bottom: 5rem;
    text-align: left;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    padding-left: 2rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--color-text-secondary);
    max-width: 600px;
    font-size: 1.1rem;
}

/* Cards & Grid */
.grid {
    display: grid;
    gap: 3rem;
    /* Increased gap */
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.service-card {
    background: var(--color-surface);
    padding: 4rem 2rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: var(--shadow-soft);
    transition: var(--transition), box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
}

/* Animated gradient border on hover */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    transition: border-color 0.4s ease;
    pointer-events: none;
}

.service-card:hover::after {
    border-color: rgba(255, 255, 255, 0.3);
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.85));
    transition: var(--transition);
    z-index: 1;
}

.service-card-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.service-card-content h3,
.service-card-content p {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.service-card:hover .service-card-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.75));
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.service-card p {
    position: relative;
    z-index: 2;
}

.service-card .num {
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.15);
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: var(--font-heading);
    z-index: 1;
    transition: var(--transition-slow);
}

.service-card:hover .num {
    transform: translateY(-10px) scale(1.1);
    color: rgba(255, 255, 255, 0.25);
}

/* Properties Grid */
.property-card {
    position: relative;
    height: 500px;
    overflow: hidden;
    cursor: pointer;
    background: var(--color-bg);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: var(--transition), box-shadow 0.4s ease;
}

.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
    pointer-events: none;
}

.property-card:hover::before {
    opacity: 1;
}

.property-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
}

.property-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    opacity: 1;
    /* Was 0.9 in light but full opacity generally looks better unless hover */
}

.property-card:hover .property-img {
    transform: scale(1.1);
    opacity: 0.9;
}

.property-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    /* Keep dark for readability of white text */
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.property-info h3,
.property-info p {
    color: #fff;
}

.property-card:hover .property-info {
    transform: translateY(0);
    opacity: 1;
}

/* Contact Form Premium */
.form-wrapper {
    background: var(--color-surface);
    padding: 4rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.form-group {
    margin-bottom: 2.5rem;
    position: relative;
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    font-size: 1.1rem;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-text-primary);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-group:focus-within::after {
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: transparent;
}

.form-input::placeholder {
    color: rgba(0, 0, 0, 0.3);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    margin-top: 1.5rem;
    text-align: center;
    padding: 0 1rem;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    padding: 2rem;
    transition: all 0.3s ease;
    user-select: none;
}

.lightbox-nav:hover {
    color: var(--color-text-primary);
    background: rgba(0, 0, 0, 0.05);
    /* subtle bg on hover */
}

/* Contact Link Cards */
.contact-links-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-link-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--color-surface);
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.contact-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 168, 168, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-link-card:hover::before {
    left: 100%;
}

.contact-link-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-hover);
}

.contact-link-card h5 {
    margin-bottom: 0.2rem;
    color: var(--color-text-primary);
    letter-spacing: 0.05em;
}

.contact-link-card p,
.contact-link-card span {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin: 0;
}

/* For the grid items (Instagram/Threads) */
.contact-link-card.grid-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
}

.contact-link-card.grid-item span {
    color: var(--color-text-primary);
}

.contact-link-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-accent);
}

[data-theme="dark"] .contact-link-card:hover {
    background: rgba(255, 255, 255, 0.08);
}



.lightbox-nav:hover {
    color: var(--color-text-primary);
    background: rgba(0, 0, 0, 0.05);
}

.lightbox-prev {
    left: 0;
}

.lightbox-next {
    right: 0;
}

/* Footer */
footer {
    background-color: var(--color-bg);
    padding: 4rem 0 2rem;
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    color: var(--color-text-primary);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0.5;
}

footer h4 {
    color: var(--color-text-primary);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.8rem;
    color: var(--color-text-secondary);
}

footer a {
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--color-text-primary);
}

footer p {
    color: var(--color-text-secondary);
}

footer .footer-logo img {
    filter: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo img {
    height: 90px;
    width: auto;
    margin-bottom: 2rem;
    opacity: 1;
    object-fit: contain;
    filter: none; /* Keep black logo */
    transition: transform 0.4s ease, filter 0.4s ease;
}

.footer-logo:hover img {
    transform: scale(1.05);
}

.footer-desc {
    font-size: 1rem;
    max-width: 400px;
    line-height: 1.8;
}

.copyright {
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Utility Animations */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
}

.split-bg {
    height: 100%;
    min-height: 600px;
    background-size: cover;
    background-position: center;
}

.split-content {
    padding: 6rem;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 4rem;
    box-shadow: var(--shadow-soft);
}

/* Desktop Hero Logo */
@media (min-width: 769px) {
    .hero {
        padding-top: 0;
    }

    .page-header {
        padding-top: 0;
    }

    .hero-content {
        justify-content: center;
    }

    .hero .hero-content {
        padding-top: 0; /* Removed deep padding since massive logo is gone */
    }

    .page-header .hero-content {
        padding-top: 0; /* Rely on flexbox centering */
    }

    .hero-content .hero-logo-img {
        display: none !important; 
    }

    .hero h1 {
        font-size: 5rem !important; /* Massive typography to match the giant logo */
        margin-bottom: 2.5rem !important;
        letter-spacing: 0.15em !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    * {
        max-width: 100%;
    }

    .hero {
        background-color: var(--color-bg);
        height: 70vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        padding-top: 18vh !important; /* Reduced from 25vh to pull logo higher */
        overflow: visible !important;
    }

    .page-header {
        background-color: var(--color-bg);
        height: 40vh !important; /* Significantly shorter for mobile subpages */
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        padding-top: 10vh !important;
        overflow: visible !important;
    }

    .hero-bg {
        background-size: contain; /* Fit on mobile */
        background-position: center top; /* Push building up to the top */
        height: 100%;
        width: 100%;
    }

    .hero-overlay {
        background: transparent; /* Remove dark overlay on mobile to prevent black tint */
    }

    .hero h1 {
        color: var(--color-text-primary);
        text-shadow: none;
        font-size: 2.2rem;
        margin-bottom: 1rem;
        line-height: 1.2;
        font-weight: 500;
        letter-spacing: 0.05em;
    }

    .hero-content {
        margin-top: 12vh; /* Push text down on mobile */
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        position: relative;
        z-index: 5;
        padding: 0 1.5rem;
    }

    .hero-content .hero-logo-img {
        display: none !important; 
    }

    .hero .btn {
        margin-top: 0.5rem; /* Reduced from 1rem to push button up */
    }

    .container {
        padding: 0 1.5rem;
        width: 100%;
        max-width: 100%;
    }

    .section-padding {
        padding: 5rem 0;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Mobile Nav Layout: Hamburger Left, Logo Center */
    .nav-container {
        display: flex;
        justify-content: center; /* Center everything */
        align-items: center;
        padding: 0;
        height: 80px; /* Smaller container */
        position: relative;
    }

    .mobile-menu-btn {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        flex-shrink: 0;
    }

    .logo {
        display: flex !important;
        justify-content: center;
        align-items: center;
        margin: 0;
        margin-top: -40px; /* Push logo up more */
    }

    .logo img {
        height: 65px !important; /* Smaller logo */
        width: auto !important;
        transition: height 0.3s ease, transform 0.3s ease;
    }

    /* Bigger logo when menu is open */
    body.menu-open .logo {
        margin-top: 0;
    }

    body.menu-open .logo img {
        height: 130px !important; /* Bigger when menu open */
    }

    /* Hide nav-links on mobile */
    .nav-links {
        display: none !important;
    }

    nav {
        padding: 0.5rem 0 !important;
    }

    nav.scrolled {
        padding: 0.3rem 0 !important;
    }

    nav.scrolled .nav-container {
        height: 65px; /* Smaller container when scrolled */
    }

    nav.scrolled .logo img {
        height: 55px !important; /* Smaller logo when scrolled */
    }

    .section-header {
        padding-left: 1rem;
        padding-right: 1rem;
        margin-bottom: 3rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .grid-2,
    .grid-3,
    .split-layout {
        grid-template-columns: 1fr;
    }

    .grid,
    .grid-2,
    .grid-3 {
        gap: 1.5rem;
    }

    .about-teaser-container {
        height: 600px;
    }

    .about-teaser-img {
        height: 100%;
        object-fit: cover;
    }

    @media (max-width: 768px) {
        .about-teaser-container {
            height: auto !important;
            min-height: 400px;
        }

        .about-teaser-overlay {
            padding: 2rem !important;
            background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%) !important;
            align-items: flex-end !important;
        }

        .about-teaser-title {
            font-size: 2rem !important;
            margin-bottom: 1rem !important;
        }

        .about-teaser-desc {
            font-size: 1rem !important;
            margin-bottom: 1.5rem !important;
        }

        .about-teaser-btn {
            padding: 0.8rem 1.5rem !important;
        }
    }

    img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    .split-content {
        padding: 3rem 1.5rem;
    }

    .split-bg {
        min-height: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 2rem;
    }

    .footer-logo {
        text-align: center;
    }

    .footer-logo img {
        height: 100px; /* Increased from 55px for better visibility */
        width: auto;
        margin: 0 auto 1.5rem;
        display: block;
        object-fit: contain;
        max-width: 280px; /* Increased from 200px */
    }

    .footer-col {
        text-align: center;
    }

    .footer-col h4 {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        letter-spacing: 0.15em;
        color: var(--color-text-primary);
    }

    .footer-col ul {
        padding: 0;
        margin: 0;
    }

    .footer-col ul li {
        margin: 0.75rem 0;
        font-size: 0.95rem;
    }

    .footer-desc {
        max-width: 100%;
        margin: 0 auto;
        font-size: 0.95rem;
        line-height: 1.7;
        padding: 0 1rem;
    }

    .copyright {
        text-align: center;
        font-size: 0.75rem;
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .service-card {
        padding: 3rem 1.5rem;
        min-height: 350px;
    }

    .service-card-content h3 {
        font-size: 1.5rem;
    }

    .service-card .num {
        font-size: 4rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    .property-card {
        width: 100%;
        max-width: 100%;
    }

    /* Fix for social grid on mobile */
    .grid-social {
        grid-template-columns: 1fr;
    }

    /* Fix for about section grid on mobile */
    .grid-about {
        grid-template-columns: 1fr !important;
    }

    /* Make property info always visible on mobile */
    .property-info {
        opacity: 1;
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
        padding-bottom: 2rem;
    }

    .btn {
        padding: 1rem 2rem;
        font-size: 0.75rem;
        width: auto;
        white-space: nowrap;
    }

    .form-wrapper {
        padding: 2rem 1.5rem;
    }

    /* Ensure section headers stack on mobile */
    .section-header[style*="display: flex"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1.5rem !important;
    }

    .section-header[style*="display: flex"] .btn {
        align-self: flex-start;
    }

    /* Prevent text overflow on mobile */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Contact page grid fix */
    .grid.grid-2[style*="gap: 5rem"] {
        gap: 3rem !important;
    }

    /* Ensure all text is readable */
    p, span, li {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Fix contact link cards on mobile */
    .contact-link-card {
        flex-direction: row;
        text-align: left;
    }

    /* Map container fix */
    iframe {
        max-width: 100%;
    }

    /* Page header text on mobile */
    .page-header h1 {
        font-size: 2rem !important;
        padding: 0 1rem;
    }

    /* Ensure property cards don't overflow */
    .property-card {
        height: 350px;
    }

    /* Service card text fix */
    .service-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* About page heading sizes */
    .section-header h2[style*="font-size: 3.5rem"] {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    /* Fix inline styled headings */
    h2[style*="font-size"] {
        font-size: 1.8rem !important;
    }

    /* Ensure overflow hidden on body */
    body {
        overflow-x: hidden !important;
    }

    /* Fix hero content alignment */
    .hero-content h1 {
        padding: 0 1rem;
    }
}

/* Client Opportunities - Modern Cards */
.opportunity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.opportunity-card {
    background: var(--color-surface);
    padding: 4rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.opportunity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-text-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.opportunity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.opportunity-card:hover::before {
    transform: scaleX(1);
}

.opportunity-icon {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.opportunity-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    color: var(--color-text-primary);
}

.opportunity-card p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: left;
    /* Reset from any global justify */
}

.opportunity-card .btn-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--color-text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--transition);
}

.opportunity-card .btn-link i {
    transition: transform 0.3s ease;
}

.opportunity-card:hover .btn-link i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .opportunity-grid {
        grid-template-columns: 1fr;
    }

    .opportunity-card {
        padding: 2.5rem 1.5rem;
    }
}

/* Available Units Section */
.available-units-section {
    background: var(--color-surface);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.checklist {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    color: var(--color-text-primary);
}

.checklist i {
    color: var(--color-accent);
    /* Greenish or accent color */
}

.available-units-note {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--color-text-secondary);
    font-style: italic;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.info-block h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.info-block p {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
    text-align: justify;
}

@media (max-width: 768px) {
    .checklist {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .tabs-container {
        flex-direction: column;
        gap: 1rem;
    }

    .tab-btn {
        width: 100%;
        text-align: center;
    }
}

/* Available Units Compact Design */
.available-units-section .container {
    max-width: 800px !important;
    margin: 0 auto;
}

/* Tabs Component */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 2rem;
    background: transparent;
    border: 1px solid var(--color-text-primary);
    color: var(--color-text-primary);
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.1em;
}

.tab-btn.active {
    background: var(--color-text-primary);
    color: var(--color-surface);
}

.tab-content {
    display: none;
    animation: fadeUp 0.5s ease forwards;
}

.tab-content.active {
    display: block;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
}

/* New classes to replace inline styles */
.grid-social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.grid-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Property Modal Styles */
.property-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.property-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1;
}

.modal-content {
    background: var(--color-surface);
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    z-index: 2;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalFadeUp 0.3s ease-out;
}

@keyframes modalFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.modal-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.modal-info {
    padding: 2rem;
    text-align: center;
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
    font-family: var(--font-heading);
}

.modal-price {
    font-size: 1.1rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.modal-description {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.modal-contact-btn {
    width: 100%;
    justify-content: center;
}

@media (max-width: 768px) {
    .grid-about {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image-container {
        order: -1; /* Image appears first on mobile */
    }

    .modal-img {
        height: 200px;
    }

    .modal-info {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }
}