/* ===========================
   SongaScreen – Global Styles
   =========================== */

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Design tokens */
:root{
  --primary: #6366f1;         /* Indigo */
  --accent:  #ec4899;         /* Pink accent */
  --bg-dark: #0f0f0f;
  --bg-dark-2:#111214;
  --bg-light:#fafafa;
  --text:    #0f0f0f;
  --text-inv:#ffffff;
  --muted:   #666;
  --muted-inv: rgba(255,255,255,.7);
  --border:  rgba(0,0,0,.08);
  --border-inv: rgba(255,255,255,.10);
  --radius:  24px;
  --curve: cubic-bezier(.76,0,.24,1);
  --shadow-soft: 0 10px 30px rgba(0,0,0,.25);
  --shadow-pop:  0 18px 50px rgba(99,102,241,.22);
}

/* Base */
html, body { height: 100%; }
body{
  font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg-light);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;              /* custom cursor on desktop */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Utility container */
.container{ width: min(1200px, 92vw); margin-inline: auto; }

/* ===========================
   Custom Cursor (desktop)
   =========================== */
.cursor{
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary);
  position: fixed; z-index: 10000; pointer-events: none;
  transition: transform .15s ease, background .3s ease;
  mix-blend-mode: difference;
}
.cursor-outline{
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--primary);
  position: fixed; z-index: 9999; pointer-events: none;
  transition: transform .2s ease, opacity .2s ease;
  mix-blend-mode: difference;
}
.cursor.expand{ transform: scale(3); background: rgba(99,102,241,.3); }
.cursor.text{ transform: scale(1.5); background: rgba(99,102,241,.8); }
.cursor-outline.expand{ transform: scale(2); }

/* ===========================
   Page Loader
   =========================== */
/* ============================================
   PAGE LOADER
   ============================================ */

.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.loader-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: orbFloat 8s ease-in-out infinite;
}

.loader-orb.orb1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #667eea, #764ba2);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.loader-orb.orb2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #f093fb, #f5576c);
  bottom: -15%;
  right: -15%;
  animation-delay: 1s;
}

.loader-orb.orb3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #4facfe, #00f2fe);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 2s;
}

@keyframes orbFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(20px, -20px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

.loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(100px);
}

.loader-content {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: loaderFadeIn 1.5s ease-out;
}

@keyframes loaderFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.loader-title {
  color: white;
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
  0%, 100% {
    transform: scale(1);
    filter: blur(0);
  }
  50% {
    transform: scale(1.02);
    filter: blur(0.5px);
  }
}

.loader-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-top: 1rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  animation: subtitleFade 2s ease-in-out infinite;
}

@keyframes subtitleFade {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .loader-title {
    font-size: 2.5rem;
  }
  
  .loader-subtitle {
    font-size: 0.75rem;
  }
  
  .loader-orb.orb1 {
    width: 250px;
    height: 250px;
  }
  
  .loader-orb.orb2 {
    width: 300px;
    height: 300px;
  }
  
  .loader-orb.orb3 {
    width: 200px;
    height: 200px;
  }
}
/* ===========================
   Navigation
   =========================== */
.site-header{ position: sticky; top: 0; z-index: 1000; }
.nav{
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 4rem;
  background: rgba(250,250,250,.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: padding .3s ease;
}
.logo{ font-size: 1.5rem; font-weight: 800; color: var(--text); text-decoration: none; }
.nav-toggle{ display: none; }

.nav-menu{ list-style: none; display: flex; gap: 3rem; align-items: center; }
.nav-menu a{
  color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 600;
  position: relative; transition: color .3s ease;
}
.nav-menu a:hover{ color: var(--text); }
.nav-menu a::after{
  content:""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--primary); transition: width .3s var(--curve);
}
.nav-menu a:hover::after{ width: 100%; }

.cta-button{
  background: var(--primary); color: #fff !important; padding: .8rem 1.8rem;
  border-radius: 999px; font-weight: 700; box-shadow: 0 10px 30px rgba(99,102,241,.25);
  transition: transform .25s ease, box-shadow .25s ease;
}
.cta-button:hover{ transform: translateY(-2px); box-shadow: 0 14px 40px rgba(99,102,241,.35); }

/* ===========================
   Hero
   =========================== */
