/* -----------------------------------------------------------
   Variables & Reset
----------------------------------------------------------- */
:root {
  /* Colors */
  --bg-dark: #020514;
  --bg-darker: #01030a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.07);

  --accent-cyan: #00f0ff;
  --accent-purple: #7000ff;
  --accent-gradient: linear-gradient(
    135deg,
    var(--accent-cyan),
    var(--accent-purple)
  );

  --text-main: #f0f0f0;
  --text-muted: #a0a0a0;

  --border-color: rgba(255, 255, 255, 0.1);

  /* Spacing & Layout */
  --container-width: 1200px;
  --spacing-section: 6rem;
  --spacing-md: 2rem;
  --spacing-sm: 1rem;

  /* Typography */
  --font-heading: system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  /* Fallback */
  background-image: url("tech-workspace.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Dark overlay to ensure text readability over the photo */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 5, 20, 0.9);
  /* Deep dark logo-match overlay */
  z-index: -2;
  /* Behind toggle, canvas (-1), this (-2) */
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
  /* Subtler canvas on top of image */
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* -----------------------------------------------------------
   Utilities
----------------------------------------------------------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.grid {
  display: grid;
  gap: 2rem;
}

.section {
  padding: var(--spacing-section) 0;
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 240, 255, 0.2);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  margin-left: 1rem;
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-outline {
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  margin-top: 1rem;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(0, 240, 255, 0.1);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
}

/* -----------------------------------------------------------
   Header
----------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: background 0.3s, padding 0.3s, backdrop-filter 0.3s;
}

.header.scrolled {
  background: linear-gradient(to bottom, #020514 0%, rgba(2, 5, 20, 0.8) 100%);
  backdrop-filter: blur(10px);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-color);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 0.85rem;
  font-weight: 600;
}

.lang-btn svg {
  width: 16px;
  height: 16px;
}

.lang-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  /* Adjust based on preference */
  width: auto;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background-color: var(--text-main);
  transition: 0.3s;
}

/* -----------------------------------------------------------
   Hero Section
----------------------------------------------------------- */
.hero {
  min-height: 100vh;
  padding-top: 100px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 4rem;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-actions {
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trust-row {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.separator {
  color: var(--accent-cyan);
}

/* 3D Eye Animation */
.eye-container {
  width: 300px;
  height: 300px;
  position: relative;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.eye-glow {
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(
    circle,
    rgba(0, 240, 255, 0.15) 0%,
    rgba(112, 0, 255, 0.05) 50%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.eye {
  width: 220px;
  height: 220px;
  transform-style: preserve-3d;
}

.eye-ball {
  width: 100%;
  height: 100%;
  background: #e0e0e0;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.5),
    0 10px 30px rgba(0, 0, 0, 0.3);
  /* Subtle texture */
  background-image: radial-gradient(
    circle at 50% 10%,
    #fff,
    #ddd 40%,
    #bbb 80%,
    #999 100%
  );
  transition: transform 0.1s ease-out;
}

.iris {
  width: 50%;
  height: 50%;
  position: absolute;
  top: 25%;
  left: 25%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-cyan), var(--accent-purple));
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
  transform: translate(0, 0);
  /* Moved by JS */
}

.pupil {
  width: 40%;
  height: 40%;
  background: #000;
  border-radius: 50%;
  position: absolute;
  top: 30%;
  left: 30%;
}

.reflection {
  width: 20%;
  height: 20%;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  position: absolute;
  top: 20%;
  left: 20%;
  filter: blur(1px);
}

/* -----------------------------------------------------------
   Services Cards
----------------------------------------------------------- */
.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: rgba(18, 22, 36, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.card:hover {
  background: rgba(18, 22, 36, 0.6);
  transform: translateY(-5px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.icon-box {
  width: 50px;
  height: 50px;
  margin-bottom: 1.5rem;
  color: var(--accent-cyan);
}

.icon-box svg {
  width: 100%;
  height: 100%;
}

.card h3 {
  margin-bottom: 1rem;
  color: #fff;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* -----------------------------------------------------------
   Modal System
----------------------------------------------------------- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  /* Hidden by default */
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  width: 90%;
  max-width: 600px;
  padding: 3rem;
  border-radius: 24px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal.active .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: 0.3s;
}

.close-modal:hover {
  color: var(--accent-cyan);
}

.modal-icon-box {
  width: 60px;
  height: 60px;
  margin-bottom: 2rem;
  color: var(--accent-cyan);
}

.modal-icon-box svg {
  width: 100%;
  height: 100%;
}

#modal-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* -----------------------------------------------------------
   Experience Section
----------------------------------------------------------- */
.experience-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.experience-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  perspective: 1000px;
}

.tilt-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  /* JS will update this */
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* Glass border */
}

.tilt-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.tilt-card:hover img {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.tilt-card:hover .card-overlay {
  transform: translateY(0);
}

.card-overlay span {
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 2px solid var(--accent-cyan);
}

@media (max-width: 992px) {
  .experience-layout {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------------------------------------
   Courses
----------------------------------------------------------- */
.courses-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.course-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.course-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-purple);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: bold;
  text-transform: uppercase;
}

/* -----------------------------------------------------------
   Projects
----------------------------------------------------------- */
/* -----------------------------------------------------------
   Projects Slider
----------------------------------------------------------- */
.projects-slider-wrapper {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 2rem;
  /* Hide scrollbar for clean look but verify usability */
  scrollbar-width: none;
}

.projects-slider-wrapper::-webkit-scrollbar {
  display: none;
}

.projects-slider {
  display: flex;
  gap: 2rem;
  padding: 0 1.5rem;
  /* Match container padding */
  width: max-content;
  /* Ensure horizontal scroll */
}

.project-slide {
  width: 350px;
  height: 450px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}

.project-slide:hover {
  transform: scale(1.02);
  border-color: var(--accent-cyan);
}

.slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.project-slide:hover .slide-bg {
  transform: scale(1.1);
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, #05070c, transparent);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  backdrop-filter: blur(2px);
}

.slide-content h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #fff;
}

.slide-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* -----------------------------------------------------------
   About & Contact
----------------------------------------------------------- */
.about-layout {
  text-align: center;
  max-width: 800px;
}

.values-list {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.values-list li {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--accent-cyan);
}

.contact-box {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
}

.contact-sub {
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-cyan);
  outline: none;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.error-msg {
  color: #ff4d4d;
  font-size: 0.8rem;
  display: none;
  margin-top: 0.3rem;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #ff4d4d;
}

.form-group.error .error-msg {
  display: block;
}

/* -----------------------------------------------------------
   Footer
----------------------------------------------------------- */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  margin-top: 4rem;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* -----------------------------------------------------------
   Animations
----------------------------------------------------------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

/* -----------------------------------------------------------
   Responsive
----------------------------------------------------------- */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .header .nav,
  .header .btn {
    display: none;
    /* Simplified for this plan - toggle not fully implemented in pure CSS */
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Mobile Nav State (Handled by JS typically, keeping simple display:none for now or adding class) */
  .nav.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-darker);
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
  }

  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-actions,
  .trust-row {
    justify-content: center;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .eye-container {
    width: 200px;
    height: 200px;
  }

  .eye {
    width: 150px;
    height: 150px;
  }
}

/* -----------------------------------------------------------
   WhatsApp Sticky Button
----------------------------------------------------------- */
.whatsapp-sticky {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1500;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

[dir="rtl"] .whatsapp-sticky {
  right: auto;
  left: 2rem;
}

.whatsapp-sticky:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-sticky svg {
  width: 32px;
  height: 32px;
}

/* -----------------------------------------------------------
   Platform Showcase (Social Icons)
----------------------------------------------------------- */
.platform-showcase {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.platform-icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.platform-icon svg {
  width: 20px;
  height: 20px;
}

.platform-icon:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 240, 255, 0.2);
}

/* Specific colors on hover for a premium, authentic feel */
.platform-icon[data-i18n-title*="meta"]:hover {
  background: rgba(24, 119, 242, 0.1);
  color: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.platform-icon[data-i18n-title*="google"]:hover {
  background: rgba(66, 133, 244, 0.1);
  color: #4285f4;
  border-color: #4285f4;
  box-shadow: 0 5px 15px rgba(66, 133, 244, 0.4);
}

.platform-icon[data-i18n-title*="tiktok"]:hover {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border-color: #fe2c55;
  box-shadow: 2px 2px 0px #fe2c55, -2px -2px 0px #25f4ee;
}

.platform-icon[data-i18n-title*="snapchat"]:hover {
  background: #fffc00;
  color: #000;
  border-color: #000;
  box-shadow: 0 5px 15px rgba(255, 252, 0, 0.4);
}

.platform-icon[data-i18n-title*="youtube"]:hover {
  background: rgba(255, 0, 0, 0.1);
  color: #ff0000;
  border-color: #ff0000;
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

/* Animation for the icons entry */
.service-card:hover .platform-icon {
  animation: bounceIn 0.5s ease forwards;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }

  70% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1);
  }
}

/* Staggered animation */
.platform-icon:nth-child(1) {
  animation-delay: 0.1s;
}

.platform-icon:nth-child(2) {
  animation-delay: 0.2s;
}

.platform-icon:nth-child(3) {
  animation-delay: 0.3s;
}

.platform-icon:nth-child(4) {
  animation-delay: 0.4s;
}

.platform-icon:nth-child(5) {
  animation-delay: 0.5s;
}

/* -----------------------------------------------------------
   Responsive Adjustments
----------------------------------------------------------- */
@media (max-width: 768px) {
  .whatsapp-sticky {
    width: 50px;
    height: 50px;
    bottom: 1.5rem;
    right: 1.5rem;
  }

  [dir="rtl"] .whatsapp-sticky {
    right: auto;
    left: 1.5rem;
  }
}

/* Modal Platform Showcase Styling */
#modal-platforms {
  margin-top: 2.5rem;
  justify-content: center;
}

#modal-platforms .platform-icon {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.08);
}

#modal-platforms .platform-icon svg {
  width: 24px;
  height: 24px;
}
