/* ═══════════════════════════════════════════════
   VERA YAPI İNŞAAT — Editorial Full Site Design
═══════════════════════════════════════════════ */

:root {
  --navy-base: #0a0d14;
  --navy-light: #161a22;
  --white: #ffffff;
  --off-white: #e0e0e0;
  --gold-accent: #d4af37;
  
  /* Theme Variables */
  --bg-color: var(--navy-base);
  --bg-alt: var(--navy-light);
  --text-primary: var(--white);
  --text-secondary: rgba(255, 255, 255, 0.6);
  --border-color: rgba(255, 255, 255, 0.1);
  --input-bg: rgba(255, 255, 255, 0.05);
  --nav-bg: rgba(6, 8, 11, 0.95);
  /* The hero overlay remains consistently dark to preserve the cinematic look */
  --hero-overlay: linear-gradient(to bottom, rgba(6, 8, 11, 0.3) 0%, transparent 40%, rgba(6, 8, 11, 0.8) 100%);
  --invert-filter: invert(0);
  
  --font-headline: 'Bebas Neue', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-arabic: 'Cairo', sans-serif;
  
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
}

body.light-mode {
  --bg-color: #fcfcfc; /* Softer, less harsh white */
  --bg-alt: #ffffff;
  --text-primary: #1a1a1a; /* Softer, richer black */
  --text-secondary: #666666;
  --border-color: rgba(0, 0, 0, 0.08);
  --input-bg: rgba(0, 0, 0, 0.03);
  --nav-bg: rgba(252, 252, 252, 0.95);
  /* Hero overlay stays dark! */
  --hero-overlay: linear-gradient(to bottom, rgba(6, 8, 11, 0.3) 0%, transparent 40%, rgba(6, 8, 11, 0.9) 100%);
  --invert-filter: invert(1) hue-rotate(180deg);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none !important; /* Hide default cursor */
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* RTL Support for Arabic */
body[dir="rtl"] { font-family: var(--font-arabic); }
body[dir="rtl"] .headline-h1,
body[dir="rtl"] .wordmark,
body[dir="rtl"] .nav-logo,
body[dir="rtl"] .footer-logo {
  font-family: var(--font-arabic);
  font-weight: 800;
  letter-spacing: 0;
}
body[dir="rtl"] .hero-wordmark { bottom: 4vw; }
body[dir="rtl"] .wordmark { font-size: 16vw; }
body[dir="rtl"] .headline-h1 { font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1.3; }
body[dir="rtl"] .headline-italic { font-size: clamp(2.5rem, 5vw, 4.5rem); }

a { text-decoration: none; color: inherit; }
img { pointer-events: none; user-select: none; -webkit-user-drag: none; max-width: 100%; display: block; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 5%; }
.section-padding { padding: 120px 0; }
.text-center { text-align: center; }

.section-title {
  font-family: var(--font-headline);
  font-size: 3rem;
  letter-spacing: 0.05em;
  margin-bottom: 30px;
  text-transform: uppercase;
  color: var(--text-primary);
}
body[dir="rtl"] .section-title { font-family: var(--font-arabic); font-weight: 800; letter-spacing: 0; }

.section-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ── CUSTOM CURSOR ── */
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--gold-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 35px; height: 35px;
  border: 1px solid var(--gold-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
}

.cursor-ring.hover {
  width: 60px; height: 60px;
  background: rgba(212, 175, 55, 0.1);
}

.cursor-ring.reveal {
  width: 180px; height: 180px;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: invert(0.1);
}
.cursor-dot.reveal { opacity: 0; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 25px 0;
  transition: background 0.4s, padding 0.4s, border-color 0.4s;
}
.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1600px; margin: 0 auto; padding: 0 5%;
  display: flex; justify-content: space-between; align-items: center;
}

/* Base nav text is ALWAYS white when transparent (over the dark hero) */
.nav-logo {
  font-family: var(--font-headline);
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  color: var(--white);
  z-index: 1001;
  transition: color 0.4s;
}
.nav.scrolled .nav-logo { color: var(--text-primary); }

.nav-menu { display: flex; gap: 40px; align-items: center; }

.nav-link {
  font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--white); opacity: 0.7;
  transition: opacity 0.3s, color 0.4s;
}
.nav.scrolled .nav-link { color: var(--text-primary); }
.nav-link:hover { opacity: 1; color: var(--gold-accent); }

.nav-right-actions { display: flex; align-items: center; gap: 20px; }

.theme-toggle {
  background: transparent;
  border: none;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  transition: background 0.3s, color 0.4s;
}
.nav.scrolled .theme-toggle { color: var(--text-primary); }
.theme-toggle:hover { background: var(--border-color); }

