@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&family=Plus+Jakarta+Sans:wght@200..800&display=swap');

/* --- AETHER AGENCY DESIGN SYSTEM --- */
/* 
  ========================================================
  NEXUS DESIGN STYLE GUIDE:
  - Change the root CSS variables below to change colors instantly!
  ========================================================
*/
:root {
  --bg-deep: #050508;
  --bg-card: #0d0e15;
  --bg-card-hover: #141724;
  --accent-cyan: #00f0ff;
  --accent-purple: #d000ff;
  --accent-gradient: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
  --text-main: #f5f6fa;
  --text-muted: #8a8eaf;
  --border-color: rgba(255, 255, 255, 0.05);
  --border-glow: rgba(0, 240, 255, 0.3);
  
  --font-display: 'Space Grotesk', sans-serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;
  
  --container-width: 1200px;
}

/* --- BASE STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none; /* Hide default cursor for custom cursor experience */
}

@media (max-width: 768px) {
  * {
    cursor: auto !important; /* Restore cursor on mobile */
  }
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out, width 0.3s, height 0.3s, border-color 0.3s;
}

body:hover .custom-cursor,
body:hover .custom-cursor-outline {
  opacity: 1;
}

/* Cursor Hover states */
.cursor-hover .custom-cursor {
  width: 12px;
  height: 12px;
  background-color: var(--accent-purple);
}

.cursor-hover .custom-cursor-outline {
  width: 60px;
  height: 60px;
  border-color: var(--accent-purple);
  background: rgba(208, 0, 255, 0.05);
}

/* Grid overlay background */
.mesh-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.007) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.007) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 1;
  pointer-events: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- UTILITIES --- */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.font-display {
  font-family: var(--font-display);
}

.section-padding {
  padding: 10rem 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 6rem 0;
  }
}

.section-subtitle {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  font-weight: 700;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 2.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.btn-neon {
  background: var(--accent-gradient);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.btn-neon:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(208, 0, 255, 0.4);
}

.btn-neon svg {
  fill: #000;
  width: 14px;
  height: 14px;
  transition: var(--transition-fast);
}

.btn-neon:hover svg {
  transform: translateX(4px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-outline:hover {
  background: rgba(0, 240, 255, 0.05);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
  transform: translateY(-3px);
}

/* --- HEADER & NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(5, 5, 8, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  transition: var(--transition-smooth);
}

header.scrolled .nav-wrapper {
  height: 80px;
}

.logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  gap: 3.5rem;
  align-items: center;
  list-style: none;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-main);
  margin: 6px 0;
  transition: var(--transition-smooth);
}

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--bg-card);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    border-left: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    visibility: hidden;
  }
  .nav-menu.active {
    right: 0;
    visibility: visible;
  }
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 140px;
  padding-bottom: 80px;
}

.hero-grid-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

@media (max-width: 992px) {
  .hero-grid-split {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-buttons {
    justify-content: center;
  }
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: 4.8rem;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 3.2rem;
  }
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 550px;
}

@media (max-width: 992px) {
  .hero-description {
    margin: 0 auto 2.5rem auto;
  }
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

.hero-image-container {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-image-container::before {
  content: '';
  position: absolute;
  width: 130%;
  height: 130%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, rgba(208, 0, 255, 0.05) 50%, transparent 80%);
  z-index: 0;
  pointer-events: none;
}

.hero-image-wrapper {
  position: relative;
  z-index: 1;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  padding: 1.5rem;
  border-radius: 24px;
}

.hero-image-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  filter: contrast(1.1) brightness(0.9);
  transition: var(--transition-smooth);
}

.hero-image-wrapper:hover img {
  transform: scale(1.02) rotate(1deg);
  filter: contrast(1.15) brightness(1);
}

/* --- SERVICES --- */
.services {
  border-top: 1px solid var(--border-color);
  position: relative;
}

.services::after {
  content: '';
  position: absolute;
  top: 10%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(208, 0, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 5rem;
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 3.5rem 2.5rem;
  border-radius: 16px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 10%, rgba(0, 240, 255, 0.03) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-cyan);
  box-shadow: 0 15px 30px rgba(0, 240, 255, 0.05);
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- CASE STUDIES --- */
.portfolio {
  border-top: 1px solid var(--border-color);
  background-color: #08090f;
}

.portfolio-filter {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.portfolio-btn {
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  cursor: none;
  padding: 0.5rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 100px;
  transition: var(--transition-fast);
}

.portfolio-btn:hover, .portfolio-btn.active {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.05);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.portfolio-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: var(--transition-smooth);
}

.portfolio-item:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 20px 40px rgba(208, 0, 255, 0.08);
}

.portfolio-img {
  height: 380px;
  overflow: hidden;
  position: relative;
  background-color: rgba(255,255,255,0.02);
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-img img {
  transform: scale(1.04) rotate(0.5deg);
}

/* Subtle abstract pattern in place of missing images */
.placeholder-visual {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #0d0e15 0%, #171926 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 700;
  color: rgba(255,255,255,0.02);
  user-select: none;
  position: relative;
}

.placeholder-visual::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 60%;
  border: 1px dashed rgba(0, 240, 255, 0.1);
  border-radius: 50%;
}

.portfolio-info {
  padding: 2.5rem;
}

.portfolio-info span {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--accent-purple);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

.portfolio-info h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.portfolio-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- FOOTER --- */
footer {
  border-top: 1px solid var(--border-color);
  padding: 8rem 0 3rem 0;
  background-color: var(--bg-deep);
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 6rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.footer-col h3 {
  font-family: var(--font-display);
  color: var(--text-main);
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.footer-col p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 1rem;
}

.footer-col ul li a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.03);
  padding-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
}

/* --- SCROLL ANIMATIONS --- */
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-animate.animated {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }



/* --- LUCIDE ICONS STYLE --- */
.lucide {
  stroke-width: 2;
  width: 1.25em;
  height: 1.25em;
  vertical-align: middle;
  margin-right: 0.5rem;
  display: inline-block;
  color: var(--accent-cyan);
}


/* --- SOCIAL LINKS --- */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}
.social-links a svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}
.social-links a:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

/* --- MOBILE RESPONSIVENESS FIXES --- */
@media (max-width: 768px) {
  .hero {
    min-height: auto !important;
    padding-top: 110px !important;
    padding-bottom: 40px !important;
  }
  .hero-image-wrapper {
    max-width: 100% !important;
    padding: 1rem !important;
    border-radius: 16px !important;
  }
  .hero-image-wrapper img {
    border-radius: 10px !important;
  }
  .custom-cursor,
  .custom-cursor-outline {
    display: none !important;
  }
}
@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column !important;
    width: 100% !important;
    gap: 1rem !important;
  }
  .hero-buttons .btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
  .hero-content h1 {
    font-size: 2.2rem !important;
  }
  .section-title {
    font-size: 2rem !important;
  }
}
