/* CSS Variables & Reset */
:root {
  --bg-color: #050510;
  --bg-secondary: #0a0a1f;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --accent-primary: #FF6B00; /* Vibrant Orange */
  --accent-secondary: #FFB700; /* Yellow-Orange */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-main: "Outfit", sans-serif;
  --transition-fast: 0.3s ease;
  --transition-medium: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

body.custom-cursor-active {
    cursor: none;
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Custom Cursor */
#cursor-follower {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    width 0.3s,
    height 0.3s,
    background-color 0.3s;
  mix-blend-mode: difference;
}

a:hover ~ #cursor-follower,
button:hover ~ #cursor-follower {
  width: 50px;
  height: 50px;
  background-color: var(--accent-primary);
  opacity: 0.5;
}

/* Typography & Utilities */
.text-gradient {
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-label {
  display: inline-block;
  color: var(--accent-primary);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 500;
}

.section-title {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 3rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(
    90deg,
    var(--accent-secondary),
    var(--accent-primary)
  );
  color: white;
}

.btn-primary:hover {
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  margin-left: 1rem;
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Glassmorphism */
.glass-panel {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
}

/* Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  background: rgba(5, 5, 16, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-img {
    height: 50px; /* Increased height for better visibility of raster logo */
    width: auto;
}

.logo-text .highlight {
    color: var(--accent-primary);
}

.desktop-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.desktop-nav a:not(.btn) {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.desktop-nav a:not(.btn):hover {
  color: var(--text-primary);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}

#hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.7;
}

.scroll-indicator span {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-indicator .line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--text-primary), transparent);
}

/* Services Section */
.section {
  padding: 8rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.02); /* More transparent override */
  padding: 2.5rem;
  transition: var(--transition-fast);
  display: block; /* Ensure anchor behaves like a block */
  text-decoration: none; /* Remove underline */
  color: inherit; /* Inherit text color */
  height: 100%; /* Uniform height */
}

.service-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.service-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

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

.service-card p {
  color: var(--text-secondary);
}

/* About Page Specifics */
.page-header {
    padding-top: 150px;
}

.about-page-content {
    padding-top: 0;
}

.about-description {
    margin-top: 1rem;
    color: var(--text-secondary);
}

.cta-panel {
    padding: 3rem;
    text-align: center;
}

.cta-text {
    margin: 1rem 0 2rem;
    color: var(--text-secondary);
}

/* Contact Page Specifics */
.contact-page-wrapper {
    padding-top: 0;
    margin-top: 0;
}

.contact-page-header {
    padding-top: 150px;
    padding-bottom: 50px;
}

/* Work Page Specifics */
.work-page-section {
    padding-top: 0;
}
/* Work Section */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    transition: var(--transition-medium);
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image-container {
    width: 100%;
    height: 300px; /* Increased from 250px */
    overflow: hidden;
    position: relative;
}

.project-image-container img {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  height: 500px;
  position: relative;
  overflow: hidden;
  perspective: 1000px; /* For 3D tilt */
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

#about-canvas {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

.stats-row {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-item .number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.stat-item .label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Clients Section */
.clients-section {
    overflow: hidden;
}

.clients-grid {
    display: flex;
    gap: 4rem;
    margin-top: 3rem;
    width: max-content;
    animation: scroll-marquee 20s linear infinite;
}

.clients-grid:hover {
    animation-play-state: paused;
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.client-logo {
    padding: 2rem 4rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-fast);
    white-space: nowrap;
    min-width: 200px;
}

.client-logo:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.2);
}

.service-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.service-link:hover {
    text-decoration: underline;
}

/* Contact Section */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  overflow: hidden;
}

.contact-info {
  padding: 3rem;
  background: rgba(0, 0, 0, 0.2);
}

.contact-form {
  padding: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: white;
  font-family: inherit;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.08);
}

.full-width {
  width: 100%;
}

.contact-details {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--text-secondary);
}

/* Footer */
.main-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--glass-border);
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-column h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-column ul li, 
.footer-column ul li a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.footer-column ul li a:hover {
    color: var(--accent-primary);
    padding-left: 5px;
}

.copyright-row {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s ease,
    transform 1s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}

/* Responsive */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

/* Social Media Buttons */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    font-size: 0.9rem;
    font-weight: 500;
}

.social-btn:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

/* Service Content Images */
.content-body img {
    width: 100%;
    height: auto;
    max-height: 450px; /* Constrain height */
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin: 2rem 0;
}
