:root {
  --primary-color: #c9195f;
  --primary-light: #A33D4E;
  --primary-dark: #c9195f;
  --primary-gradient: linear-gradient(135deg, #c9195f, #A33D4E, #c9195f);
  --accent-color: #fff;
  --accent-gradient: linear-gradient(135deg, #fff #fff);
  --dark-bg: #0a0a0f;
  --dark-light: #12121a;
  --text-white: #ffffff;
  --text-gray: #8888a0;
  --text-muted: #555570;
  --card-bg: #16161f;
  --card-hover: #1e1e2a;
  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --nav-bg: rgba(10, 10, 15, 0.85);
  --input-bg: rgba(255, 255, 255, 0.04);
  --input-border: rgba(255, 255, 255, 0.1);
  --section-bg: var(--dark-light);
  --footer-bg: #060608;
  --cursor-color: rgba(123, 29, 42, 0.25);
  --shadow-color: rgba(123, 29, 42, 0.2);
  --glow-color: rgba(123, 29, 42, 0.35);
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="light"] {
  --primary-color: #c9195f;
  --primary-light: #A33D4E;
  --primary-dark: #c9195f;
  --accent-color: #fff;
  --accent-gradient: linear-gradient(135deg, #fff, #fff);
  --dark-bg: #f8f9fd;
  --dark-light: #ffffff;
  --text-white: #1a1a2e;
  --text-gray: #6c6c8a;
  --text-muted: #a0a0b8;
  --card-bg: #ffffff;
  --card-hover: #f0f0f8;
  --border-color: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(123, 29, 42, 0.15);
  --nav-bg: rgba(255, 255, 255, 0.85);
  --input-bg: rgba(0, 0, 0, 0.03);
  --input-border: rgba(0, 0, 0, 0.1);
  --section-bg: #ffffff;
  --footer-bg: #f0f0f5;
  --shadow-color: rgba(123, 29, 42, 0.1);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background-color: var(--dark-bg);
  color: var(--text-white);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
  cursor: pointer;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
  pointer-events: none;
  position: fixed;
  z-index: 99999;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  transition: opacity 0.3s;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-color);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary-color);
  transition: all 0.15s ease-out;
}

a:hover ~ .cursor-outline,
button:hover ~ .cursor-outline,
.project-item:hover ~ .cursor-outline {
  width: 60px;
  height: 60px;
  border-color: var(--primary-color);
  background: var(--cursor-color);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* Scroll Progress Bar */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--primary-gradient);
  background-size: 200% auto;
  animation: gradientShift 3s ease infinite;
  z-index: 10001;
  transition: width 0.1s linear;
}

/* Scroll to Top Button */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  border: none;
  cursor: none;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px var(--shadow-color);
}

#scrollTopBtn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scrollTopBtn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-color);
}

/* Floating Social Sidebar */
.floating-social {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.floating-social a {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-white);
  font-size: 18px;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(12px);
  position: relative;
}

.floating-social a:hover {
  background: var(--primary-gradient);
  color: white;
  transform: translateX(5px);
  border-color: transparent;
  box-shadow: 0 5px 20px var(--shadow-color);
}

.floating-social a::after {
  content: attr(aria-label);
  position: absolute;
  left: 55px;
  background: var(--card-bg);
  color: var(--text-white);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  border: 1px solid var(--border-color);
}

.floating-social a:hover::after {
  opacity: 1;
  visibility: visible;
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ============ SECTION DIVIDERS ============ */
.section-divider {
  position: relative;
  height: 100px;
  overflow: hidden;
  margin-top: -1px;
}

.section-divider svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100px;
}

.section-divider svg path {
  fill: var(--section-bg);
}

.divider-alt svg path {
  fill: var(--dark-bg);
}

/* ============ SECTION LAYOUT ============ */
section {
  position: relative;
}

/* ============ STATS ============ */
.stat-item {
  text-align: center;
  flex: 1;
  min-width: 150px;
  position: relative;
  padding: 24px 20px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.stat-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px var(--shadow-color);
  border-color: var(--border-hover);
}

.stat-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 12px;
  display: block;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--primary-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-desc {
  font-size: 1rem;
  color: var(--text-gray);
  font-weight: 500;
}

