/* Main Styles */
:root {
  /* Color variables */
  --bg-dark: #0A0A0A; /* Even darker background */
  --bg-card: #141414;
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --accent-start: #00F2EA;
  --accent-end: #00C4D4;
  --border-color: #2a2a2a;
  --gradient: linear-gradient(90deg, var(--accent-start), var(--accent-end));
}

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em; /* Tighter letter spacing for display font */
}

h1 { font-size: 5.5rem; }
h2 { font-size: 3.5rem; text-align: center; margin-bottom: 4rem; }
p { color: var(--text-secondary); }
a { color: var(--text-primary); text-decoration: none; }

/* Logo styles */
.logo-img {
    height: 40px;
    width: auto;
    vertical-align: middle;
}

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

/* --- Header & Navigation --- */
.main-header {
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  background-color: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: 1px; font-family: 'Syne', sans-serif;}
.main-nav ul { list-style: none; display: flex; gap: 2rem; }
.main-nav a {
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.main-nav a:hover {
  color: var(--text-primary);
  text-shadow: 0 0 10px var(--accent-start);
}

/* --- Call to Action Button --- */
.cta-button {
  background: var(--gradient);
  color: #000;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  background-size: 200% auto;
  transition: all 0.4s ease-out;
}
.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 242, 234, 0.2);
  background-position: right center;
  color: #000;
}
.cta-button.large { font-size: 1.1rem; padding: 1rem 2.5rem; }

/* --- Hero Section --- */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0,0,0,0.95) 0%, rgba(20,20,20,0.9) 100%);
}

.hero-glow {
  position: relative;
  border-radius: 0;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  overflow: hidden;
  cursor: default;
}

.hero-glow::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(1200px circle at var(--mouse-x) var(--mouse-y), rgba(0, 242, 234, 0.1), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
}

.hero-glow:hover::before { opacity: 1; }
.hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  z-index: 2;
}
.hero-section h1 {
  opacity: 0; /* Initially hidden for JS animation */
  animation: fadeInHeroText 1s ease-out 0.5s forwards;
}
@keyframes fadeInHeroText { to { opacity: 1; } }

.subtitle { font-size: 1.25rem; max-width: 600px; text-align: center; margin: 0 auto; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* --- General Section Styling --- */
section {
  padding: 6rem 0;
}

/* --- Services Section --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.service-card {
  background-color: var(--bg-card);
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  position: relative;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  overflow: hidden;
  cursor: pointer;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 12px;
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(0, 242, 234, 0.1), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-start);
}
.service-card i { color: var(--accent-start); width: 32px; height: 32px; margin-bottom: 1.5rem; position: relative; z-index: 2; }
.service-card h3, .service-card p { position: relative; z-index: 2;}
.service-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.service-card p { font-size: 0.95rem; line-height: 1.5; margin-bottom: 0.5rem; }

/* Service Card Link Styles */
.service-card-link {
  display: block;
  height: 100%;
  width: 100%;
  color: inherit;
  text-decoration: none;
  padding: 2.5rem;
  padding-bottom: 4rem; /* Extra space for arrow */
  position: relative;
  z-index: 2;
}

/* Click here arrow button */
.click-here-arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--gradient);
  color: #000;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8) rotate(90deg);
  opacity: 0.7;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.service-card:hover .click-here-arrow {
  transform: scale(1) rotate(90deg);
  opacity: 1;
}

.service-card:active .click-here-arrow {
  transform: scale(1) rotate(180deg);
}

.service-card:hover .service-card-link {
  color: inherit;
}

/* --- Work Section --- */
.work-section { background-color: #101010; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.work-item { overflow: hidden; border-radius: 12px;}
.work-item img { width: 100%; border-radius: 12px; margin-bottom: 1.5rem; display: block; transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.work-item:hover img { transform: scale(1.05); }
.work-item h4 { font-size: 1.25rem; }
.work-item p { font-size: 1rem; }

/* --- Contact Section --- */
.contact-section { text-align: center; }
.contact-section h2 { font-size: 3.5rem; margin-bottom: 1rem; }
.contact-section p { font-size: 1.2rem; margin-bottom: 2.5rem; }

/* --- Footer --- */
.main-footer { padding: 2rem 0; border-top: 1px solid var(--border-color); }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.social-links { display: flex; gap: 1.5rem; }

/* --- ANIMATION STYLES --- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Service Detail Pages --- */
.service-hero-section {
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.7);
}

.service-hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.7;
}

.service-hero-section .container {
  position: relative;
  z-index: 2;
}

.service-hero-section h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
}

.service-details-section {
  padding: 4rem 0 6rem;
}

.service-content {
  max-width: 1000px;
  margin: 0 auto;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 3rem 0 5rem;
}

.feature-item {
  background-color: var(--bg-card);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  position: relative;
}

.feature-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-start);
}

.feature-item .click-here-arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--gradient);
  color: #000;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8) rotate(90deg);
  opacity: 0.7;
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}

.feature-item:hover .click-here-arrow {
  transform: scale(1) rotate(90deg);
  opacity: 1;
}

.feature-item:active .click-here-arrow {
  transform: scale(1) rotate(180deg);
}

.feature-item.active .click-here-arrow {
  transform: scale(1) rotate(270deg);
}

.feature-item i {
  color: var(--accent-start);
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.feature-item-content {
  flex-grow: 1;
}

.feature-item-content ul {
  margin-top: 0.5rem;
  padding-left: 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease, margin 0.5s ease;
  opacity: 0;
  margin-bottom: 0;
}

.feature-item.active .feature-item-content ul {
  max-height: 500px;
  opacity: 1;
  margin-bottom: 1rem;
}

.feature-item-content p + p {
  margin-bottom: 0.5rem;
}

.feature-item-content li {
  margin-bottom: 0.5rem;
  position: relative;
}

.feature-item-content p + p {
  margin-top: 1rem;
}

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

.tech-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0 5rem;
}

.tech-item {
  background-color: var(--bg-card);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.tech-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--accent-start);
}

.process-steps {
  margin: 3rem 0 5rem;
}

.step {
  display: flex;
  flex-direction: column;
  margin-bottom: 3rem;
  position: relative;
}

.step-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-start);
  opacity: 0.5;
  margin-bottom: 1rem;
  font-family: 'Syne', sans-serif;
}

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

.cta-container {
  text-align: center;
  padding: 3rem 0 1rem;
}

.cta-container h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

/* --- Footer --- */
footer {
  padding: 4rem 0 2rem;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

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

.footer-logo p {
  margin-top: 1rem;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-start);
}

.footer-contact p {
  margin-bottom: 0.8rem;
}

.social-icons {
  display: flex;
  gap: 1.2rem;
}

.social-icons a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--accent-start);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  h1 { font-size: 4rem; }
  h2 { font-size: 2.8rem; }
  .service-hero-section h1 { font-size: 3.5rem; }
}

@media (max-width: 768px) {
  .main-header .container { flex-direction: column; gap: 1rem; }
  .main-nav { margin-top: 1rem; }
  h1 { font-size: 3rem; }
  .work-grid { grid-template-columns: 1fr; }
  .service-hero-section h1 { font-size: 3rem; }
  .cta-container h2 { font-size: 2rem; }
  .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .feature-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .feature-item i {
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-hero-section h1 { font-size: 2.5rem; }
  .service-features, .tech-stack { grid-template-columns: 1fr; }
}
