/* 
  ASCEND GLOBAL - V3 LIGHT PREMIUM
  Theme: Clean White (#FFFFFF) & Corporate Cyan (#00A9CC) from Logo
  Style: Premium Agency, Animated, Modern Layout
*/

:root {
  --bg-dark: #ffffff;
  /* Main background is now white */
  --bg-card: #f8fafc;
  --bg-card-hover: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --accent-color: #00A9CC;
  /* Cyan from logo */
  --accent-hover: #0088A8;
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --border-subtle: rgba(0, 0, 0, 0.08);
  /* Dark border for light theme */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.site-wrapper {
  overflow: clip;
  /* Best setting to crop purely the layer bound */
  width: 100%;
  position: relative;
}

::selection {
  background: var(--accent-color);
  color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
textarea {
  font-family: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-main);
}

h1 {
  font-size: clamp(2rem, 8vw, 5.5rem);
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(1.8rem, 6vw, 4rem);
  letter-spacing: -0.5px;
  margin-bottom: 30px;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.section-title {
  margin-bottom: 2rem;
}

.text-accent {
  color: var(--accent-color);
}

p {
  font-size: 1.125rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* Layout Generators */
.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

.container-fluid {
  width: 95%;
  margin: 0 auto;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.text-center {
  text-align: center;
}

.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.grid-3-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.relative {
  position: relative;
}

.z-index-2 {
  z-index: 2;
}

section {
  padding: 120px 0;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background-color: var(--accent-color);
  width: 0%;
  z-index: 9999;
  box-shadow: 0 0 10px rgba(0, 169, 204, 0.5);
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 25px 0;
  z-index: 1000;
  transition: var(--transition-smooth);
  background: transparent;
}

header.scrolled {
  padding: 15px 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.brand-logo {
  height: 55px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.brand-logo:hover {
  transform: scale(1.05);
}

nav a {
  margin: 0 20px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-main);
}

.hover-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}

.hover-underline::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.hover-underline:hover::after {
  width: 100%;
}

/* Buttons */
.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--accent-color);
  color: #fff;
  padding: 18px 36px;
  border-radius: 4px;
  font-weight: 600;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
  overflow: hidden;
  position: relative;
}

.btn-solid:hover {
  background-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 169, 204, 0.2);
}

.btn-primary-outline {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid var(--text-main);
  color: var(--text-main);
  border-radius: 4px;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-primary-outline:hover {
  border-color: var(--accent-color);
  background: rgba(0, 169, 204, 0.05);
  color: var(--accent-color);
}

.btn-text {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 700;
  padding-bottom: 5px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
}

.btn-text:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  padding-left: 10px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 140%;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--bg-dark) 0%, rgba(255, 255, 255, 0.95) 40%, rgba(255, 255, 255, 0.4) 100%);
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
  margin-left: 5%;
}

.hero-badge {
  display: inline-block;
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  color: var(--accent-color);
  border-radius: 30px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 30px;
  background: rgba(0, 0, 0, 0.02);
  backdrop-filter: blur(4px);
}