/* ============ TEAM ============ */
.team-member {
  width: 260px;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.team-member::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(123, 29, 42, 0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.team-member:hover::after {
  opacity: 1;
}

.team-member:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px var(--shadow-color);
  border-color: var(--primary-color);
}

.team-member img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.team-member:hover img {
  transform: scale(1.12);
}

.team-member-name {
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  padding: 18px;
  color: white;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  z-index: 3;
  transition: bottom 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.team-member:hover .team-member-name {
  bottom: 16px;
}

/* ============ AI CHATBOT ============ */
#chatbotWidget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9998;
  font-family: 'Montserrat', sans-serif;
}

#chatbotToggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), #6c6cff);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 25px var(--shadow-color);
  transition: all 0.3s ease;
  position: relative;
}

#chatbotToggle:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 35px var(--shadow-color);
}

#chatbotToggle.hidden {
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}

#chatbotToggle::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  animation: chatbotPulse 2s ease-in-out infinite;
  z-index: -1;
}

@keyframes chatbotPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.3); opacity: 0; }
}

#chatbotPanel {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 370px;
  height: 550px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom right;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

#chatbotPanel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#chatbotHeader {
  background: linear-gradient(135deg, var(--primary-color), #4a4aff);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chatbot-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  padding: 2px;
}

.chatbot-title {
  color: white;
  font-weight: 700;
  font-size: 15px;
}

.chatbot-status {
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chatbot-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.5s ease-in-out infinite;
}

#chatbotMinimize {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

#chatbotMinimize:hover {
  background: rgba(255, 255, 255, 0.3);
}

#chatbotMessages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--dark-bg);
}

#chatbotMessages::-webkit-scrollbar {
  width: 4px;
}

#chatbotMessages::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 2px;
}

.chatbot-message {
  display: flex;
  max-width: 85%;
}

.chatbot-message.bot {
  align-self: flex-start;
}

.chatbot-message.user {
  align-self: flex-end;
}

.chatbot-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.6;
}

.chatbot-bubble p {
  margin: 0;
}

.chatbot-bubble p + p {
  margin-top: 6px;
}

.chatbot-message.bot .chatbot-bubble {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-white);
  border-bottom-left-radius: 4px;
}

.chatbot-message.user .chatbot-bubble {
  background: var(--primary-color);
  color: white;
  border-bottom-right-radius: 4px;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}

.typing-indicator span {
  width: 7px;
  height: 7px;
  background: var(--text-gray);
  border-radius: 50%;
  animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
}

#chatbotQuickReplies {
  padding: 0 16px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.quick-reply-btn {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-white);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}

.quick-reply-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

#chatbotInputArea {
  padding: 12px 16px 16px;
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--border-color);
  background: var(--card-bg);
  flex-shrink: 0;
}

#chatbotInput {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--input-border);
  border-radius: 25px;
  background: var(--input-bg);
  color: var(--text-white);
  font-size: 13px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.3s;
}

#chatbotInput:focus {
  border-color: var(--primary-color);
}

#chatbotSend {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-gradient);
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}

#chatbotSend:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px var(--shadow-color);
}

@media (max-width: 480px) {
  #chatbotPanel {
    width: calc(100vw - 20px);
    height: calc(100vh - 100px);
    right: -5px;
    bottom: -5px;
    border-radius: 15px;
  }

  #chatbotWidget {
    bottom: 15px;
    right: 15px;
  }

  #chatbotToggle {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
}

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

