@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&family=Inter:wght@100..900&display=swap');

:root {
  --gold: #d4a843;
  --bg: #050505;
  --text: #e8e4d9;
  --text-dim: rgba(232,228,217,0.5);
  --font-sans: 'Inter', sans-serif;
  --font-arabic: 'Cairo', sans-serif;
  
  /* Luxury Theme Extensions */
  --luxury-gradient: linear-gradient(135deg, #38281e 0%, #1c140f 50%, #0a0705 100%);
  --luxury-gold: #d4af37;
  --luxury-text: #e8dcc4;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

.luxury-theme {
    background: var(--luxury-gradient) !important;
    color: var(--luxury-text) !important;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; user-select: none !important; -webkit-user-drag: none !important; }

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

/* RTL Support */
[dir="rtl"] body {
  font-family: var(--font-arabic);
}

#progress-bar {
  position: fixed; top: 0; left: 0; width: 0%; height: 2px;
  background: var(--gold); z-index: 10002;
  box-shadow: 0 0 10px var(--gold);
}
#cursor, #cursor-ring {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}


#three-canvas { position: fixed; top:0; left:0; width:100%; height:100%; z-index:0; pointer-events:none; }

.section { position: relative; z-index: 10; }
.section:not(#hero) { background-color: var(--bg); }

/* PRELOADER */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: #050505; z-index: 10000;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.8s cubic-bezier(0.7, 0, 0.3, 1), visibility 0.8s;
}
.preloader-content { text-align: center; }
.preloader-logo { margin-bottom: 2rem; }
.preloader-logo img { filter: drop-shadow(0 0 15px var(--gold)); animation: logo-glow 2s infinite alternate; }
.preloader-text { font-size: 14px; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 1rem; color: rgba(232,228,217,0.5); }
.preloader-counter { font-size: 3rem; font-weight: 200; color: var(--gold); font-family: var(--font-primary); margin-bottom: 1.5rem; }
.preloader-bar { width: 250px; height: 1px; background: rgba(212,168,67,0.1); margin: 0 auto; overflow: hidden; position: relative; }
.preloader-progress { position: absolute; top: 0; left: 0; height: 100%; width: 0%; background: var(--gold); }

@keyframes logo-glow {
    from { opacity: 0.6; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1.05); }
}

#nav {
  position: fixed; top: 0; left: 0; width: 100%; padding: 1.2rem 5%;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 1000; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
  background: rgba(5,5,5,0.75); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
#nav.nav-hidden { transform: translateY(-100%); }
#nav.nav-scrolled { background: rgba(5,5,5,0.92); border-bottom: 1px solid rgba(212,168,67,0.1); }
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo-svg { width: 32px; height: 32px; }
.nav-name { font-size: 15px; font-weight: 500; letter-spacing: 0.04em; }
.nav-name .gold { color: var(--gold); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 13px; color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }
.nav-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: pulse 2s infinite; }

/* HERO */
#hero {
  height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center; 
  padding: 12rem 2rem 8rem 2rem;
}
.hero-logo { margin-bottom: 2.5rem; opacity: 1; }
.hero-logo svg { width: 110px; height: 110px; filter: drop-shadow(0 0 18px rgba(212,168,67,0.35)); }
.hero-badge {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: #ffffff; background: rgba(0,0,0,0.65); border: 1px solid rgba(212,168,67,0.5);
  padding: 8px 20px; border-radius: 30px; margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  opacity: 1;
}
.hero-title {
  font-size: clamp(2.6rem, 7.5vw, 5.2rem); font-weight: 500;
  line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 1.5rem;
  opacity: 1;
}
.hero-title .gold { color: var(--gold); }
.hero-sub {
  font-size: clamp(0.95rem, 2.2vw, 1.15rem); color: rgba(232,228,217,0.45);
  max-width: 480px; line-height: 1.75; margin-bottom: 2.5rem;
  opacity: 1;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; opacity: 1; }
.btn-primary {
  display: inline-block;
  padding: 14px 32px; background: var(--gold); color: var(--bg) !important;
  border: none; border-radius: 6px; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, color 0.2s; letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
}
.btn-primary:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 8px 30px rgba(212,168,67,0.3);
  color: var(--bg) !important;
}
.btn-ghost {
  display: inline-block;
  padding: 14px 32px; background: rgba(255,255,255,0.03); color: #e8e4d9;
  border: 1px solid rgba(212,168,67,0.3); border-radius: 6px;
  font-size: 14px; cursor: pointer; transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  text-decoration: none;
  text-align: center;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: rgba(212,168,67,0.08); }
