/* ==========================================================================
   Obsidian Matrix & Digital Agency Theme - Awwwards Style Redesign
   ========================================================================== */

:root {
  --bg-dark: #07070a;
  --bg-card: rgba(15, 15, 23, 0.7);
  --bg-glass: rgba(10, 10, 15, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.25);
  --accent-primary: #00f2fe;
  --accent-secondary: #4facfe;
  --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --accent-gradient-hover: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --text-primary: #f5f5fa;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --ff-mono: "Space Mono", monospace;
  --ff-sans: "Orbitron", sans-serif;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none !important; /* Managed by Custom Cursor */
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--ff-mono);
  overflow-x: hidden;
}

body {
  background-color: var(--bg-dark);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-gradient);
  border-radius: 3px;
}

/* ==========================================================================
   Custom Cursor
   ========================================================================== */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition:
    width 0.2s,
    height 0.2s;
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent-secondary);
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition:
    transform 0.1s ease-out,
    width 0.3s,
    height 0.3s,
    border-color 0.3s;
}

/* Hover States for Interactive Elements */
a:hover ~ .cursor-outline,
button:hover ~ .cursor-outline,
select:hover ~ .cursor-outline,
input:hover ~ .cursor-outline,
textarea:hover ~ .cursor-outline {
  width: 55px;
  height: 55px;
  border-color: var(--accent-primary);
  background-color: rgba(0, 242, 254, 0.05);
}

/* ==========================================================================
   Typography & Base Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--ff-sans);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-gradient);
  margin-top: 0.5rem;
}

p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-family: var(--ff-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;
  border-radius: 0px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--bg-dark);
  border: none;
}

.btn-primary:hover {
  background: var(--accent-gradient-hover);
  box-shadow: 0 0 15px var(--border-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  background: rgba(0, 242, 254, 0.05);
}

/* Glitch styling on CTA hover */
.glitch {
  position: relative;
}

.glitch::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  color: var(--accent-primary);
  opacity: 0;
  transition: opacity 0.1s;
}

.glitch:hover::before {
  opacity: 1;
  animation: glitch-anim 0.3s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% {
    transform: translate(2px, -2px);
    text-shadow: -1px 0 red;
  }
  50% {
    transform: translate(-2px, 2px);
    text-shadow: 1px -1px blue;
  }
  100% {
    transform: translate(1px, 1px);
    text-shadow: -1px 1px green;
  }
}

/* ==========================================================================
   Header Consistency
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-glass);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  height: 60px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  font-family: var(--ff-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle,
.nav-close {
  display: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(0, 242, 254, 0.05) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(79, 172, 254, 0.05) 0%,
      transparent 40%
    );
  overflow: hidden;
}

.grid-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(var(--border-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-subtitle {
  font-family: var(--ff-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--accent-primary);
  letter-spacing: 3px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.hero-title span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 700px;
  margin: 0 auto 3rem auto;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* ==========================================================================
   Brand Philosophy Section
   ========================================================================== */