ul {
  list-style: none;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Animations */
.gradient-text {
  background: var(--primary-gradient);
  background-size: 0% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

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

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes morphBlob {
  0%, 100% { border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%; }
  25% { border-radius: 60% 40% 40% 60% / 40% 60% 50% 50%; }
  50% { border-radius: 30% 70% 50% 50% / 50% 60% 40% 60%; }
  75% { border-radius: 70% 30% 60% 40% / 60% 40% 60% 40%; }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px var(--shadow-color); }
  50% { box-shadow: 0 0 40px var(--glow-color); }
}

@keyframes slideInLeft {
  0% { opacity: 0; transform: translateX(-60px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  0% { opacity: 0; transform: translateX(60px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* ============ PRELOADER ============ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
}

.preloader-logo img {
    width: 80px;
    margin-bottom: 30px;
    animation: float 2s ease-in-out infinite;
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}

.preloader-fill {
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    animation: preloaderFill 1.5s ease-in-out forwards;
}

@keyframes preloaderFill {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ============ NAVBAR ============ */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 72px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  padding: 0 5%;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.4s, border-color 0.4s, height 0.4s, box-shadow 0.4s;
}

nav.scrolled {
  height: 60px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.logo-img {
  height: 36px;
  width: auto;
  transition: transform 0.4s;
}

.nav-logo:hover .logo-img {
  transform: rotate(-5deg) scale(1.1);
}

.logo-name {
  font-weight: 800;
  font-size: 20px;
  background: var(--primary-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
  letter-spacing: 1px;
}

.navbar-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-link {
  color: var(--text-gray);
  font-weight: 600;
  font-size: 13px;
  position: relative;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-white);
  background: rgba(123, 29, 42, 0.1);
}

.nav-link.active {
  background: var(--primary-gradient);
  color: white !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1002;
  padding: 8px;
  margin-right: -8px;
}

.bar {
  width: 24px;
  height: 2.5px;
  background: var(--primary-gradient);
  transition: 0.3s;
  border-radius: 2px;
}

.menu-toggle.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.menu-toggle.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Theme Toggle */
.theme-toggle {
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-white);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.theme-toggle:hover {
  border-color: var(--primary-color);
  background: rgba(123, 29, 42, 0.1);
  transform: rotate(45deg) scale(1.05);
  box-shadow: 0 0 20px var(--shadow-color);
}

[data-theme="light"] .theme-toggle i {
  color: #f5a623;
}

/* Language Switcher */
.language-switcher {
  display: flex;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--border-color);
  align-items: center;
}

.custom-dropdown {
  position: relative;
}

.lang-btn {
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-gray);
  padding: 7px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn:hover {
  border-color: var(--primary-color);
  color: var(--text-white);
  background: rgba(123, 29, 42, 0.1);
}

.lang-btn .arrow {
  font-size: 8px;
  transition: transform 0.3s;
}

.language-options {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(30px);
  border: 1px solid var(--border-hover);
  border-radius: 12px;
  padding: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.95);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-width: 90px;
  z-index: 1002;
  list-style: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.language-options.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.language-options li {
  padding: 8px 14px;
  cursor: pointer;
  color: var(--text-gray);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  border-radius: 8px;
  transition: all 0.2s;
}

.language-options li:hover {
  background: rgba(123, 29, 42, 0.15);
  color: var(--text-white);
}

/* ============ HEADER ============ */
header {
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.15)), url(./asist/MKArchDoston/1.jpg);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(123, 29, 42, 0.25), transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201, 169, 110, 0.15), transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(123, 29, 42, 0.1), transparent 50%);
  z-index: 1;
  animation: meshShift 8s ease-in-out infinite;
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 250px;
  background: linear-gradient(transparent, var(--dark-bg));
  z-index: 1;
}

/* Hero floating particle blobs */
.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
  animation: heroShapeFloat 12s ease-in-out infinite;
}

.hero-shape-1 {
  width: 500px;
  height: 500px;
  background: #7B1D2A;
  top: -150px;
  right: -100px;
  animation-delay: 0s;
}

.hero-shape-2 {
  width: 350px;
  height: 350px;
  background: #C9A96E;
  bottom: -80px;
  left: -80px;
  animation-delay: -4s;
}

.hero-shape-3 {
  width: 200px;
  height: 200px;
  background: #fd79a8;
  top: 55%;
  left: 55%;
  animation-delay: -8s;
  opacity: 0.1;
}

@keyframes heroShapeFloat {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  25% { transform: translate(40px, -30px) scale(1.15) rotate(5deg); }
  50% { transform: translate(-20px, 20px) scale(0.9) rotate(-3deg); }
  75% { transform: translate(30px, 10px) scale(1.05) rotate(2deg); }
}

@keyframes meshShift {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  33% { transform: scale(1.08) rotate(1.5deg); opacity: 0.85; }
  66% { transform: scale(0.92) rotate(-1deg); opacity: 0.9; }
}

.header__content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  z-index: 2;
}