.scroll-hint { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0; }
.scroll-hint span { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(232,228,217,0.25); }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(212,168,67,0.6), transparent); animation: scrollPulse 2s ease infinite; }

/* STATS */
#stats {
  background: #080808; border-top: 1px solid rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.04);
  padding: 4rem 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  text-align: center; gap: 1.5rem;
}
.stat-num { font-size: 2.2rem; font-weight: 500; color: var(--gold); display: block; }
.stat-label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(232,228,217,0.35); }

/* ABOUT */
.about-wrap { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 2rem; padding: 7rem 2rem; }
.about-label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.about-heading { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 500; line-height: 1.2; margin-bottom: 1.5rem; }
.about-body { color: rgba(232,228,217,0.5); line-height: 1.8; font-size: 15px; }

/* Pillars Grid */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
    width: 100%;
}
.pillar-card {
    background: transparent;
    border: none;
    padding: 2.5rem 1.5rem;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
    border-left: 1px solid rgba(212, 168, 67, 0.1);
}

.pillar-card:hover {
    border-left: 1px solid var(--gold);
    background: linear-gradient(90deg, rgba(212, 168, 67, 0.03) 0%, transparent 100%);
}

[dir="rtl"] .pillar-card {
    border-left: none;
    border-right: 1px solid rgba(212, 168, 67, 0.1);
}

[dir="rtl"] .pillar-card:hover {
    border-right: 1px solid var(--gold);
}
.pillar-icon {
    width: 48px;
    height: 48px;
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pillar-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px rgba(212, 168, 67, 0.2));
}
.pillar-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text);
}
.pillar-desc {
    font-size: 14px;
    color: rgba(232, 228, 217, 0.5);
    line-height: 1.6;
}

.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; width: 100%; margin-top: 2rem; }
.skill-pill {
  background: transparent;
  border: none;
  padding: 8px 12px;
  font-size: 14px;
  color: rgba(232, 228, 217, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  cursor: default;
}

.skill-pill:hover {
  color: #fff;
}

.skill-pill:hover .skill-dot {
  background: #fff;
  box-shadow: 0 0 12px var(--gold), 0 0 20px var(--gold);
}
.skill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* WORK */
.work-wrap { padding: 1rem 2rem 0; max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 1.5rem; }
.section-label { 
    font-size: 12px; 
    letter-spacing: 0.3em; 
    text-transform: uppercase; 
    color: var(--gold); 
    margin-bottom: 1.2rem; 
    display: block; 
    font-weight: 600;
    opacity: 0.8;
}
.section-title { 
    font-size: clamp(2.2rem, 5vw, 3.8rem); 
    font-weight: 400; 
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 3rem; margin-top: 4rem; }
.section-sub {
    color: rgba(232, 228, 217, 0.5);
    font-size: 16px;
    line-height: 1.8;
    max-width: 650px;
    margin: 0 auto;
}
.project-card {
  background: transparent; border: none;
  padding: 2rem 0; position: relative;
}
.project-type { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.project-title { font-size: 1.1rem; font-weight: 500; margin-bottom: 0.7rem; }
.project-desc { font-size: 13px; color: rgba(232,228,217,0.4); line-height: 1.7; margin-bottom: 1.5rem; }
.project-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-tag { font-size: 11px; padding: 3px 10px; border-radius: 20px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: rgba(232,228,217,0.45); }

/* PROCESS */
#process { padding: 4rem 2rem; background: #080808; border-top: 1px solid rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.04); }
.process-inner { max-width: 900px; margin: 0 auto; }
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-top: 4rem; }
.step-num { font-size: 3rem; font-weight: 500; color: rgba(212,168,67,0.14); line-height: 1; margin-bottom: 1rem; }
.step-title { font-size: 1rem; font-weight: 500; margin-bottom: 0.5rem; }
.step-desc { font-size: 13px; color: rgba(232,228,217,0.4); line-height: 1.7; }
.step-line { width: 30px; height: 1px; background: rgba(212,168,67,0.4); margin-bottom: 1rem; }

/* CONTACT */
#contact { padding: 4rem 2rem; text-align: center; max-width: 800px; margin: 0 auto; }
.contact-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 500; line-height: 1.1; margin-bottom: 1.5rem; }
.contact-sub { color: var(--text-dim); font-size: 16px; line-height: 1.7; max-width: 550px; margin: 0 auto 3rem; }
.contact-email { display: inline-block; font-size: 1.05rem; color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(212,168,67,0.3); padding-bottom: 4px; transition: border-color 0.2s; }
.contact-email:hover { border-color: var(--gold); }
/* Form Elements */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.form-group { text-align: left; }
.form-group label { display: block; font-size: 11px; margin-bottom: 8px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }
.iqc-input {
    width: 100%; padding: 16px; background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06); color: var(--text);
    border-radius: 8px; outline: none; transition: border-color 0.3s, background 0.3s;
    font-family: inherit; font-size: 14px;
}
.iqc-input:focus { border-color: var(--gold); background: rgba(20, 20, 20, 0.9); }
.iqc-textarea { resize: none; min-height: 120px; }