.lang-switch {
  display: flex; gap: 5px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px; border-radius: 30px;
  transition: background 0.4s, border-color 0.4s;
}
.nav.scrolled .lang-switch {
  background: var(--input-bg);
  border: 1px solid var(--border-color);
}

.mobile-only { display: none; }

.lang-item {
  font-size: 0.75rem; font-weight: 600;
  color: var(--white);
  padding: 6px 12px; border-radius: 20px;
  opacity: 0.5; transition: opacity 0.3s, background 0.3s, color 0.4s;
}
.nav.scrolled .lang-item { color: var(--text-primary); }

.lang-item.active, .lang-item:hover {
  opacity: 1; background: rgba(255,255,255,0.15);
}
.nav.scrolled .lang-item.active, .nav.scrolled .lang-item:hover {
  background: var(--border-color);
}

.hamburger {
  display: none; flex-direction: column; justify-content: space-between;
  width: 30px; height: 20px; background: transparent; border: none; z-index: 1001;
}
.hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--white); transition: transform 0.3s, opacity 0.3s, background 0.4s;
}
.nav.scrolled .hamburger span { background: var(--text-primary); }

/* ── HERO ── */
/* Hero section is theme-independent (always cinematic/dark) */
.hero {
  position: relative;
  width: 100vw; height: 100vh;
  min-height: 700px; overflow: hidden;
  display: flex; flex-direction: column;
}

.hero-bg { position: absolute; inset: 0; z-index: 1; }
.hero-bg-img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.05); filter: brightness(0.5); /* Never changed by light mode */
  transition: transform 1.5s var(--ease-out-expo);
}
.hero.loaded .hero-bg-img { transform: scale(1); }

.hero-overlay {
  position: absolute; inset: 0;
  background: var(--hero-overlay);
  transition: background 0.5s;
}

.hero-headline { position: absolute; top: 15%; left: 5%; z-index: 10; }

.headline-h1 {
  font-family: var(--font-headline);
  font-size: clamp(4rem, 8vw, 7.5rem);
  line-height: 1.15; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--white); /* Always white */
}

.headline-italic {
  font-family: var(--font-body); font-style: italic; font-weight: 300;
  text-transform: lowercase; font-size: clamp(3rem, 6.5vw, 5.5rem);
  color: var(--gold-accent);
}

.blur-reveal-text {
  position: absolute; top: 50%; right: 8%; width: 360px; z-index: 20;
  font-size: 1rem; line-height: 1.8; color: var(--white); /* Always white */
}
.blurred-layer { filter: blur(2.5px); opacity: 0.5; }
.clear-layer {
  position: absolute; top: 0; left: 0;
  clip-path: circle(var(--reveal-size, 0px) at var(--local-x, 50%) var(--local-y, 50%));
  transition: clip-path 0.1s ease-out;
}

.hero-wordmark {
  position: absolute; bottom: -4vw; left: 50%;
  transform: translateX(-50%); width: 100%; text-align: center; z-index: 15;
}
.wordmark {
  font-family: var(--font-headline); font-size: 26vw; line-height: 0.75;
  white-space: nowrap; color: var(--white); /* Always white */
  mix-blend-mode: overlay;
  opacity: 0.8; /* Restored elegant opacity */
}

/* ── SERVICES ── */
.services { background: var(--bg-color); }

.services-header { margin-bottom: 60px; }
.svc-overline {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-accent);
  margin-bottom: 12px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.svc-card {
  background: var(--bg-alt);
  padding: 36px 28px;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, background 0.35s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}
.svc-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--gold-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out-expo);
}
.svc-card:hover { background: var(--bg-color); }
.svc-card:hover::before { transform: scaleX(1); }

.svc-icon-wrap {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 20px;
  transition: border-color 0.3s, background 0.3s;
  background: rgba(255,255,255,0.04);
  background: var(--input-bg);
  flex-shrink: 0;
}
.svc-card:hover .svc-icon-wrap {
  border-color: var(--gold-accent);
  background: rgba(212, 175, 55, 0.08);
}
.svc-icon-wrap svg {
  width: 22px; height: 22px;
  stroke: var(--gold-accent);
  transition: transform 0.3s;
}
.svc-card:hover .svc-icon-wrap svg { transform: scale(1.1); }

.svc-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 10px; text-transform: uppercase; color: var(--text-primary); letter-spacing: 0.03em; }
.svc-desc { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.65; }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-image { position: relative; }
.about-image img { border-radius: 4px; filter: grayscale(20%); }
.image-accent {
  position: absolute; bottom: -20px; right: -20px;
  width: 100px; height: 100px; border: 2px solid var(--gold-accent); z-index: -1;
}
body[dir="rtl"] .image-accent { right: auto; left: -20px; }

