/* ============================================
   DJMORTERO.COM - Carbon Copy
   Accent Cyan: #0ae0fc
   CTA Magenta: #D10459
   Dark BG: #03051a
   Section BG: #171a3b
   Fonts: Teko (headings), Work Sans (body)
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
  color: #ffffff;
  background: #03051a;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #0ae0fc;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #fff;
}

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

ul { list-style: none; }

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

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  width: 60px;
  height: 60px;
  position: relative;
}

.preloader-inner span {
  display: block;
  width: 100%;
  height: 3px;
  background: #0ae0fc;
  margin: 8px 0;
  animation: preloaderPulse 1s ease-in-out infinite;
}

.preloader-inner span:nth-child(2) { animation-delay: 0.1s; }
.preloader-inner span:nth-child(3) { animation-delay: 0.2s; }
.preloader-inner span:nth-child(4) { animation-delay: 0.3s; }

@keyframes preloaderPulse {
  0%, 100% { transform: scaleX(0.3); opacity: 0.3; }
  50% { transform: scaleX(1); opacity: 1; }
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Teko', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
}

h1 { font-size: 60px; }
h2 { font-size: 60px; }
h3 { font-size: 48px; }
h4 { font-size: 36px; }
h5 { font-size: 24px; }
h6 { font-size: 18px; }

.color-main { color: #0ae0fc; }
.color-second { color: #D10459; }
.color-white { color: #fff; }

.subheader {
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #D10459;
  display: block;
  margin-bottom: 5px;
}

.head-subheader {
  margin-bottom: 50px;
}

.head-subheader .subheader {
  margin-bottom: 10px;
}

.head-subheader h2 {
  position: relative;
  display: inline-block;
}

.head-subheader h2::after {
  content: '';
  display: block;
  width: 100%;
  height: 5px;
  background: url('../images/line.png') repeat-x center;
  margin-top: 10px;
}

.head-subheader.color-white h2::after {
  background-image: url('../images/line-white.png');
}

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

/* === CONTAINER === */
.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

.container-fluid {
  width: 100%;
  padding: 0 15px;
}

/* === GRID === */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-1, .col-2, .col-3, .col-4, .col-6, .col-12 {
  padding: 0 15px;
}

.col-12 { width: 100%; }
.col-6 { width: 50%; }
.col-4 { width: 33.333%; }
.col-3 { width: 25%; }

/* === LEFT SIDEBAR NAV === */
.nav-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 270px;
  height: 100%;
  background: rgba(3, 5, 26, 0.95);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  padding: 30px 0;
  transition: transform 0.4s ease;
  border-right: 1px solid rgba(255,255,255,0.05);
}

.nav-sidebar .nav-logo {
  padding: 0 30px 30px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-sidebar .nav-logo img {
  height: 40px;
}

.nav-sidebar .nav-menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 30px;
}

.nav-sidebar .nav-menu li {
  margin: 3px 0;
}

.nav-sidebar .nav-menu li a {
  font-family: 'Teko', sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  display: inline-block;
  position: relative;
  padding: 5px 0;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.nav-sidebar .nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 5px;
  background: url('../images/disco.gif') repeat-x;
  background-size: auto 5px;
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-sidebar .nav-menu li a:hover,
.nav-sidebar .nav-menu li a.active {
  color: #0ae0fc;
}

.nav-sidebar .nav-menu li a:hover::after,
.nav-sidebar .nav-menu li a.active::after {
  opacity: 1;
}

.nav-sidebar .nav-search {
  padding: 20px 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.nav-sidebar .nav-search .search-icon {
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: color 0.3s;
}

.nav-sidebar .nav-search .search-icon:hover {
  color: #0ae0fc;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9500;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-toggle .bar {
  display: block;
  width: 30px;
  height: 2px;
  background: #fff;
  margin: 6px auto;
  transition: all 0.3s;
}

.nav-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

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

/* Mobile nav logo */
.nav-mobile-logo {
  display: none;
  position: fixed;
  top: 18px;
  left: 20px;
  z-index: 9500;
}

.nav-mobile-logo img {
  height: 35px;
}

/* Main content offset for sidebar */
.main-content {
  margin-left: 270px;
}

/* === FULLSCREEN SLIDER (Homepage) === */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.2);
  transition: opacity 1.5s ease;
}

.hero-slider .slide.active {
  opacity: 1;
  animation: kenBurnsZoom 20s ease forwards;
}

