:root {
  --primary: #1c2c3d; 
  --primary-2: #1c2c3d;
  --accent: #2563eb;
  --text: #0f172a;
  --text-muted: #475569;
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --card: #ffffff;
  --border: #e2e8f0;
  --overlay: rgba(10, 15, 25, 0.55);
  --shadow: 0 10px 25px -8px rgba(0,0,0,.2);
  --shadow-lg: 0 28px 80px -30px rgba(2,6,23,.45);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; scroll-behavior: smooth; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

@keyframes breathe-hero { 
  0%, 100% { box-shadow: 0 10px 30px -10px rgba(29,78,216,.5), 0 0 25px rgba(255,255,255,.3); } 
  50% { box-shadow: 0 10px 30px -10px rgba(29,78,216,.5), 0 0 40px rgba(255,255,255,.5); } 
}
@keyframes breathe-nav { 
  0%, 100% { box-shadow: 0 10px 30px -12px rgba(29,78,216,.5), 0 0 20px rgba(255,255,255,.25); } 
  50% { box-shadow: 0 10px 30px -12px rgba(29,78,216,.5), 0 0 35px rgba(255,255,255,.45); } 
}

.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,.06); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); border-bottom: 1px solid rgba(255,255,255,.15); transition: all .3s var(--ease); }
.navbar.scrolled { background: rgba(255,255,255,.9); border-bottom: 1px solid var(--border); }
.navbar.hero-active { background: rgba(0,0,0,.28); border-bottom: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%); }
.navbar.hero-active .nav-brand { color: #fff; }
.navbar.hero-active .brand-accent { color: rgba(255,255,255,0.9); }
.navbar.hero-active .nav-link { color: #fff; }
.navbar.hero-active .nav-link::after { background: #fff; }
.navbar.hero-active .nav-toggle { color: #fff; }
.nav-container { display:flex; align-items:center; justify-content:space-between; padding: 1rem 20px; }
.nav-brand { font-weight:800; font-size:1.25rem; text-decoration:none; color: var(--text); letter-spacing: .2px; }
.brand-accent { color: var(--primary); }
.nav-menu { display:flex; gap:2rem; align-items:center; }
.nav-link { text-decoration:none; color: var(--text); font-weight:500; position:relative; }
.nav-link::after { content:''; position:absolute; left:0; bottom:-6px; height:2px; width:0; background: var(--primary); transition: width .25s var(--ease); }
.nav-link:hover::after { width:100%; }
.nav-cta { text-decoration:none; color:#fff; background: var(--primary); padding:.65rem 1.25rem; border-radius:10px; font-weight:700; box-shadow: 0 10px 30px -12px rgba(29,78,216,.5), 0 0 20px rgba(255,255,255,.25); transition: transform .2s var(--ease); animation: breathe-nav 3s ease-in-out infinite; }
.nav-cta:hover { transform: translateY(-2px); animation: none; box-shadow: 0 20px 50px -18px rgba(29,78,216,.6), 0 0 30px rgba(255,255,255,.4); }
.nav-toggle { display:none; flex-direction:column; gap:6px; background:transparent; border:0; cursor:pointer; padding:10px; z-index: 1001; border-radius: 8px; transition: background 0.2s ease; }
.nav-toggle:hover { background: rgba(0,0,0,0.05); }
.nav-toggle:active { background: rgba(0,0,0,0.1); }
.nav-toggle span { width:28px; height:3px; background: currentColor; display:block; transition: all .3s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 2px; }

.hero { position: relative; min-height: 100vh; display:flex; align-items:center; justify-content:center; padding: 120px 40px 60px; background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.75)), url('../Assets/Calgary_City.jpg') center/cover no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; background: rgba(28,44,61,0.4); z-index: 1; }
.hero-wrapper { position: relative; z-index: 2; display:grid; grid-template-columns: minmax(280px, 420px) 1fr; align-items:center; gap: clamp(24px, 5vw, 80px); max-width: 1400px; width: 100%; margin: 0 auto; padding: 0 40px; }
.hero-glow { display:none; }
.hero-content { position:relative; z-index:2; padding: 20px 40px; max-width: 720px; margin: 0 auto; }
.hero-title { font-weight:900; letter-spacing:-.02em; font-size: clamp(2.4rem, 6.5vw, 4.8rem); margin-bottom:.6rem; line-height: 1.1; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero-subtitle { font-size: clamp(1.1rem, 2.8vw, 1.5rem); margin-bottom:1rem; color: rgba(255,255,255,0.9); opacity:.95; font-weight: 500; text-shadow: 0 1px 10px rgba(0,0,0,0.3); }
.hero-description { font-size: 1.1rem; color: rgba(255,255,255,0.85); margin-bottom: 1.75rem; max-width: 54ch; line-height: 1.7; text-shadow: 0 1px 10px rgba(0,0,0,0.3); }
.hero-actions { display:flex; gap:1rem; flex-wrap:wrap; margin-bottom: 1.5rem; }
.btn-primary { display:inline-block; padding: 1rem 1.75rem; background: var(--primary); color:white; border-radius: 12px; text-decoration:none; font-weight:700; border:0; cursor:pointer; box-shadow: 0 10px 30px -10px rgba(29,78,216,.5), 0 0 25px rgba(255,255,255,.3); position:relative; overflow:hidden; transition: transform .2s var(--ease); font-size: 1.05rem; animation: breathe-hero 3s ease-in-out infinite; }
.btn-primary::before { content:''; position:absolute; inset:0; background: transparent; transform: none; transition: none; }
.btn-primary:hover { transform: translateY(-2px); animation: none; box-shadow: 0 22px 60px -20px rgba(29,78,216,.65), 0 0 45px rgba(255,255,255,.55); }
.btn-primary:hover::before { transform: translateX(100%); }
.btn-secondary { display:inline-block; padding: 1rem 1.75rem; border-radius: 12px; text-decoration:none; font-weight:700; border: 2px solid var(--primary); color: var(--primary); background:#fff; font-size: 1.05rem; transition: transform .2s var(--ease), background .2s var(--ease); }
.btn-secondary:hover { transform: translateY(-2px); background: rgba(29,78,216,.05); }
.hero-badges { display:flex; flex-wrap:wrap; gap:.65rem; margin-top: .75rem; }
.hero-badges span { border:1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.12); color: rgba(255,255,255,0.95); font-weight:600; border-radius: 999px; padding: .4rem .85rem; font-size:.9rem; backdrop-filter: blur(8px); }
.hero-aside { position:relative; z-index:2; padding: 20px; display:flex; justify-content:center; align-items:center; }
.portrait-card { width: 100%; max-width: 420px; border: 1px solid rgba(255,255,255,.15); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 32px 90px -20px rgba(0,0,0,.65); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.portrait-card:hover { transform: translateY(-4px); box-shadow: 0 32px 90px -32px rgba(2,6,23,.55); }
.portrait-card img { width: 100%; height: 480px; object-fit: cover; display: block; }
.portrait-caption { text-align: center; padding: 14px 18px; font-weight: 700; color: var(--primary); border-top: 1px solid var(--border); background: #fff; font-size: 1.05rem; letter-spacing: .3px; }

.section-header { text-align:center; margin-bottom: 3.25rem; }
.section-title { font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-weight:900; color: var(--text); margin-bottom:.5rem; letter-spacing:-.01em; }
.section-subtitle { color: var(--text-muted); max-width: 640px; margin: 0 auto; }

.listings { padding: 96px 0; background: var(--bg-alt); }
.listings-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.listing-card { position:relative; background:#fff; border:1px solid var(--border); border-radius: 16px; overflow:hidden; box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .3s var(--ease); }
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.listing-card img { width:100%; height:220px; object-fit:cover; }
.listing-info { padding: 1rem; display:flex; flex-direction:column; gap:.4rem; }
.listing-info h3 { font-size:1.2rem; }
.listing-info p { color: var(--text-muted); }
.listing-meta { display:flex; gap:.6rem; flex-wrap:wrap; color: var(--text-muted); font-weight:600; font-size:.9rem; }
.badge { position:absolute; top:12px; left:12px; background: var(--primary); color:#fff; font-weight:700; border-radius: 999px; padding: .3rem .65rem; font-size:.75rem; box-shadow: 0 10px 30px -12px rgba(29,78,216,.5); }

.about { padding: 96px 0; background: var(--card); }
.about-content { display:grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items:center; }
.about-text .lead { font-size:1.15rem; color: var(--text); margin-bottom: 1rem; font-weight:500; }
.about-text p { color: var(--text-muted); margin-bottom: 1.5rem; }
.stats-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 1.5rem; }
.stat { text-align:center; opacity: 1; transform: translateY(0); }
.stat h3 { color: var(--primary); font-size:2.2rem; margin-bottom:.25rem; }
.stat p { color: var(--text-muted); font-size:.9rem; }
.about-image img { width:100%; border-radius: 14px; box-shadow: var(--shadow-lg); }

.testimonials { padding: 96px 0; background: var(--card); position:relative; }
.testimonial-carousel-container { position:relative; width: 90%; max-width: 1200px; margin: 0 auto; display:flex; justify-content:center; align-items:center; height: 400px; }
.desktop-carousel { display:flex; }
.mobile-carousel { display:none; }
.testimonial-card { position:absolute; width: 440px; min-height:240px; background:#fff; border:1px solid var(--border); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); display:flex; flex-direction:column; gap: 12px; transition: all .6s var(--ease); }
.testimonial-card.left { transform: translateX(-480px) scale(.84); filter: blur(2px); opacity:.65; z-index:1; }
.testimonial-card.center { transform: translateX(0) scale(1.06); filter:none; opacity:1; z-index:2; box-shadow: var(--shadow-lg); }
.testimonial-card.right { transform: translateX(480px) scale(.84); filter: blur(2px); opacity:.65; z-index:1; }
.testimonial-header { display:flex; align-items:center; gap: 14px; }
.testimonial-avatar { width:48px; height:48px; border-radius:50%; background: var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; }
.testimonial-info h4 { font-size:1.05rem; margin-bottom:2px; }
.testimonial-info span { color: var(--text-muted); font-size:.9rem; }
.stars { color: #f59e0b; letter-spacing: 2px; }
.testimonial-text { color: var(--text); font-style: italic; }
.carousel-controls { position:absolute; bottom: -88px; left:50%; transform: translateX(-50%); display:flex; gap:40px; }
.carousel-btn { width:56px; height:56px; border-radius:50%; border: 1.5px solid rgba(29,78,216,.35); background: rgba(255,255,255,.9); cursor:pointer; font-size:1.6rem; display:flex; align-items:center; justify-content:center; transition: all .3s var(--ease); }
.carousel-btn:hover { transform: translateY(-2px); background:#fff; box-shadow: 0 10px 30px -12px rgba(29,78,216,.5); }
.mobile-carousel { position: relative; }
.mobile-carousel .testimonial-card { position: absolute; top: 0; left: 50%; width: 100%; max-width: 400px; opacity: 0; transform: translateX(-50%) translateX(100%); transition: all 0.5s ease; }
.mobile-carousel .testimonial-card.active { opacity: 1; transform: translateX(-50%) translateX(0); z-index: 2; }
.mobile-carousel .testimonial-card.prev { transform: translateX(-50%) translateX(-100%); }
.mobile-carousel .testimonial-card.next { transform: translateX(-50%) translateX(100%); }

.contact { padding: 96px 0; background: var(--bg-alt); }
.contact-content { display:grid; grid-template-columns: 2fr 1fr; gap: 3rem; }
.contact-form { display:grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { position:relative; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group input, .form-group textarea, .form-group select { width:100%; padding: 1rem; border: 2px solid var(--border); border-radius: 10px; background:#fff; font-size:1rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline:none; border-color: var(--primary-2); box-shadow: 0 0 0 4px rgba(29,78,216,.12); }
.form-group label { position:absolute; left:1rem; top: 1rem; color: var(--text-muted); transition: all .2s var(--ease); pointer-events:none; background:#fff; }
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label { transform: translateY(-1.6rem) translateX(-.45rem); font-size:.85rem; color: var(--primary-2); padding: 0 .35rem; }
.contact-form button { grid-column: 1 / -1; justify-self: start; }
.contact-info { display:flex; flex-direction:column; gap:1.25rem; }
.info-item h3 { color: var(--primary); margin-bottom:.25rem; }
.info-item p { color: var(--text-muted); }
.info-item a { color: var(--primary); text-decoration: none; transition: color 0.2s ease; }
.info-item a:hover { color: var(--accent); text-decoration: underline; }

.footer { background: #0b1220; color:#fff; padding: 3rem 0 1.5rem; }
.footer-content { display:grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.25rem; margin-bottom: 1.25rem; }
.footer-links { display:flex; flex-direction:column; gap:.5rem; }
.footer-links a { color:#fff; text-decoration:none; opacity:.9; transition: opacity .2s var(--ease); }
.footer-links a:hover { opacity:1; }
.footer-social { display:flex; gap: .75rem; }
.footer-social a { width:44px; height:44px; border-radius:50%; background: rgba(255,255,255,.15); color:#fff; display:flex; align-items:center; justify-content:center; text-decoration:none; transition: all 0.2s var(--ease); padding: 10px; }
.footer-social a svg { width: 100%; height: 100%; }
.footer-social a:hover { background: rgba(255,255,255,.25); transform: translateY(-2px); }
.footer-bottom { text-align:center; border-top: 1px solid rgba(255,255,255,.15); padding-top: 1rem; opacity:.9; }

/* Listing Modal */
.listing-card { cursor: pointer; }
.listing-modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 10px; }
.listing-modal.active { display: flex; }
body.modal-open { overflow: hidden; position: fixed; width: 100%; height: 100%; touch-action: none; }
html.modal-open { overflow: hidden; }
.modal-overlay { touch-action: none; }
.modal-details { touch-action: pan-y; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fadeIn 0.3s ease; }
.modal-content { position: relative; z-index: 1; background: #fff; border-radius: 20px; max-width: 1400px; width: 100%; height: 95vh; overflow: hidden; display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; box-shadow: 0 40px 100px -20px rgba(0,0,0,0.7); animation: slideUp 0.4s var(--ease); }
.modal-close { position: absolute; top: 20px; right: 20px; z-index: 10; width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,0.6); color: #fff; border: none; font-size: 32px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s var(--ease); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.modal-close:hover { background: rgba(0,0,0,0.8); transform: rotate(90deg); }

.modal-gallery { position: relative; background: #fff; border-radius: 20px 0 0 20px; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.gallery-main { position: relative; width: 100%; flex: 1; background: #fff; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.zoom-hint { position: absolute; inset: 0; background: rgba(0,0,0,0.75); display: none; align-items: center; justify-content: center; flex-direction: column; gap: 20px; z-index: 5; pointer-events: none; animation: fadeIn 0.2s ease; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.zoom-hint.active { display: flex; }
.zoom-hint-icon { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.12); border-radius: 16px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: pulse 1.5s ease-in-out infinite; }
.zoom-hint-icon svg { width: 32px; height: 32px; color: #fff; }
.zoom-hint-text { color: #fff; font-size: 1.125rem; font-weight: 600; text-align: center; padding: 0 20px; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: 0.9; } }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.95); border: none; font-size: 32px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s var(--ease); color: var(--text); font-weight: bold; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.gallery-prev { left: 15px; }
.gallery-next { right: 15px; }
.gallery-nav:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.gallery-fullscreen { position: absolute; bottom: 20px; right: 20px; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,0.95); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s var(--ease); color: var(--text); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.gallery-fullscreen svg { width: 20px; height: 20px; }
.gallery-fullscreen:hover { background: #fff; transform: scale(1.1); box-shadow: 0 6px 16px rgba(0,0,0,0.4); }
.image-counter { position: absolute; bottom: 20px; left: 20px; background: rgba(0,0,0,0.7); color: #fff; padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 600; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

.gallery-thumbnails { display: flex; gap: 8px; padding: 15px; background: #f8f8f8; overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.3) transparent; scroll-behavior: smooth; }
.gallery-thumbnails::-webkit-scrollbar { height: 6px; }
.gallery-thumbnails::-webkit-scrollbar-track { background: transparent; }
.gallery-thumbnails::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 3px; }
.gallery-thumbnails::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.5); }
.gallery-thumbnail { flex-shrink: 0; width: 80px; height: 60px; border-radius: 8px; overflow: hidden; cursor: pointer; border: 3px solid transparent; transition: all 0.2s var(--ease); opacity: 0.7; scroll-margin: 15px; }
.gallery-thumbnail:hover { opacity: 1; transform: translateY(-2px); }
.gallery-thumbnail.active { border-color: var(--primary); opacity: 1; box-shadow: 0 2px 8px rgba(29,78,216,0.3); }
.gallery-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.modal-details { padding: 40px; overflow-y: auto; height: 100%; display: flex; flex-direction: column; }
.modal-header { margin-bottom: 30px; }
.modal-badge { display: inline-block; background: var(--primary); color: #fff; font-weight: 700; border-radius: 20px; padding: 6px 14px; font-size: 13px; margin-bottom: 12px; }
.modal-header h2 { font-size: 2.4rem; font-weight: 900; color: var(--text); margin-bottom: 8px; }
.modal-header p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 16px; }
.modal-meta { display: flex; gap: 20px; flex-wrap: wrap; color: var(--text); font-weight: 600; }
.modal-meta span { display: flex; align-items: center; gap: 6px; }

.modal-description { margin-bottom: 30px; }
.modal-description h3 { font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.modal-description p { color: var(--text-muted); line-height: 1.7; }

.modal-features { margin-bottom: 30px; }
.modal-features h3 { font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.modal-features ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal-features li { color: var(--text-muted); padding-left: 24px; position: relative; }
.modal-features li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 20px; }
.modal-btn { flex: 1; min-width: 160px; text-align: center; padding: 14px 24px; border-radius: 12px; font-weight: 700; font-size: 1rem; transition: all 0.2s var(--ease); }

/* Fullscreen Viewer */
.fullscreen-viewer { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,0.97); display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.fullscreen-viewer.active { display: flex; animation: fadeIn 0.3s ease; }
.fullscreen-close { position: absolute; top: 24px; right: 24px; width: 56px; height: 56px; border-radius: 14px; background: rgba(255,255,255,0.12); color: #fff; border: none; font-size: 36px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.25s var(--ease); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); z-index: 10; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.fullscreen-close:hover { background: rgba(255,255,255,0.2); transform: scale(1.05); }
.fullscreen-close:active { transform: scale(0.95); }
.fullscreen-viewer img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.1s ease-out; transform-origin: center center; border-radius: 8px; }
.fullscreen-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,0.12); border: none; font-size: 40px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.25s var(--ease); color: #fff; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.fullscreen-prev { left: 24px; }
.fullscreen-next { right: 24px; }
.fullscreen-nav:hover { background: rgba(255,255,255,0.2); transform: translateY(-50%) scale(1.08); }
.fullscreen-nav:active { transform: translateY(-50%) scale(0.95); }
.fullscreen-counter { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,0.12); color: #fff; padding: 14px 28px; border-radius: 30px; font-size: 16px; font-weight: 600; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1100px) {
  .hero { padding: 100px 32px 60px; min-height: auto; }
  .hero-wrapper { grid-template-columns: 1fr; gap: 56px; padding: 0 24px; max-width: 720px; }
  .hero-aside { order: -1; display:flex; justify-content:center; }
  .hero-content { padding: 0; max-width: 100%; text-align: center; }
  .hero-actions { justify-content: center; gap: 16px; }
  .hero-badges { justify-content: center; }
  .portrait-card { max-width: 480px; border-radius: 24px; }
  .portrait-card img { height: 520px; }
  .portrait-caption { font-size: 1.0625rem; padding: 16px 20px; }
}
@media (max-width: 992px) {
  .about-content { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-menu { position: fixed; top: 70px; left:0; width:100%; height: calc(100vh - 70px); background: rgba(255,255,255,.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); flex-direction: column; gap: 0; padding: 2rem 0 3rem; transform: translateX(-100%); visibility: hidden; opacity: 0; transition: transform .35s cubic-bezier(0.4, 0, 0.2, 1), opacity .25s ease, visibility .25s ease; box-shadow: inset -1px 0 0 rgba(0,0,0,0.1); }
  .nav-menu.active { transform: translateX(0); visibility: visible; opacity: 1; }
  .nav-menu .nav-link { padding: 1rem 2rem; font-size: 1.125rem; font-weight: 600; border-bottom: 1px solid rgba(0,0,0,0.06); transition: all 0.2s ease; }
  .nav-menu .nav-link:hover { background: rgba(0,0,0,0.03); padding-left: 2.5rem; }
  .nav-menu .nav-link::after { display: none; }
  .nav-menu .nav-cta { margin: 1.5rem 2rem 0; padding: 1rem 2rem; font-size: 1.0625rem; border-radius: 14px; border-bottom: none; }
  .nav-toggle { display:flex; color: var(--text); }
  .nav-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity:0; transform: scaleX(0); }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  .navbar.hero-active .nav-toggle { color: #fff; }
  .navbar.hero-active .nav-toggle:hover { background: rgba(255,255,255,0.1); }
  .navbar.hero-active .nav-toggle:active { background: rgba(255,255,255,0.15); }
  .navbar.hero-active .nav-menu { background: rgba(15,23,42,.98); box-shadow: inset -1px 0 0 rgba(255,255,255,0.1); }
  .navbar.hero-active .nav-menu .nav-link { color: #fff; border-bottom-color: rgba(255,255,255,0.1); }
  .navbar.hero-active .nav-menu .nav-link:hover { background: rgba(255,255,255,0.05); }
  .navbar.hero-active .nav-menu .nav-cta { background: var(--primary); color: #fff; }
  .desktop-carousel { display:none !important; }
  .mobile-carousel { display:flex !important; }
  .testimonial-carousel-container { width: 88%; height: 360px; }
  .contact-content { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; text-align:center; gap: 2rem; }
  .footer-brand { margin-bottom: 0.5rem; }
  .footer-links { align-items: center; gap: 0.75rem; }
  .footer-social { justify-content: center; margin-top: 0.5rem; }
  
  /* Hero Mobile - Apple/Zillow Inspired */
  .hero { padding: 180px 20px 140px; min-height: auto; background-attachment: scroll; background-size: 170%; background-position: center 35%; }
  .hero-wrapper { gap: 0; padding: 0; max-width: 600px; }
  .hero-aside { display: none; }
  .hero-content { text-align: center; padding: 0; }
  .hero-title { font-size: 2.5rem; margin-bottom: 1rem; line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
  .hero-subtitle { font-size: 1.25rem; margin-bottom: 1.25rem; line-height: 1.3; }
  .hero-description { font-size: 1.0625rem; margin-bottom: 2rem; line-height: 1.6; max-width: 100%; }
  .hero-actions { gap: 12px; flex-direction: column; width: 100%; }
  .btn-primary, .btn-secondary { padding: 16px 32px; font-size: 1.0625rem; width: 100%; max-width: 100%; border-radius: 14px; min-height: 56px; display: flex; align-items: center; justify-content: center; font-weight: 600; }
  .hero-badges { gap: 8px; margin-top: 1rem; }
  .hero-badges span { font-size: 0.875rem; padding: 8px 16px; border-radius: 12px; font-weight: 600; }
  
  /* Modal Mobile - Zillow Bottom Sheet Style */
  .listing-modal { padding: 60px 0 20px; align-items: flex-end; }
  .modal-content { 
    grid-template-columns: 1fr; 
    height: calc(100vh - 80px);
    height: calc(100dvh - 80px);
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    border-radius: 20px; 
    max-width: calc(100% - 16px);
    margin: 0 8px;
    animation: slideUpMobile 0.3s var(--ease);
  }
  .modal-gallery { border-radius: 20px 20px 0 0; height: 50vh; height: 50dvh; min-height: 320px; display: flex; flex-direction: column; }
  .modal-close { 
    top: 16px; 
    right: 16px; 
    width: 44px; 
    height: 44px; 
    font-size: 30px; 
    background: rgba(0,0,0,0.7);
    z-index: 100;
  }
  .modal-details { 
    padding: 24px 20px 32px; 
    height: calc(50vh - 80px);
    height: calc(50dvh - 80px);
    background: #fff;
  }
  .modal-header { margin-bottom: 24px; }
  .modal-badge { font-size: 13px; padding: 6px 14px; margin-bottom: 12px; border-radius: 12px; }
  .modal-header h2 { font-size: 1.875rem; line-height: 1.2; font-weight: 800; margin-bottom: 8px; }
  .modal-header p { font-size: 1.0625rem; color: var(--text-muted); margin-bottom: 16px; }
  .modal-meta { 
    gap: 16px; 
    font-size: 0.9375rem; 
    padding: 16px; 
    background: var(--bg-alt); 
    border-radius: 12px;
    margin-bottom: 24px;
  }
  .modal-meta span { font-weight: 600; }
  .modal-description { margin-bottom: 24px; }
  .modal-description h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
  .modal-description p { font-size: 1rem; line-height: 1.6; color: var(--text); }
  .modal-features { margin-bottom: 24px; }
  .modal-features h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
  .modal-features ul { grid-template-columns: 1fr; gap: 10px; }
  .modal-features li { font-size: 0.9375rem; padding-left: 28px; line-height: 1.5; }
  .modal-features li::before { font-size: 1.125rem; }
  .modal-actions { 
    flex-direction: column; 
    gap: 12px; 
    padding-top: 20px; 
    border-top: 1px solid var(--border);
  }
  .modal-btn { 
    min-width: 100%; 
    padding: 16px 24px; 
    font-size: 1.0625rem; 
    min-height: 56px;
    border-radius: 14px;
    font-weight: 600;
  }
  .gallery-nav { 
    width: 48px; 
    height: 48px; 
    font-size: 28px; 
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  }
  .gallery-prev { left: 12px; }
  .gallery-next { right: 12px; }
  .gallery-fullscreen { 
    bottom: 16px; 
    right: 16px; 
    width: 48px; 
    height: 48px; 
    border-radius: 14px;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  }
  .gallery-fullscreen svg { width: 22px; height: 22px; }
  .image-counter { 
    bottom: 16px; 
    left: 16px; 
    padding: 8px 16px; 
    font-size: 14px; 
    border-radius: 12px;
    font-weight: 600;
  }
  .gallery-thumbnails { 
    padding: 12px; 
    gap: 8px; 
    background: #f5f5f5;
    flex-shrink: 0;
  }
  .gallery-thumbnail { 
    width: 80px; 
    height: 60px; 
    border-radius: 10px;
    border: 3px solid transparent;
  }
  .gallery-thumbnail.active { border-color: var(--primary); box-shadow: 0 2px 8px rgba(29,78,216,0.3); }
  
  /* Zoom Hint Mobile */
  .zoom-hint-icon { width: 56px; height: 56px; border-radius: 14px; }
  .zoom-hint-icon svg { width: 28px; height: 28px; }
  .zoom-hint-text { font-size: 1rem; }
  
  /* Fullscreen Mobile */
  .fullscreen-viewer { padding: 12px; }
  .fullscreen-close { 
    top: 20px; 
    right: 20px; 
    width: 52px; 
    height: 52px; 
    font-size: 32px;
    border-radius: 14px;
    background: rgba(255,255,255,0.12);
  }
  .fullscreen-nav { 
    width: 56px; 
    height: 56px; 
    font-size: 34px;
    background: rgba(255,255,255,0.12);
  }
  .fullscreen-prev { left: 16px; }
  .fullscreen-next { right: 16px; }
  .fullscreen-counter { 
    bottom: 24px; 
    padding: 12px 24px; 
    font-size: 15px;
    border-radius: 24px;
    background: rgba(255,255,255,0.12);
  }
}

@keyframes slideUpMobile {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@media (max-width: 480px) {
  .testimonial-carousel-container { width: 88%; height: 320px; }
  .carousel-btn { width:48px; height:48px; font-size:1.4rem; }
  
  /* Small Mobile - Hero Refinements */
  .hero { padding: 90px 16px 50px; background-size: 160%; background-position: center 30%; }
  .hero-wrapper { gap: 0; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1.125rem; }
  .hero-description { font-size: 1rem; }
  .btn-primary, .btn-secondary { padding: 15px 28px; font-size: 1rem; min-height: 52px; }
  .hero-badges span { font-size: 0.8125rem; padding: 7px 14px; }
  
  /* Small Mobile - Modal Refinements */
  .modal-gallery { height: 48vh; height: 48dvh; min-height: 300px; }
  .modal-details { padding: 20px 16px 28px; height: calc(52vh - 80px); height: calc(52dvh - 80px); }
  .modal-header h2 { font-size: 1.625rem; }
  .modal-header p { font-size: 1rem; }
  .modal-meta { font-size: 0.875rem; gap: 12px; padding: 14px; }
  .modal-description p { font-size: 0.9375rem; }
  .modal-features li { font-size: 0.875rem; }
  .modal-badge { font-size: 12px; padding: 5px 12px; }
  .gallery-nav { width: 44px; height: 44px; font-size: 26px; }
  .gallery-prev { left: 10px; }
  .gallery-next { right: 10px; }
  .gallery-fullscreen { width: 44px; height: 44px; bottom: 14px; right: 14px; border-radius: 12px; }
  .gallery-fullscreen svg { width: 20px; height: 20px; }
  .image-counter { bottom: 14px; left: 14px; padding: 7px 14px; font-size: 13px; }
  .gallery-thumbnails { padding: 10px; gap: 6px; flex-shrink: 0; background: #f5f5f5; }
  .gallery-thumbnail { width: 72px; height: 54px; }
  
  /* Zoom Hint Small Mobile */
  .zoom-hint-icon { width: 52px; height: 52px; border-radius: 12px; }
  .zoom-hint-icon svg { width: 26px; height: 26px; }
  .zoom-hint-text { font-size: 0.9375rem; }
  
  /* Small Mobile - Fullscreen */
  .fullscreen-nav { width: 52px; height: 52px; font-size: 32px; }
  .fullscreen-prev { left: 12px; }
  .fullscreen-next { right: 12px; }
  .fullscreen-close { width: 50px; height: 50px; font-size: 30px; top: 16px; right: 16px; border-radius: 12px; }
  .fullscreen-counter { padding: 10px 20px; font-size: 14px; bottom: 20px; border-radius: 20px; }
}
