/* ========================================
 *  Ufuk Teknoloji - Ultimate Dark UI
 *  Optimized & Mobile-First
 *  ======================================== */

:root {
  --bg-color: #000000;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #111111;
  --text-color: #ffffff;
  --text-muted: #888888;
  --primary-gradient: linear-gradient(90deg, #00f2ff, #00c3ff);
  --secondary-gradient: linear-gradient(90deg, #00f2ff, #9d00ff);
  --accent-cyan: #00f2ff;
  --accent-purple: #9d00ff;
  --border-color: rgba(255, 255, 255, 0.1);
  --container-width: 1200px;
  --transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  --header-height: 70px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  /* Hardware Accelerated SVG Cursor (Zero Lag) */
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewport='0 0 12 12' style='fill:white;'><circle cx='6' cy='6' r='4'/></svg>") 6 6, auto;
}

/* a, button, input, textarea cursor reset removed */

/* ========================================
 *  Utility Classes
 *  ======================================== */

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

a, button, input, textarea {
  /* Maintain custom cursor on interactive elements */
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewport='0 0 12 12' style='fill:rgba(0,242,255,1);'><circle cx='6' cy='6' r='4'/></svg>") 6 6, pointer;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* ========================================
 *  Preloader
 *  ======================================== */
#preloader {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #000;
z-index: 9999;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 2rem;
transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-logo {
  width: 150px;
  height: auto;
  filter: none;
  mix-blend-mode: normal;
  animation: pulse 2s infinite ease-in-out;
}

.loader {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  border-top-color: var(--accent-cyan);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* ========================================
 *  Header & Navigation
 *  ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 1.5rem;           /* biraz daralttık */
  transition: var(--transition);
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-sizing: border-box;
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 2px 20px rgba(0, 242, 255, 0.1);
}


@media (max-width: 768px) {
  .header, .header.scrolled {
    padding: 0 1rem;
    background: #000;
  }
}

.header .container {
  max-width: 100%;
  padding: 0;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;                   /* 2rem → 1rem yaptık */
  width: 100%;
  height: 70px;
  overflow: hidden;            /* ← ÖNEMLİ */
  flex-wrap: nowrap;
}

.logo {
  flex-shrink: 0;
  z-index: 1001;
  margin-right: auto;
  max-width: 170px;            /* Logo konteynerini sınırladık */
}

.logo img {
  height: auto;
  width: 160px;
  max-width: 100%;             /* Taşmayı engeller */
  filter: none;
  mix-blend-mode: normal;
  transition: var(--transition);
  display: block;
}

@media (max-width: 768px) {
  .logo img {
    width: 110px;
    height: auto;
  }
}

.logo:hover img {
  opacity: 0.85;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-menu li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: white;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: var(--transition);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.nav-menu li a:hover::after {
  width: 100%;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-cta {
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  background: transparent;
}

.btn-cta:hover {
  background: rgba(0, 242, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
  transform: translateY(-2px) translateZ(0);
  color: white;
  border-color: white;
}

.btn-hero {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  background: transparent;
  padding: 1rem 3rem;
  font-size: 0.9rem;
  margin-top: 2rem;
}

.btn-hero:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 255, 0.05);
  box-shadow: 0 0 30px rgba(0, 242, 255, 0.2);
  transform: translateY(-3px) translateZ(0);
}

.btn-primary {
  background: var(--primary-gradient);
  color: #000;
  border: none;
  will-change: transform, box-shadow;
}

.btn-primary:hover {
  transform: translateY(-3px) translateZ(0);
  box-shadow: 0 5px 20px rgba(0, 242, 255, 0.4);
}

/* ========================================
 *  Hero Section
 *  ======================================== */

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  background: #000;
  overflow: hidden;
  padding: calc(var(--header-height) + 2rem) 0 2rem;
}

/* Video Background */
.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  background: #000;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  /* Performance optimizations */
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 0%,
                              rgba(0, 0, 0, 0.4) 50%,
                              rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Mobile: Optimize video for performance */
@media (max-width: 768px) {
  .hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }

  .hero-video {
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
  }

  .hero-video-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.7) 0%,
                                rgba(0, 0, 0, 0.5) 50%,
                                rgba(0, 0, 0, 0.8) 100%
    );
  }
}

/* Fallback for when video can't play */
.hero-video-wrapper.mobile-fallback {
  background:
  linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
  url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=1200&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
}

