/* Custom Premium Monochrome Styling */

:root {
  --bg-gradient: linear-gradient(135deg, #000000, #0d0d0d 50%, #161616);
  --glass-bg: rgba(12, 12, 12, 0.65);
  --glass-blur: blur(24px) saturate(180%);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(0, 140, 255, 0.5);
  
  --color-title: #ffffff;
  --color-body: #94a3b8;
  --color-dim: #475569;
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --accent-color: #008cff;
  --accent-glow: rgba(0, 140, 255, 0.3);
}

/* Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: #000000;
}

body {
  min-height: 100vh;
  background: var(--bg-gradient);
  color: var(--color-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle Technical Grid Background Mesh */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.009) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.009) 1px, transparent 1px);
  background-size: 64px 64px;
  z-index: 1;
  pointer-events: none;
}

/* Fine Tiled Noise Overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 150px 150px;
}

/* Floating Ambient Glow Auroras */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(160px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.12;
}

.glow-1 {
  top: -10%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 140, 255, 0.15) 0%, rgba(0, 140, 255, 0) 70%);
  animation: moveGlow1 30s infinite ease-in-out;
}

.glow-2 {
  bottom: -10%;
  right: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 70%);
  animation: moveGlow2 35s infinite ease-in-out;
}

/* Interactive Cursor Backlight */
.cursor-backlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(100px);
  z-index: 1;
  pointer-events: none;
  transform: translate3d(0, 0, 0) translate(-50%, -50%);
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1);
  display: none;
}

@keyframes moveGlow1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(120px, 80px) scale(1.1); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes moveGlow2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-100px, -80px) scale(1.15); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Background Geometry Elements */
.background-geometry {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.geometry-shape {
  position: absolute;
  transform-origin: center;
}

.shape-star-1 {
  top: 10%;
  left: 8%;
  width: 180px;
  height: 180px;
  animation: rotateSway 35s infinite linear;
}

.shape-star-2 {
  bottom: 15%;
  right: 10%;
  width: 250px;
  height: 250px;
  animation: rotateSway 45s infinite linear reverse;
}

.shape-ring-1 {
  top: 40%;
  right: 5%;
  width: 400px;
  height: 400px;
  animation: swayOnly 28s infinite ease-in-out;
}

@keyframes rotateSway {
  0% {
    transform: rotate(0deg) translate(0, 0);
  }
  50% {
    transform: rotate(180deg) translate(25px, -25px);
  }
  100% {
    transform: rotate(360deg) translate(0, 0);
  }
}

@keyframes swayOnly {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-30px, 30px) scale(1.03);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

/* Main Wrapper & Central Card */
.main-wrapper {
  width: 100%;
  max-width: 1200px;
  padding: 80px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  perspective: 1200px;
}

.central-card {
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 80px;
  transition: border-color 0.5s ease;
}

/* Reset transition style when pointer leaves small cards */
.hover-tile.reset-tilt {
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.4s ease, background-color 0.4s ease !important;
  transform: perspective(800px) rotateX(0deg) rotateY(0deg) !important;
}

/* Header Section */
.card-header {
  margin-bottom: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.brand-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-glow);
}

.brand-name {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: #ffffff;
}

.main-title {
  font-family: var(--font-title);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--color-title);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.main-title span {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
}

.tagline {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--color-body);
  max-width: 600px;
  font-weight: 300;
}

/* General Section Layout */
.section {
  margin-bottom: 80px;
  position: relative;
}

.section-title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-title);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-title::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.section-header-row .section-title {
  margin-bottom: 0;
  flex-grow: 1;
}

.section-subtitle {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-dim);
}

/* Services Grid & Tiles */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.hover-tile {
  position: relative;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  overflow: hidden;
  transition: border-color 0.4s ease, background-color 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: translateZ(0); /* Fix browser render issues */
}

.hover-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    300px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(0, 140, 255, 0.1),
    transparent 80%
  );
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hover-tile:hover {
  border-color: var(--border-hover);
  background-color: rgba(255, 255, 255, 0.03);
}