.hero{
  min-height: 100vh; display: grid; place-items: center; position: relative;
  padding: 10rem 4rem 4rem; overflow: hidden;
}
.hero-content{ text-align: center; max-width: 1200px; z-index: 1; }

.hero h1{
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 900; line-height: 1; letter-spacing: -0.03em; margin-bottom: 1.6rem;
}
.hero h1 .gradient-text{
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle{
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  color: var(--muted); max-width: 800px; margin: 0 auto 2.4rem; line-height: 1.6;
}
.hero-buttons{ display: flex; gap: 1rem; justify-content: center; }
.btn-primary, .btn-secondary{
  padding: 1.1rem 2.4rem; border-radius: 999px; font-weight: 700; text-decoration: none;
  transition: transform .25s var(--curve), box-shadow .25s var(--curve);
}
.btn-primary{ background: var(--text); color: #fff; }
.btn-primary:hover{ transform: translateY(-3px); box-shadow: 0 15px 40px rgba(15,15,15,.22); }
.btn-secondary{ background: transparent; color: var(--text); border: 2px solid var(--text); }
.btn-secondary:hover{ background: var(--text); color: #fff; }

@keyframes float{ 0%,100%{ transform: translateY(0) rotate(0) } 50%{ transform: translateY(-20px) rotate(5deg) } }
.floating-shape{
  position: absolute; border-radius: 50%; filter: blur(50px); opacity: .12; animation: float 6s ease-in-out infinite;
}
.shape-1{ width: 320px; height: 320px; background: var(--primary); top: 10%; left: 10%; }
.shape-2{ width: 220px; height: 220px; background: var(--accent); right: 15%; bottom: 15%; animation-delay: .8s; }

/* ===========================
   Marquee
   =========================== */
/* Marquee (continuous, no gaps) */
.marquee-section {
  background: #fff;
  border-block: 1px solid rgba(0,0,0,0.05);
  padding: 4rem 0;
  overflow: hidden;
  position: relative;
}

/* Container holds both tracks and scrolls */
.marquee-container {
  display: flex;
  width: fit-content;
  animation: marquee-scroll 20s linear infinite;
}

/* Each track is same width so they loop seamlessly */
.marquee.track {
  display: flex;
  gap: 4rem;
  white-space: nowrap;
}

.marquee.track span {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1;
  color: #000;
}

.marquee.track .outline {
  -webkit-text-stroke: 2px #000;
  -webkit-text-fill-color: transparent;
}

/* Perfectly continuous scroll */
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* Moves exactly one track width */
}

:root { --marquee-gap: 4rem; }

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee 18s linear infinite;
}

.marquee {
  display: flex;
  white-space: nowrap;
  gap: var(--marquee-gap);
}

/* ensures the same gap exists at the end of each track */
.marquee::after {
  content: "";
  flex: 0 0 var(--marquee-gap);
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===========================
   MARQUEE - MOBILE OPTIMIZATIONS
   =========================== */

@media (max-width: 768px) {
  
  .marquee-section {
    padding: 2rem 0;
  }
  
  :root {
    --marquee-gap: 2rem;
  }
  
  .marquee.track {
    gap: 2rem;
  }
  
  .marquee.track span {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }
  
  .marquee.track .outline {
    -webkit-text-stroke: 1.5px #000;
  }
}

@media (max-width: 480px) {
  
  .marquee-section {
    padding: 1.5rem 0;
  }
  
  :root {
    --marquee-gap: 1.5rem;
  }
  
  .marquee.track {
    gap: 1.5rem;
  }
  
  .marquee.track span {
    font-size: clamp(1.5rem, 12vw, 2.5rem);
  }
  
  .marquee.track .outline {
    -webkit-text-stroke: 1px #000;
  }
}
/* ===========================
   Projects (placeholder styles)
   =========================== */
.projects-section{ padding: 8rem 4rem; background: #fff; }
.section-title{
  font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .6rem;
}
.section-subtitle{ font-size: 1.1rem; color: var(--muted); }

/* ===========================
   Services
   =========================== */
.services-section{ padding: 8rem 4rem; background: var(--bg-dark); color: var(--text-inv); }
.services-section .section-subtitle{ color: var(--muted-inv); margin-top: .4rem; }

.services-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 28px; margin-top: 3rem;
}

.service-card{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border: 1px solid var(--border-inv);
  border-radius: var(--radius);
  padding: 36px 28px 32px;
  box-shadow: var(--shadow-soft);
  transition: transform .25s var(--curve), box-shadow .25s var(--curve), border-color .25s var(--curve);
  cursor: pointer;
}
.service-card:hover{
  transform: translateY(-8px);
  border-color: rgba(99,102,241,.45);
  box-shadow: var(--shadow-pop);
}

.service-card {
  text-align: center;
  padding: 48px 32px 40px; /* balanced vertical spacing */
}

/* Balanced large media container */
.service-media {
  width: 320px;
  height: 320px;
  border-radius: 32px;
  overflow: hidden;
  margin: 0 auto 28px; /* centers and gives breathing room below */
  background: radial-gradient(120% 120% at 0% 0%, rgba(99,102,241,.35), rgba(255,255,255,.02) 60%);
  display: grid;
  place-items: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25); /* subtle depth */
}

.service-video,
.service-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* Titles and descriptions aligned and spaced for balance */
.service-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.service-description {
  color: var(--muted-inv);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 320px; /* keeps text narrow and tidy under large media */
}


/* ===========================
   Stats
   =========================== */
.stats-section{ padding: 8rem 4rem; background: var(--bg-light); }
.stats-grid{
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 22px; max-width: 1200px; margin: 0 auto;
}
.stat-item{
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 20px; text-align: center;
}
.stat-item h3{ font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 6px; color: var(--primary); }
.stat-item p{ color: var(--muted); }

/* ===========================
   CTA
   =========================== */
.cta-section{
  padding: 10rem 4rem; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.cta-section h2{
  font-size: clamp(2.5rem, 6vw, 6rem); font-weight: 900; line-height: 1.1; letter-spacing: -.03em; margin-bottom: 1rem;
}
.cta-section p{ font-size: 1.3rem; opacity: .95; margin-bottom: 2rem; }
.btn-on-light{ background: #fff; color: var(--primary); }

/* ===========================
   Footer
   =========================== */
.site-footer{ background: var(--bg-dark); color: var(--text-inv); }
.footer-grid{
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 28px; padding: 4rem 4rem 2rem; border-bottom: 1px solid var(--border-inv);
}
.footer-column h4{ margin-bottom: 12px; font-size: 1.05rem; }
.footer-column ul{ list-style: none; }
.footer-column li+li{ margin-top: .7rem; }
.footer-column a{ color: var(--muted-inv); text-decoration: none; }
.footer-column a:hover{ color: #fff; }
.footer-bottom{ text-align: center; padding: 1.2rem 4rem; color: var(--muted-inv); }

/* ===========================
   Reveal Animations
   =========================== */
.reveal{ opacity: 0; transform: translateY(60px); transition: all .8s var(--curve); }
.reveal.active{ opacity: 1; transform: translateY(0); }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1100px){
  .nav{ padding-inline: 2rem; }
  .services-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 780px){
  body{ cursor: auto; }
  .cursor, .cursor-outline{ display: none; }

  .nav{ padding-inline: 1.25rem; }
  .nav-toggle{ display: block; background: transparent; color: var(--text); border: 1px solid var(--border); padding: .5rem .9rem; border-radius: 10px; }
  .nav-menu{ display: none; } /* (hook up JS to toggle) */

  .hero{ padding-inline: 1.5rem; }
  .hero-buttons{ flex-direction: column; gap: .8rem; }

  .marquee span{ font-size: clamp(2rem, 8vw, 3.2rem); }

  .services-section{ padding-inline: 1.5rem; }
  .services-grid{ grid-template-columns: 1fr; }
  .service-media{ width: 100px; height: 100px; border-radius: 18px; }

  .stats-grid{ grid-template-columns: repeat(2, 1fr); }
  .footer-grid{ grid-template-columns: 1fr; }
}
/* --- Responsive fixes for service cards --- */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr; /* stack vertically */
    gap: 2rem; /* add breathing space between cards */
  }

  .service-card {
    padding: 40px 24px;
    text-align: center;
  }

  .service-media {
    width: 180px;    /* smaller but still prominent */
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 28px;
  }

  .service-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .service-description {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
  }

  /* Make sure videos remain proportional and centered */
  .service-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
  }
}