.hero-video-wrapper.mobile-fallback .hero-video {
  opacity: 0 !important;
  visibility: hidden !important;
  display: none !important;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero-video {
    animation: none;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 0 1.5rem;
  pointer-events: none;
  animation: fadeInUp 0.8s ease-out;
  /* GPU Acceleration Hint */
  will-change: transform, opacity;
  transform: translateZ(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content > * {
  pointer-events: auto;
}

.hero-subtitle {
  color: var(--accent-cyan);
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: block;
  text-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
  animation: fadeIn 1s ease-out 0.2s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-title {
  font-size: clamp(2rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(2rem, 10vw, 3.5rem);
    letter-spacing: -1px;
  }
}

.hero-title .white {
  display: block;
  color: white;
}

.hero-title .gradient {
  display: block;
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(157, 0, 255, 0.4));
}

.hero-desc {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  margin-top: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  animation: fadeIn 1s ease-out 0.4s both;
}

@media (max-width: 768px) {
  .hero-desc {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 100%;
  }
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  animation: fadeIn 1s ease-out 0.6s both;
}

.btn-hero.btn-outline {
  border-color: rgba(255,255,255,0.5);
}

.btn-hero.btn-outline:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 255, 0.1);
}

@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .btn-hero {
    margin-top: 0;
    width: 100%;
    padding: 1rem;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  opacity: 0.7;
  cursor: pointer;
  z-index: 10;
}

.scroll-indicator i {
  color: white;
  font-size: 1.5rem;
}

/* ========================================
 *  General Sections
 *  ======================================== */

.section {
  padding: 6rem 0;
  background-color: var(--bg-color);
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }
}

/* Add subtle background glow/spots to sections */
.section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 242, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.section::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(157, 0, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
}

.section-title {
  text-align: center;
  margin-bottom: 5rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ========================================
 *  Stats Section
 *  ======================================== */
.stats {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.stat-item {
  padding: 1.5rem;
  background: rgba(255,255,255,0.02);
  border-radius: 15px;
  border: 1px solid transparent;
  transition: var(--transition);
  /* Performance optimization */
  will-change: transform;
}

@media (max-width: 768px) {
  .stat-item {
    padding: 1.25rem;
  }
}

.stat-item:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-5px) translateZ(0);
  background: rgba(255,255,255,0.04);
}

.stat-item i {
  font-size: 2.5rem;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.4));
}

.stat-item h3 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-item p {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

/* ========================================
 *  About Section
 *  ======================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.about-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(0,0,0,0.5), transparent);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-content h2 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1.5rem;
}

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

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  transition: var(--transition);
}

.feature-item:hover {
  background: rgba(0, 242, 255, 0.05);
  border-color: var(--accent-cyan);
  transform: translateX(10px) translateZ(0);
}

.feature-item i {
  font-size: 1.5rem;
  color: var(--accent-cyan);
}

.feature-item span {
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
}

/* ========================================
 *  Services Section
 *  ======================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  backdrop-filter: blur(10px);
  /* Performance optimization */
  will-change: transform;
  /* Link styling */
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-15px) translateZ(0);
  border-color: var(--accent-cyan);
  box-shadow: 0 15px 40px rgba(0, 242, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.service-image {
  height: 220px;
  overflow: hidden;
  position: relative;
  background: var(--bg-tertiary);
}

@media (max-width: 768px) {
  .service-image {
    height: 180px;
  }
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  filter: grayscale(20%);
}

.service-card:hover .service-image img {
  transform: scale(1.1);
  filter: grayscale(0%);
}

.service-content {
  padding: 2rem;
}

.service-content h3 {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

.service-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.service-link {
  color: var(--accent-cyan);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.service-link:hover {
  gap: 1rem;
  text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

/* ========================================
 *  Partners Section
 *  ======================================== */
.partners {
  background: var(--bg-secondary);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  align-items: center;
}

.partner-logo {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  transition: var(--transition);
}

.partner-logo:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px) translateZ(0);
}

.partner-logo img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.5); /* White and semi-transparent */
  transition: var(--transition);
}

.partner-logo:hover img {
  filter: brightness(0) invert(1) opacity(1);
}

/* ========================================
 *  Contact Section
 *  ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  transition: var(--transition);
}

.contact-info-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-cyan);
  transform: translateX(10px) translateZ(0);
}

.contact-info-item i {
  font-size: 2rem;
  color: var(--accent-cyan);
  filter: drop-shadow(0 0 5px rgba(0, 242, 255, 0.5));
}

.contact-info-item .text h4 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.contact-info-item .text p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

.contact-form {
  background: rgba(255, 255, 255, 0.03);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 500;
  color: white;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

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

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* ========================================
 *  Footer
 *  ======================================== */