.hero-content p {
  max-width: 550px;
  margin-bottom: 50px;
  font-size: 1.25rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Marquee */
.marquee-wrapper {
  position: absolute;
  bottom: 0;
  left: -5%;
  width: 110%;
  overflow: hidden;
  background: var(--accent-color);
  padding: 18px 0;
  transform: translateY(50%) rotate(-2deg);
  z-index: 10;
}

.marquee-content {
  display: flex;
  width: 200%;
  animation: marquee 20s linear infinite;
}

.marquee-content span {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 3px;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* About */
.about-images {
  position: relative;
  padding: 40px;
}

.img-wrapper {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  z-index: 2;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

.img-wrapper img {
  width: 100%;
  display: block;
  transition: transform 0.8s;
}

.img-wrapper:hover img {
  transform: scale(1.05);
}

.circle-decorator {
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 250px;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  opacity: 0.2;
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 50px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 50px;
}

.stat-item h3 {
  font-size: 3.5rem;
  color: var(--text-main);
  margin-bottom: 5px;
}

.stat-item p {
  font-weight: 500;
}

/* Services */
.services-section {
  background-color: var(--bg-card);
  position: relative;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
}

.service-card {
  padding: 50px 40px;
  background: var(--bg-dark);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.service-number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.03);
  position: absolute;
  top: 20px;
  right: 30px;
  line-height: 1;
  transition: var(--transition-smooth);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 169, 204, 0.3);
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-card:hover .service-number {
  color: rgba(0, 169, 204, 0.1);
}

.service-card h3 {
  margin-bottom: 20px;
  font-size: 2rem;
  position: relative;
  z-index: 2;
}

.service-card p {
  position: relative;
  z-index: 2;
  font-size: 1.05rem;
}

.service-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 0;
  background-color: var(--accent-color);
  transition: width 0.5s ease;
}

.service-card:hover .service-line {
  width: 100%;
}

/* Parallax Break */
.image-break {
  padding: 0;
  height: 70vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-bg {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 140%;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.massive-text {
  font-size: min(10vw, 8rem);
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

/* Contact Section */
.contact-row {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  transition: transform 0.3s;
}

.contact-row:hover {
  transform: translateX(10px);
}

.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-row h5 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--text-main);
}

.contact-link {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-block;
}

.contact-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Cyber Form */
.contact-form-wrapper {
  background: var(--bg-card);
  padding: 60px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  position: relative;
}

.form-group {
  position: relative;
  margin-bottom: 35px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  color: var(--text-main);
  font-size: 1.1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--accent-color);
}

.form-group label {
  position: absolute;
  top: 15px;
  left: 0;
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
  top: -15px;
  font-size: 0.85rem;
  color: var(--accent-color);
  font-weight: 700;
}

.btn-submit {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background: transparent;
  border: 2px solid var(--text-main);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}

.btn-submit .btn-bg {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--text-main);
  transition: left 0.4s cubic-bezier(0.8, 0, 0.2, 1);
  z-index: 1;
}

.btn-submit:hover .btn-bg {
  left: 0;
}

.btn-submit .btn-text,
.btn-submit .btn-icon {
  position: relative;
  z-index: 2;
  transition: color 0.3s;
}

.btn-submit:hover .btn-text,
.btn-submit:hover .btn-icon {
  color: #fff;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card);
  padding-top: 80px;
}

.footer-logo {
  height: 45px;
  width: auto;
  margin-bottom: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  max-width: 300px;
  font-size: 1rem;
  color: var(--text-muted);
}

.footer-links a,
.footer-legal a {
  display: block;
  margin-bottom: 15px;
  color: var(--text-muted);
  transition: color 0.3s;
  font-weight: 500;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  padding: 30px 0;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
}

.menu-toggle .line {
  width: 30px;
  height: 3px;
  background: var(--text-main);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

/* GSAP Helper Classes (initial states) */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
}

.floating {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0);
  }
}

/* Responsiveness */
@media (max-width: 1024px) {
  .grid-2-col {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .grid-3-col {
    grid-template-columns: 1fr 1fr;
  }

  .about-images {
    padding: 0;
    margin-bottom: 40px;
  }

  .hero-content {
    margin-left: 0;
    text-align: center;
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-gradient-overlay {
    background: linear-gradient(0deg, var(--bg-dark) 0%, rgba(255, 255, 255, 0.9) 100%);
  }
}

@media (max-width: 768px) {
  .grid-3-col {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .menu-toggle {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: left 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  }

  nav.active {
    left: 0;
  }

  nav a {
    font-size: 1.5rem;
  }

  .contact-form-wrapper {
    padding: 30px 20px;
  }
}

/* Extra Mobile Adjustments */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .btn-solid {
    justify-content: center;
    width: 100%;
  }

  .btn-text {
    text-align: center;
  }

  .stat-item h3 {
    font-size: 2.5rem;
  }

  .service-number {
    font-size: 2.5rem;
  }

  .marquee-content span {
    font-size: 1.2rem;
  }

  .image-break {
    height: 50vh;
  }

  .massive-text {
    font-size: 3rem;
    white-space: normal;
    word-break: keep-all;
  }
}