.submit-btn {
    width: 100%; padding: 18px; display: flex; justify-content: center;
    align-items: center; gap: 10px; margin-top: 1rem;
    color: var(--bg) !important; cursor: pointer;
}
.submit-btn #btn-text { color: var(--bg) !important; }
.submit-btn:hover #btn-text { color: var(--bg) !important; opacity: 1 !important; }

#btn-loader {
    width: 18px; height: 18px; border: 2px solid rgba(5,5,5,0.2);
    border-bottom-color: var(--bg); border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Autofill Fixes */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0a0a0a inset !important;
    -webkit-text-fill-color: #e8e4d9 !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* CORPORATE FOOTER */
#corporate-footer {
    background: #020202;
    padding: 6rem 2rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.03);
    position: relative;
    z-index: 10;
}
.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
}
.footer-col h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.brand-desc {
    font-size: 14px;
    color: rgba(232,228,217,0.4);
    line-height: 1.8;
    max-width: 320px;
    margin-top: 1.5rem;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.footer-links a {
    color: rgba(232,228,217,0.5);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
    display: inline-block;
}
.footer-links a:hover {
    color: #fff;
}
.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.copyright {
    font-size: 12px;
    color: rgba(232,228,217,0.25);
}
.legal-links {
    display: flex;
    gap: 2rem;
}
.legal-links a {
    font-size: 12px;
    color: rgba(232,228,217,0.25);
    text-decoration: none;
    transition: color 0.3s;
}
.legal-links a:hover {
    color: var(--text);
}
@media (max-width: 768px) {
    .footer-container { grid-template-columns: 1fr; gap: 3rem; }
}
.reveal { opacity: 1; }

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
@keyframes scrollPulse { 0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} 51%{transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

@media(max-width:640px){ .about-wrap{gap:2.5rem;}  }

/* OFFLINE MODE STYLES */
#offline-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(5, 5, 5, 0.4);
  backdrop-filter: blur(20px) saturate(180%);
  z-index: 10000;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s ease;
}

#offline-overlay.visible {
  opacity: 1; pointer-events: all;
}

.offline-content {
  max-width: 450px; padding: 2.5rem;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.offline-icon {
  width: 64px; height: 64px; margin-bottom: 1.5rem;
  color: var(--gold);
  filter: drop-shadow(0 0 10px rgba(212, 168, 67, 0.3));
  animation: offlinePulse 2s infinite;
}

.offline-title {
  font-size: 1.5rem; font-weight: 500; letter-spacing: 0.1em;
  color: var(--gold); margin-bottom: 1rem;
}

.offline-sub {
  font-size: 14px; color: var(--text-dim); line-height: 1.6;
}

@keyframes offlinePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.7; }
}


/* --- HARDWARE SYNC --- */
.sync-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(212,168,67,0.1);
    border: 1px solid rgba(212,168,67,0.3);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: 2rem;
}

/* --- ELITE PRELOADER --- */
#preloader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.loader-content {
    text-align: center;
    width: 200px;
}

.loader-logo {
    margin-bottom: 2rem;
    animation: loaderPulse 2s ease-in-out infinite, logoSpin 20s linear infinite;
}

@keyframes logoSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-logo {
    opacity: 0;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 15px rgba(212,168,67,0.3));
}

.loader-percent {
    font-size: 2.5rem;
    font-weight: 200;
    color: var(--gold);
    font-family: monospace;
    letter-spacing: 2px;
}

.loader-bar-wrap {
    width: 100%;
    height: 1px;
    background: rgba(212,168,67,0.1);
    margin-top: 1.5rem;
    overflow: hidden;
    border-radius: 10px;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 10px var(--gold)); }
}