/* ============================================
   MOBILE FIXES FOR STATS & CTA SECTIONS
   ============================================ */

@media (max-width: 768px) {
  
  /* Stats Section Mobile */
  .stats-section {
    padding: 3rem 1rem;
  }
  
  .stats-section .container {
    padding: 0 1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 100%;
  }
  
  .stat-item {
    padding: 1.5rem 1rem;
  }
  
  .stat-item h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  .stat-item p {
    font-size: 0.85rem;
  }
  
  /* CTA Section Mobile */
  .cta-section {
    padding: 3rem 1rem;
  }
  
  .cta-inner {
    padding: 2.5rem 1.5rem;
    text-align: center;
  }
  
  .cta-inner h2 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }
  
  .cta-inner p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .cta-inner .btn-primary {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  
  /* Even smaller screens */
  .stats-section {
    padding: 2rem 0.75rem;
  }
  
  .stats-grid {
    gap: 0.75rem;
  }
  
  .stat-item {
    padding: 1.25rem 0.75rem;
  }
  
  .stat-item h3 {
    font-size: 1.75rem;
  }
  
  .stat-item p {
    font-size: 0.75rem;
  }
  
  .cta-inner h2 {
    font-size: 1.5rem;
  }
  
  .cta-inner p {
    font-size: 0.9rem;
  }
}