.philosophy-section {
  padding: 8rem 0;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.section-label {
  font-family: var(--ff-mono);
  color: var(--accent-primary);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.phil-creative-graphic {
  position: relative;
  height: 350px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.phil-creative-graphic::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border: 2px dashed rgba(0, 242, 254, 0.3);
  border-radius: 50%;
  animation: rotate-dashed 20s linear infinite;
}

.phil-creative-graphic::after {
  content: "[ 01011001 ]";
  font-family: var(--ff-mono);
  color: var(--accent-secondary);
  font-size: 1.2rem;
}

@keyframes rotate-dashed {
  100% {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
  padding: 8rem 0;
  background: rgba(10, 10, 15, 0.5);
  border-bottom: 1px solid var(--border-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 3rem 2rem;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.1);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Why Us / Logic Section
   ========================================================================== */
.logic-section {
  padding: 8rem 0;
  border-bottom: 1px solid var(--border-color);
}

.logic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.logic-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  text-align: center;
  position: relative;
}

.logic-num {
  font-family: var(--ff-sans);
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

/* ==========================================================================
   Interactive Service Calculator Section
   ========================================================================== */
.calculator-section {
  padding: 8rem 0;
  background: rgba(10, 10, 15, 0.5);
  border-bottom: 1px solid var(--border-color);
}

.calc-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  margin-top: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 3.5rem;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.calc-group label {
  font-family: var(--ff-sans);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.calc-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  background: #1e293b;
  outline: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--accent-primary);
  cursor: pointer;
  box-shadow: 0 0 10px var(--border-glow);
}

.calc-select {
  background: #0f172a;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 1rem;
  font-family: var(--ff-mono);
}

.calc-results {
  border-left: 1px solid var(--border-color);
  padding-left: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
}

.calc-metric {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.metric-val {
  font-family: var(--ff-sans);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-primary);
}

/* ==========================================================================
   Live Campaign Report Mock Telemetry Section
   ========================================================================== */
.live-report-section {
  padding: 8rem 0;
  border-bottom: 1px solid var(--border-color);
}

.report-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 3rem;
  margin-top: 3rem;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.live-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.8;
  }
}

.report-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.telemetry-bar {
  width: 100%;
  height: 8px;
  background: #1e293b;
  position: relative;
  margin-top: 1rem;
}

.telemetry-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--accent-gradient);
  width: 65%;
  transition: width 1s ease-in-out;
}

/* ==========================================================================
   Industry Specific Focus
   ========================================================================== */
.industries-section {
  padding: 8rem 0;
  background: rgba(10, 10, 15, 0.5);
  border-bottom: 1px solid var(--border-color);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.industry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  transition: var(--transition);
}

.industry-card:hover {
  border-color: var(--accent-secondary);
  transform: translateY(-5px);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-section {
  padding: 8rem 0;
  border-bottom: 1px solid var(--border-color);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 3rem 2rem;
  position: relative;
}

.quote-icon {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2rem;
  opacity: 0.1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 2rem;
}

.author-meta h4 {
  font-size: 1rem;
}

.author-meta p {
  font-size: 0.8rem;
  margin: 0;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-banner-section {
  padding: 8rem 0;
  background:
    linear-gradient(180deg, transparent, rgba(0, 242, 254, 0.05)),
    var(--bg-dark);
}

.cta-banner-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 4rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* ==========================================================================
   Contact Page Content
   ========================================================================== */
.page-header-section {
  padding: 12rem 0 6rem 0;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  margin-top: 4rem;
}

.contact-info-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 3rem;
}

.contact-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-details-list li {
  display: flex;
  gap: 1.5rem;
}

.contact-details-list i {
  font-size: 1.5rem;
  color: var(--accent-primary);
}

.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--ff-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: #0f172a;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 1rem;
  font-family: var(--ff-mono);
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

/* Success Popup */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: var(--bg-glass);
  border: 1px solid var(--accent-primary);
  padding: 3rem;
  z-index: 10000;
  max-width: 500px;
  width: 90%;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  text-align: center;
}

.popup.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.popup-icon {
  font-size: 3rem;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Legal Content Styles
   ========================================================================== */
.legal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 4rem;
  margin-top: 4rem;
}

.legal-content h2 {
  margin-top: 3rem;
}

/* ==========================================================================
   Footer Consistency
   ========================================================================== */
.footer {
  background: #040406;
  border-top: 1px solid var(--border-color);
  padding: 6rem 0 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-about-text {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-3px);
}

.footer-col-title {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-col-title::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background: var(--accent-gradient);
  margin-top: 0.5rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-col ul a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col ul a:hover {
  color: var(--accent-primary);
  padding-left: 5px;
}

.footer-contact ul li {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-contact ul li i {
  color: var(--accent-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-toggle {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 350px;
    height: 100vh;
    background: var(--bg-glass);
    border-left: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 4rem 2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 3rem;
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 2rem;
    width: 100%;
  }

  .nav-close {
    display: block;
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .calc-wrapper,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .calc-results {
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding-left: 0;
    padding-top: 3.5rem;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
  }

  .calc-wrapper {
    padding: 2rem;
  }

  .report-metrics {
    grid-template-columns: 1fr;
  }
}