body.loaded #preloader {
    opacity: 0;
    pointer-events: none;
}

/* --- ENERGY HUD --- */
#system-hud {
    position: fixed;
    bottom: 70px;
    right: 20px;
    background: rgba(5, 5, 5, 0.9);
    border: 1px solid rgba(212,168,67,0.2);
    padding: 12px 18px;
    z-index: 999;
    font-family: 'Courier New', Courier, monospace;
    font-size: 10px;
    color: rgba(232,228,217,0.6);
    pointer-events: none;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 1s ease 1.5s;
}

body.loaded #system-hud {
    opacity: 1;
}

.hud-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 4px;
    white-space: nowrap;
}

.hud-row:last-child { margin-bottom: 0; }

.hud-label { color: rgba(232,228,217,0.4); }
.hud-val { color: var(--gold); }
.hud-val.gold { text-shadow: 0 0 5px var(--gold); }

@media (max-width: 768px) {
    #system-hud { display: none; }
}

/* =========================================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS (CORPORATE TIER)
   ========================================================================= */
.hamburger { display: none; }
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .work-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    /* Core Spacing */
    .section { padding: 4rem 1.5rem; }
    
    /* Typography Scaling */
    .hero-title { font-size: 2.5rem; }
    .contact-title { font-size: 2rem; }
    p { font-size: 14px; }
    
    /* Layout Adjustments */
    .footer-container { gap: 2rem; }
    .hud-row { font-size: 9px; }
    .process-inner { padding: 3rem 1.5rem !important; }
    
    /* Hamburger Menu UI */
    .hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1000; margin-left: auto; }
    .hamburger .line { width: 25px; height: 1.5px; background: rgba(232,228,217,0.8); transition: transform 0.3s, opacity 0.3s; }
    .hamburger.active .line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: var(--gold); }
    .hamburger.active .line:nth-child(2) { opacity: 0; }
    .hamburger.active .line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: var(--gold); }

    /* Fullscreen Glassmorphism Mobile Nav */
    .nav-links {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh;
        background: rgba(2, 2, 2, 0.98);
        backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3.5rem;
        opacity: 0; pointer-events: none;
        transform: scale(1.05);
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99;
    }
    .nav-links.open {
        opacity: 1; pointer-events: auto; display: flex !important;
        transform: scale(1);
    }
    .nav-links li { font-size: 1.8rem; letter-spacing: 3px; font-weight: 500; }
    
    .lang-toggle { margin-left: 0 !important; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(212,168,67,0.2); width: 60%; justify-content: center; }
    
    /* Disable hover effects on mobile for cleaner touch UX */
    .footer-links a:hover { color: rgba(232,228,217,0.5); }
}