/* ============================================
   MOBILE FIXES FOR FOOTER
   ============================================ */

@media (max-width: 768px) {
  
  .site-footer {
    padding: 2rem 1.5rem 2rem;
  }
  
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1rem;
    max-width: 100%;
  }
  
  .footer-column h4 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }
  
  .footer-column ul {
    gap: 0.5rem;
  }
  
  .footer-column ul li a {
    font-size: 0.8rem;
  }
  
  /* Keep Contact in the 4th column position, but adjust layout */
  .footer-column:nth-child(4) {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .footer-column:nth-child(4) ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .footer-bottom {
    padding: 1.5rem 1rem 1rem;
    margin-top: 1.5rem;
  }
  
  .footer-bottom p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  
  .site-footer {
    padding: 2rem 1rem 1.5rem;
  }
  
  .footer-grid {
    gap: 1.5rem 0.75rem;
  }
  
  .footer-column h4 {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
  }
  
  .footer-column ul li a {
    font-size: 0.75rem;
  }
  
  .footer-column:nth-child(4) {
    margin-top: 1rem;
    padding-top: 1.5rem;
  }
  
  .footer-column:nth-child(4) ul {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .footer-bottom {
    padding: 1.25rem 0 0.75rem;
    margin-top: 1.25rem;
  }
  
  .footer-bottom p {
    font-size: 0.8rem;
    line-height: 1.5;
  }
}

/* ============================================
   STATS SECTION - REDUCE TOP SPACING
   ============================================ */

@media (max-width: 768px) {
  .stats-section {
    padding: 2rem 1rem 3rem; /* Reduced top padding from 3rem to 2rem */
  }
}

@media (max-width: 480px) {
  .stats-section {
    padding: 1.5rem 0.75rem 2rem; /* Even less top padding on small screens */
  }
}

/* ============================================
   SERVICES SECTION - MOBILE VIDEO IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
  
  .services-section {
    padding: 3rem 0; /* Remove side padding */
  }
  
  .services-section .container {
    padding: 0;
    max-width: 100%;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 0; /* Remove gap between cards */
  }
  
  .service-card {
    padding: 2rem 1.5rem;
    border-radius: 0; /* Remove rounded corners for full-width feel */
    margin: 0;
  }
  
  .service-media {
    margin: 0 -1.5rem 1.5rem -1.5rem; /* Extend video to edges */
    width: calc(100% + 3rem);
    max-width: none;
    border-radius: 0; /* Make video fully rectangular */
    overflow: hidden;
  }
  
  .service-video {
    width: 100%;
    height: auto;
    min-height: 250px;
    object-fit: cover;
    border-radius: 0;
  }
  
  .service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .service-description {
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    max-width: 90%;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  
  .service-card {
    padding: 1.5rem 1rem;
  }
  
  .service-media {
    margin: 0 -1rem 1.25rem -1rem;
    width: calc(100% + 2rem);
  }
  
  .service-video {
    min-height: 220px;
  }
  
  .service-title {
    font-size: 1.3rem;
  }
  
  .service-description {
    font-size: 0.9rem;
  }
}

