/* Global Design System & Variables */
:root {
  --bg-dark: #0b0b0d;
  --bg-card: #16161a;
  --bg-card-hover: #1f1f26;
  --text-main: #f1f1f1;
  --text-muted: #8e8e99;
  --accent: #ff3366;
  --accent-glow: rgba(255, 51, 102, 0.35);
  --accent-blue: #00f0ff;
  --border-dark: rgba(255, 255, 255, 0.08);
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --transition-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}



body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
}

/* Custom Selection */
::selection {
  background: var(--accent);
  color: #fff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #25252e;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Custom Cursor Follower */
.cursor-dot, .cursor-circle {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, opacity 0.3s ease;
}
.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
}
.cursor-circle {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 51, 102, 0.5);
  transition: transform 0.2s ease-out, width 0.3s ease, height 0.3s ease, background 0.3s ease;
}
body.hovered .cursor-circle {
  width: 65px;
  height: 65px;
  background: var(--accent-glow);
  border-color: var(--accent);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-accent {
  color: var(--accent);
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sub-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-block;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: padding 0.4s ease, background 0.4s ease, backdrop-filter 0.4s ease;
}

header.scrolled {
  padding: 1rem 4rem;
  background: rgba(11, 11, 13, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-main);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.nav-links a::after {
  position: absolute;
  content: '';
  
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 0.75rem 1.6rem;
  border-radius: 40px;
  background: transparent;
  border: 1px solid var(--border-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-cta:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 25px var(--accent-glow);
  transform: translateY(-2px);
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 28px;
  height: 2px;
  background: var(--text-main);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hero Section (Index) */
.hero {
  min-height: 100vh;
  padding: 12rem 4rem 8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(255, 51, 102, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(0, 240, 255, 0.05) 0%, transparent 40%);
}

.hero-video-bg {
  position: absolute;
  
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 11, 13, 0.5); /* Semi-transparent overlay to make text readable */
  z-index: 2;
}

.hero-container, .hero .scroll-indicator {
  position: relative;
  z-index: 3;
}

.hero-title-wrap {
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(3.2rem, 7.5vw, 7rem);
  line-height: 0.95;
  text-transform: uppercase;
  font-weight: 800;
}

.hero-subtitle {
  max-width: 600px;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.btn-primary {
  padding: 1.1rem 2.5rem;
  border-radius: 50px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 51, 102, 0.5);
}

.btn-secondary {
  padding: 1.1rem 2.5rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  color: var(--text-main);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.scroll-indicator {
  
  margin-top: 4rem;
  
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.scroll-indicator .line {
  width: 40px;
  height: 1px;
  background: var(--accent);
  position: relative;
  overflow: hidden;
}

.scroll-indicator .line::after {
  position: absolute;
  content: '';
  
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #fff;
  animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Horizontal Scrollytelling Section (Index) */
.horizontal-scroll-outer {
  overflow: hidden;
  background: #09090b;
}

.horizontal-scroll-wrapper {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 4rem;
  width: max-content;
}

.scrolly-intro {
  min-width: 420px;
  padding-right: 4rem;
}

.scrolly-intro h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.05;
}

.project-card-horizontal {
  min-width: 520px;
  height: 60vh;
  margin-right: 3rem;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-dark);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  transition: transform 0.5s var(--transition-smooth), border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.project-card-horizontal:hover {
  transform: translateY(-10px) scale(1.01);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 51, 102, 0.15);
}

.project-bg-img {
  position: absolute;
  
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.8s var(--transition-smooth), opacity 0.5s ease;
  z-index: 1;
}

.project-card-horizontal:hover .project-bg-img {
  position: absolute;
  transform: scale(1.08);
  opacity: 0.8;
}

.project-card-overlay {
  position: absolute;
  
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 13, 0) 30%, rgba(11, 11, 13, 0.95) 100%);
  z-index: 2;
}

.project-content {
  position: relative;
  z-index: 3;
}

.project-tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(255, 51, 102, 0.2);
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.project-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.view-project-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.project-card-horizontal:hover .view-project-btn {
  color: var(--accent);
  transform: translateX(6px);
}

/* Interactive CTA Section */
.cta-section {
  padding: 10rem 4rem;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at center, rgba(255, 51, 102, 0.12) 0%, transparent 70%);
}

.cta-box {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 3rem;
  background: rgba(22, 22, 26, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-dark);
  border-radius: 32px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.cta-box h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
}

.cta-box p {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* Work Page Grid & Filters */
.page-hero {
  padding: 12rem 4rem 8rem;
}

.page-hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  margin-bottom: 1rem;
}

.filter-bar {
  display: flex;
  gap: 1rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.8rem;
  border-radius: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 5px 20px var(--accent-glow);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2.5rem;
  padding-bottom: 6rem;
}

.portfolio-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-dark);
  transition: all 0.4s var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.portfolio-img-wrap {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
}

.portfolio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition-smooth);
}

.portfolio-card:hover .portfolio-img-wrap img {
  transform: scale(1.08);
}

.portfolio-info {
  padding: 1.8rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portfolio-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.portfolio-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

/* About Page Styling */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin: 5rem 0;
}

.stat-card {
  background: var(--bg-card);
  padding: 3rem 2rem;
  border-radius: 24px;
  border: 1px solid var(--border-dark);
  text-align: center;
  transition: border-color 0.3s ease;
}

.stat-card:hover {
  border-color: var(--accent);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Accordion Services */
.services-section {
  padding: 5rem 0;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
}

.accordion-item {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-dark);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.accordion-item.active {
  border-color: var(--accent);
}

.accordion-header {
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.accordion-header h3 {
  font-size: 1.6rem;
}

.accordion-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: transform 0.4s ease, background 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: #fff;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--transition-smooth), padding 0.4s ease;
  padding: 0 2rem;
  color: var(--text-muted);
}

.accordion-item.active .accordion-content {
  max-height: 300px;
  padding: 0 2rem 2rem;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-dark);
}

.team-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.team-info {
  padding: 1.5rem;
}

.team-info h4 {
  font-size: 1.2rem;
}

.team-info p {
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Contact Page Form */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding-bottom: 6rem;
}

.contact-info-box {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.info-item h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.info-item p, .info-item a {
  font-size: 1.3rem;
  color: var(--text-main);
  text-decoration: none;
}

.contact-form {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.form-control {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.form-control:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}

select.form-control {
  cursor: pointer;
}

select.form-control option {
  background: var(--bg-card);
  color: var(--text-main);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

/* Footer Across All Pages */
footer {
  background: #070708;
  border-top: 1px solid var(--border-dark);
  padding: 5rem 4rem 3rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border-dark);
}

.footer-brand h2 {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 320px;
}

.footer-links-group {
  display: flex;
  gap: 4rem;
}

.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--text-main);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  header, .hero, .page-hero, .cta-section, footer {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .horizontal-scroll-wrapper {
    padding: 0 2rem;
  }
  .project-card-horizontal {
    min-width: 420px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .mobile-menu-active .nav-links {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
    font-size: 1.5rem;
  }
  .hero-title {
    font-size: 3rem;
  }
  .horizontal-scroll-wrapper {
    flex-direction: column;
    height: auto;
    width: 100%;
    padding: 4rem 2rem;
  }
  .project-card-horizontal {
    min-width: 100%;
    height: 450px;
    margin-right: 0;
    margin-bottom: 2rem;
  }
  .scrolly-intro {
    min-width: 100%;
    padding-right: 0;
    margin-bottom: 3rem;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .footer-links-group {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-height: 800px), (max-width: 768px) {
  .scroll-indicator {
    display: none;
  }
}
