/* ===== Design System & Theme ===== */
    :root {
      --bg-color: #EAEDF0;
      --text-color: #1d1d1f;
      --text-muted: #86868b;
      --glass-bg: rgba(255,255,255,0.4);
      --glass-border: rgba(0,0,0,0.08);
      --section-border: rgba(0,0,0,0.06);
      --accent-color: #fbbf24;
      --page-pd: clamp(24px,6vw,100px);
      --transition-base: all 0.8s cubic-bezier(0.16,1,0.3,1);
    }
    body[data-color="dark"] {
      --bg-color: #09090b;
      --text-color: #f5f5f7;
      --text-muted: #86868b;
      --glass-bg: rgba(255,255,255,0.03);
      --glass-border: rgba(255,255,255,0.08);
      --section-border: rgba(255,255,255,0.08);
      --accent-color: #fbbf24;
    }

    * { box-sizing:border-box; margin:0; padding:0; cursor:none !important; user-select:none; -webkit-user-select:none; }

    html {
      font-size:16px; scroll-behavior:smooth; scroll-padding-top:70px;
      scrollbar-width:none; -ms-overflow-style:none; overflow-x:clip;
    }
    html::-webkit-scrollbar { display:none; }
    html.lenis { height:auto; }
    .lenis.lenis-smooth { scroll-behavior:auto !important; }
    .lenis.lenis-stopped { overflow:hidden; }

    body {
      background-color:var(--bg-color);
      color:var(--text-color);
      font-family:'Inter',-apple-system,system-ui,sans-serif;
      overflow-x:clip;
      transition:background-color 0.8s cubic-bezier(0.16,1,0.3,1),color 0.5s ease;
      -webkit-font-smoothing:antialiased;
    }

    /* Grain */
    .grain-overlay {
      position:fixed; inset:0; width:100%; height:100%; opacity:0.03;
      pointer-events:none; z-index:9999;
      background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    }

    /* ===== Custom Cursor ===== */
    .custom-cursor {
      position:fixed; top:0; left:0; width:14px; height:14px;
      border-radius:50%; background-color:var(--text-color);
      pointer-events:none; z-index:999999; transform:translate(-50%,-50%);
      opacity:0; transition:transform 0.2s ease,opacity 0.2s ease,background-color 0.3s;
    }
    .custom-cursor.visible { opacity:1; }
    .custom-cursor.hover {
      transform:translate(-50%,-50%) scale(3.5);
      border:1px solid var(--text-color);
      backdrop-filter:invert(1) grayscale(1);
    }

    @media (max-width: 991px) {
      .custom-cursor {
        display: none !important;
      }
      * {
        cursor: auto !important;
      }
      a, button, [role="button"], select, option, .mobile-menu-btn {
        cursor: pointer !important;
      }
    }

    /* ===== Page Loader ===== */
    #intellihome-loader {
      position:fixed; inset:0; z-index:99999;
      background:#EAEDF0;
      transition:transform 0.85s cubic-bezier(0.76,0,0.24,1);
    }
    body[data-color="dark"] #intellihome-loader { background:#09090b; }
    #intellihome-loader.slide-up { transform:translateY(-100%); }

    /* ===== Navbar ===== */
    nav {
      position: fixed;
      top: 20px;
      left: 50%;
      transform: translate3d(-50%, 0, 0);
      width: calc(100% - 40px);
      max-width: 1000px;
      height: 56px;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 100;
      background-color: rgba(255, 255, 255, 0.75);
      border: 1px solid rgba(0, 0, 0, 0.08);
      border-radius: 9999px;
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    body[data-color="dark"] nav {
      background-color: rgba(9, 9, 11, 0.75);
      border-color: rgba(255, 255, 255, 0.08);
    }
    nav.scrolled {
      top: 12px;
      height: 52px;
      background-color: rgba(255, 255, 255, 0.85);
      border-color: rgba(0, 0, 0, 0.12);
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    }
    body[data-color="dark"] nav.scrolled {
      background-color: rgba(9, 9, 11, 0.85);
      border-color: rgba(255, 255, 255, 0.12);
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    }
    nav.nav-hidden {
      transform: translate3d(-50%, -100px, 0) !important;
      opacity: 0 !important;
      pointer-events: none;
    }
    .nav-container {
      width: 100%;
      height: 100%;
      padding: 0 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .nav-brand {
      display:flex; align-items:center; gap:10px; text-decoration:none;
      color:var(--text-color); font-family:'Outfit',sans-serif;
      font-size:20px; font-weight:500; letter-spacing:-0.02em;
    }
    .nav-links { display:flex; align-items:center; gap:32px; }
    .nav-links a {
      font-size:13px; font-weight:500; color:var(--text-muted);
      text-decoration:none; transition:color 0.3s;
    }
    .nav-links a:hover, .nav-links a.active { color:var(--text-color); }
    .nav-contact { color:var(--accent-color) !important; }
    .custom-theme-toggle {
      background:transparent; border:none; color:var(--text-muted);
      font-family:'Inter',sans-serif; font-size:13px; font-weight:500;
      padding:0; cursor:pointer; transition:color 0.3s;
    }
    .custom-theme-toggle:hover {
      color:var(--text-color); background-color:transparent;
    }
    .mobile-menu-btn {
      display:none; background:transparent; border:none; color:var(--text-muted);
      font-family:'Inter',sans-serif; font-size:13px; font-weight:500;
      padding:0; cursor:pointer; z-index:10001; transition:color 0.3s;
    }
    .mobile-menu-btn:hover {
      color:var(--text-color);
    }
    @media(max-width:768px) {
      .nav-links { display:none; }
      .mobile-menu-btn { display:block; }
    }

    /* Mobile Menu Overlay */
    .mobile-nav-overlay {
      position:fixed; inset:0; width:100%; height:100vh;
      background-color:var(--bg-color); z-index:99;
      display:flex; flex-direction:column; justify-content:center;
      padding:0 var(--page-pd); opacity:0; pointer-events:none;
      transition:opacity 0.5s ease;
    }
    body.menu-open .mobile-nav-overlay { opacity:1; pointer-events:auto; }
    .mobile-nav-links { display:flex; flex-direction:column; gap:28px; }
    .mobile-nav-links a {
      font-family:'Outfit',sans-serif; font-size:32px; font-weight:600;
      color:var(--text-color); text-decoration:none;
    }
    .mobile-nav-links a:hover { color:var(--accent-color); }

    /* ===== Main Content Area ===== */
    .main-wrapper {
      padding: 120px var(--page-pd) 80px;
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
    }

    .contact-container {
      width: 100%;
      max-width: 1100px;
      display: flex;
      flex-direction: column;
      gap: 56px;
    }

    /* Header */
    .contact-header {
      max-width: 700px;
      display: flex;
      flex-direction: column;
      gap: 16px;
      opacity: 0;
      transform: translateY(24px);
      animation: revealItem 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    }
    .contact-eyebrow {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 11px; font-weight: 600; letter-spacing: 0.15em;
      text-transform: uppercase; color: var(--text-muted);
    }
    .contact-title {
      font-family: 'Outfit', sans-serif;
      font-size: clamp(38px, 5.5vw, 64px);
      font-weight: 800; line-height: 1.05; letter-spacing: -0.035em;
      color: var(--text-color);
    }
    .contact-desc {
      font-size: 15px; line-height: 1.55; color: var(--text-muted);
    }

    /* Grid Layout */
    .contact-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 40px;
      opacity: 0;
      transform: translateY(24px);
      animation: revealItem 1s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
    }
    @media (min-width: 900px) {
      .contact-grid {
        grid-template-columns: 1.1fr 1.3fr;
        gap: 56px;
      }
    }

    /* Left Side: Contact details & Service area */
    .contact-info-col {
      display: flex;
      flex-direction: column;
      gap: 32px;
    }

    /* Glass Info Card */
    .info-glass-card {
      background: var(--glass-bg);
      border: 1px solid var(--glass-border);
      backdrop-filter: blur(20px) saturate(180%);
      -webkit-backdrop-filter: blur(20px) saturate(180%);
      border-radius: 28px;
      padding: 32px;
      box-shadow: 0 20px 40px rgba(0,0,0,0.03);
      display: flex;
      flex-direction: column;
      gap: 28px;
    }
    .info-group {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .info-label {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
      text-transform: uppercase; color: var(--text-muted);
    }
    .info-value {
      font-family: 'Outfit', sans-serif;
      font-size: 20px; font-weight: 600;
      color: var(--text-color);
      text-decoration: none;
      transition: color 0.3s;
    }
    a.info-value:hover {
      color: var(--accent-color);
    }

    /* Quick WA row */
    .info-wa-btn {
      align-self: flex-start;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 24px;
      border-radius: 50px;
      background: #16a34a;
      color: #ffffff;
      font-family: 'Inter', sans-serif;
      font-size: 13px; font-weight: 600;
      text-decoration: none;
      box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
      transition: background 0.3s, transform 0.2s;
    }
    .info-wa-btn:hover {
      background: #15803d;
      transform: translateY(-2px);
    }
    .info-wa-btn svg {
      width: 16px; height: 16px; fill: currentColor;
    }

    /* Office Locations List */
    .loc-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
    }
    .loc-item {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .loc-city {
      font-family: 'Outfit', sans-serif;
      font-size: 15px; font-weight: 600;
      color: var(--text-color);
    }
    .loc-region {
      font-size: 12px; color: var(--text-muted);
    }

    /* Visual Banner image */
    .contact-banner-box {
      border-radius: 28px;
      overflow: hidden;
      aspect-ratio: 16/10;
      background: #e8eaed;
      border: 1px solid var(--glass-border);
      position: relative;
    }
    body[data-color="dark"] .contact-banner-box { background: #1c1c1e; }
    .contact-banner-box img {
      width: 100%; height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .contact-banner-box:hover img {
      transform: scale(1.03);
    }

    /* Right Side: Consultation Form */
    .contact-form-col {
      width: 100%;
    }
    .form-glass-card {
      background: var(--glass-bg);
      border: 1px solid var(--glass-border);
      backdrop-filter: blur(20px) saturate(180%);
      -webkit-backdrop-filter: blur(20px) saturate(180%);
      border-radius: 28px;
      padding: 36px;
      box-shadow: 
        0 40px 80px rgba(0,0,0,0.06),
        inset 0 1px 0 rgba(255,255,255,0.4);
      display: flex;
      flex-direction: column;
      gap: 32px;
      position: relative;
    }
    body[data-color="dark"] .form-glass-card {
      box-shadow: 0 40px 80px rgba(0,0,0,0.45);
    }

    .form-header {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .form-card-title {
      font-family: 'Outfit', sans-serif;
      font-size: 24px; font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--text-color);
    }
    .form-card-desc {
      font-size: 13px; color: var(--text-muted);
    }

    /* Form Elements */
    .consultation-form {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .form-row {
      display: grid;
      grid-template-columns: 1fr;
      gap: 20px;
    }
    @media (min-width: 600px) {
      .form-row {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    .form-group {
      position: relative;
      display: flex;
      flex-direction: column;
      width: 100%;
    }

    /* Inputs */
    .form-input, .form-select, .form-textarea {
      width: 100%;
      padding: 16px 20px;
      border-radius: 16px;
      border: 1px solid var(--glass-border);
      background: rgba(255,255,255,0.15);
      color: var(--text-color);
      font-size: 14px;
      font-family: 'Inter', sans-serif;
      outline: none;
      transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
      -webkit-appearance: none;
      appearance: none;
    }
    body[data-color="dark"] .form-input,
    body[data-color="dark"] .form-select,
    body[data-color="dark"] .form-textarea {
      background: rgba(0,0,0,0.18);
    }

    .form-input:focus, .form-select:focus, .form-textarea:focus {
      border-color: var(--text-color);
      background: var(--bg-color);
      box-shadow: 0 0 0 3px rgba(0,0,0,0.02);
    }
    body[data-color="dark"] .form-input:focus,
    body[data-color="dark"] .form-select:focus,
    body[data-color="dark"] .form-textarea:focus {
      box-shadow: 0 0 0 3px rgba(255,255,255,0.03);
    }

    .form-textarea {
      height: 120px;
      resize: none;
      padding-top: 14px;
    }

    /* Labels - Float effect */
    .form-label {
      position: absolute;
      left: 20px;
      top: 17px;
      font-size: 14px;
      color: var(--text-muted);
      pointer-events: none;
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .form-group-textarea .form-label {
      top: 14px;
    }

    /* Class added dynamically or via focus/placeholder checks */
    .form-input:focus ~ .form-label,
    .form-input:not(:placeholder-shown) ~ .form-label,
    .form-textarea:focus ~ .form-label,
    .form-textarea:not(:placeholder-shown) ~ .form-label,
    .form-select:focus ~ .form-label,
    .form-select:valid ~ .form-label {
      top: -9px;
      left: 14px;
      font-size: 11px;
      font-weight: 600;
      padding: 0 8px;
      background: var(--bg-color);
      border-radius: 4px;
      color: var(--text-color);
    }

    /* Select arrow indicator */
    .select-container {
      position: relative;
      width: 100%;
    }
    .select-arrow {
      position: absolute;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
      pointer-events: none;
      width: 12px; height: 12px;
      color: var(--text-muted);
    }

    /* Animated Glass button */
    .form-submit-btn {
      width: 100%;
      padding: 16px;
      font-size: 14px; font-weight: 600;
      font-family: inherit;
      color: #ffffff;
      background: var(--text-color);
      border: 1px solid var(--text-color);
      border-radius: 18px;
      transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }
    body[data-color="dark"] .form-submit-btn {
      background: #f5f5f7;
      color: #1d1d1f;
      border-color: #f5f5f7;
    }
    .form-submit-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
      background: #333333;
    }
    body[data-color="dark"] .form-submit-btn:hover {
      background: #ffffff;
      box-shadow: 0 10px 24px rgba(255, 255, 255, 0.1);
    }

    /* Success Toast Overlay */
    .success-overlay {
      position: absolute;
      inset: 0;
      background: var(--glass-bg);
      backdrop-filter: blur(28px) saturate(180%);
      -webkit-backdrop-filter: blur(28px) saturate(180%);
      border-radius: 28px;
      z-index: 50;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 40px;
      text-align: center;
      gap: 20px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.5s ease;
    }
    .success-overlay.active {
      opacity: 1;
      pointer-events: auto;
    }
    .success-icon {
      width: 64px; height: 64px;
      border-radius: 50%;
      background: rgba(22, 163, 74, 0.1);
      color: #16a34a;
      display: flex; align-items: center; justify-content: center;
    }
    .success-icon svg { width: 32px; height: 32px; }
    .success-headline {
      font-family: 'Outfit', sans-serif;
      font-size: 28px; font-weight: 700;
      color: var(--text-color);
      letter-spacing: -0.02em;
    }
    .success-text {
      font-size: 14px; line-height: 1.55; color: var(--text-muted);
      max-width: 320px;
    }

    @keyframes revealItem { to { opacity:1; transform:translateY(0); } }

    /* ===== Footer ===== */
    footer {
      background-color:var(--bg-color); border-top:1px solid var(--section-border);
      padding:80px var(--page-pd) 40px; color:var(--text-color);
      display:flex; align-items:center; justify-content:center;
      width: 100%;
    }
    .footer-container {
      width:100%; max-width:1200px; display:flex;
      flex-direction:column; align-items:center; gap:32px;
    }
    .footer-logo {
      display:flex; align-items:center; gap:10px;
      font-family:'Outfit',sans-serif; font-size:22px;
      font-weight:500; color:var(--text-color);
    }
    .footer-credits {
      font-size:13px; color:var(--text-muted); text-align:center;
      border-top:1px solid var(--section-border); padding-top:24px; width:100%;
    }
    .footer-credits a { color:var(--accent-color); text-decoration:none; font-weight:500; }