/* ===== Variables ===== */
:root {
  --primary: #e63946;
  --primary-hover: #c1121f;
  --dark: #0d1b2a;
  --dark-2: #1b2838;
  --accent-bg: #fef9f4;
  --text: #2b2d42;
  --text-light: #6c757d;
  --white: #fff;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(13,27,42,0.08);
  --transition: 0.35s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Outfit', sans-serif; color: var(--text); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; display: block; border-radius: var(--radius); }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul { list-style: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.header { position: fixed; top: 0; width: 100%; z-index: 999; padding: 18px 0; transition: var(--transition); }
.header.scrolled { background: rgba(255,255,255,0.97); backdrop-filter: blur(10px); box-shadow: 0 2px 20px rgba(0,0,0,0.06); padding: 14px 0; }
.header-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 28px; font-weight: 900; color: var(--white); letter-spacing: -1px; }
.logo span { color: var(--primary); }
.header.scrolled .logo { color: var(--dark); }
.nav { display: flex; gap: 28px; }
.nav-link { font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.75); transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--white); }
.header.scrolled .nav-link { color: var(--text-light); }
.header.scrolled .nav-link:hover, .header.scrolled .nav-link.active { color: var(--primary); }
.hamburger { display: none; flex-direction: column; gap: 5px; width: 26px; }
.hamburger span { height: 2.5px; background: var(--white); border-radius: 3px; transition: var(--transition); }
.header.scrolled .hamburger span { background: var(--dark); }

/* ===== Buttons ===== */
.btn-fill { display: inline-flex; align-items: center; padding: 14px 30px; background: var(--primary); color: var(--white); border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; transition: var(--transition); }
.btn-fill:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(230,57,70,0.3); }
.btn-line { display: inline-flex; align-items: center; padding: 14px 30px; border: 2px solid rgba(255,255,255,0.4); color: var(--white); border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; transition: var(--transition); }
.btn-line:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