.header__content h1 {
  color: var(--text-white);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.1;
  margin-bottom: 24px;
  font-weight: 800;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.header__content h1 .gradient-text {
  background: linear-gradient(135deg, #c9195f, #A33D4E, #ff0378, #7B1D2A);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
  font-weight: 900;
  letter-spacing: -2px;
}

.h1-span {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  display: block;
  font-size: clamp(1rem, 2vw, 1.5rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 8px;
  position: relative;
  padding-left: 0;
}

.h1-span::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
  margin-right: 16px;
  vertical-align: middle;
  animation: pulseWidth 2s ease-in-out infinite;
}

@keyframes pulseWidth {
  0%, 100% { width: 40px; }
  50% { width: 80px; }
}

.header__content p {
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  margin: 20px 0 35px;
  max-width: 550px;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-size: 13px;
  border: none;
  border-radius: 50px;
  background: var(--primary-gradient);
  background-size: 200% auto;
  color: white;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(123, 29, 42, 0.3);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s backwards;
}

.primary-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.primary-btn:hover::before {
  left: 100%;
}

.primary-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 40px rgba(123, 29, 42, 0.4);
  background-position: right center;
}

.primary-btn:active {
  transform: translateY(-1px) scale(1);
}

/* Button Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: rippleEffect 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleEffect {
  to { transform: scale(4); opacity: 0; }
}

/* Hero scroll indicator */
.header__content::after {
  content: 'ↆ';
  display: block;
  font-size: 28px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 60px;
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(10px); opacity: 0.8; }
}

/* ============ MAIN INFO ============ */
.main-info {
  display: flex;
  flex-direction: column;
  padding: 80px 0;
  background-color: var(--section-bg);
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url(./asist/MKArchDoston/2.jpg);
  background-size: cover;
  background-attachment: fixed;
}

.info-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.info-title h2 {
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
}

.info-title span {
  font-weight: 300;
  font-size: 1.2rem;
  display: block;
  letter-spacing: 3px;
  margin-top: 5px;
}

.info-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
  padding: 0 10px;
  color: var(--text-gray);
}

/* ============ PROJECTS ============ */
.projects {
  padding: 120px 0;
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 60px;
  color: var(--text-white);
  letter-spacing: 1px;
  position: relative;
  width: 100%;
  line-height: 1.3;
}

.section-title span {
  background: var(--primary-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--primary-gradient);
  margin: 20px auto 0;
  border-radius: 3px;
  animation: pulseWidth 3s ease-in-out infinite;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 45px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 9px 22px;
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-gray);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  letter-spacing: 0.5px;
}

.filter-btn:hover {
  color: var(--text-white);
  border-color: var(--primary-color);
  background: rgba(123, 29, 42, 0.08);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--primary-gradient);
  border-color: transparent;
  color: white;
  box-shadow: 0 6px 20px rgba(123, 29, 42, 0.3);
  transform: translateY(-2px);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.project-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: var(--card-bg);
  min-height: 280px;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid var(--border-color);
  group: true;
}

.project-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 1;
  pointer-events: none;
}

.project-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 60px var(--shadow-color);
  border-color: var(--border-hover);
}

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

.project-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.45, 0.45, 0.95);
}

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

.project-item .project-info {
  padding: 18px 20px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-item:hover .project-info {
  transform: translateY(0);
  opacity: 1;
}

.project-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.project-info p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.projects-grid .hidden-third-row {
  display: none !important;
}

.projects-control {
  text-align: center;
  margin-top: 40px;
}

/* ============ MAP ============ */
.map-title {
  text-align: center;
  margin-top: 50px;
  font-size: 1.3rem;
  color: var(--text-gray);
}

#chartdiv {
  width: 100%;
  height: 500px;
  background-color: var(--card-bg);
  margin: 30px 0 60px;
  overflow: hidden;
  border-radius: 10px;
}

/* ============ BOSS SECTION ============ */
.boss-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 5%;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.boss-img-container {
  flex: 1;
  min-width: 300px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.boss-img-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(123, 29, 42, 0.2), transparent);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s;
}

.boss-img-container:hover::before {
  opacity: 1;
}

.boss-img-container img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 20px;
  transition: all 0.6s cubic-bezier(0.25, 0.45, 0.45, 0.95);
}

.boss-img-container:hover img {
  transform: scale(1.05);
}

.boss-text {
  flex: 1;
  min-width: 300px;
}

.boss-text h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 20px;
  background: var(--primary-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

.boss-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-gray);
}

/* ============ TEAM ============ */
.team-section {
  padding: 80px 0;
  background-color: var(--dark-bg);
  overflow: hidden;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
}