/* ── PROJECTS ── */
.projects { background: var(--bg-alt); transition: background 0.5s; }
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 60px; }
.project-card { cursor: none; }
.project-img-wrapper { overflow: hidden; border-radius: 4px; margin-bottom: 20px; }
.project-img-wrapper img { width: 100%; height: 400px; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover .project-img-wrapper img { transform: scale(1.05); }
.project-info h3 { font-size: 1.5rem; margin-bottom: 5px; color: var(--text-primary); }
.project-info p { color: var(--gold-accent); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-details p { margin-bottom: 10px; color: var(--text-secondary); }
.contact-details strong { color: var(--gold-accent); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form input, .contact-form textarea {
  width: 100%; background: var(--input-bg);
  border: 1px solid var(--border-color);
  padding: 15px 20px; color: var(--text-primary);
  font-family: inherit; border-radius: 4px; outline: none; transition: border-color 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold-accent); }
.btn-submit {
  background: var(--gold-accent); color: #fff;
  border: none; padding: 15px 30px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; border-radius: 4px; transition: background 0.3s;
}
.btn-submit:hover { background: var(--text-primary); color: var(--bg-color); }

/* ── FOOTER REDESIGN ── */
.footer {
  position: relative;
  background: var(--bg-alt);
  padding: 120px 0 30px;
  transition: background 0.5s;
  overflow: hidden;
}

.footer-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 2;
}
.footer-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}
.footer-wave .shape-fill {
  fill: var(--bg-color);
  transition: fill 0.5s;
}

.footer-bg-img {
  position: absolute;
  inset: 0;
  background: url('image2.jpeg') center/cover;
  opacity: 0.06;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: luminosity;
}
body.light-mode .footer-bg-img {
  opacity: 0.12;
}

.footer-content-wrapper {
  position: relative;
  z-index: 3;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-logo {
  font-family: var(--font-headline);
  font-size: 2rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 15px;
}
.footer-desc {
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 300px;
  font-size: 0.9rem;
}
.footer-links h3, .footer-social h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.footer-links a, .social-icons a {
  display: block;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 0.9rem;
  transition: color 0.3s;
}
.footer-links a:hover, .social-icons a:hover {
  color: var(--gold-accent);
}
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
  animation: pulse-wa 2s infinite ease-in-out;
}

@keyframes pulse-wa {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float svg { width: 32px; height: 32px; }

.whatsapp-float:hover {
  animation: none;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 25px rgba(37, 211, 102, 0.6);
  background-color: #1ebe57;
}

/* ── SCROLL ANIMATIONS ── */
.reveal-up {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-up.active { opacity: 1; transform: translateY(0); }

/* Service card visible state */
.svc-card.svc-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .wordmark { font-size: 28vw; bottom: -2vw; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { gap: 40px; }
  .blur-reveal-text { top: 65%; right: 5%; width: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero { min-height: auto; height: 100vh; }
  
  .hamburger { display: flex; }
  .desktop-only { display: none; }
  .mobile-only { display: flex; margin-top: 30px; }
  
  .nav-right-actions { gap: 10px; }
  
  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 100%; height: 100vh;
    background: var(--bg-color);
    flex-direction: column;
    justify-content: center;
    transition: right 0.4s ease;
  }
  body[dir="rtl"] .nav-menu { right: auto; left: -100%; transition: left 0.4s ease; }
  
  .nav-menu.open { right: 0; }
  body[dir="rtl"] .nav-menu.open { left: 0; }
  
  .nav-link { font-size: 1.5rem; color: var(--text-primary) !important; }

  /* Hamburger Animation */
  .nav.menu-open .hamburger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .nav.menu-open .hamburger span:nth-child(2) { opacity: 0; }
  .nav.menu-open .hamburger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  
  .headline-h1 { font-size: 3.5rem; }
  .headline-italic { font-size: 2.5rem; }
  .hero-headline { top: 15%; }
  
  .hero-wordmark { bottom: 10vw; }
  .wordmark { font-size: 32vw; }
  body[dir="rtl"] .hero-wordmark { bottom: 15vw; }
  body[dir="rtl"] .wordmark { font-size: 26vw; bottom: 0; }
  
  .blur-reveal-text { 
    display: block; 
    top: auto; bottom: 20%; right: 5% !important; left: 5% !important; width: 90%;
  }
  body[dir="rtl"] .blur-reveal-text { text-align: right; }
  .blurred-layer { filter: none; opacity: 0.85; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
  .clear-layer { display: none; }
  
  .about-grid, .projects-grid, .contact-grid { grid-template-columns: 1fr; }
  .project-img-wrapper img { height: 300px; }
  
  .services-grid { grid-template-columns: 1fr; border-radius: 8px; }
  .svc-card { padding: 24px 20px; }
  .services-header { margin-bottom: 30px; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .footer-desc { margin: 0 auto; }
  
  .whatsapp-float { width: 50px; height: 50px; bottom: 20px; left: 20px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}
