/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg-dark: #0f1117;
  --bg-darker: #0a0b0f;
  --bg-card: #161822;
  --accent: #ff6b6b;
  --accent-hover: #ff8a8a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #5a5a6e;
  --sidebar-width: 70px;
  --sidebar-width-expanded: 280px;
  --font-main: 'Poppins', sans-serif;
  --font-heading: 'Oswald', sans-serif;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width-expanded);
  height: 100vh;
  background: var(--bg-darker);
  border-right: 1px solid rgba(255, 107, 107, 0.15);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  overflow: hidden;
}

.sidebar-header {
  width: 100%;
  padding: 10px 15px;
  margin-bottom: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  position: relative;
  height: 36px;
}

.logo-icon {
  display: none;
}

.logo-full {
  height: 30px;
  width: auto;
}

.sidebar-nav {
  width: 100%;
  flex: 1;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li {
  width: 100%;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff !important;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.sidebar-nav a span {
  color: #ffffff !important;
}

.sidebar-nav a i {
  color: #ffffff !important;
}

.sidebar-nav a span {
  opacity: 1;
}

.sidebar-nav a i {
  width: 24px;
  font-size: 16px;
  flex-shrink: 0;
  margin-right: 14px;
  text-align: center;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--accent);
}

.sidebar-nav a:hover i,
.sidebar-nav a.active i {
  color: var(--accent);
}

.sidebar-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0;
}

.sidebar-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 14px;
  transition: all var(--transition);
}

.sidebar-social a:hover {
  color: var(--accent);
  transform: scale(1.2);
}

/* ===== MOBILE MENU ===== */
.menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1100;
  width: 44px;
  height: 44px;
  background: #ff6b6b !important;
  border: 2px solid #ffffff !important;
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.menu-toggle span {
  width: 22px;
  height: 3px;
  background: #ffffff !important;
  border-radius: 2px;
  transition: all var(--transition);
}

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

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: var(--sidebar-width-expanded);
  min-height: 100vh;
}

/* ===== HERO SLIDER ===== */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  background: #000;
}

.hero-slider {
  width: 100%;
  height: 100%;
}

.hero-slider .swiper-slide {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.hero-slider .swiper-slide-active {
  border-radius: 0;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 6s ease;
}

.swiper-slide-active .slide-bg {
  transform: scale(1.05);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
  padding: 40px;
  text-align: center;
}

.slide-services {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 30px;
  max-width: 500px;
}

.slide-services span {
  font-family: var(--font-heading);
  font-size: clamp(14px, 1.6vw, 22px);
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

.slide-services span:hover {
  color: var(--accent);
}

.slide-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.5vw, 48px);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 30px;
  text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
  max-width: 500px;
}

.btn-readmore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 12px 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition);
}

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

.btn-readmore i {
  font-size: 8px;
  background: linear-gradient(135deg, var(--accent), #ff8a65);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Scroll Down Indicator */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--accent);
  animation: bounce 2s infinite;
}

.scroll-down i {
  font-size: 14px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

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

/* ===== SWUP PAGE TRANSITIONS ===== */
html.is-animating .transition-fade,
.main-content {
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
}

html.is-animating .main-content {
  opacity: 0;
  transform: translateY(10px);
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 30px;
  text-align: center;
}

.section-title span {
  color: var(--accent);
}

.section-desc {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
}

/* ===== ABOUT ===== */
.about-section {
  background: var(--bg-darker);
  border-top: 1px solid rgba(255, 107, 107, 0.1);
  border-bottom: 1px solid rgba(255, 107, 107, 0.1);
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 107, 107, 0.08);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 107, 107, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card i {
  font-size: 36px;
  color: var(--accent);
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* ===== CONTACT ===== */
.contact-section {
  background: var(--bg-darker);
  border-top: 1px solid rgba(255, 107, 107, 0.1);
  padding: 20px 0 40px;
}

.contact-section .section-title {
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 10px;
}

.contact-section .section-desc {
  font-size: 14px;
  margin-bottom: 10px;
}

.contact-alert {
  max-width: 700px;
  margin: 0 auto 16px;
  padding: 10px 16px;
  border-radius: 6px;
  text-align: center;
  font-size: 13px;
}

.contact-alert.success {
  background: rgba(40, 167, 69, 0.15);
  border: 1px solid rgba(40, 167, 69, 0.3);
  color: #4ade80;
}

.contact-alert.error {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #ff6b6b;
}

.contact-alert i {
  margin-right: 8px;
}

.contact-form {
  max-width: 800px;
  margin: 16px auto 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}

.form-field {
  margin-bottom: 10px;
}

.form-field label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 107, 107, 0.15);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-dark);
}

.form-field textarea {
  resize: vertical;
  min-height: 70px;
}

.captcha-row {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.captcha-box {
  flex: 0 1 auto;
}

.captcha-box label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.captcha-box label i {
  color: var(--accent);
  margin-right: 6px;
}

.captcha-question {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 107, 107, 0.15);
  border-radius: 6px;
  padding: 6px 12px;
}

.captcha-math {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 2px;
  user-select: none;
}

.captcha-question input {
  width: 60px;
  padding: 6px 8px;
  background: var(--bg-dark);
  border: 1px solid rgba(255, 107, 107, 0.15);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  -moz-appearance: textfield;
}

.captcha-question input::-webkit-outer-spin-button,
.captcha-question input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.captcha-question input:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 28px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-contact:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .captcha-row {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-contact {
    width: 100%;
    justify-content: center;
  }
}


/* ===== FOOTER ===== */
.footer {
  padding: 30px;
  text-align: center;
  border-top: 1px solid rgba(255, 107, 107, 0.08);
  color: var(--text-muted);
  font-size: 13px;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.2);
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top i {
  font-size: 18px;
}

.back-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ===== PORTFOLIO PAGE ===== */
.portfolio-header {
  padding: 30px 0 20px;
  text-align: center;
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(255, 107, 107, 0.2);
  color: var(--text-secondary);
  padding: 10px 24px;
  font-family: var(--font-main);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 30px;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Portfolio Grid */
.portfolio-grid-section {
  padding-bottom: 80px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.portfolio-item {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  transition: all 0.4s ease;
}

.portfolio-item.hidden {
  display: none;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.portfolio-link {
  display: block;
}

.portfolio-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: zoom-in;
}

.portfolio-img::after {
  content: '\f00e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 28px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-img::after {
  opacity: 1;
}

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

.portfolio-item:hover .portfolio-img img {
  transform: scale(1.08);
}


/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 85vw;
  max-height: 85vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  z-index: 2001;
  transition: color var(--transition);
}

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

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 2001;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.active {
    display: block;
  }

  .menu-toggle {
    display: flex;
  }

  .main-content {
    margin-left: 0;
  }

  .hero-section {
    height: 100vh;
  }

  .slide-services span {
    font-size: 16px;
    letter-spacing: 2px;
  }

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

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

  .section {
    padding: 60px 0;
  }

  .portfolio-header {
    padding: 60px 0 30px;
  }
}

@media (max-width: 480px) {
  .slide-services span {
    font-size: 14px;
    letter-spacing: 1px;
  }

  .slide-title {
    font-size: 28px;
  }

  .container {
    padding: 0 16px;
  }
}