.marquee-content {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scroll 40s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.stats-container {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 60px 20px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

/* ============ FAQ ============ */
.faq-section {
  max-width: 800px;
  margin: 80px auto;
  padding: 0 20px;
}

.accordion-item {
  margin-bottom: 12px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card-bg);
  transition: border-color 0.3s;
}

.accordion-item:hover {
  border-color: var(--border-hover);
}

.accordion-item.active {
  border-color: rgba(123, 29, 42, 0.3);
}

.accordion-header {
  width: 100%;
  padding: 20px 24px;
  background: var(--card-bg);
  color: var(--text-white);
  border: none;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.accordion-header:hover {
  background: var(--card-hover);
}

.accordion-header i {
  transition: transform 0.3s;
  color: var(--primary-color);
  font-size: 0.8rem;
}

.accordion-header.active i {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: transparent;
}

.accordion-body p {
  padding: 0 24px 20px;
  color: var(--text-gray);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ============ VIDEO ============ */
.video-section {
  padding: 80px 0;
}

.video-wrapper {
  width: 90%;
  max-width: 900px;
  margin: 50px auto 80px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border-color);
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============ FOOTER ============ */
footer {
  background-color: var(--footer-bg);
  padding-top: 60px;
  border-top: 1px solid var(--border-color);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--primary-gradient);
  opacity: 0.3;
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1100px;
  width: min(1100px, 94%);
  margin: 0 auto;
  padding: 80px 20px 60px;
}

.contact-info {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  transition: border-color 0.3s;
}

.contact-info:hover {
  border-color: var(--border-hover);
}

.contact-info h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0;
  letter-spacing: 1px;
  background: var(--primary-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

.contact-info p {
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-row i {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-top: 4px;
  width: 24px;
}

.contact-row a {
  color: var(--text-white);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.contact-row a:hover {
  color: var(--primary-color);
}

.contact-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.contact-social {
  display: flex;
  gap: 12px;
}

.contact-social a {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-white);
  transition: all 0.3s;
}

.contact-social a:hover {
  background: var(--primary-gradient);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow-color);
}

.contact-form-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transition: border-color 0.3s;
}

.contact-form-card:hover {
  border-color: var(--border-hover);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.input-group label {
  color: var(--text-gray);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  color: var(--text-white);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--shadow-color);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form .primary-btn {
  width: 100%;
  justify-content: center;
  padding: 14px 18px;
  font-size: 0.95rem;
  border-radius: 12px;
  margin-top: 10px;
}

.footer-bottom {
  max-width: 1100px;
  width: min(1100px, 94%);
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--border-color);
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--text-white);
  font-weight: 700;
}

.footer-links a {
  display: block;
  margin-bottom: 8px;
  color: #888;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 35px;
  height: 35px;
  background: var(--card-bg);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  transition: 0.3s;
  font-size: 0.9rem;
}

.social-icons a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.iti {
  width: 100%;
}

.iti__country-list {
  background-color: #222;
  color: white;
  border: 1px solid #444;
}

/* ============ FULLSCREEN CAROUSEL ============ */
/* ============ FULLSCREEN CAROUSEL ============ */
.fs-carousel {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  user-select: none;
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fs-carousel.active {
  opacity: 1;
  visibility: visible;
}

.fs-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.fs-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: fs-spin 0.8s linear infinite;
  z-index: 10001;
  display: none;
}

.fs-loading.active {
  display: block;
}

@keyframes fs-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

#fs-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
  padding: 40px;
  transform: scale(1);
}

.nav-fs {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 10001;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
}

.nav-fs:hover {
  background: var(--primary-gradient);
  border-color: transparent;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 30px var(--shadow-color);
}

.prev-fs { left: 24px; }
.next-fs { right: 24px; }

#fs-counter {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 20px;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.fs-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.5);
  padding: 16px 28px;
  border-radius: 14px;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.fs-caption h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.fs-caption span {
  font-size: 0.8rem;
  opacity: 0.7;
  display: block;
  margin-top: 4px;
}

.close-fs {
  position: absolute;
  top: 24px;
  right: 24px;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 10002;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s;
  backdrop-filter: blur(12px);
}

.close-fs:hover {
  background: var(--primary-gradient);
  border-color: transparent;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 8px 30px var(--shadow-color);
}

/* ============================================ */
/* ============ RESPONSIVE STYLES ============== */
/* ============================================ */

/* Large screens - 1200px and above */
@media (min-width: 1200px) {
  .navbar-links {
    gap: 30px;
  }
}