@keyframes kenBurnsZoom {
  0% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Slider dark overlay */
.hero-slider::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-slider .slide-copyright {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 2;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.hero-slider .slide-copyright a {
  color: rgba(255,255,255,0.5);
}

.hero-slider .slide-copyright a:hover {
  color: #0ae0fc;
}

.hero-slider .slide-copyright .color-second {
  color: #D10459;
}

/* Particles overlay */
#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* === PAGE HEADER (Inner pages) === */
.page-header {
  position: relative;
  padding: 160px 0 80px;
  text-align: center;
  background: #171a3b url('../images/inner-bg.png') center center / cover no-repeat;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 5, 26, 0.6);
}

.page-header h1 {
  position: relative;
  z-index: 1;
  font-size: 60px;
  letter-spacing: 3px;
}

.page-header h1::after {
  content: '';
  display: block;
  width: 100px;
  height: 5px;
  background: url('../images/line.png') repeat-x center;
  margin: 15px auto 0;
}

/* Particles in page header */
.page-header #particles-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

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

.section-dark {
  background: #03051a;
}

.section-theme {
  background: #171a3b;
}

.section-cyan {
  background: #0ae0fc;
}

.section-cyan h1, .section-cyan h2, .section-cyan h3,
.section-cyan h4, .section-cyan h5, .section-cyan p {
  color: #03051a;
}

/* === FEATURES (About page) === */
.feature-item {
  margin-bottom: 40px;
}

.feature-item h4 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #0ae0fc;
}

.feature-item h4 .num {
  color: #0ae0fc;
}

.feature-item h4 .subheader {
  color: #D10459;
  font-family: 'Teko', sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.feature-item p {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  line-height: 1.7;
}

.feature-center-img {
  text-align: center;
}

.feature-center-img img {
  max-height: 536px;
}

.text-right-lg {
  text-align: right;
}

/* === PARALLAX SECTION === */
.parallax-section {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  padding: 120px 0;
}

.parallax-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 5, 26, 0.75);
}

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

.parallax-section .about-text .subheader {
  margin-bottom: 10px;
}

.parallax-section .about-text h2 {
  margin-bottom: 20px;
}

.parallax-section .about-text h2::after {
  content: '';
  display: block;
  width: 150px;
  height: 5px;
  background: url('../images/line.png') repeat-x center;
  margin-top: 10px;
}

.parallax-section .about-text .text-xl {
  font-size: 16px;
  font-weight: 700;
  color: #0ae0fc;
  margin-bottom: 20px;
  line-height: 1.7;
}

.parallax-section .about-text p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 25px;
}

.parallax-section .about-img img {
  width: 100%;
  max-width: 400px;
}

/* Button */
.btn {
  display: inline-block;
  font-family: 'Teko', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 12px 40px;
  border: 2px solid;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-second {
  border-color: #D10459;
  color: #fff;
  background: transparent;
}

.btn-second:hover {
  background: #D10459;
  color: #fff;
}

.btn-cyan {
  border-color: #0ae0fc;
  color: #fff;
  background: transparent;
}

.btn-cyan:hover {
  background: #0ae0fc;
  color: #03051a;
}

/* === COUNTERS === */
.counters-section {
  padding: 60px 0;
}

.counter-item {
  text-align: center;
  padding: 20px 10px;
}

.counter-item .counter-number {
  font-family: 'Teko', sans-serif;
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  color: #03051a;
}

.counter-item .counter-label {
  font-family: 'Teko', sans-serif;
  font-size: 20px;
  text-transform: uppercase;
  color: #03051a;
  opacity: 0.7;
}

.counter-item .counter-label span {
  display: block;
  font-size: 16px;
  opacity: 0.6;
}

/* === GALLERY === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

.gallery-item .photo {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

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

.gallery-item .hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(23, 26, 59, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.gallery-item .hover-overlay .hover-icon {
  font-size: 30px;
  color: #0ae0fc;
  margin-bottom: 15px;
  transform: scale(0.5);
  transition: transform 0.4s ease;
}

.gallery-item:hover .hover-overlay .hover-icon {
  transform: scale(1);
}

.gallery-item .hover-overlay h5 {
  color: #0ae0fc;
  font-size: 22px;
  letter-spacing: 2px;
}

/* Gallery pagination */
.gallery-pagination {
  text-align: center;
  padding: 40px 0;
}

.gallery-pagination a, .gallery-pagination span {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  margin: 0 5px;
  font-family: 'Teko', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s;
}

.gallery-pagination span.current,
.gallery-pagination a:hover {
  background: #0ae0fc;
  border-color: #0ae0fc;
  color: #03051a;
}

/* === CONTACTS === */
.contact-section .contact-heading h3 {
  color: #0ae0fc;
  margin-bottom: 15px;
}

.contact-section .contact-heading h3::after {
  content: '';
  display: block;
  width: 150px;
  height: 5px;
  background: url('../images/line.png') repeat-x center;
  margin-top: 10px;
}

.contact-section .contact-desc {
  color: rgba(255,255,255,0.7);
  margin-bottom: 30px;
  font-size: 16px;
}

.contact-info-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 16px;
  color: rgba(255,255,255,0.8);
}

