/* LOUD Digital Agency - Main Stylesheet */

/* Base Styles & Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --primary-color: #f32900;
  --dark-color: #111111;
  --light-color: #ffffff;
  --accent-color: #f0f0f0;
  --gray-color: #f5f5f5;
  --text-color: #333333;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Apply subtle text shadow to improve font rendering */
p,
h1,
h2,
h3,
a,
button,
input,
textarea {
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.01);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

h2:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--dark-color);
}

section {
  padding: 80px 0;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  z-index: 1000;
  padding: 26px 0;
  transition: all 0.3s ease;
}

header.scrolled {
  background-color: rgba(17, 17, 17, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 900;
  color: var(--light-color);
  letter-spacing: 2px;
  z-index: 1001;
}

.logo img {
  max-height: 80px;
  width: auto;
  margin-top: 8px;
  transition: all 0.3s ease;
}

header.scrolled .logo img {
  max-height: 60px;
}

@media screen and (max-width: 768px) {
  .logo img {
    max-height: 46px;
  }

  header.scrolled .logo img {
    max-height: 30px;
  }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--light-color);
  z-index: 1001;
}

.mobile-menu-toggle i {
  transition: var(--transition);
}

nav {
  transition: var(--transition);
  padding: 10px 20px;
  margin-right: -10px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
  padding: 8px 15px;
  border-radius: 0;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

nav ul li::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

nav ul li:hover::before {
  width: 100%;
}

nav ul li a {
  color: var(--light-color);
  font-weight: 600;
  position: relative;
  display: block;
  padding: 5px 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

nav ul li a:hover {
  color: var(--primary-color);
}

/* Add hover effect for nav items */
nav ul li:hover {
  transform: translateY(-2px);
}

/* Hero Section */
:root {
  --noise-yellow: #ffdd00;
  --noise-blue: #0099ff;
}

.hero-section {
  min-height: 100vh;
  background: var(--dark-color);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animated background noise */
.noise-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  mix-blend-mode: multiply;
}

.noise-bg::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 35px, var(--primary-color) 35px, var(--primary-color) 70px),
    repeating-linear-gradient(-45deg, transparent, transparent 35px, var(--noise-yellow) 35px, var(--noise-yellow) 70px);
  opacity: 0.1;
  animation: noiseMove 10s linear infinite;
}

@keyframes noiseMove {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(-100px, -100px);
  }
}

/* Glitch effect */
.glitch-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.glitch-shape {
  position: absolute;
  background: var(--primary-color);
  opacity: 0;
  animation: glitch 8s infinite;
}

.glitch-shape:nth-child(1) {
  width: 300px;
  height: 3px;
  top: 20%;
  left: -100px;
  animation-delay: 0s;
}

.glitch-shape:nth-child(2) {
  width: 200px;
  height: 5px;
  top: 40%;
  right: -100px;
  background: var(--noise-yellow);
  animation-delay: 2s;
}

.glitch-shape:nth-child(3) {
  width: 150px;
  height: 2px;
  bottom: 30%;
  left: -100px;
  background: var(--noise-blue);
  animation-delay: 4s;
}

@keyframes glitch {

  0%,
  90%,
  100% {
    opacity: 0;
    transform: translateX(0);
  }

  92% {
    opacity: 1;
    transform: translateX(calc(100vw + 100px));
  }
}

