@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Syncopate:wght@400;700&display=swap');

:root {
  --bg-dark: #050508;
  --neon-pink: #ff2a7a;
  --neon-cyan: #00f0ff;
  --neon-orange: #ff7b00;
  --font-heading: 'Syncopate', sans-serif;
  --font-body: 'Inter', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: #ffffff;
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none; /* For custom cursor */
}

a, button {
  cursor: none;
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .syncopate {
  font-family: var(--font-heading);
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(4rem, 9vw, 15rem);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 20px;
}

.outline-text {
  -webkit-text-stroke: 1px var(--neon-pink);
  color: transparent;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #aaa;
}

/* Noise overlay */
.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--neon-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor.cursor-grow {
  width: 50px;
  height: 50px;
  background-color: rgba(0, 240, 255, 0.2);
  mix-blend-mode: exclusion;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.preloader-content {
  text-align: center;
}
.glitch-text {
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--neon-cyan);
  margin-bottom: 20px;
}
.preloader-counter {
  font-size: 2rem;
  font-weight: 600;
  color: var(--neon-pink);
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 50px;
  z-index: 1000;
  mix-blend-mode: difference;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}
.nav-links {
  display: flex;
  gap: 30px;
}
.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: white;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: var(--neon-pink);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 10;
}
.abstract-orbs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  filter: blur(100px);
}
.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
}
.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--neon-pink);
  top: -100px;
  left: -100px;
}
.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--neon-cyan);
  bottom: -200px;
  right: -100px;
}
.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--neon-orange);
  top: 30%;
  left: 40%;
}

/* Marquee Section */
.marquee-section {
  transform: rotate(-2deg);
  background-color: var(--neon-pink);
  color: #fff;
  padding: 20px 0;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  position: relative;
  width: 105vw;
  left: -2.5vw;
  z-index: 20;
}
.marquee-track {
  display: flex;
  animation: marquee 15s linear infinite;
}
.marquee-track span {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  padding: 0 2rem;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* About Section */
.about {
  padding: 150px 50px;
}
.about-container {
  display: flex;
  gap: 100px;
}
.about-left {
  flex: 1;
}
.massive-text {
  font-size: clamp(3rem, 6vw, 8rem);
  line-height: 1;
}
.about-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 50px;
}
.founder-cards {
  display: flex;
  gap: 30px;
}
.founder-card {
  flex: 1;
  background: rgba(255,255,255,0.03);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}
.founder-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid var(--neon-cyan);
  margin-bottom: 20px;
  object-fit: cover;
}
.stats-grid {
  display: flex;
  gap: 50px;
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--neon-orange);
}
.stat-label {
  font-size: 1.2rem;
  color: #888;
}

/* Services (Bento) */
.services {
  padding: 100px 50px;
}
.section-title {
  font-size: 4rem;
  margin-bottom: 60px;
  text-align: center;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.bento-card {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 40px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bento-card:hover {
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateY(-5px);
}
.bento-card i {
  font-size: 3rem;
  color: var(--neon-pink);
  margin-bottom: 20px;
}
.bento-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.bento-card p {
  color: #999;
}
.span-2-col {
  grid-column: span 2;
}
.span-2-row {
  grid-row: span 2;
}

/* Portfolio (Horizontal Scroll) */
.portfolio {
  background: #000;
}
.portfolio-wrapper {
  overflow: hidden;
  width: 100%;
  height: 100vh;
  position: relative;
}
.portfolio-container {
  display: flex;
  width: 600vw; /* 6 items * 100vw */
  height: 100%;
}
.portfolio-panel {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.portfolio-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.4;
  transition: opacity 0.5s, transform 0.5s;
}
.portfolio-panel:hover .portfolio-img {
  opacity: 0.7;
  transform: scale(1.05);
}
.project-info {
  position: relative;
  z-index: 2;
  text-align: center;
  background: rgba(0,0,0,0.5);
  padding: 40px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
}
.project-info h3 {
  font-size: 3rem;
  margin-bottom: 10px;
}
.project-info p {
  font-size: 1.2rem;
  color: var(--neon-cyan);
}

/* Pricing Preview & Footer */
.pricing-preview {
  padding: 150px 50px;
}
.pricing-grid {
  display: flex;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}
.pricing-card {
  flex: 1;
  background: rgba(255,255,255,0.03);
  padding: 50px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}
.pricing-card.premium {
  border-color: var(--neon-pink);
  box-shadow: 0 0 30px rgba(255,42,122,0.1);
}
.price {
  font-size: 2rem;
  color: var(--neon-orange);
  margin: 20px 0;
  font-family: var(--font-heading);
}
.features {
  list-style: none;
}
.features li {
  margin-bottom: 15px;
  color: #aaa;
}
.btn {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 40px;
  border: 1px solid var(--neon-cyan);
  color: white;
  border-radius: 30px;
  font-family: var(--font-heading);
  transition: all 0.3s;
}
.btn:hover {
  background: var(--neon-cyan);
  color: black;
}
.btn.primary {
  background: var(--neon-pink);
  border-color: var(--neon-pink);
}
.btn.primary:hover {
  background: transparent;
  color: var(--neon-pink);
}

.footer {
  padding: 100px 50px 50px;
  background: #000;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 100px;
}
.contact-email {
  font-size: 2rem;
  color: var(--neon-cyan);
  display: inline-block;
  margin-top: 20px;
}
.social-links {
  list-style: none;
}
.social-links li {
  margin-bottom: 15px;
}
.social-links a {
  font-size: 1.2rem;
  color: #888;
  transition: color 0.3s;
}
.social-links a:hover {
  color: var(--neon-pink);
}
.footer-bottom {
  text-align: center;
  color: #555;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 30px;
}


/* --- EFFECTS --- */
.flicker-text, .flicker-text .word, .flicker-text .char {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    -webkit-text-stroke: 1px var(--neon-pink) !important;
}
.flicker-text {
    animation: neonFlicker 3s infinite alternate !important;
}

@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        color: transparent;
        -webkit-text-stroke: 1px var(--neon-pink);
        text-shadow: 0 0 5px rgba(255,42,122,0.8), 0 0 15px rgba(255,42,122,0.4);
    }
    20%, 24%, 55% {
        color: transparent;
        -webkit-text-stroke: 1px rgba(255, 42, 122, 0.2);
        text-shadow: none;
    }
}