.footer {
  background: #000;
  border-top: 1px solid #1a1a1a;
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-widget h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  position: relative;
  display: inline-block;
}

.footer-widget h4::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-cyan);
}

.footer-widget p {
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-widget ul li {
  margin-bottom: 0.8rem;
}

.footer-widget ul li a {
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-widget ul li a:hover {
  color: white;
  padding-left: 5px;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #000;
  transform: translateY(-3px) translateZ(0);
  box-shadow: 0 5px 15px rgba(0, 242, 255, 0.3);
}

.footer-bottom {
  border-top: 1px solid #1a1a1a;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-credits a {
  color: var(--accent-cyan);
  font-size: 0.85rem;
  opacity: 0.7;
  transition: var(--transition);
  font-family: monospace;
}

.footer-credits a:hover {
  opacity: 1;
  text-shadow: 0 0 10px var(--accent-cyan);
}

/* ========================================
 *  Page Transition
 *  ======================================== */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh; /* Fallback */
  height: 100dvh; /* Mobile viewport fix */
  background: #000;
  z-index: 99999;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.8s cubic-bezier(0.86, 0, 0.07, 1);
}

.page-transition.active {
  transform: scaleY(1);
  transform-origin: bottom;
}

/* ========================================
 *  Custom Cursor
 *  ======================================== */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border: 1px solid var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  /* transform is handled by JS for performance */
  z-index: 9999;
  transition: width 0.3s, height 0.3s, background-color 0.3s;
  /* mix-blend-mode: difference; REMOVED for performance */
  background-color: rgba(0, 242, 255, 0.05); /* Slight tint instead */
  box-shadow: 0 0 15px rgba(0, 242, 255, 0.2); /* Glow instead of blend */
  will-change: transform; /* Performance Hint */
}

/* .cursor-dot REMOVED - Using system cursor */

body:hover .cursor {
  opacity: 1;
}

a:hover ~ .cursor, button:hover ~ .cursor, .service-card:hover ~ .cursor {
  width: 50px;
  height: 50px;
  background-color: rgba(0, 242, 255, 0.1);
  border-color: transparent;
}

/* ========================================
 *  Mobile & Responsive
 *  ======================================== */
@media (max-width: 992px), (hover: none) {
  .cursor {
    display: none !important;
  }
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
}

.mobile-toggle span {
  width: 25px;
  height: 2px;
  background: white;
  transition: var(--transition);
  border-radius: 2px;
}

.mobile-toggle.active {
  background: rgba(0, 242, 255, 0.1);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}