/* Mobile menu - 992px and below */
@media (max-width: 992px) {
  nav {
    height: 70px;
    padding: 0 15px;
    justify-content: space-between;
  }

  .navbar-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    height: 70vh;
    max-height: calc(100vh - 70px);
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(-100%);
    opacity: 0;
    z-index: 999;
    pointer-events: none;
    overflow-y: auto;
    border-top: 2px solid var(--primary-color);
  }

  .navbar-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .language-switcher {
    margin-left: auto;
    margin-right: 15px;
    margin-top: 15px;
    padding-left: 0;
    padding-bottom: 15px;
    border-left: none;
    border-bottom: 1px solid var(--border-color);
    flex-direction: row;
    width: auto;
    justify-content: flex-end;
    gap: 8px;
  }

  .lang-btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 16px 20px;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-link:last-of-type {
    border-bottom: none;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle .bar {
    background: white;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
  }

  .header__content h1 {
    font-size: 2.5rem;
  }

  .header__content {
    text-align: center;
  }

  .header__content p {
    margin-left: auto;
    margin-right: auto;
  }

  .info-title h2 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .boss-section {
    flex-direction: column;
    padding: 60px 5%;
    text-align: center;
  }

  .boss-img-container,
  .boss-text {
    width: 100%;
    max-width: 500px;
  }

  .boss-img-container img {
    height: 400px;
  }

  .footer-contact {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 60px 5%;
  }

  .contact-info h2 {
    font-size: 2rem;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet portrait - 768px to 991px */
@media (max-width: 768px) {
  nav {
    height: 65px;
    padding: 0 15px;
  }

  .navbar-links {
    top: 65px;
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 14px 20px;
  }

  .logo-img {
    height: 35px;
  }

  .logo-name {
    font-size: 18px;
  }

  .lang-btn {
    padding: 8px 12px;
    font-size: 11px;
  }

  .header__content h1 {
    font-size: 2rem;
  }

  .header__content p {
    font-size: 1rem;
  }

  .primary-btn {
    padding: 12px 28px;
    font-size: 13px;
  }

  header {
    min-height: 85vh;
  }

  .main-info {
    padding: 60px 0;
    background-attachment: scroll;
  }

  .info-header {
    flex-direction: column;
    gap: 15px;
  }

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

  .info-title span {
    font-size: 1rem;
    letter-spacing: 2px;
  }

  .info-text {
    font-size: 1rem;
    padding: 0 15px;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 30px;
  }

  .projects {
    padding: 60px 0;
  }

  .filter-buttons {
    gap: 10px;
    margin-bottom: 30px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .project-item {
    min-height: 200px;
  }

  .project-item img {
    height: 150px;
  }

  .project-info h3 {
    font-size: 14px;
  }

  .project-info p {
    font-size: 12px;
  }

  #chartdiv {
    height: 350px;
    margin: 20px 0 40px;
  }

  .map-title {
    font-size: 1.1rem;
    margin-top: 30px;
  }

  .boss-section {
    padding: 50px 5%;
    gap: 30px;
  }

  .boss-text h3 {
    font-size: 1.6rem;
  }

  .boss-text p {
    font-size: 0.95rem;
  }

  .team-section {
    padding: 40px 0;
  }

  .team-member {
    width: 200px;
    height: 250px;
  }

  .stats-container {
    gap: 30px;
    padding: 30px 15px;
  }

  .stat-item {
    min-width: 100px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-desc {
    font-size: 0.95rem;
  }

  .faq-section {
    margin: 40px auto;
    padding: 0 15px;
  }

  .accordion-header {
    padding: 15px;
    font-size: 14px;
  }

  .accordion-body p {
    padding: 15px;
    font-size: 14px;
  }

  .video-wrapper {
    width: 95%;
    margin: 30px auto 50px;
  }

  .contact-info {
    padding: 25px 20px;
    gap: 20px;
  }

  .contact-info h2 {
    font-size: 1.8rem;
  }

  .contact-info p {
    font-size: 0.95rem;
  }

  .contact-form-card {
    padding: 25px 20px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 12px 15px;
    font-size: 15px;
  }

  .contact-social a {
    width: 40px;
    height: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .footer-col {
    min-width: 100%;
  }

  .nav-fs {
    width: 50px;
    height: 80px;
    font-size: 1.5rem;
  }

  .fs-caption {
    bottom: 20px;
    padding: 10px 20px;
  }

  .fs-caption h3 {
    font-size: 1rem;
  }

  .close-fs {
    font-size: 35px;
    width: 40px;
    height: 40px;
    top: 10px;
    right: 15px;
  }

  #fs-main-img {
    padding: 20px;
  }
}

/* Mobile large - 600px to 767px */
@media (max-width: 600px) {
  .fs-carousel {
    padding: 10px;
  }

  .fs-wrapper {
    padding: 10px;
  }

  .nav-fs {
    width: 44px;
    height: 70px;
    font-size: 1.2rem;
  }

  .prev-fs { left: 8px; }
  .next-fs { right: 8px; }

  .fs-caption {
    bottom: 10px;
    padding: 8px 16px;
    border-radius: 10px;
  }

  .fs-caption h3 {
    font-size: 0.9rem;
  }

  .fs-caption span {
    font-size: 0.7rem;
  }

  .close-fs {
    font-size: 28px;
    width: 36px;
    height: 36px;
    top: 8px;
    right: 8px;
  }

  #fs-main-img {
    padding: 15px;
  }

  #fs-counter {
    top: 12px;
    font-size: 0.75rem;
    padding: 6px 14px;
  }
}

/* Mobile small - 480px and below */
@media (max-width: 480px) {
  .fs-carousel {
    padding: 5px;
  }

  .fs-wrapper {
    padding: 5px;
  }

  .nav-fs {
    width: 40px;
    height: 60px;
    font-size: 1.1rem;
  }

  .prev-fs { left: 5px; }
  .next-fs { right: 5px; }

  .fs-caption {
    bottom: 5px;
    padding: 6px 12px;
    border-radius: 8px;
  }

  .fs-caption h3 {
    font-size: 0.8rem;
  }

  .fs-caption span {
    font-size: 0.65rem;
  }

  .close-fs {
    font-size: 24px;
    width: 32px;
    height: 32px;
    top: 5px;
    right: 5px;
  }

  #fs-main-img {
    padding: 10px;
  }

  #fs-counter {
    top: 8px;
    font-size: 0.7rem;
    padding: 4px 10px;
  }
}