/* Main content */
.hero-content {
  text-align: center;
  z-index: 10;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-headline {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  color: var(--light-color);
  line-height: 1;
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
  position: relative;
  display: inline-block;
}

/* Text glitch effect */
.hero-headline::before,
.hero-headline::after {
  content: attr(data-text);
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

.hero-headline::before {
  animation: textGlitch 2s infinite;
  color: var(--primary-color);
  z-index: -1;
}

.hero-headline::after {
  animation: textGlitch 2s infinite reverse;
  color: var(--noise-blue);
  z-index: -2;
}

@keyframes textGlitch {

  0%,
  100% {
    clip-path: inset(0 0 0 0);
    transform: translate(0);
  }

  20% {
    clip-path: inset(20% 0 30% 0);
    transform: translate(-1px, 1px);
  }

  40% {
    clip-path: inset(50% 0 20% 0);
    transform: translate(1px, -1px);
  }

  60% {
    clip-path: inset(10% 0 60% 0);
    transform: translate(-0.5px, 0.5px);
  }

  80% {
    clip-path: inset(70% 0 10% 0);
    transform: translate(0.5px, -0.5px);
  }
}

/* Adjust glitch effect for desktop */
@media (min-width: 992px) {

  .hero-headline::before,
  .hero-headline::after {
    animation-duration: 4s;
    /* Slower animation on desktop */
  }

  @keyframes textGlitch {

    0%,
    100% {
      clip-path: inset(0 0 0 0);
      transform: translate(0);
    }

    20% {
      clip-path: inset(20% 0 30% 0);
      transform: translate(-2px, 2px);
    }

    40% {
      clip-path: inset(50% 0 20% 0);
      transform: translate(2px, -2px);
    }

    60% {
      clip-path: inset(10% 0 60% 0);
      transform: translate(-1.5px, 1.5px);
    }

    80% {
      clip-path: inset(70% 0 10% 0);
      transform: translate(1.5px, -1.5px);
    }
  }
}

.text-accent {
  color: var(--primary-color);
  position: relative;
}

.hero-tagline {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--accent-color);
  font-weight: 300;
  max-width: 800px;
  margin: 0 auto 3rem;
  opacity: 0.9;
  line-height: 1.4;
}

/* Animated button */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--primary-color);
  color: var(--light-color);
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--noise-yellow);
  transition: left 0.3s ease;
}

.hero-cta:hover::before {
  left: 0;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(243, 41, 0, 0.3);
}

.hero-cta span {
  position: relative;
  z-index: 1;
}

/* Sound wave animation */
.sound-wave {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  opacity: 0.7;
}

.wave-bar {
  width: 4px;
  background: var(--primary-color);
  animation: wave 1.5s ease-in-out infinite;
  border-radius: 2px;
}

.wave-bar:nth-child(1) {
  height: 20px;
  animation-delay: 0s;
}

.wave-bar:nth-child(2) {
  height: 30px;
  animation-delay: 0.1s;
}

.wave-bar:nth-child(3) {
  height: 40px;
  animation-delay: 0.2s;
}

.wave-bar:nth-child(4) {
  height: 35px;
  animation-delay: 0.3s;
}

.wave-bar:nth-child(5) {
  height: 25px;
  animation-delay: 0.4s;
}

.wave-bar:nth-child(6) {
  height: 30px;
  animation-delay: 0.5s;
}

.wave-bar:nth-child(7) {
  height: 20px;
  animation-delay: 0.6s;
}

@keyframes wave {

  0%,
  100% {
    transform: scaleY(0.5);
  }

  50% {
    transform: scaleY(1);
  }
}

/* Corner accents */
.corner-accent {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 3px solid var(--primary-color);
}

.corner-accent.top-left {
  top: 20px;
  left: 20px;
  border-right: none;
  border-bottom: none;
}

.corner-accent.bottom-right {
  bottom: 20px;
  right: 20px;
  border-left: none;
  border-top: none;
}

/* Hero section responsive adjustments */
@media (max-width: 768px) {
  .hero-headline {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  .hero-cta {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .corner-accent {
    width: 60px;
    height: 60px;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* Services Section */
.services {
  background-color: var(--dark-color);
  color: var(--light-color);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(243, 41, 0, 0.05) 35px, rgba(243, 41, 0, 0.05) 70px),
    repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(255, 221, 0, 0.05) 35px, rgba(255, 221, 0, 0.05) 70px);
  opacity: 0.1;
  z-index: 1;
}

.services .container {
  position: relative;
  z-index: 2;
}

.services h2 {
  color: var(--light-color);
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
}

.services h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 35px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background-color: var(--primary-color);
  transition: height 0.4s ease;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 4px;
  background-color: var(--noise-yellow);
  transition: width 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.08);
}