/* Specific Fixes for Samsung A30 / Small Mobile (412px and below) */
@media (max-width: 480px) {
    .section { padding: 3.5rem 1.2rem; }
    .hero-title { font-size: 2.2rem; }
    .form-row { grid-template-columns: 1fr; gap: 1rem; }
    .iqc-input { padding: 14px; font-size: 13px; }
    .submit-btn { padding: 16px; }
    .contact-title { font-size: 1.8rem; }
    .about-heading { font-size: 1.6rem; }
    
    /* Center skill pills better on mobile */
    .skill-grid { grid-template-columns: 1fr; }
    
    /* Footer stacking */
    .footer-bottom { justify-content: center; text-align: center; gap: 1.5rem; }
    .legal-links { width: 100%; justify-content: center; }

    /* New Sections Mobile Fixes */
    .testimonial-grid { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
    .testimonial-card { padding: 1.5rem !important; }
    .test-text { font-size: 1rem !important; }
    
    .faq-container { margin-top: 2rem !important; }
    .faq-question span { font-size: 1.05rem !important; padding-right: 10px; }
    
    .preloader-counter { font-size: 2.2rem !important; }
    .preloader-text { font-size: 11px !important; letter-spacing: 2px !important; }
}

/* FLOATING WHATSAPP BUTTON */
.fab-container {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
    display: none; /* Show only on mobile in media query */
}
.fab-btn {
    width: 60px; height: 60px; background: #25d366; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    color: white; font-size: 30px; text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.fab-btn:hover { transform: scale(1.1); }
.fab-ripple {
    position: absolute; top:0; left:0; width:100%; height:100%;
    border-radius:50%; background: #25d366; opacity: 0.5;
    animation: ripple 2s infinite; z-index: -1;
}
@keyframes ripple {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 768px) {
    .fab-container { display: block; }
}

/* SOCIAL BUTTONS */
.social-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
}

.Btn {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: transparent;
  position: relative;
  border-radius: 7px;
  cursor: pointer;
  transition: all .3s;
}

.svgContainer {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  backdrop-filter: blur(4px);
  border-radius: 10px;
  transition: all .3s;
  border: 1px solid rgba(156, 156, 156, 0.466);
  color: #fff;
  font-size: 20px;
  z-index: 2;
}

.BG {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  z-index: 1;
  border-radius: 9px;
  pointer-events: none;
  transition: all .3s;
}

/* Instagram */
.insta .BG {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* Facebook */
.fb .BG {
  background: linear-gradient(45deg, #1877F2, #0C52A1);
}

/* TikTok */
.tt .BG {
  background: linear-gradient(45deg, #69C9D0 0%, #010101 50%, #EE1D52 100%);
}

.Btn:hover .BG {
  transform: rotate(35deg);
  transform-origin: bottom;
}

/* --- CUSTOM RING LOADER (Page Transitions) --- */
.network-loader-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 1000000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

#loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

#loader-text {
  color: white;
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 300;
}

.ring {
  width: 190px;
  height: 190px;
  border: 1px solid transparent;
  border-radius: 50%;
  position: absolute;
}

.ring:nth-child(1) { border-bottom: 8px solid rgb(255, 141, 249); animation: rotate1 2s linear infinite; }
@keyframes rotate1 { from { transform: rotateX(50deg) rotateZ(110deg); } to { transform: rotateX(50deg) rotateZ(470deg); } }
.ring:nth-child(2) { border-bottom: 8px solid rgb(255, 65, 106); animation: rotate2 2s linear infinite; }
@keyframes rotate2 { from { transform: rotateX(20deg) rotateY(50deg) rotateZ(20deg); } to { transform: rotateX(20deg) rotateY(50deg) rotateZ(380deg); } }
.ring:nth-child(3) { border-bottom: 8px solid rgb(0, 255, 255); animation: rotate3 2s linear infinite; }
@keyframes rotate3 { from { transform: rotateX(40deg) rotateY(130deg) rotateZ(450deg); } to { transform: rotateX(40deg) rotateY(130deg) rotateZ(90deg); } }
.ring:nth-child(4) { border-bottom: 8px solid rgb(252, 183, 55); animation: rotate4 2s linear infinite; }
@keyframes rotate4 { from { transform: rotateX(70deg) rotateZ(270deg); } to { transform: rotateX(70deg) rotateZ(630deg); } }

/* --- OFFLINE DOTS LOADER --- */
.offline-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 2000000;
    display: none;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.dots-loader {
  --col1: rgba(228, 19, 141, 0.925);
  --col2: rgb(255, 179, 80);
  font-size: 2em;
  font-weight: 600;
  perspective: 800px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dots-loader::after,
.dots-loader::before,
.dots-loader .text::after,
.dots-loader .text::before {
  perspective: 800px;
  animation: anim 2s ease-in-out infinite, dotMove 10s ease-out alternate infinite, move 10s linear infinite 1s;
  content: '●';
  color: var(--col1);
  position: absolute;
  translate: -60px 100px;
  width: 5px;
  height: 5px;
}

.dots-loader::before { animation-delay: 3s; color: var(--col1); }
.dots-loader .text::before { color: var(--col2); animation-delay: 2s; }
.dots-loader .text::after { color: var(--col2); }

.dots-loader .text {
  animation: anim 20s linear infinite, move 10s linear infinite 1s;
  color: transparent;
  background-image: linear-gradient(90deg, var(--col1) 0%, var(--col2) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  background-size: 100%;
  background-repeat: no-repeat;
  transform: skew(5deg, -5deg);
  position: relative;
  text-align: center;
}

@keyframes anim {
  0%, 100% { text-shadow: 2px 0px 2px rgba(179, 158, 158, .5); }
  50% { background-size: 0%; background-position-x: left; text-shadow: 2px 10px 6px rgba(179, 158, 158, 1); }
}

@keyframes move {
  50% { translate: 0px 0px; rotate: x 60deg; transform: skew(-5deg, 5deg); }
}

@keyframes dotMove {
  0%, 100% { translate: -60px 100px; }
  50% { translate: 160px -100px; scale: .5; opacity: .85; }
}