.contact-info-list li .icon {
  color: #0ae0fc;
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.social-heading {
  font-family: 'Teko', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: #03051a;
  margin: 25px 0 15px;
}

.social-big a {
  display: inline-flex;
  width: 45px;
  height: 45px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  margin-right: 8px;
  font-size: 18px;
  color: #fff;
  transition: all 0.3s;
}

.social-big a:hover {
  background: #0ae0fc;
  border-color: #0ae0fc;
  color: #03051a;
}

/* Contact Form */
.contact-form {
  background: rgba(255,255,255,0.03);
  padding: 40px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 15px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0ae0fc;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

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

.contact-form .captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.contact-form .captcha-canvas {
  border-radius: 4px;
  flex-shrink: 0;
}

.contact-form .captcha-input {
  width: 80px !important;
  text-align: center;
  font-size: 16px;
  letter-spacing: 2px;
}

.contact-form .captcha-refresh {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 36px;
  height: 36px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: border-color 0.3s;
}

.contact-form .captcha-refresh:hover {
  border-color: #0ae0fc;
  color: #0ae0fc;
}

.contact-form button[type="submit"],
.contact-form .btn-submit {
  font-family: 'Teko', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 14px 50px;
  background: #D10459;
  color: #fff;
  border: 2px solid #D10459;
  cursor: pointer;
  transition: all 0.3s;
}

.contact-form button[type="submit"]:hover {
  background: transparent;
  color: #D10459;
}

.form-message {
  margin-top: 15px;
  padding: 10px;
  display: none;
}

.form-message.success { display: block; color: #4caf50; }
.form-message.error { display: block; color: #f44336; }

/* === BIO PAGE === */
.bio-section {
  padding: 80px 0;
}

.bio-section img {
  width: 100%;
  max-width: 700px;
  margin-bottom: 30px;
}

.bio-section p {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* === FOOTER === */
.footer {
  position: relative;
  padding: 80px 0 0;
  background: #020416;
}

.footer-bg {
  background: url('../images/footer-bg.jpg') center center / cover no-repeat;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 4, 22, 0.85);
}

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

.footer-logo img {
  height: 62px;
  margin-bottom: 20px;
}

.footer-desc {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.7;
}

.footer h5 {
  font-size: 22px;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: #fff;
}

.footer h5::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: url('../images/line.png') repeat-x center;
  margin-top: 8px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

.footer-contact li .icon {
  color: #0ae0fc;
  width: 18px;
  text-align: center;
}

.footer-social a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  margin-right: 5px;
  margin-bottom: 5px;
  color: #fff;
  font-size: 16px;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: #0ae0fc;
  border-color: #0ae0fc;
  color: #03051a;
}

/* Footer copyright */
.footer-copyright {
  position: relative;
  z-index: 1;
  margin-top: 50px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer-copyright a {
  color: rgba(255,255,255,0.4);
}

.footer-copyright a:hover {
  color: #0ae0fc;
}

.go-top {
  font-family: 'Teko', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.4);
  position: relative;
  padding-bottom: 3px;
  cursor: pointer;
}

.go-top::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: url('../images/disco.gif') repeat-x;
  background-size: auto 3px;
}

.go-top:hover {
  color: #0ae0fc;
}

/* === SCROLL REVEAL ANIMATIONS === */
.sr-hidden {
  opacity: 0;
  transition: all 0.6s ease;
}

.sr-slide-left {
  transform: translateX(-60px);
}

.sr-slide-right {
  transform: translateX(60px);
}

.sr-slide-up {
  transform: translateY(40px);
}

.sr-scale {
  transform: scale(0.8);
}

.sr-visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Glow animation */
@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(10, 224, 252, 0.3); }
  50% { box-shadow: 0 0 20px rgba(10, 224, 252, 0.6); }
}

/* Pulse animation */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* === RESPONSIVE === */

/* Large desktop */
@media (max-width: 1199px) {
  .nav-sidebar {
    width: 240px;
  }
  .main-content {
    margin-left: 240px;
  }
}

/* Tablet */
@media (max-width: 991px) {
  h1 { font-size: 48px; }
  h2 { font-size: 48px; }
  h3 { font-size: 38px; }
  h4 { font-size: 28px; }

  .nav-sidebar {
    transform: translateX(-100%);
    width: 270px;
  }

  .nav-sidebar.active {
    transform: translateX(0);
  }

  .nav-toggle {
    display: block;
  }

  .nav-mobile-logo {
    display: block;
  }

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

  .col-4 { width: 50%; }
  .col-3 { width: 50%; }

  .text-right-lg {
    text-align: left;
  }

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

  .parallax-section {
    background-attachment: scroll;
  }
}

/* Small tablet */
@media (max-width: 767px) {
  h1 { font-size: 38px; }
  h2 { font-size: 38px; }
  h3 { font-size: 30px; }

  .col-6, .col-4, .col-3 { width: 100%; }

  .section { padding: 60px 0; }

  .page-header { padding: 120px 0 60px; }
  .page-header h1 { font-size: 42px; }

  .feature-center-img { display: none; }

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

  .footer .row .col-3 {
    width: 50%;
    margin-bottom: 30px;
  }

  .footer-copyright {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .counter-item .counter-number {
    font-size: 54px;
  }

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

/* Mobile */
@media (max-width: 479px) {
  h1 { font-size: 32px; }
  h2 { font-size: 32px; }

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

  .footer .row .col-3 {
    width: 100%;
  }

  .counter-item .counter-number {
    font-size: 44px;
  }
}

/* Homepage no-sidebar override */
body.home-page .main-content {
  margin-left: 270px;
}

@media (max-width: 1199px) {
  body.home-page .main-content {
    margin-left: 240px;
  }
}

@media (max-width: 991px) {
  body.home-page .main-content {
    margin-left: 0;
  }
}
