/* Modern · Gradient · Soft · Rounded */

:root {
  --accent: #ff0d0d;
  --accent-light: #ff3333;
  --accent-rgb: 255, 13, 13;
  --teal: #0d9488;
  --cyan: #06b6d4;
  --slate: #1e293b;
  --slate-light: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 4px 24px -4px rgba(0,0,0,0.08), 0 8px 48px -8px rgba(0,0,0,0.06);
  --shadow-lg: 0 24px 64px -12px rgba(0,0,0,0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--slate);
  background: var(--bg);
}

h1, h2, h3 { font-weight: 600; margin: 0; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Header - glass */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(248,250,252,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--slate);
}
.nav { display: flex; gap: 2rem; }
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate-light);
  transition: color 0.2s;
}
.nav a:hover { color: var(--accent); }
.nav-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--slate);
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(248,250,252,0.98);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  .header.nav-open .nav { display: flex; }
  .nav-btn { display: block; }
}

/* Hero - photo background with blurred overlay */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg-image {
  position: absolute;
  inset: 0;
  background: url(../img/portfolio/001.jpg) no-repeat center center;
  background-size: cover;
  filter: blur(3px) brightness(0.9);
  transform: scale(1.03);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero h1 .gradient-text {
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.95);
  margin-bottom: 2rem;
  max-width: 420px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.3);
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.85), rgba(255, 51, 51, 0.85));
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px -4px rgba(var(--accent-rgb), 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px -4px rgba(var(--accent-rgb), 0.5);
  color: #fff;
}

/* Section */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.section-header h2 { margin: 0; }

/* Gallery - Bento grid */
.gallery {
  padding: 6rem 2rem;
}
.bento {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 140px;
  gap: 1rem;
}
.bento-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.bento-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}
.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bento-wide { grid-column: span 2; }
.bento-tall { grid-row: span 2; }
.bento-hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.65), rgba(255, 51, 51, 0.65));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.bento-item:hover .bento-hover { opacity: 1; }

@media (max-width: 900px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .bento-wide { grid-column: span 2; }
  .bento-tall { grid-row: span 1; }
}
@media (max-width: 500px) {
  .bento { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }
}

/* About - card */
.about {
  padding: 6rem 2rem;
}
.about-card {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.about-image img {
  width: 100%;
  border-radius: var(--radius-sm);
}
.about-body .section-tag { margin-bottom: 0.5rem; }
.about-body h2 { margin-bottom: 1rem; }
.about-body p {
  color: var(--slate-light);
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .about-card { grid-template-columns: 1fr; padding: 2rem; }
}

/* Services - cards */
.services {
  padding: 6rem 2rem;
}
.services .section-header { margin-bottom: 3rem; }
.services-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.85), rgba(255, 51, 51, 0.85));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.service-card p {
  font-size: 0.95rem;
  color: var(--slate-light);
  margin: 0;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* Partners */
.partners {
  padding: 4rem 2rem;
  text-align: center;
}
.partners h2 { margin-bottom: 2rem; }
.partners-logos {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.partners-logos img {
  max-height: 100px;
  width: auto;
  opacity: 0.6;
  filter: grayscale(1);
  transition: opacity 0.2s, filter 0.2s;
}
.partners-logos img:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* Contact - card with map */
.contact {
  padding: 6rem 2rem;
}
.contact-card {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.contact-main {
  padding: 3rem;
}
.contact-main .section-tag { margin-bottom: 0.5rem; }
.contact-main h2 { margin-bottom: 1rem; }
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.contact-details a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--slate-light);
  transition: color 0.2s;
}
.contact-details a:hover { color: var(--accent); }
.contact-details i {
  color: var(--accent);
  width: 1.25rem;
}

.contact-main form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-main input,
.contact-main textarea {
  padding: 1rem 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg);
  transition: border-color 0.2s;
}
.contact-main input:focus,
.contact-main textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-main button {
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.85), rgba(255, 51, 51, 0.85));
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  align-self: flex-start;
}
.contact-main button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px -4px rgba(var(--accent-rgb), 0.5);
}
.contact-main button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

#success { margin-top: 0.5rem; }
#success .alert {
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
#success .alert-success { background: #dcfce7; color: #166534; }
#success .alert-danger { background: #fee2e2; color: #991b1b; }
#success .btn-close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  float: right;
  font-size: 1.2rem;
}

@media (max-width: 900px) {
  .contact-card { grid-template-columns: 1fr; }
  .contact-map { min-height: 300px; }
}

/* Footer */
.footer {
  padding: 2rem;
  text-align: center;
  color: var(--slate-light);
  font-size: 0.9rem;
}
