:root {
  --primary: #c62828;
  --primary-dark: #8e0000;
  --accent: #ffca28;
  --background: #0f172a;
  --background-light: #111827;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --card-bg: #111827;
  --border-color: #1f2933;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Global reset / base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: radial-gradient(circle at top left, #1f2937 0, #020617 50%);
  color: var(--text-main);
  line-height: 1.6;
}

/* Fixed header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.0rem 2.5rem;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

/* Logo */
.logo-area {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  font-size: 0.9rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.company-name {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transition: width 0.2s ease-out;
}

.main-nav a:hover,
.main-nav a:focus {
  color: #e5e7eb;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
  width: 100%;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.hamburger span {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #e5e7eb;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Layout */
main {
  padding-top: 76px; /* Header height offset */
}

.section {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
  text-align: left;
}

.section-header h2 {
  font-size: 1.9rem;
  margin: 0 0 0.5rem 0;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.2rem;
  margin-top: 0;
  margin-bottom: 1rem;
  padding-left: 4.0rem;
}

.hero-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-left: 4.0rem;
}

.hero-bullets {
  list-style: disc;
  padding-left: 4.0rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-bullets li {
  margin-bottom: 0.25rem;


}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;

}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  border-color: rgba(0, 0, 0, 0.2);

}

.btn.primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn.secondary {
  background: transparent;
  color: var(--accent);
  border-color: rgba(148, 163, 184, 0.6);
}

.btn.secondary:hover {
  background: rgba(15, 23, 42, 0.7);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-left: 4.0rem;

}

/* Carousel */
.hero-carousel {
  position: relative;
  overflow: hidden;
  width: 425px;
  height: 385px;
  margin: 25px auto 0;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at top left, #20617, #020617);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease-in-out;
}

.hero-carousel img {
  object-position: center;
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  object-fit: cover;
  object-fit: contain;
  object-position: center center;
  display:  flex;
  align-items: center;
  justify-content: center;
}

/* Navigation buttons */
.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 10px;
  pointer-events: none; /* Allows clicks through container */
}

.carousel-controls {
  position: absolute;
  inset: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.4rem;
  /* ✨ Important: REMOVE pointer-events:none; so buttons work */
}

.carousel-controls button {
  pointer-events: auto; /* Make buttons clickable */
  background: rgba(15, 23, 42, 0.8);
  border: none;
  color: #e5e7eb;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

/* About section */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2rem;
}

.about h3 {
  margin-top: 0;
}

/* Search form */
.search-form {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.search-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.search-row {
  display: flex;
  gap: 0.5rem;
}

.search-row input[type="text"] {
  flex: 1;
}

.search-row input,
.search-row button {
  padding: 0.5rem 0.6rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-main);
}

.search-row button {
  min-width: 90px;
  cursor: pointer;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.search-row button:hover {
  filter: brightness(1.05);
}

.search-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.search-results {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

/* Brand image placeholder */
.brand-image {
  border-radius: 1rem;
  padding: 1.5rem;
  background: radial-gradient(circle at top, rgba(248, 250, 252, 0.1), transparent 60%), #020617;
  border: 1px solid rgba(148, 163, 184, 0.5);
  text-align: left;
}

.brand-mark {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-sub {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* Contact snippet */
.contact-snippet {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-snippet a {
  color: var(--accent);
}

/* Experience */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.experience-item {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.5rem;
}

.experience-item h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.experience-item p {
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
}

.experience-item ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.5rem;
}

.project-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.project-card p {
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
}

.project-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
}

.contact-form,
.email-capture,
.analytics-note {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 1.5rem;
}

.contact-form h3,
.email-capture h3,
.analytics-note h3 {
  margin-top: 0;
}

.contact-form label {
  display: block;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-main);
  font-size: 0.9rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.email-capture form {
  margin-top: 0.75rem;
}

.email-capture input[type="email"] {
  width: 100%;
  margin-bottom: 0.5rem;
}

.analytics-note p {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.97);
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto 1.5rem auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-column h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.footer-column p,
.footer-column ul {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column li {
  margin-bottom: 0.25rem;
}

.footer-column a {
  color: var(--accent);
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-small {
  max-width: 420px;
}

/* Utilities */
a {
  color: var(--accent);
}

/* Responsive design */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-carousel {
    order: -1;
  }

  .about-layout,
  .experience-grid,
  .projects-grid,
  .contact-layout,
  .footer-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .experience-grid {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding-inline: 1rem;
  }

  .main-nav {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    transform: translateY(-120%);
    transition: transform 0.2s ease-out;
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1rem 1rem 1.2rem;
    gap: 0.75rem;
  }

  .hamburger {
    display: flex;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding-inline: 1rem;
  }

  .hero-carousel img {
    height: 220px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }
}

/* Hamburger animation when open */
.nav-open .hamburger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-open .hamburger span:nth-child(2) {
  opacity: 0;
}
.nav-open .hamburger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
