/* GLOBAL VARIABLES */
:root {
  --bg-dark: #0b0b0b;
  --bg-card: #111111;
  --bg-light: #161616;
  --accent: #00d4ff;
  --accent-glow: rgba(0, 212, 255, 0.3);
  --text-main: #ffffff;
  --text-dim: #aaa;
  --transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --section-padding: clamp(60px, 10vw, 120px);
}

html { scroll-behavior: smooth; }

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
}

/* HEADER & NAVIGATION */
header {
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10%;
  z-index: 1000;
}

.logo img { 
  height: 55px; 
  display: block;
  mix-blend-mode: screen;
  filter: brightness(1.1) contrast(1.1);
  transition: var(--transition);
}

nav a {
  color: #fff;
  margin-left: 20px;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: 0.3s;
}
nav a:hover::after { width: 100%; }
nav a:hover, nav a.active { color: var(--accent); }

/* MOBILE MENU */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}
.menu-toggle span {
  height: 3px;
  width: 25px;
  background: var(--accent);
  margin-bottom: 5px;
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .logo img { height: 42px; }
  header { padding: 10px 5%; }
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }
  nav.active { right: 0; }
  nav a { margin: 20px 0; font-size: 1.2rem; }
  .menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ANIMATIONS & UTILS */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

@keyframes fade {
  from { opacity: 0; filter: blur(10px); }
  to { opacity: 1; filter: blur(0); }
}

/* SHARED BUTTONS */
.btn {
  background: var(--accent);
  color: #000;
  padding: 14px 30px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  border-radius: 4px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
}

.section { padding: var(--section-padding) 10%; text-align: center; }
p { color: #ccc; line-height: 1.8; }

/* FOOTER & WHATSAPP */
footer { background: #111; text-align: center; padding: 20px; font-size: 14px; }
.whatsapp { position: fixed; bottom: 20px; right: 20px; z-index: 999; }
.whatsapp img { width: 50px; transition: var(--transition); }
.whatsapp:hover { transform: scale(1.1); }

/* BACK TO TOP BUTTON */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 25px;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px var(--accent-glow);
}

/* HERO SECTIONS (GLOBAL) */
.hero {
  position: relative;
  height: 60vh; /* Default for sub-pages */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 3;
  transition: opacity 2.5s ease;
}

.hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 4;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  background: linear-gradient(to bottom, #fff, #888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  margin: 0;
}

/* INDEX PAGE SPECIFIC HERO */
.hero-content-index {
  animation: heroEntrance 1.2s ease-out;
}
.hero-content-index h1 {
  line-height: 1.1;
  max-width: 900px;
}
.hero-content-index p { 
  color: var(--text-main);
  font-size: 1.2rem;
  margin-top: 15px;
}

@keyframes heroEntrance {
  from { opacity: 0; transform: translateY(30px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* MARQUEE */
.marquee {
  background: #111;
  padding: 10px;
  overflow: hidden;
  white-space: nowrap;
}

.marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: scroll 47s linear infinite;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* STATS */
.stats-container {
  display: flex;
  justify-content: space-around;
  padding: 80px 10%;
  background: var(--bg-card);
  flex-wrap: wrap;
  gap: 30px;
}
.stat-item { text-align: center; min-width: 150px; }
.stat-item h2 {
  font-size: 3rem;
  color: var(--accent);
  margin: 0;
  text-shadow: 0 0 20px var(--accent-glow);
}
.stat-item p { color: var(--text-dim); margin-top: 10px; font-weight: 500; }

/* PORTFOLIO / GALLERY */
.section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  letter-spacing: -1px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid #222;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.project-info {
  padding: 15px;
  text-align: left;
}
.project-info h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--accent);
}
.project-tags {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}
.tag {
  font-size: 10px;
  background: #222;
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--text-dim);
}

/* PROCESS SECTION */
.process-section {
  background: var(--bg-dark); /* Or var(--bg-card) if preferred */
  padding: var(--section-padding) 10%;
  text-align: center;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.process-step {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #222;
  transition: var(--transition);
}
.process-step:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}
.step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 15px;
}
.process-step h3 {
  color: var(--text-main);
  margin-bottom: 10px;
}
.process-step p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* TESTIMONIALS */
.testimonials-section {
  background: var(--bg-card);
  padding: 80px 10%;
  text-align: center;
}

.testimonials-section h2 {
  margin-bottom: 50px;
  color: var(--text-main);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--bg-dark);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #222;
  text-align: left;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.testimonial-card p {
  font-style: italic;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.testimonial-card .client-name {
  font-weight: 600;
  color: var(--accent);
}

/* BLOG SPECIFIC */
.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: var(--section-padding) 10%;
}

.blog-card {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #222;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.blog-card h3 {
  margin-bottom: 10px;
  color: var(--accent);
}

.blog-card p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

.blog-card a {
  color: var(--text-main);
  text-decoration: none;
  margin-top: 10px;
  display: inline-block;
  font-weight: 600;
  transition: 0.3s;
}
.blog-card a:hover { color: var(--accent); }

/* CONTACT FORM SPECIFIC */
.contact-form-section {
  padding: var(--section-padding) 10%;
  text-align: center;
}

.visit-notice {
  color: var(--accent);
  font-weight: 500;
  margin-top: -25px;
  margin-bottom: 35px;
}

.contact-form-section form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  max-width: 600px;
  margin: 40px auto 0;
}

.form-group { width: 100%; }

.contact-form-section input,
.contact-form-section select,
.contact-form-section textarea {
  width: 100%;
  padding: 12px;
  background: #111;
  border: 1px solid #333;
  color: #fff;
  border-radius: 5px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

.contact-form-section input:focus,
.contact-form-section select:focus,
.contact-form-section textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.contact-form-section textarea { resize: vertical; }

/* SOCIAL ICONS */
.social {
  margin-top: 30px; /* Space above social icons */
}
.social img {
  width: 40px;
  margin: 0 10px; /* Space between social icons */
}
.social a {
  transition: 0.3s;
  display: inline-block;
}
.social a:hover { transform: translateY(-5px); }

/* BLOG POST SPECIFIC */
.post-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.post-header {
  margin-bottom: 40px;
  text-align: left;
}

.post-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 10px;
}

.post-meta {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.back-link {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 20px;
  font-weight: 500;
}

/* Typography for the article content */
article p { margin-bottom: 20px; }
article h2 { color: var(--text-main); margin: 30px 0 15px; }
article ul { margin-bottom: 20px; padding-left: 20px; color: var(--text-dim); }
article li { margin-bottom: 10px; line-height: 1.6; }

/* CTA Section in Blog Post */
.blog-post-cta {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid #222;
  text-align: center;
}

/* LANGUAGE SWITCHER */
.lang-switch {
  display: flex;
  justify-content: center;
  padding: 20px 0;
  gap: 10px;
}

.lang-switch img {
  width: 32px;
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition);
  opacity: 0.5;
}

.lang-switch img:hover, .lang-switch img.active { opacity: 1; }

/* VALUES GRID */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.value-card {
  background: var(--bg-card);
  padding: 35px;
  border-radius: 12px;
  border: 1px solid #222;
  border-top: 2px solid transparent;
  transition: var(--transition);
  text-align: left;
}

.value-card:hover {
  border-color: var(--accent);
  border-top-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.value-card h3 { color: var(--accent); margin-top: 0; margin-bottom: 15px; }

.value-icon { margin-bottom: 20px; color: var(--accent); }

.value-icon svg { width: 40px; height: 40px; fill: currentColor; }