/* ATS Pro Corp - Dark Gradient Theme */
:root {
  --bg: #1a1d23;
  --bg-darker: #12141a;
  --bg-card: #1e2228;
  --text: #e8eaed;
  --text-muted: #9ca3af;
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --accent: #60a5fa;
  --accent-secondary: #6b7280;
  --line: #2d3139;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.3);
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--accent));
  --gradient-bg: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(96, 165, 250, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 20% 80%, rgba(37, 99, 235, 0.06), transparent);
}

* {
  box-sizing: border-box;
  cursor: none;
  /* Hide default cursor */
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  color: var(--text);
  background: var(--gradient-bg), var(--bg);
  background-attachment: fixed;
  line-height: 1.7;
  font-size: 16px;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-darker);
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 2147483647;
  /* Max safe integer to ensure it's always on top */
  pointer-events: none;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  /* Subtle glow */
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(59, 130, 246, 0.5);
  transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}

body.hovering .cursor-outline {
  width: 60px;
  height: 60px;
  background-color: rgba(59, 130, 246, 0.05);
  border-color: var(--primary);
}

/* Typography */
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 600;
  color: var(--text);
}

h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
  margin-bottom: 24px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

p {
  margin: 0 0 16px;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.8;
}

.text-muted {
  color: var(--text-muted);
}

.text-center {
  text-align: center;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-muted);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 29, 35, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  height: 32px;
  width: auto;
  opacity: 0.9;
}

.brand-name {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.brand-name strong {
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.nav a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

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

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 80% at 50% 0%, rgba(37, 99, 235, 0.2), transparent 60%),
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(96, 165, 250, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(37, 99, 235, 0.08), transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  position: relative;
}

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

.hero-logo img {
  width: 100%;
  max-width: 400px;
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(37, 99, 235, 0.3));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

.hero-tagline {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero .lead {
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Grid layouts */
.grid {
  display: grid;
  gap: 32px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  /* Slightly tighter radius for Shadcn feel */
  padding: 24px;
  /* Slightly reduced padding for tighter layout */
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(37, 99, 235, 0.3);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  margin-bottom: 20px;
}

.card-icon svg {
  width: 28px;
  height: 28px;
  stroke: white;
  fill: none;
  stroke-width: 1.5;
}

.card h3 {
  color: var(--text);
}

.card p {
  color: var(--text-muted);
  margin: 0;
}

/* About section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content h2 {
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-feature-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-feature-icon svg {
  width: 14px;
  height: 14px;
  stroke: white;
  stroke-width: 2;
}

.about-image {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  pointer-events: none;
  z-index: 1;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Portfolio section */
.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.portfolio-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-darker);
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-content {
  padding: 32px;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.portfolio-tag {
  padding: 6px 12px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--accent);
}

.portfolio-content h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.portfolio-content p {
  color: var(--text-muted);
}

.portfolio-stats {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.portfolio-stat {
  text-align: center;
}

.portfolio-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.portfolio-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Tech stack */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.tech-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.tech-item-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

/* Contact section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact-info h2 {
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}

.contact-item-text {
  display: flex;
  flex-direction: column;
}

.contact-item-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-item-value {
  font-weight: 500;
  color: var(--text);
}

/* Contact form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-darker);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--accent-secondary);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
}

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* Footer */
.site-footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--line);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center horizontally */
  text-align: center;
  gap: 24px;
  /* Increased gap */
  height: 100%;
  /* Take full available height */
  justify-content: space-between;
  /* Push text to bottom if height allows, or just stack */
}

.footer-brand img {
  height: auto;
  max-height: 180px;
  /* Significantly increased to allow it to fill space */
  width: auto;
  max-width: 100%;
  object-fit: contain;
  flex-grow: 1;
  /* Allow it to take available space */
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 100%;
  /* Allow text to span full width if needed */
  margin-top: auto;
  /* Push to bottom */
}

.footer-column h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: var(--text-muted);
}

/* Mission statement */
.mission-statement {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 24px;
}

.mission-statement blockquote {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text);
  font-style: italic;
  margin: 0;
  padding: 0;
  border: none;
}

.mission-statement blockquote::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary);
  line-height: 0;
  display: block;
  margin-bottom: 20px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Glowing Pulse Border */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3) inset;
  pointer-events: none;
  z-index: 9998;
  /* Below cursor (max int) but above most content */
  animation: border-pulse 4s ease-in-out infinite;
}

@keyframes border-pulse {

  0%,
  100% {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2) inset;
  }

  50% {
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5) inset;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
  }

  .nav.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-logo {
    order: -1;
  }

  .hero-logo img {
    max-width: 280px;
  }

  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

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

  .about-image {
    order: -1;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .portfolio-stats {
    flex-wrap: wrap;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .card {
    padding: 24px;
  }

  .contact-form {
    padding: 24px;
  }
}