@font-face {
  font-family: 'Gilroy';
  src: url('fonts/brand/Gilroy-Regular1.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('fonts/brand/Gilroy-Medium1.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('fonts/brand/Gilroy-Semibold1.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('fonts/brand/Gilroy-Bold1.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('fonts/brand/Gilroy-Heavy1.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #F27A35; /* Interstellar Orange */
  --primary-color: var(--primary);
  --primary-glow: rgba(242, 122, 53, 0.4);
  --bg-dark: #111111;
  --bg-card: rgba(29, 29, 29, 0.6); /* Charcoal Black with opacity for glassmorphism */
  --bg-card-hover: rgba(45, 45, 45, 0.8);
  --text-main: #FFFFFF;
  --text-muted: #A0A0A0;
  --border-light: rgba(255, 255, 255, 0.08);

  --font-heading: 'Gilroy', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Gilroy', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  --transition-smooth: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

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

#tsparticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

/* Custom Cursor Glow */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  mix-blend-mode: screen;
  transition: opacity 0.3s ease;
}

h1, h2, h3, h4, .logo span {
  font-family: var(--font-heading);
  letter-spacing: -0.05em; /* Bold, tight typography effect */
}

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

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

/* Typography */
.section-title {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-bottom: 3rem;
  text-align: center;
}

p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

.section {
  padding: 8rem 0;
  position: relative;
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-dark);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 122, 53, 0.6);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255,255,255,0.2);
}

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

/* Glassmorphism Classes */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 2.5rem;
  transition: var(--transition-smooth);
}

.interactive-card {
  position: relative;
  overflow: hidden;
}

.interactive-card::before {
  content: "";
  position: absolute;
  top: var(--mouse-y, 0);
  left: var(--mouse-x, 0);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle closest-side, rgba(242, 122, 53, 0.15), transparent);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: -1;
}

.interactive-card:hover::before {
  opacity: 1;
}

.interactive-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(242, 122, 53, 0.3);
  transform: translateY(-5px);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 1.5rem 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(17, 17, 17, 0.8);
  backdrop-filter: blur(20px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  position: relative;
}

.logo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160%;
  height: 250%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.2) 40%, transparent 70%);
  z-index: -1;
  filter: blur(12px);
  pointer-events: none;
  border-radius: 50%;
}

.brand-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.3s;
}

.brand-logo:hover {
  opacity: 0.8;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-main);
}

.nav-links .btn-primary {
  color: var(--bg-dark);
  padding: 0.75rem 1.5rem;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 800px;
  padding: 0 2rem;
  z-index: 10;
}

.hero-title {
  font-size: clamp(4.5rem, 9vw, 8rem);
  font-weight: 900;
  line-height: 0.95;
  margin-bottom: 1.5rem;
  letter-spacing: -0.06em;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 3rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Animation Utilities */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

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

.about-text p {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-main);
}

.partners-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.about-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
}

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

.stat-number {
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-heading);
  line-height: 1;
}

.stat-label {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* Services Sections */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
}

.service-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.clients-img {
  width: 100%;
  max-width: 800px;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.05));
}

.icon-wrapper {
  background: rgba(242, 122, 53, 0.1);
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(242, 122, 53, 0.2);
}

.service-icon-tag {
    position: absolute;
    top: 0;
    left: 0;
    width: 64px;
    height: 64px;
    padding: 12px;
    background: rgba(242, 122, 53, 0.15);
    border-bottom-right-radius: 24px;
    border-top-left-radius: 24px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    z-index: 10;
}

.service-card:hover .service-icon-tag {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem; /* space for the top-left tag */
  margin-bottom: 1rem;
}

/* Contact */
.contact-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 1.25rem;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  color: var(--text-main);
  font-family: var(--font-body);
  transition: all 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0,0,0,0.4);
}

/* Footer */
footer {
  padding: 4rem 0;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon.small {
  width: 16px;
  height: 16px;
}

/* Media Queries */
@media (max-width: 768px) {
  #tsparticles {
    display: none !important;
  }
  
  .nav-container {
    flex-direction: column;
    padding: 1rem;
  }
  
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
  }
  
  .nav-links a {
    font-size: 0.85rem;
    padding: 0.5rem;
  }
  
  .nav-links .btn-primary {
    padding: 0.5rem 1rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-cta {
    flex-direction: column;
  }
}


/* --- New Brand Visual Identity Additions --- */
.brand-arc {
    position: absolute;
    bottom: 0;
    right: 0;
    width: clamp(250px, 40vw, 400px);
    height: auto;
    pointer-events: none;
    z-index: 1; /* Above particles, below content */
    opacity: 0.9;
    transform: rotate(0deg);
}

/* Add 'blackholes, planetary movement' patterns to alternating service cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -30px; 
    left: -30px;
    width: 150px; 
    height: 150px;
    background-repeat: no-repeat;
    background-position: top left;
    background-size: contain;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 0.3;
}

/* Odd: Orbital Ring Pattern */
.service-card:nth-child(odd)::before {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" stroke="%23F27A35" stroke-width="2" fill="none"/><circle cx="50" cy="10" r="4" fill="%23F27A35"/></svg>');
}

/* Even: Blackhole / Plus Pattern */
.service-card:nth-child(even)::before {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M50 10 Q50 50 10 50 Q50 50 50 90 Q50 50 90 50 Q50 50 50 10" fill="%23F27A35"/></svg>');
}

/* Rounded corners for client list */
.clients-img {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 100%;
    height: auto;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    .brand-arc {
        bottom: 0;
        right: 0;
        width: 200px;
        height: auto;
        opacity: 0.5; /* reduce arc opacity on mobile */
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-grid, .services-grid {
        grid-template-columns: 1fr;
    }
    
    .clients-img {
        width: 90%;
    }
}


/* Interstellar Orange Hover State for Services */
.service-card * {
    position: relative;
    z-index: 2; /* keep text above background */
    transition: color 0.4s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 140px;
    height: 140px;
    background-image: url('assets/visual-elements/Visual%20elements/Arc-A%CC%82m%20ba%CC%89n.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0; /* invisible initially */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
    pointer-events: none;
}

.service-card:hover {
    background: var(--primary) !important;
    background-color: var(--primary) !important; 
    border-color: var(--primary);
}

.service-card:hover h3, 
.service-card:hover p {
    color: #1D1D1D !important; /* Dark text against orange */
}

.service-card:hover::after {
    bottom: -10px;
    right: -10px;
    opacity: 0.8; /* image arc slides in */
}

/* Hover icons for footer */
.footer-links a:hover {
    opacity: 1 !important;
    color: var(--primary) !important;
}

/* Small circle on the sliding arc replaced by actual image, disable old element */
.service-card .hover-arc-circle {
    display: none !important;
}
