/* ULTRA PREMIUM DESIGN VARIABLES */
:root {
  --primary: #c9a050; /* Softer, elegant gold */
  --bg-dark: #070707; /* Pitch black with slight warmth */
  --bg-card: #121212;
  --text-main: #e0e0e0;
  --text-muted: #888888;
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
  
  --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --cursor-size: 10px;
}

/* RESET & SELECTION */
* { margin: 0; padding: 0; box-sizing: border-box; }

::selection { background: var(--primary); color: #000; }

html { scroll-behavior: auto; }
html, body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none; /* Hide default cursor */
}

body.loading-state { overflow: hidden; }

/* TYPOGRAPHY */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: normal; line-height: 1.1; }
i { font-style: italic; color: var(--primary); }
a { color: inherit; text-decoration: none; }
.container { width: 90%; max-width: 1400px; margin: 0 auto; }

/* CUSTOM CURSOR */
.cursor-dot, .cursor-outline {
  position: fixed;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}
.cursor-dot {
  width: var(--cursor-size);
  height: var(--cursor-size);
  background-color: var(--primary);
}
.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(201, 160, 80, 0.5);
  transition: width 0.3s, height 0.3s, background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 10px;
  text-transform: uppercase;
  color: #000;
  font-weight: 600;
  text-align: center;
}
.cursor-outline::after {
  content: attr(data-text);
}

body:hover .cursor-outline.hovered {
  width: 80px; height: 80px;
  background-color: var(--primary);
  border-color: transparent;
}
body:hover .cursor-dot.hovered { opacity: 0; }

/* LOADER */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease-in-out, visibility 1s;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-content { text-align: center; }
.loader-logo { height: 350px; max-width: 90vw; object-fit: contain; margin-bottom: 40px; opacity: 0; animation: fadeIn 1s forwards 0.5s; }
.loader-progress {
  width: 0; height: 2px;
  background: var(--primary);
  animation: progress 2s cubic-bezier(0.16, 1, 0.3, 1) forwards 1s;
}

@keyframes fadeIn { to { opacity: 1; } }
@keyframes progress { to { width: 150px; } }

/* NAVBAR */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  padding: 30px 0; z-index: 1000;
  transition: var(--transition);
}
.navbar.scrolled {
  padding: 15px 0;
  background: var(--primary);
  border-bottom: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 90%; max-width: 1400px; margin: 0 auto; }
