@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800;900&display=swap');

:root {
  --primary-color: #3182F6;
  --bg-dark: #0f172a;
  --bg-light: #f8fafc;
  --text-main: #ffffff;
  --text-sub: #cbd5e1;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow: hidden; /* Prevent default scrolling */
}

/* One Page Scroll Container */
.main-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.section {
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Common Section BG */
.section-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: var(--transition-smooth);
}

.section-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Common Section Content Grid */
.section-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Global Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Common Layout Patterns */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100%;
}

.split-text-box {
  background: #fff;
  color: #000;
  padding: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 24px;
}

.section-desc {
  font-size: 18px;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 32px;
}

.more-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: var(--transition-smooth);
}

.more-btn:hover {
  background: #000;
  color: #fff;
}

@media (max-width: 768px) {
  .main-container {
    scroll-snap-type: y mandatory;
  }

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

  .section-desc {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
  }
  
  .split-layout {
    grid-template-columns: 1fr;
    display: block;
  }

  .split-text-box {
    padding: 60px 30px;
    width: 100%;
    min-height: 50vh;
  }
}

/* Auto-Scroll Widget Styles */
#autoscroll-widget {
  position: fixed;
  top: 100px;
  right: 30px;
  z-index: 999;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  padding: 8px 12px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 150px;
  overflow: hidden;
  height: 48px;
  display: none;
}

#autoscroll-widget.paused {
  width: 52px;
  background: rgba(255, 255, 255, 0.95);
}

.as-control-btn {
  background: #112347;
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
  flex-shrink: 0;
}

.as-control-btn:hover {
  transform: scale(1.1) rotate(10deg);
  background: #007ba1;
}

.as-progress-container {
  flex: 1;
  height: 4px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#autoscroll-widget.paused .as-progress-container {
  opacity: 0;
  transform: translateX(10px);
}

.as-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #112347, #007ba1);
  border-radius: 2px;
}

.as-progress-bar.active {
  transition: width 3s linear;
  width: 100%;
}

@media (max-width: 768px) {
  #autoscroll-widget {
    top: 90px;
    right: 20px;
    transform: scale(0.9);
  }
}
