:root {
  --bg-dark: #f8fafc;
  --card-bg: rgba(255, 255, 255, 0.75);
  --card-border: rgba(15, 23, 42, 0.08);
  --accent-primary: #d81d09;
  --accent-hover: #d81d09;
  --accent-glow: rgba(59, 130, 246, 0.25);
  --text-main: #d81d09;
  --text-muted: #475569;
  --text-dim: #64748b;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Smooth Scrolling & Light White-to-Blue Transition --- */
html {
  scroll-behavior: smooth;
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 40%, #ffffff 100%);
  background-attachment: fixed;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Fix ghost clicking by disabling pointer events on decorative elements */
.bg-blur {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  user-select: none;
}

.blur-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: rgba(59, 130, 246, 0.12);
}

.blur-2 {
  bottom: 10%;
  right: -10%;
  width: 45vw;
  height: 45vw;
  background: rgba(147, 51, 234, 0.08);
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--card-border);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-main);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-main);
  border: 1px solid var(--card-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn-nav {
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-nav:hover {
  background: var(--accent-primary);
  color: #fff;
}

.btn-block {
  width: 100%;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--accent-primary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.hero {
  text-align: center;
  padding: 4rem 1rem 6rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #0f172a 30%, #334155 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.gallery-section {
  padding-top: 3rem;
  margin-bottom: 6rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.section-header p {
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* --- Masonry Column Layout (Preserves Original Aspect Ratios) --- */
.grid {
  column-count: 4;
  column-gap: 20px;
  width: 100%;
}

.grid-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 12px 25px rgba(59, 130, 246, 0.15);
}

.grid-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.grid-item:hover img {
  transform: scale(1.04);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  pointer-events: none; /* Prevents overlay from blocking image click events */
}

.grid-item:hover .grid-overlay {
  opacity: 1;
}

.overlay-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.contact-section {
  padding: 2rem 0 4rem 0;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.contact-info h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.info-item p {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 1rem;
  color: #e2e8f0;
  font-size: 1rem;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: var(--accent-primary);
}

footer {
  border-top: 1px solid var(--card-border);
  text-align: center;
  padding: 2rem;
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* --- Responsive Layout Adjustments --- */
@media (max-width: 1200px) {
  .grid {
    column-count: 3;
  }
}

@media (max-width: 868px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .contact-card {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .nav-links {
    display: none;
  }

  .grid {
    column-count: 2;
    column-gap: 15px;
  }

  .grid-item {
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .grid {
    column-count: 1;
  }
}

/* Removes focus outlines and tap highlight boxes on click */
*, *:focus, *:active {
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

/* Retains clean focus for text fields without harsh default borders */
input:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}