/* Calm Fluid Text Effect */
.outline-text, .outline-text .word, .outline-text .char {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    -webkit-text-stroke: 1px var(--neon-pink) !important;
}

.outline-text {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 300'%3E%3Cpath d='M0,150 C250,300 250,0 500,150 C750,300 750,0 1000,150 L1000,300 L0,300 Z' fill='%23ff2a7a' opacity='0.7'/%3E%3Cpath d='M0,150 C250,0 250,300 500,150 C750,0 750,300 1000,150 L1000,300 L0,300 Z' fill='%2300f0ff' opacity='0.5'/%3E%3C/svg%3E") repeat-x;
    background-size: 200% 100%;
    background-position: 0% bottom;
    -webkit-background-clip: text;
    background-clip: text;
    animation: calmFluid 8s linear infinite !important;
}

@keyframes calmFluid {
    0% {
        background-position: 0% bottom;
    }
    100% {
        background-position: -200% bottom;
    }
}


/* --- COMPREHENSIVE MOBILE RESPONSIVENESS --- */
html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2000;
}
.menu-toggle span {
    width: 30px;
    height: 2px;
    background: white;
    transition: 0.3s;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        margin: 0;
        padding: 0;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-links li a {
        font-size: 2rem !important;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 12vw, 5rem) !important;
    }
    
    .about-grid, .services-grid, .gallery-grid, .pricing-grid, .footer-content, .about-container, .stats-grid, .values-grid, .featured-grid, .teaser-grid, .bento-grid, .contact-section, .contact-layout {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
    }
    
    .left-col, .right-col {
        width: 100% !important;
        position: static !important;
    }
    
    .marquee {
        width: 100vw;
        max-width: 100%;
        overflow: hidden;
    }
    
    .container, .nav-container, .footer .container {
        padding: 0 20px !important;
    }
    
    .nav-container {
        justify-content: space-between;
        width: 100%;
    }
    
    .footer-content {
        text-align: center;
        align-items: center;
    }

    /* Ensure no section overflows */
    .intro-section, .teaser-section, .featured-work, .services, .values-section, .contact-section, .manifesto-section, .about, .footer, .pricing-preview {
        padding-left: 20px !important;
        padding-right: 20px !important;
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
    
    .teaser-card, .value-card, .bento-card, .pricing-card, .project-info, .founder-card {
        padding: 25px !important;
    }
}

@media (max-width: 900px) {
    /* Bulletproof Mobile Stacking */
    .about-container, .stats-grid, .values-grid, .featured-grid, .teaser-grid, 
    .bento-grid, .pricing-grid, .gallery-grid, .contact-section, .footer-content,
    .hero-content, .bento-card {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        gap: 30px !important;
    }
    
    .contact-info, .contact-form, .left-col, .right-col {
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    .bento-card.span-2-row {
        grid-row: auto !important;
    }
    
    body {
        overflow-x: hidden !important;
    }
}

/* --- NAV GLASSMORPHISM ON SCROLL --- */
.nav {
    transition: background 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease, mix-blend-mode 0.3s ease;
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    mix-blend-mode: normal; /* Override difference blend mode when glass is active */
    padding: 20px 50px;
}

@media (max-width: 900px) {
    .nav.scrolled {
        padding: 15px 20px !important;
    }
    .nav {
        padding: 20px 20px !important;
    }
}

/* --- TYPEWRITER CURSOR --- */
@keyframes blink-cursor {
    from, to { border-color: transparent }
    50% { border-color: var(--neon-cyan); }
}
.typewriter {
    display: inline-block;
}
.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: var(--neon-cyan);
    margin-left: 4px;
    vertical-align: middle;
    animation: blink-cursor 0.75s step-end infinite;
}
