/* Regno Website Styles */
/* Version: 1.0.13 */

/* =================== BASE STYLES =================== */
html {
  scroll-behavior: smooth;
}

body {
  background-color: black;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  padding: 0 1.5rem;
  padding-top: 6rem;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('background.gif');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.5;
  z-index: -1;
}

/* =================== LAYOUT =================== */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

section {
  max-width: 100%;
  overflow-x: hidden;
}

/* =================== TYPOGRAPHY =================== */
.title-text {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.secondary-header {
  font-size: 2rem;
  font-weight: 650;
  line-height: 1.25;
}

.header-text {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.body-text {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}

/* =================== SPACING & BACKGROUNDS =================== */
.section-spacing {
  padding: 3rem 2rem;
}

.section-bg,
.how-we-do-it-bg,
.meet-the-team-bg {
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.section-header {
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 6rem;
  height: 1px;
  background-color: #9CA3AF;
}

/* =================== HEADER & NAVIGATION =================== */
header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 80px;
}

header > div:first-child {
  justify-self: start;
}

.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
  flex-wrap: nowrap;
  gap: 0;
  padding: 0 1rem;
  justify-self: end;
  grid-column: 2;
}

.desktop-nav a,
.mobile-nav a {
  padding: 8px 10px;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.desktop-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  min-width: max-content;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  background-color: rgba(30, 144, 255, 0.6);
  color: white;
  transform: translateY(-1px);
}

.desktop-nav a:active,
.mobile-nav a:active,
.desktop-nav a.active,
.mobile-nav a.active {
  background-color: #1e90ff;
  color: white;
  transform: translateY(0);
}

.desktop-nav a[aria-label="LinkedIn"] i {
  font-size: 1.5rem;
  min-width: 24px;
  min-height: 24px;
}

/* Mobile Navigation */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
  justify-self: end;
  grid-column: 3;
  background: none;
  border: none;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  flex-direction: column;
  padding: 1rem;
  border-top: 1px solid #374151;
  border-bottom: 1px solid #374151;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.mobile-nav.active {
  display: flex;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav a {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(55, 65, 81, 0.5);
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

/* =================== IMAGES & LOGOS =================== */
.logo {
  width: 20vw;
  min-width: 150px;
  max-width: 250px;
}

.insight-logo {
  width: 15vw;
  min-width: 120px;
  max-width: 300px;
}

.team-photo {
  width: 50%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background-color: white;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* =================== BUTTONS =================== */
.cta-button {
  background: #1e90ff;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.cta-button:hover {
  background: #0066cc;
  transform: translateY(-2px);
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background-color: #1e90ff;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(30, 144, 255, 0.3);
  opacity: 0;
  visibility: hidden;
}

.back-to-top:hover {
  background-color: #0066cc;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 144, 255, 0.4);
  opacity: 1 !important;
}

/* =================== CAROUSELS =================== */
.team-carousel {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.team-carousel::-webkit-scrollbar {
  display: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.carousel-arrow:hover {
  background: rgba(30, 144, 255, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow-left {
  left: -25px;
}

.carousel-arrow-right {
  right: -25px;
}

/* =================== UTILITY CLASSES =================== */
.accent-border {
  border-color: #1e90ff;
}

.accent-bg {
  background-color: #1e90ff;
}

.accent-text {
  color: #1e90ff;
}

/* =================== RESPONSIVE DESIGN =================== */
@media (max-width: 1024px) {
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
  }
  
  .hamburger {
    display: flex;
  }
  
  .desktop-nav {
    display: none !important;
  }
  
  .logo {
    width: 140px;
    min-width: 120px;
    max-width: 160px;
  }
  
  .mobile-nav a {
    padding: 1.25rem 0;
    font-size: 1.1rem;
    min-height: 48px;
  }
  
  .cta-button {
    padding: 14px 28px;
    font-size: 1.1rem;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .flex-row {
    flex-direction: column !important;
  }
  
  .w-1\/2 {
    width: 100% !important;
  }
  
  .insight-logo {
    width: 200px;
    margin: 0 auto;
    display: block;
  }
  
  .md\\:grid-cols-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0 0.75rem;
    padding-top: 6rem;
  }
  
  .main-container {
    padding: 0 0.5rem;
  }
  
  header {
    padding: 0.75rem;
  }
  
  .logo {
    width: 100px;
    min-width: 80px;
  }
  
  .section-spacing {
    padding: 2rem 1rem;
  }
  
  .title-text {
    font-size: 2rem;
  }
  
  .secondary-header {
    font-size: 1.5rem;
  }
  
  .md\\:grid-cols-3 {
    grid-template-columns: 1fr !important;
  }
  
  .gap-6 {
    gap: 1rem !important;
  }
  
  .gap-4, .lg\\:gap-12 {
    gap: 1.5rem !important;
  }
  
  .insight-logo {
    width: 150px;
    margin: 0 auto 2rem auto;
    display: block;
  }
  
  .mb-8 {
    margin-bottom: 1.5rem !important;
  }
  
  .mb-6 {
    margin-bottom: 1rem !important;
  }
}