.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 992px) {
  .mobile-toggle {
    display: flex;
    flex-shrink: 0;
    margin-left: auto;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 999;
    padding: 2rem;
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.4s ease-out forwards;
  }

  .nav-menu.active li:nth-child(1) { animation-delay: 0.1s; }
  .nav-menu.active li:nth-child(2) { animation-delay: 0.15s; }
  .nav-menu.active li:nth-child(3) { animation-delay: 0.2s; }
  .nav-menu.active li:nth-child(4) { animation-delay: 0.25s; }
  .nav-menu.active li:nth-child(5) { animation-delay: 0.3s; }
  .nav-menu.active li:nth-child(6) { animation-delay: 0.35s; }
  .nav-menu.active li:nth-child(7) { animation-delay: 0.4s; }

  @keyframes slideInRight {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .nav-menu li a {
    font-size: 1.2rem;
    padding: 1rem;
    display: block;
    text-align: center;
  }

  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-wrapper {
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
  }

  .logo {
    flex-shrink: 0;
  }

  .mobile-toggle {
    flex-shrink: 0;
  }

  .btn-hero {
    padding: 0.875rem 2rem;
    font-size: 0.85rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .section-title p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ========================================
 *  Scrollbar
 *  ======================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* ========================================
 *  Modal System (Added for Admin & Overlays)
 *  ======================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9); /* Darker background for login */
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #0f0f0f;
  padding: 2.5rem;
  border-radius: 20px;
  width: 500px;
  max-width: 90%;
  border: 1px solid var(--border-color);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.modal-header h3 {
  color: white;
  font-size: 1.5rem;
}

.close-modal {
  background: none;
  border: none;
  color: #666;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--accent-cyan);
  transform: rotate(90deg);
}

/* Login Box Specifics */
.login-box {
  background: #0f0f0f;
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 50px rgba(0, 242, 255, 0.05);
}

/* Toast Notification */
.save-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #46c254;
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  transform: translateY(100px);
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(70, 194, 84, 0.3);
  font-weight: 600;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ========================================
 *  Performance Optimization Overrides
 *  ======================================== */
.animate-on-scroll {
  will-change: opacity, transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.animate-on-scroll.visible {
  transform: translateY(0) translateZ(0);
}

/* ========================================
 *  Team Section (Dynamic)
 *  ======================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  /* Performance Hint */
  will-change: transform;
  transform: translateZ(0);
}

.team-card:hover {
  transform: translateY(-10px) translateZ(0);
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.team-image {
  height: 300px;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  filter: grayscale(30%);
}

.team-card:hover .team-image img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.team-info {
  padding: 1.5rem;
  text-align: center;
}

.team-info h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.team-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Team Modal Styles */
.team-modal-content {
  width: 800px;
  max-width: 95%;
  background: #111;
  padding: 0;
  overflow: hidden;
}

.team-modal-content .modal-header {
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 0;
  border-bottom: 1px solid var(--border-color);
}

.modal-body {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
}

.modal-image {
  height: 100%;
  min-height: 400px;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-text {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-desc {
  color: var(--text-color);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.modal-note-box {
  background: rgba(0, 242, 255, 0.05);
  border-left: 3px solid var(--accent-cyan);
  padding: 1.5rem;
  border-radius: 0 10px 10px 0;
}

.modal-note-box h4 {
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.modal-note-box p {
  color: #ddd;
  font-size: 0.95rem;
  margin: 0;
}

/* Special Team Card Styles */
.special-card {
  background: linear-gradient(135deg, rgba(0, 242, 255, 0.1), rgba(157, 0, 255, 0.1)) !important;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.special-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  border-radius: inherit;
  z-index: -1;
  animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.special-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  color: #000;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 10;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Modal Social Links */
.modal-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, rgba(0, 242, 255, 0.2), rgba(157, 0, 255, 0.2));
  border: 1px solid var(--accent-cyan);
  border-radius: 25px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 242, 255, 0.4);
}

.social-link i {
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-image {
    height: 300px;
    min-height: auto;
  }

  .team-image {
    height: 350px;
  }
}

.save-toast.active {
  transform: translateY(0);
}

/* ========================================
 *  Project Modal Styles
 *  ======================================== */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.project-modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.project-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.project-modal-content {
  position: relative;
  background: linear-gradient(180deg, #0a0a0a 0%, #000 100%);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.4s ease;
}

.project-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.project-modal-close:hover {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
}

.project-modal-header {
  padding: 40px 40px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.project-category {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.project-modal-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.project-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Project Gallery */
.project-modal-gallery {
  padding: 30px;
}

.project-modal-gallery.gallery-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.project-modal-gallery.gallery-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.project-modal-gallery.gallery-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.project-modal-gallery.gallery-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 15px;
}

.project-modal-gallery.gallery-many {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 15px;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Project Info */
.project-modal-info {
  padding: 30px 40px 40px;
}

.project-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.project-info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.project-info-item i {
  font-size: 1.5rem;
  color: var(--accent-cyan);
}

.project-info-item span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.project-info-item strong {
  font-size: 1rem;
  color: var(--text-color);
}

.project-details {
  margin-bottom: 30px;
}

.project-details h3,
.project-features h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.project-details p {
  color: var(--text-muted);
  line-height: 1.8;
}

.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-tag {
  padding: 10px 20px;
  background: rgba(0, 242, 255, 0.1);
  border: 1px solid rgba(0, 242, 255, 0.3);
  border-radius: 30px;
  font-size: 0.9rem;
  color: var(--accent-cyan);
  transition: var(--transition);
}

.feature-tag:hover {
  background: var(--accent-cyan);
  color: #000;
}

.project-cta {
  margin-top: 30px;
  text-align: center;
}

.project-cta .btn {
  padding: 15px 40px;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .project-modal-content {
    border-radius: 16px;
  }

  .project-modal-header {
    padding: 30px 20px 20px;
  }

  .project-modal-header h2 {
    font-size: 1.5rem;
  }

  .project-modal-gallery {
    padding: 15px;
  }

  .project-modal-gallery.gallery-2,
  .project-modal-gallery.gallery-3,
  .project-modal-gallery.gallery-4,
  .project-modal-gallery.gallery-many {
    grid-template-columns: 1fr;
  }

  .project-modal-info {
    padding: 20px;
  }

  .project-info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .project-info-item {
    padding: 15px;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
}