.service-card:hover::before {
  height: 100%;
}

.service-card:hover::after {
  width: 100%;
}

.service-card h3 {
  color: var(--light-color);
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 15px;
  font-size: 1.6rem;
}

.service-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.service-card:hover h3::after {
  width: 60px;
}

.service-card p {
  color: var(--accent-color);
  opacity: 0.9;
}

/* Contact Section */
.contact {
  background-color: var(--dark-color);
  color: var(--light-color);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(243, 41, 0, 0.05) 35px, rgba(243, 41, 0, 0.05) 70px),
    repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(255, 221, 0, 0.05) 35px, rgba(255, 221, 0, 0.05) 70px);
  opacity: 0.1;
  z-index: 1;
  transform: rotate(180deg);
}

.contact .container {
  position: relative;
  z-index: 2;
}

.contact h2 {
  color: var(--light-color);
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
}

.contact h2:after {
  background-color: var(--primary-color);
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-top: 40px;
}

.contact-info {
  position: relative;
}

.contact-info p {
  color: var(--accent-color);
  font-size: 1.3rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

.contact-info a {
  color: var(--primary-color);
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.contact-info a:hover {
  color: var(--noise-yellow);
}

/* HubSpot Form Placeholder */
.hubspot-form {
  background-color: rgba(255, 255, 255, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 35px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  position: relative;
}

.hubspot-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background-color: var(--primary-color);
  transition: height 0.4s ease;
}

.hubspot-form:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 255, 255, 1);
}

.hubspot-form:hover::before {
  height: 100%;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--accent-color);
  padding: 30px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(243, 41, 0, 0.05) 35px, rgba(243, 41, 0, 0.05) 70px),
    repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(255, 221, 0, 0.05) 35px, rgba(255, 221, 0, 0.05) 70px);
  opacity: 0.05;
  z-index: 1;
}

footer .container {
  position: relative;
  z-index: 2;
}

footer p {
  opacity: 0.7;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {

  /* Typography responsive adjustments */
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  /* Hero section adjustments */
  .hero {
    padding-top: 80px;
  }

  .hero .container {
    flex-direction: column;
  }

  .hero-content {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
  }

  .hero-visual {
    width: 100%;
    height: 200px;
  }

  .hero:before {
    width: 100%;
    clip-path: polygon(100% 0, 0 0, 100% 50%);
  }

  .shape-1 {
    top: 10%;
    right: 5%;
  }

  .shape-2 {
    top: 30%;
    right: 20%;
  }

  .shape-3 {
    bottom: 10%;
    right: 10%;
  }

  .highlight::after {
    bottom: 2px;
    height: 6px;
  }

  /* Mobile menu styles */
  .mobile-menu-toggle {
    display: block;
  }

  nav#main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(17, 17, 17, 0.99);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    padding-top: 80px;
    z-index: 1000;
  }

  nav#main-nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
  }

  nav ul li {
    margin: 0;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    border-radius: 0;
    margin-bottom: 5px;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
  }

  nav ul li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background-color: var(--primary-color);
    transition: height 0.3s ease;
  }

  nav ul li:hover::before {
    height: 100%;
  }

  nav ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }

  nav ul li a {
    color: var(--light-color);
  }

  /* Services grid adjustment */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Contact section adjustment */
  .contact-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {

  /* Further adjustments for smaller screens */
  section {
    padding: 60px 0;
  }

  .hero {
    height: auto;
    min-height: 80vh;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  /* Adjust padding for all containers */
  .container {
    padding: 0 15px;
  }

  /* Make form elements more touch-friendly */
  .form-field {
    height: 55px;
  }

  .submit-btn {
    padding: 16px 30px;
  }
}

/* Additional responsive adjustments */
@media (max-width: 992px) {

  /* Adjust section padding */
  section {
    padding: 70px 0;
  }

  /* Adjust service cards */
  .service-card {
    padding: 25px;
  }
}