/* Mobile large - 600px to 767px */
@media (max-width: 600px) {
  .header__content h1 {
    font-size: 1.8rem;
  }

  .nav-link {
    font-size: 1rem;
    padding: 13px 18px;
  }

  .lang-btn {
    padding: 6px 10px;
    font-size: 10px;
  }

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

  .project-item img {
    height: 180px;
  }

  .project-info h3 {
    font-size: 16px;
  }

  .project-info p {
    font-size: 13px;
  }

  .contact-row {
    flex-direction: column;
    gap: 8px;
  }

  .contact-row i {
    font-size: 1.3rem;
  }
}

/* Mobile small - 480px to 599px */
@media (max-width: 480px) {
  header {
    min-height: 80vh;
  }

  .header__content h1 {
    font-size: 1.6rem;
  }

  .header__content p {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }

  .primary-btn {
    padding: 12px 24px;
    font-size: 12px;
  }

  .logo-name {
    font-size: 16px;
  }

  .info-title h2 {
    font-size: 1.6rem;
  }

  .info-title span {
    font-size: 0.85rem;
  }

  .info-text {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.4rem;
    margin-bottom: 25px;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .boss-img-container img {
    height: 280px;
  }

  .boss-text h3 {
    font-size: 1.4rem;
  }

  .team-member {
    width: 180px;
    height: 220px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .stat-desc {
    font-size: 0.85rem;
  }

  .contact-info h2 {
    font-size: 1.5rem;
  }
}

/* Mobile very small - 320px to 479px */
@media (max-width: 479px) {
  * {
    font-size: 14px;
  }

  .container {
    width: 95%;
    padding: 0 10px;
  }

  header {
    min-height: 75vh;
  }

  .header__content {
    padding: 0 15px;
  }

  .header__content h1 {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }

  .h1-span {
    font-size: 1rem;
  }

  .header__content p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .primary-btn {
    padding: 10px 20px;
    font-size: 11px;
    border-radius: 25px;
  }

  .logo-img {
    height: 30px;
  }

  .logo-name {
    font-size: 14px;
  }

  .bar {
    width: 22px;
    height: 2px;
  }

  nav {
    height: 60px;
    padding: 0 10px;
  }

  .navbar-links {
    top: 60px;
  }

  .nav-link {
    font-size: 0.95rem;
    padding: 12px 15px;
  }

  .lang-btn {
    padding: 5px 8px;
    font-size: 10px;
  }

  .language-switcher {
    gap: 5px;
    margin-right: 10px;
    margin-top: 12px;
    padding-bottom: 12px;
  }

  .main-info {
    padding: 40px 0;
  }

  .info-title h2 {
    font-size: 1.4rem;
  }

  .info-title span {
    font-size: 0.75rem;
  }

  .info-text {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .section-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }

  .section-title::after {
    width: 50px;
    height: 2px;
    margin: 10px auto 0;
  }

  .projects {
    padding: 40px 0;
  }

  .filter-buttons {
    gap: 8px;
    margin-bottom: 25px;
  }

  .filter-btn {
    padding: 5px 10px;
    font-size: 11px;
    border-radius: 20px;
  }

  .projects-grid {
    gap: 15px;
  }

  .project-item {
    min-height: 180px;
    border-radius: 10px;
  }

  .project-item img {
    height: 150px;
  }

  .project-info {
    padding: 12px;
  }

  .project-info h3 {
    font-size: 14px;
  }

  .project-info p {
    font-size: 12px;
  }

  #chartdiv {
    height: 250px;
    margin: 15px 0 30px;
    border-radius: 8px;
  }

  .map-title {
    font-size: 1rem;
    margin-top: 20px;
  }

  .boss-section {
    padding: 40px 5%;
    gap: 25px;
  }

  .boss-img-container img {
    height: 250px;
    border-radius: 15px;
  }

  .boss-text h3 {
    font-size: 1.3rem;
  }

  .boss-text p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .team-section {
    padding: 30px 0;
  }

  .marquee-container {
    padding: 30px 0;
  }

  .team-member {
    width: 150px;
    height: 190px;
    border-radius: 10px;
  }

  .stats-container {
    gap: 20px;
    padding: 25px 10px;
  }

  .stat-item {
    min-width: 80px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stat-desc {
    font-size: 0.8rem;
  }

  .faq-section {
    margin: 30px auto;
    padding: 0 10px;
  }

  .accordion-item {
    margin-bottom: 10px;
    border-radius: 6px;
  }

  .accordion-header {
    padding: 12px 15px;
    font-size: 13px;
  }

  .accordion-body p {
    padding: 12px 15px;
    font-size: 13px;
  }

  .video-section {
    padding: 40px 0;
  }

  .video-wrapper {
    width: 98%;
    margin: 20px auto 40px;
    border-radius: 10px;
  }

  .contact-info {
    padding: 20px 15px;
    border-radius: 15px;
    gap: 15px;
  }

  .contact-info h2 {
    font-size: 1.4rem;
  }

  .contact-info p {
    font-size: 0.9rem;
  }

  .contact-details {
    gap: 12px;
  }

  .contact-row {
    gap: 10px;
  }

  .contact-row i {
    font-size: 1.2rem;
  }

  .contact-social a {
    width: 36px;
    height: 36px;
  }

  .contact-form-card {
    padding: 20px 15px;
    border-radius: 15px;
  }

  .contact-form {
    gap: 12px;
  }

  .input-group label {
    font-size: 0.85rem;
    margin-bottom: 5px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 10px;
  }

  .contact-form textarea {
    min-height: 100px;
  }

  .contact-form .primary-btn {
    padding: 12px;
    font-size: 13px;
    border-radius: 10px;
  }

  .footer-bottom {
    padding: 25px 15px;
    gap: 20px;
  }

  .footer-col h4 {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .footer-links a {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }

  .nav-fs {
    width: 40px;
    height: 60px;
    font-size: 1.2rem;
  }

  .fs-caption {
    bottom: 15px;
    padding: 8px 15px;
    font-size: 0.8rem;
  }

  .fs-caption h3 {
    font-size: 0.9rem;
  }

  .close-fs {
    font-size: 28px;
    width: 35px;
    height: 35px;
    top: 8px;
    right: 10px;
  }

  .projects-control {
    margin-top: 30px;
  }

  .floating-social {
    display: none;
  }

  #scrollTopBtn {
    left: 15px;
    bottom: 15px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .cursor-dot,
  .cursor-outline {
    display: none;
  }

  body {
    cursor: auto;
  }

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

  .primary-btn:hover {
    transform: none;
  }

  .contact-social a:hover {
    transform: none;
  }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
  header {
    min-height: 120vh;
  }

  .navbar-links {
    overflow-y: auto;
  }

  .nav-link {
    padding: 8px 15px;
  }
}

/* Print styles */
@media print {
  #preloader,
  .navbar-links,
  .menu-toggle,
  .fs-carousel,
  .theme-toggle,
  .language-switcher {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .section-title {
    color: black !important;
  }

  .project-item {
    break-inside: avoid;
  }
}
