/*
Theme Name: Interflow
Theme URI: https://interflow.my
Author: Interflow
Description: Interflow Digital Agency - Single Page Website
Version: 1.0
*/

/* =============================================
   FONTS
============================================= */
@font-face {
  font-family: 'Nunito';
  src: url('fonts/Nunito-Variable.woff2') format('woff2-variations');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('fonts/Nunito-VariableItalic.woff2') format('woff2-variations');
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #1a6cf6;
  --blue-dark: #1050c4;
  --blue-light: #e8f0fe;
  --green: #10b981;
  --green-dark: #059669;
  --green-light: #d1fae5;
  --navy: #0f1d3a;
  --slate: #4a5568;
  --muted: #718096;
  --bg: #f8faff;
  --white: #ffffff;
  --border: #e2e8f0;
  --grad-blue-green: linear-gradient(135deg, #1a6cf6 0%, #10b981 100%);
  --grad-green-blue: linear-gradient(135deg, #10b981 0%, #1a6cf6 100%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(26,108,246,0.10);
  --shadow-lg: 0 8px 32px rgba(26,108,246,0.14);
  --radius: 14px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
}

/* =============================================
   TOPBAR
============================================= */
#topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(248, 250, 255, 0.75);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: var(--shadow-sm);
}

#topbar.dark {
  background: rgba(15, 29, 58, 0.35);
}

#topbar.dark .logo,
#topbar.dark nav a {
  color: #fff;
}

#topbar.dark .hamburger span {
  background: #fff;
}

#topbar.dark nav a:hover {
  color: var(--blue-light);
  background: rgba(255,255,255,0.1);
}

#topbar.dark .btn-nav {
  background: var(--blue) !important;
  color: #fff !important;
}

#topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: -0.5px;
}

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

nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate);
  padding: 6px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

nav a:hover { color: var(--blue); background: var(--blue-light); }

.btn-nav {
  background: var(--blue);
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: 8px;
  transition: background 0.2s !important;
}

.btn-nav:hover { background: var(--blue-dark) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  border: none;
  background: transparent;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(248, 250, 255, 0.75);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 16px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-md);
}

.mobile-nav.open { display: flex; }

.mobile-nav.dark {
  background: rgba(15, 29, 58, 0.35);
  box-shadow: none;
}

.mobile-nav.dark a {
  color: rgba(255,255,255,0.85);
}

.mobile-nav.dark a:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.mobile-nav a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate);
  padding: 12px 16px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}

.mobile-nav a:hover { color: var(--blue); background: var(--blue-light); }

.mobile-nav .btn-nav {
  background: var(--blue) !important;
  color: var(--white) !important;
  text-align: center;
  margin-top: 8px;
}

/* =============================================
   HERO
============================================= */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 64px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('hero.jpg');
  background-size: cover;
  background-position: center;
  /* filter: brightness(0.5); */
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* background: linear-gradient(160deg, rgba(15,29,58,0.55) 0%, rgba(16,185,129,0.15) 60%, rgba(26,108,246,0.3) 100%); */
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s forwards;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.7s 0.4s forwards;
}

.hero-title .accent {
  background: var(--blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.7s 0.6s forwards;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s 0.8s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad-blue-green);
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 20px rgba(26,108,246,0.35);
}

.btn-primary:hover { opacity: 0.9; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.6);
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
	color: var(--green);
	border-color: var(--green);
	background: rgba(0,0,0,0.8);
}



/* =============================================
   STATS STRIP
============================================= */
#stats {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

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

.stat-item {
  text-align: center;
  padding: 20px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  background: var(--grad-blue-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.5px;
}

/* =============================================
   SECTION COMMON
============================================= */
section { padding: 96px 0; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.section-tag::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--grad-blue-green);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-title .accent {
  background: var(--grad-blue-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
}

/* =============================================
   SERVICES
============================================= */
#services { background: var(--bg); }

.services-header { margin-bottom: 56px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-blue-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.3s;
}

.service-card:hover .service-icon { background: var(--grad-blue-green); }
.service-card:hover .service-icon svg { color: var(--white); }

.service-icon svg {
  width: 24px;
  height: 24px;
  color: var(--blue);
  transition: color 0.3s;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* =============================================
   WHY US
============================================= */
#why {
  background: var(--white);
}

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.why-visual {
  position: relative;
}

.why-visual-box {
  background: var(--grad-blue-green);
  border-radius: 24px;
  padding: 48px 36px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: var(--shadow-lg);
}

.why-feat {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.why-feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-feat-icon svg { width: 20px; height: 20px; color: var(--white); }

.why-feat-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.why-feat-text p {
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1.6;
}

.why-float {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
}

.why-float-num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad-blue-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.why-float-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate);
  line-height: 1.4;
  max-width: 90px;
}

.why-points { display: flex; flex-direction: column; gap: 20px; margin-top: 36px; }

.why-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.why-point-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-blue-green);
  margin-top: 7px;
  flex-shrink: 0;
}

.why-point p {
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.65;
}

.why-point strong { color: var(--navy); font-weight: 700; }

/* =============================================
   PROCESS
============================================= */
#process { background: var(--bg); }

.process-header { text-align: center; margin-bottom: 64px; }
.process-header .section-sub { margin: 0 auto; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(12.5%);
  right: calc(12.5%);
  height: 2px;
  background: linear-gradient(to right, var(--blue), var(--green));
  z-index: 0;
}

.process-step {
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue);
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
}

.process-step:hover .step-num {
  background: var(--grad-blue-green);
  border-color: transparent;
  color: var(--white);
  transform: scale(1.08);
}

.process-step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
}

/* =============================================
   CTA BAND
============================================= */
#cta-band {
  background: var(--navy);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band-content { position: relative; z-index: 1; }

.cta-band-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.8px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-band-content h2 .accent {
  background: var(--grad-blue-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-band-content p {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band-content .btn-primary {
  box-shadow: 0 4px 24px rgba(16,185,129,0.35);
  font-size: 1rem;
}

/* =============================================
   FOOTER
============================================= */
#footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

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

.footer-brand .logo { margin-bottom: 16px; }

.footer-brand p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 24px;
}

.social-links { display: flex; gap: 10px; }

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.social-link:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.social-link svg { width: 16px; height: 16px; }

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 20px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--blue); }

.footer-contact { display: flex; flex-direction: column; gap: 12px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-item svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }

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

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-badge span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

/* =============================================
   ANIMATIONS
============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-inner { grid-template-columns: 1fr; gap: 48px; }
  .why-visual { max-width: 500px; margin: 0 auto; }
  .why-float { right: -12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
	nav { display: none; }
	.hamburger { display: flex; }

	#topbar { height: 44px; padding-left: 5px; }
	.mobile-nav { top: 44px; }

	section { padding: 64px 0; }

	.stats-grid { grid-template-columns: repeat(2, 1fr); }
	.stat-item:nth-child(2) { border-right: none; }
	.stat-item:nth-child(3) { border-top: 1px solid var(--border); }
	.stat-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }

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

	.process-steps { grid-template-columns: 1fr 1fr; gap: 32px; }
	.process-steps::before { display: none; }

	.footer-grid { grid-template-columns: 1fr; gap: 32px; }
	.footer-bottom { flex-direction: column; text-align: center; }

	.hero-eyebrow {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		font-size: 0.5rem;
		font-weight: 700;
		letter-spacing: 3px;
		text-transform: uppercase;
		color: var(--green);
		margin-bottom: 20px;
		opacity: 0;
		animation: fadeUp 0.7s 0.2s forwards;
	}
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-outline { justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr; }
}