/* ===== Hero ===== */
.hero { background: var(--dark); padding: 140px 20px 80px; }
.hero-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-text .tag { display: inline-block; background: rgba(230,57,70,0.15); color: var(--primary); padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.hero h1 { font-size: clamp(36px, 4.5vw, 56px); font-weight: 900; color: var(--white); line-height: 1.1; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p { font-size: 17px; color: rgba(255,255,255,0.65); margin-bottom: 32px; max-width: 460px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-img img { border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.hero-stats { max-width: 1180px; margin: 60px auto 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.08); }
.stat { text-align: center; }
.stat strong { font-size: 32px; font-weight: 800; color: var(--white); display: block; }
.stat span { font-size: 14px; color: rgba(255,255,255,0.5); }

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-accent { background: var(--accent-bg); }
.section-dark { background: var(--dark); }
.section-dark h2, .section-dark .label { color: var(--white); }
.section-dark .label { color: var(--primary); }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.label { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--primary); margin-bottom: 10px; }
h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; line-height: 1.2; }

/* ===== About (Split) ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-img img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split-content p { color: var(--text-light); margin-bottom: 16px; }
.split-content h2 { margin-bottom: 20px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: var(--white); border-radius: 24px; font-size: 13px; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.chip i { color: var(--primary); }

/* ===== Services Grid ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.s-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.s-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,0.12); }
.s-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 0; }
.s-card-body { padding: 24px; }
.s-card-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.s-card-body p { font-size: 14px; color: var(--text-light); }

/* ===== Portfolio ===== */
.filter-bar { display: flex; gap: 10px; justify-content: center; margin-bottom: 36px; flex-wrap: wrap; }
.filter-btn { padding: 8px 20px; border-radius: 24px; font-size: 14px; font-weight: 600; color: var(--text-light); border: 1px solid #e2e8f0; transition: var(--transition); }
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.p-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.p-item img { width: 100%; height: 240px; object-fit: cover; transition: transform 0.4s ease; border-radius: 0; }
.p-item:hover img { transform: scale(1.05); }
.p-overlay { position: absolute; inset: 0; background: rgba(13,27,42,0.7); display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transition: var(--transition); }
.p-item:hover .p-overlay { opacity: 1; }
.p-overlay h4 { color: var(--white); font-size: 18px; }
.p-overlay span { color: rgba(255,255,255,0.7); font-size: 13px; }
.p-item.hidden { display: none; }

/* ===== Team ===== */
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.team-card { text-align: center; background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: var(--transition); }
.team-card:hover { transform: translateY(-4px); }
.team-card img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; }
.team-card h4 { font-size: 16px; font-weight: 700; }
.team-card > span { font-size: 13px; color: var(--text-light); }
.socials { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.socials a { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 14px; transition: var(--transition); }
.socials a:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* ===== Testimonials ===== */
.testimonial-wrap { max-width: 650px; margin: 0 auto; text-align: center; position: relative; min-height: 220px; }
.t-slide { display: none; animation: fadeUp 0.4s ease; }
.t-slide.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.t-slide img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; }
.t-slide blockquote { font-size: 18px; font-style: italic; color: var(--text); margin-bottom: 16px; line-height: 1.7; }
.t-slide strong { display: block; font-size: 15px; }
.t-slide > span { font-size: 13px; color: var(--text-light); }
.t-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
.t-prev, .t-next { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #ddd; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--text-light); transition: var(--transition); }
.t-prev:hover, .t-next:hover { border-color: var(--primary); color: var(--primary); }
.t-dots { display: flex; gap: 6px; }
.t-dot { width: 8px; height: 8px; border-radius: 50%; background: #ddd; cursor: pointer; transition: var(--transition); }
.t-dot.active { background: var(--primary); width: 20px; border-radius: 4px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.c-item { display: flex; gap: 14px; margin-bottom: 24px; }
.c-item i { width: 44px; height: 44px; background: rgba(230,57,70,0.1); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 18px; flex-shrink: 0; }
.c-item h4 { font-size: 15px; color: var(--white); font-weight: 600; }
.c-item p { font-size: 14px; color: rgba(255,255,255,0.6); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form input, .form textarea { padding: 14px 18px; border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-sm); font-size: 14px; font-family: inherit; background: rgba(255,255,255,0.05); color: var(--white); transition: var(--transition); }
.form input::placeholder, .form textarea::placeholder { color: rgba(255,255,255,0.4); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--primary); }
.form textarea { resize: vertical; }
.form .btn-fill { align-self: flex-start; }

/* ===== Footer ===== */
.footer { background: #080f1a; padding: 70px 0 0; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-brand .logo { color: var(--white); margin-bottom: 10px; display: inline-block; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.footer-brand .socials a { border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.6); }
.footer-links h4 { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 14px; }
.footer-links a { display: block; font-size: 14px; color: rgba(255,255,255,0.5); padding: 4px 0; transition: var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-nl h4 { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.footer-nl p { font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.nl-form { display: flex; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid rgba(255,255,255,0.12); }
.nl-form input { flex: 1; padding: 10px 14px; border: none; background: transparent; color: var(--white); font-size: 14px; }
.nl-form input::placeholder { color: rgba(255,255,255,0.35); }
.nl-form input:focus { outline: none; }
.nl-form button { padding: 10px 16px; background: var(--primary); color: var(--white); font-size: 14px; }
.footer-bottom { margin-top: 50px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.06); text-align: center; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.35); }

/* ===== Scroll Top ===== */
.scroll-top { position: fixed; bottom: 28px; right: 28px; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 18px; opacity: 0; visibility: hidden; transition: var(--transition); z-index: 900; box-shadow: 0 4px 16px rgba(230,57,70,0.3); }
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-3px); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid-3, .portfolio-grid { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: repeat(2,1fr); }
  .hero-inner { gap: 40px; }
}

@media (max-width: 768px) {
  .nav { position: fixed; top: 0; right: -100%; width: 260px; height: 100vh; background: var(--white); flex-direction: column; padding: 80px 28px; gap: 18px; box-shadow: -4px 0 20px rgba(0,0,0,0.1); transition: var(--transition); }
  .nav.open { right: 0; }
  .nav-link { color: var(--dark) !important; font-size: 16px; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-img { order: -1; }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .split { grid-template-columns: 1fr; }
  .grid-3, .portfolio-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .btn-line { border-color: rgba(255,255,255,0.5); }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .hero h1 { font-size: 30px; }
}
