/* --- Variables & Reset --- */
:root {
  --bg-color: #0f172a;
  --bg-darker: #020617;
  --text-color: #e2e8f0;
  --text-muted: #94a3b8;
  --primary: #3b82f6;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --glass: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --font-main: "Outfit", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
ul {
  list-style: none;
}

/* --- Utility Classes --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 100px 0;
}
.bg-darker {
  background-color: var(--bg-darker);
}

.gradient-text {
  background: linear-gradient(45deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Buttons --- */
.btn-primary,
.btn-secondary {
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--text-color);

  margin-left: 15px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* -- LOGO STYLES (SVG) -- */
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  height: 45px;
  width: 45px;
  /* No border radius or object fit needed for SVG */
  transition: transform 0.6s ease;
}

.logo:hover .logo-icon {
  transform: rotate(120deg); /* Subtle spin effect on hover */
}

.logo .highlight {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover {
  color: var(--primary);
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Hero Section --- */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.2) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  animation: pulse 8s infinite alternate;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
  }
}

.hero h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* --- About Section --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.section-subtitle {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-muted);
}

.stats-row {
  display: flex;
  gap: 40px;
  margin-top: 30px;
  border-top: 1px solid var(--border);
  padding-top: 30px;
}

.stat-item h3 {
  font-size: 2rem;
  color: var(--accent);
}
.stat-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.image-card {
  width: 100%;
  height: 400px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.abstract-visual {
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morph 6s infinite ease-in-out;
}

@keyframes morph {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  50% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    transform: rotate(180deg);
  }
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(360deg);
  }
}

/* --- Services --- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header p {
  color: var(--text-muted);
  margin-top: 10px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--glass);
  border: 1px solid var(--border);
  padding: 40px 30px;
  border-radius: 15px;
  transition: 0.4s;
  cursor: default;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-10px);
  border-color: var(--primary);
}

.icon-box {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 15px;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Process (Timeline) --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.step-number {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
  -webkit-text-stroke: 1px var(--primary);
  line-height: 1;
}

.step-content h3 {
  margin-bottom: 10px;
  color: var(--text-color);
}
.step-content p {
  color: var(--text-muted);
}

/* --- Contact --- */
.contact-list {
  margin-top: 30px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.contact-list i {
  color: var(--primary);
}

.social-links {
  margin-top: 30px;
  display: flex;
  gap: 20px;
}
.social-links a {
  width: 40px;
  height: 40px;
  background: var(--glass);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.social-links a:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.contact-form {
  background: var(--glass);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: white;
  font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.full-width {
  width: 100%;
}

/* --- Footer --- */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-darker);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 20px;
}

/* --- Scroll Animations Classes --- */
.hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 100ms;
}
.delay-200 {
  transition-delay: 200ms;
}
.delay-300 {
  transition-delay: 300ms;
}

/* --- Custom Alert Styles --- */
.custom-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  max-width: 400px;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s ease;
  z-index: 9999;
  font-family: Arial, sans-serif;
}

.custom-alert.show {
  opacity: 1;
  transform: translateX(0);
}

.custom-alert-success {
  background: white;
  color: black;
  border-left: 4px solid #10b981;
}

.custom-alert-error {
  background: white;
  color: black;
  border-left: 4px solid #ef4444;
}

.alert-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-icon {
  font-size: 20px;
  font-weight: bold;
  flex-shrink: 0;
}

.alert-content p {
  margin: 0;
  font-size: 14px;
  flex-grow: 1;
}

.alert-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

.alert-close:hover {
  opacity: 0.8;
}

/* --- Responsive Design --- */
@media (max-width: 448px) {
  .hero-btns {
    display: flex;
  }
}
@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 75px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 75px);
    background: var(--bg-darker);
    flex-direction: column;
    justify-content: center;
    transition: 0.4s;
    border-top: 1px solid var(--border);
  }

  .nav-links.active {
    right: 0;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .hero-bg-blob {
    width: 300px;
    height: 300px;
  }
}