.hover-tile:hover::before {
  opacity: 1;
}

.tile-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tile-icon {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Service tile hover icon inversion */
.hover-tile:hover .icon-wrapper {
  background: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 0 20px var(--accent-glow);
}

.hover-tile:hover .tile-icon {
  stroke: #ffffff;
}

.tile-title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-title);
  margin-bottom: 12px;
}

.tile-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-body);
}

/* Projects Showcase */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.project-image-container {
  position: relative;
  width: calc(100% + 80px);
  margin: -40px -40px 32px -40px;
  aspect-ratio: 16 / 10;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  background-color: #0c0c0c;
  transition: border-color 0.4s ease;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-tile:hover .project-image-container {
  border-color: var(--border-hover);
}

.project-tile:hover .project-img {
  transform: scale(1.03);
}

.project-info {
  position: relative;
  z-index: 2;
  padding: 0 4px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.project-category {
  font-family: var(--font-title);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-dim);
}

.icon-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 0.6;
}

.icon-btn svg {
  width: 14px;
  height: 14px;
  stroke: #ffffff;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-tile:hover .icon-btn {
  opacity: 1;
  background: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 0 15px var(--accent-glow);
}

.project-tile:hover .icon-btn svg {
  stroke: #ffffff;
}

.project-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-title);
  margin-bottom: 8px;
}

.project-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-body);
}

/* Footer & CTA */
.card-footer {
  margin-top: 100px;
  border-top: 1px solid var(--border-color);
  padding-top: 60px;
}

.cta-wrapper {
  max-width: 650px;
  margin-bottom: 64px;
}

.cta-title {
  font-family: var(--font-title);
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--color-title);
  line-height: 1.2;
  margin-bottom: 20px;
}

.cta-desc {
  color: var(--color-body);
  font-weight: 300;
  margin-bottom: 32px;
}

.contact-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: transparent;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.social-btn svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.social-btn:hover {
  border-color: var(--accent-color);
  background: var(--accent-color);
  box-shadow: 0 0 15px var(--accent-glow);
}

.social-btn:hover svg {
  stroke: #ffffff;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 14px 28px;
  border-radius: 12px;
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.button-icon-wrapper {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.button-icon-wrapper svg {
  width: 14px;
  height: 14px;
  stroke: #ffffff;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cta-button:hover {
  border-color: var(--border-hover);
  background: rgba(0, 140, 255, 0.05);
}

.cta-button:hover .button-icon-wrapper {
  background: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 0 15px var(--accent-glow);
}

.cta-button:hover .button-icon-wrapper svg {
  stroke: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--color-dim);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-indicator {
  width: 6px;
  height: 6px;
  background-color: var(--accent-color);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulseLight 2s infinite ease-in-out;
}

@keyframes pulseLight {
  0% {
    opacity: 0.3;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 0.3;
    transform: scale(0.9);
  }
}

/* CSS Entry Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
  animation-delay: 0.6s;
}

.delay-2 {
  animation-delay: 1.2s;
}

.delay-3 {
  animation-delay: 1.8s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .central-card {
    padding: 60px;
  }
}

@media (max-width: 768px) {
  .main-wrapper {
    padding: 40px 16px;
  }

  .central-card {
    padding: 40px 24px;
    border-radius: 16px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .card-header {
    margin-bottom: 48px;
  }
  
  .card-footer {
    margin-top: 64px;
    padding-top: 40px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  /* Disable active 3D effects/glow defaults for mobile touch devices */
  .hover-tile::before {
    display: none;
  }
  
  .hover-tile {
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(255, 255, 255, 0.12);
  }
  
  .icon-wrapper {
    background: rgba(255, 255, 255, 0.05);
  }

  .project-image-container {
    border-color: rgba(255, 255, 255, 0.12);
  }

  .icon-btn {
    opacity: 0.8;
  }
}