.logo { height: 45px; transition: var(--transition); }
.navbar.scrolled .logo { height: 35px; }
.nav-links { display: flex; gap: 40px; }
.nav-links a {
  font-size: 0.85rem; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; position: relative; padding-bottom: 5px;
  transition: color 0.3s;
}
.navbar.scrolled .nav-links a { color: #000; font-weight: 600; }
.nav-links a::after {
  content: ""; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--primary); transition: var(--transition);
}
.navbar.scrolled .nav-links a::after { background: #000; }
.nav-links a:hover::after { width: 100%; }

/* HERO */
.hero {
  position: relative; height: 100vh; display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; 
  right: 5%; 
  top: 15%;
  width: 600px; 
  height: 600px;
  max-width: 80vw;
  max-height: 80vw;
  background: url('logo.png') center/contain no-repeat;
  opacity: 1;
  z-index: 0;
  -webkit-mask-image: radial-gradient(circle at center, black 50%, transparent 70%);
  mask-image: radial-gradient(circle at center, black 50%, transparent 70%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(7,7,7,1) 0%, rgba(7,7,7,0.8) 30%, rgba(7,7,7,0) 60%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2; padding: 0 5%; max-width: 1000px;
}
.reveal-text { overflow: hidden; }
.subtitle {
  display: block; font-size: 0.9rem; letter-spacing: 4px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 30px;
  transform: translateY(100%); transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-title {
  font-size: 6vw; margin-bottom: 30px;
  transform: translateY(100%); transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}
.hero-content p {
  font-size: 1.2rem; max-width: 500px; margin-bottom: 40px; color: #ccc;
  transform: translateY(100%); transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}
.btn-primary {
  display: inline-block; border: 1px solid var(--primary); padding: 15px 40px;
  font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase;
  position: relative; overflow: hidden;
  transform: translateY(100%); transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}
.btn-primary::before {
  content: ""; position: absolute; top: 0; left: 0; width: 0; height: 100%;
  background: var(--primary); transition: var(--transition); z-index: -1;
}
.btn-primary:hover { color: #000; }
.btn-primary:hover::before { width: 100%; }

body:not(.loading-state) .subtitle,
body:not(.loading-state) .hero-title,
body:not(.loading-state) .hero-content p,
body:not(.loading-state) .btn-primary { transform: translateY(0); }

.scroll-indicator {
  position: absolute; bottom: 40px; right: 5%; z-index: 2;
  display: flex; align-items: center; gap: 15px; transform: rotate(90deg); transform-origin: right center;
}
.scroll-indicator span { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); }
.scroll-indicator .line { width: 60px; height: 1px; background: rgba(255,255,255,0.2); position: relative; overflow: hidden; }
.scroll-indicator .line::after {
  content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: var(--primary); animation: scrollLine 2s infinite ease-in-out;
}
@keyframes scrollLine { 100% { left: 100%; } }

/* SECTIONS */
.section { padding: 150px 0; }
.section-title { font-size: 4rem; margin-bottom: 50px; }
.subsection-title { font-size: 2.5rem; margin-bottom: 30px; font-family: var(--font-heading); }

/* ABOUT ASYMMETRIC GRID */
.asym-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.mt-100 { margin-top: 150px; }
.about-text .lead { font-size: 1.4rem; color: #fff; margin-bottom: 30px; font-weight: 300; }
.about-text p { color: var(--text-muted); margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px !important; }
.parallax-container { overflow: hidden; border-radius: 2px; position: relative; aspect-ratio: 4/5; }
.parallax-img { width: 100%; height: 130%; object-fit: cover; position: absolute; top: -15%; left: 0; }

/* PROJECTS */
.project-filters {
  display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; margin-bottom: 50px;
}
.filter-btn {
  background: transparent; border: 1px solid rgba(255,255,255,0.2); color: var(--text-muted);
  padding: 10px 25px; border-radius: 30px; cursor: pointer; font-family: var(--font-body);
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary); color: #000; border-color: var(--primary);
}

.empty-state { text-align: center; color: var(--text-muted); font-style: italic; width: 100%; grid-column: 1 / -1; }

.project-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px; margin-top: 40px;
}
.project-item { grid-column: span 4; position: relative; aspect-ratio: 3/4; overflow: hidden; }
.project-item.large { grid-column: span 8; aspect-ratio: 16/9; }
.project-img-wrapper { position: absolute; inset: 0; overflow: hidden; }
.project-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); filter: grayscale(50%); }
.project-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 50%);
  opacity: 0.6; transition: var(--transition);
}
.project-info {
  position: absolute; bottom: 30px; left: 30px; z-index: 2;
  transform: translateY(20px); opacity: 0; transition: var(--transition);
}
.project-info h3 { font-size: 1.8rem; margin-bottom: 5px; color: #fff; }
.project-info span { font-size: 0.85rem; color: var(--primary); letter-spacing: 2px; text-transform: uppercase; }

.project-item:hover .project-img-wrapper img { transform: scale(1.05); filter: grayscale(0%); }
.project-item:hover .project-overlay { opacity: 0.9; }
.project-item:hover .project-info { transform: translateY(0); opacity: 1; }

/* CONTACT */
.contact-box {
  background: var(--bg-card); padding: 80px; border: 1px solid rgba(255,255,255,0.05);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; margin-top: 60px; }
.c-item { margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 20px; }
.c-item span { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 10px; }
.c-item a, .c-item p { font-size: 1.5rem; font-family: var(--font-heading); color: #fff; }
.c-item a:hover { color: var(--primary); }
.contact-map { aspect-ratio: 16/9; filter: grayscale(1) invert(0.9) contrast(1.2); }

/* FOOTER */
.footer { padding: 60px 0; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-logo { height: 30px; }
.footer p { color: var(--text-muted); font-size: 0.9rem; }
.f-links { display: flex; gap: 30px; }
.f-links a { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; }

/* WHATSAPP */
.whatsapp {
  position: fixed; bottom: 40px; right: 40px; width: 60px; height: 60px;
  background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  z-index: 99; transition: transform 0.3s;
}
.whatsapp img { width: 30px; filter: brightness(0) invert(1); }
.whatsapp:hover { transform: scale(1.1); }

/* SCROLL ANIMATIONS */
.scroll-reveal { opacity: 0; transform: translateY(50px); transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.scroll-reveal.left { transform: translateX(-50px); }
.scroll-reveal.right { transform: translateX(50px); }
.scroll-reveal.active { opacity: 1; transform: translate(0,0); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-title { font-size: 8vw; }
  .project-item, .project-item.large { grid-column: span 6; aspect-ratio: 4/3; }
  .asym-grid { gap: 40px; }
}
@media (max-width: 768px) {
  .cursor-dot, .cursor-outline { display: none; }
  body { cursor: auto; }
  .asym-grid, .contact-grid { grid-template-columns: 1fr; }
  .reverse-mobile { display: flex; flex-direction: column-reverse; }
  .project-item, .project-item.large { grid-column: span 12; }
  .section-title { font-size: 3rem; }
  .contact-box { padding: 40px 20px; }
  .footer-bottom { flex-direction: column; gap: 30px; text-align: center; }
  .nav-links { display: none; }
}

/* VERIFY MODAL AND BTN */
.verify-nav-btn {
  color: var(--primary) !important;
  border: 1px solid var(--primary);
  padding: 5px 15px !important;
  border-radius: 20px;
  font-weight: 600 !important;
}
.verify-nav-btn::after { display: none !important; }
.verify-nav-btn:hover { background: var(--primary); color: #000 !important; }
.navbar.scrolled .verify-nav-btn { color: #000 !important; border-color: #000; }
.navbar.scrolled .verify-nav-btn:hover { background: #000; color: var(--primary) !important; }

.verify-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
  z-index: 2000; display: flex; justify-content: center; align-items: center;
  opacity: 0; visibility: hidden; transition: var(--transition);
}
.verify-modal-overlay.active { opacity: 1; visibility: visible; }
.verify-modal-content {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.1);
  padding: 40px; border-radius: 15px; width: 90%; max-width: 500px;
  text-align: center; position: relative; transform: translateY(30px); transition: var(--transition);
}
.verify-modal-overlay.active .verify-modal-content { transform: translateY(0); }
.verify-close-btn {
  position: absolute; top: 15px; right: 20px; background: none; border: none;
  color: var(--text-main); font-size: 24px; cursor: pointer; transition: 0.3s;
}
.verify-close-btn:hover { color: var(--primary); transform: scale(1.1); }
.verify-modal-content h2 { margin-bottom: 15px; color: var(--primary); letter-spacing: 2px; }
.verify-modal-content p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 30px; }

.verify-input-group { display: flex; gap: 10px; margin-bottom: 20px; }
.verify-input-group input {
  flex: 1; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; padding: 12px; border-radius: 8px; text-transform: uppercase;
  text-align: center; font-size: 1.1rem; letter-spacing: 2px;
}
.verify-input-group input:focus { outline: none; border-color: var(--primary); }
.verify-input-group button {
  background: var(--primary); color: #000; border: none; padding: 0 25px;
  border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.3s;
}
.verify-input-group button:hover { background: #e0b660; }

.verify-result { text-align: left; padding: 20px; border-radius: 8px; margin-top: 20px; animation: fadeIn 0.5s ease forwards; }
.verify-result.success { background: rgba(40, 167, 69, 0.1); border: 1px solid rgba(40, 167, 69, 0.3); }
.verify-result.error { background: rgba(220, 53, 69, 0.1); border: 1px solid rgba(220, 53, 69, 0.3); }
.verify-result h3 { margin-bottom: 10px; font-size: 1.2rem; }
.verify-result p { margin-bottom: 5px; color: #ccc; font-size: 0.9rem; }
.verify-result.success h3 { color: #4ade80; }
.verify-result.error h3 { color: #f87171; }
.admin-nav-btn { color: var(--primary) !important; border: 1px solid var(--primary); padding: 8px 20px !important; border-radius: 4px; margin-left: 15px; text-decoration: none; }
.admin-nav-btn:hover { background: rgba(212, 175, 55, 0.1); }
