/* ==========================================================================
   CSS RESET & BASE STYLES
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

/* Skip navigation link for screen readers */
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.visually-hidden-focusable:focus,
.visually-hidden-focusable:focus-within {
  position: static !important;
  width: auto !important;
  height: auto !important;
  padding: 0.25rem 0.5rem !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  background: #000 !important;
  color: #fff !important;
  text-decoration: none !important;
  z-index: 9999 !important;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

.open-sans-light {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
  color:#fff;
}

.open-sans-regular {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
  color:#fff;
}

.open-sans-purple-sub {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
  color:#6c63ff;
}

.open-sans-extra-bold {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
  color:#fff;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

/* Desktop: Centered Pill Menu Styling */
@media (min-width: 576px) {
  .offcanvas-body {
    display: flex;
    justify-content: center;
    margin-left: -108px; /* Offset by logo width */
  }
  
  .nav-pills-custom {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 6px;
    backdrop-filter: blur(10px);
    gap: 0;
    flex-grow: 0 !important;
  }

  .nav-pills-custom .nav-item {
    margin: 0 !important;
  }

  .nav-pills-custom .nav-link {
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
  }

  .nav-pills-custom .nav-link:hover,
  .nav-pills-custom .nav-link:focus {
    background: rgba(255, 255, 255, 0.15);
  }
}

/* All screen sizes */
.nav-link {
  color: #fff;
}

.nav-link:hover,
.nav-link:focus {
  color: #fff;
}

/* Mobile: Keep off-canvas styling normal */
@media (max-width: 575px) {
  .nav-pills-custom {
    background: none;
    border: none;
    padding: 0;
  }
}

/* Anchor offset for smooth scrolling navigation */
a.anchor {
  display: block;
  position: relative;
  top: -91px;
  visibility: hidden;
}

/* Highlight Contact Me when hero CTA is out of view */
@media (min-width: 576px) {
  .nav-pills-custom .nav-link.cta-active {
    background: #a90000 !important;
    color: #fff !important;
  }
  
  .nav-pills-custom .nav-link.cta-active:hover,
  .nav-pills-custom .nav-link.cta-active:focus {
    background: #8a0000 !important;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-content {
  height: 105vh;
  width: 100vw;
  position: relative; /* Added for proper positioning context */
}

.miscpage-content {
  height: 100vh;
  width: 100vw;
  position: relative; /* Added for proper positioning context */
}

.vertical-center {
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%; /* Added for proper centering */
  transform: translate(-50%, -50%); /* Modern centering technique */
  width: 100%; /* Ensure full width for content */
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.button-primary-override {
  background-color: #a90000 !important;
  border-color: #a90000;
  border-width: 5px;
  color: #fff;
  border-radius: 25px;
  transition: all 0.3s ease; /* Smooth transition for hover effects */
}

.button-primary-override:hover {
  color: #fff;
  background-color: #00000000!important;
  border-color: #a90000 !important;
  border-width: 5px;
}

.button-secondary-override {
  background-color: #6c63ff !important;
  border-color: #6c63ff;
  border-width: 5px;
  color: #fff;
  border-radius: 25px;
  transition: all 0.3s ease; /* Smooth transition for hover effects */
}

.button-secondary-override:hover {
  color: #fff;
  background-color: #00000000!important;
  border-color: #6c63ff !important;
  border-width: 5px;
}


/* ==========================================================================
   LINKS 
   ========================================================================== */

.link {
  transition: all 0.3s ease; /* Smooth transition for hover effects */
}

.link:hover,
.link:focus {
  color: #fff !important; 
  font-weight: 600;
  text-decoration: underline !important; /* Added underline for better accessibility */
}

.social {
  color: #ffffff !important;
  transition: color 0.3s ease;
}

.social:hover {
  color: #6c63ff !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet and smaller screens */
@media (max-width: 768px) {
  .hero-content {
    padding: 0 1rem; /* Add padding for smaller screens */
  }
  
  .vertical-center {
    width: calc(100% - 2rem); /* Account for padding */
  }
  
  .video,
  .video-two {
    object-position: center; /* Ensure video stays centered on mobile */
  }
}

/* Mobile screens */
@media (max-width: 576px) {
  .permanent-marker {
    font-size: 2rem; /* Adjust font size for mobile */
  }
  
  .navbar {
    padding: 0.5rem 1rem; /* Adjust navbar padding for mobile */
  }

  .nav-link {
    font-size: 2rem;
    }
}

/* ========================================
   RESPONSIVE VISIBILITY UTILITIES
   ======================================== */
@media screen and (min-width: 577px) {
  .mobile-only {
    display: none;
  }
}

@media (max-width: 576.98px) {
  .no-mobile {
    display: none;
  }
}

@media screen and (min-width: 992px) {
  .no-desktop {
    display: none;
  }
}

@media screen and (max-width: 991.98px) {
  .desktop-only {
    display: none;
  }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
  .video,
  .video-two,
  .navbar {
    display: none; /* Hide video and navigation when printing */
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .text-white {
    color: black !important;
  }
}

.bg-gradient-body:before {
  content: "";
  -webkit-mask-image: linear-gradient(to top, transparent, #000 80%, #000);
  mask-image: linear-gradient(to top, transparent, #000 80%, #000);
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  left: 0;
  height: 3300px;
  max-height: 100%;
  background: linear-gradient(112deg, 
    #1b1c1e 35%,        /* Color 1: Dark charcoal gray (left side) */
    #021140 52%,        /* Color 2: Deep navy blue (left-center) */
    #021140 53%, 
    rgb(35, 5, 73) 56%, /* Color 3: Dark purple (center-right) */
    #13151b 67%,        /* Color 4: Very dark gray (right side) */
    transparent 100%
  ), #1b1c1e;             /* Base background (usually matches Color 1) */
  background-size: 200% 3300px;
  background-position: top right;
  background-repeat: no-repeat;
}

.bg-gradient-body {
  position: relative;
}

.custom-card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 15px;
            padding: 30px;
            transition: all 0.3s ease;
        }

        .custom-card:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .card-icon {
            font-size: 3rem;
            color: #6c63ff;
            margin-right: 20px;
            flex-shrink: 0;
        }

        .card-content h3 {
            font-size: 1.8rem;
            margin-bottom: 15px;
            font-weight: bold;
        }

        .card-content p {
            font-size: 1.1rem;
            line-height: 1.6;
            color: rgba(255, 255, 255, 0.9);
            margin: 0;
        }

        .card-spacing {
            margin-bottom: 30px;
        }

  .blurb-box {
            text-align: center;
            padding: 20px;
        }

        .blurb-box h4 {
            font-size: 1.4rem;
            font-weight: bold;
            margin-bottom: 12px;
            color: #ffffff;
        }

        .blurb-box p {
            font-size: 1rem;
            line-height: 1.6;
            color: rgba(255, 255, 255, 0.85);
            margin: 0;
        }

  .portfolio-card {
            position: relative;
            height: 500px;
            border-radius: 15px;
            overflow: hidden;
            background-size: cover;
            background-position: center;
            transition: transform 0.3s ease;
        }

        .portfolio-card:hover {
            transform: translateY(-10px);
        }

        .portfolio-card::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
        }

        .portfolio-info {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 25px;
            z-index: 2;
        }

        .portfolio-info h3 {
            font-size: 1.2rem;
            font-weight: bold;
            margin-bottom: 10px;
            color: white;
        }

        .portfolio-info p {
            line-height: 1;
            margin-bottom: 8px;
            color: white;
        }

        .portfolio-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: #6c63ff;
            text-decoration: none;
            font-size: 1rem;
            transition: color 0.3s ease;
        }

        .portfolio-link:hover {
            color: #8b84ff;
        }

        .portfolio-link i {
            font-size: 1rem;
        }

        /* Swiper custom styling */
        .swiper {
            padding: 20px 0 60px 0;
        }

        .swiper-button-next,
        .swiper-button-prev {
            color: #6c63ff;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            width: 50px;
            height: 50px;
            border-radius: 50%;
        }

        .swiper-button-next:after,
        .swiper-button-prev:after {
            font-size: 20px;
        }

        .swiper-pagination-bullet {
            background: rgba(255, 255, 255, 0.5);
            width: 12px;
            height: 12px;
        }

        .swiper-pagination-bullet-active {
            background: #6c63ff;
        }

        .testimonial-container {
            background: linear-gradient(135deg, #1b1c1e 0%, #021140 35%, rgb(35, 5, 73) 60%, #13151b 85%, #0a0b0d 100%);
            border-radius: 20px;
            padding: 50px 40px;
            box-shadow: 0 20px 60px rgba(35, 5, 73, 0.4);
            position: relative;
            overflow: hidden;
        }

        .testimonial-container::before {
            content: "";
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
            pointer-events: none;
        }

        .quote-icon {
            font-size: 4rem;
            color: rgba(255, 255, 255, 0.2);
            margin-bottom: 20px;
        }

        .testimonial-content {
            position: relative;
            z-index: 1;
        }

        .testimonial-content blockquote {
            font-size: 1.3rem;
            line-height: 1.8;
            font-style: italic;
            margin-bottom: 30px;
            color: rgba(255, 255, 255, 0.95);
            border: none;
        }

        .client-info {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .client-photo {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .client-details h4 {
            font-size: 1.2rem;
            font-weight: bold;
            margin-bottom: 5px;
            color: white;
        }

        .client-details p {
            font-size: 1rem;
            margin: 0;
            color: rgba(255, 255, 255, 0.7);
        }

        .testimonial-container.centered {
            text-align: center;
        }

        .testimonial-container.centered .client-info {
            justify-content: center;
            flex-direction: column;
            gap: 15px;
        }

        .testimonial-container.centered .client-photo {
            width: 90px;
            height: 90px;
        }

        /* Modal customization */
        .modal-content {
            background: linear-gradient(135deg, #1b1c1e 0%, #021140 35%, rgb(35, 5, 73) 60%, #13151b 85%, #0a0b0d 100%);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(35, 5, 73, 0.6);
        }

        .modal-header {
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding: 30px 30px 20px 30px;
        }

        .modal-header h5 {
            color: white;
            font-size: 1.5rem;
        }

        .btn-close {
            filter: invert(1);
            opacity: 0.7;
        }

        .btn-close:hover {
            opacity: 1;
        }

        .modal-body {
            padding: 30px;
        }

        /* Floating label styles */
        .form-floating {
            margin-bottom: 20px;
        }

        .form-floating > .form-control {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: white;
            height: auto;
            min-height: 58px;
            padding: 1rem 0.75rem;
        }

        .form-floating > .form-control:focus {
            background: rgba(255, 255, 255, 0.08);
            border-color: #6c63ff;
            box-shadow: 0 0 0 0.25rem rgba(108, 99, 255, 0.25);
            color: white;
        }

        .form-floating > .form-control::placeholder {
            color: transparent;
        }

        .form-floating > label {
            color: rgba(255, 255, 255, 0.6);
            padding: 1rem 0.75rem;
            user-select: none;
            pointer-events: none;
        }

        .form-floating > label::before,
        .form-floating > label::after {
            display: none !important;
        }

        .form-floating > .form-control:focus ~ label,
        .form-floating > .form-control:not(:placeholder-shown) ~ label {
            color: rgba(255, 255, 255, 0.8);
            transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
            opacity: 1 !important;
            background-color: transparent !important;
            background: transparent !important;
        }

        .form-floating > .form-control:focus ~ label::after,
        .form-floating > .form-control:not(:placeholder-shown) ~ label::after {
            background-color: transparent !important;
        }

        /* Textarea specific */
        .form-floating > textarea.form-control {
            min-height: 120px;
            resize: vertical;
        }

        /* Submit button */
        .btn-submit {
            background: #6c63ff;
            border: none;
            color: white;
            padding: 12px 40px;
            font-size: 1.1rem;
            font-weight: 600;
            border-radius: 8px;
            transition: all 0.3s ease;
            width: 100%;
        }

        .btn-submit:hover {
            background: #5a52d5;
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(108, 99, 255, 0.4);
        }


        /* Confirmation Page */
        .divider {
            width: 60px;
            height: 4px;
            background: #6c63ff;
            margin: 30px auto;
            border-radius: 2px;
        }

      .success-icon {
            font-size: 6rem;
            color: #6c63ff;
            margin-bottom: 30px;
        }

      .success-text {
            font-size: 1.3rem;
            margin-bottom: 15px;
            color: rgba(255, 255, 255, 0.9);
        }

      .success-para-text {
            font-size: 1.1rem;
            line-height: 1.8;
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 40px;  
      }

