/* ============================================
   Apple-Style Portfolio — Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --white: #FFFFFF;
  --accent: #5381DF;
  --accent-hover: #4270cc;
  --text-primary: #111111;
  --text-secondary: #222222;
  --text-muted: #86868b;
  --bg-primary: #FFFFFF;
  --bg-secondary: #f5f5f7;
  --border: #d2d2d7;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  --max-width: 980px;
  --max-width-wide: 1200px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 22px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  cursor: pointer;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-logo:hover {
  opacity: 0.7;
}

.logo-separator {
  color: var(--accent);
  font-weight: 300;
  opacity: 0.6;
}

.logo-role {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color var(--transition);
  letter-spacing: 0.01em;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

/* Mobile menu button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all var(--transition);
  border-radius: 2px;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Page Sections --- */
.page {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  min-height: 100vh;
  padding-top: 52px;
}

.page.active {
  display: block;
}

.page.visible {
  opacity: 1;
}

/* --- Hero (Home) --- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 52px);
  text-align: center;
  padding: 80px 24px;
}

.hero-image {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 40px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 12px;
}

/* --- Animated Hero Title --- */
.hero-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-name {
  animation: slideInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-divider {
  color: var(--accent);
  font-weight: 300;
  opacity: 0;
  animation: fadeScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

.hero-role {
  background: linear-gradient(135deg, var(--accent), #7c5ce0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.hero-image {
  animation: scaleIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0s both;
}

.hero .subtitle {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}

.hero-buttons {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.1s both;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeScale {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 0.6; transform: scale(1); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero .subtitle {
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  margin-bottom: 48px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Brands / Trusted By --- */
.brands-section {
  margin-top: 72px;
  text-align: center;
  width: 100%;
  max-width: 600px;
}

.brands-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.brands-strip {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-secondary);
  border-radius: 12px;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.brand-card:hover {
  background: var(--white);
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all var(--transition);
}

.brand-card:hover .brand-logo {
  filter: grayscale(0%);
  opacity: 1;
}

.brand-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 980px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  min-width: 160px;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--white);
  transform: scale(1.02);
}

/* --- Section Layout --- */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 24px;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 64px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* --- Portfolio Grid --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 24px;
}

.portfolio-grid.shorts-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--max-width-wide);
}

.portfolio-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-secondary);
  transition: transform var(--transition), box-shadow var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.portfolio-card .video-wrapper {
  overflow: hidden;
}

.portfolio-card .video-wrapper iframe {
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.portfolio-card:hover .video-wrapper iframe {
  transform: scale(1.05);
}

.portfolio-card .video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.portfolio-card .video-wrapper.shorts {
  padding-top: 177.78%; /* 9:16 aspect ratio */
}

.portfolio-card .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.portfolio-card .card-info {
  padding: 20px 24px;
}

.portfolio-card .card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.portfolio-card .card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* --- About Section --- */
.about-container {
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.about-image {
  width: 300px;
  height: 300px;
  border-radius: 28px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.about-content {
  flex: 1;
}

.about-content h2 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-weight: 300;
}

.tools {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-secondary);
  border-radius: 980px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.tool-badge:hover {
  background: var(--accent);
  color: var(--white);
}

.tool-badge svg {
  width: 18px;
  height: 18px;
}

.about-cta {
  margin-top: 36px;
}

/* --- Meeting Section --- */
.meeting-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}

.meeting-container p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
  font-weight: 300;
}

.meeting-embed {
  width: 100%;
  min-height: 700px;
  border: none;
  border-radius: 16px;
  background: var(--bg-secondary);
}

.meeting-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.meeting-note a {
  color: var(--accent);
  transition: opacity var(--transition);
}

.meeting-note a:hover {
  opacity: 0.7;
}

.meeting-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 60px 40px;
}

.meeting-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 24px;
}

.meeting-placeholder h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.meeting-placeholder p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 40px;
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* --- Fade-in animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Social Media Section --- */
.social-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: var(--bg-secondary);
  border-radius: 16px;
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.social-card:hover {
  background: var(--white);
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.social-icon svg {
  width: 26px;
  height: 26px;
}

.social-icon.instagram {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
}

.social-icon.youtube {
  background: #FF0000;
  color: white;
}

.social-info {
  flex: 1;
}

.social-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.social-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.social-arrow {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: all var(--transition);
}

.social-card:hover .social-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* --- WhatsApp Floating Button --- */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: all var(--transition);
  animation: fabBounceIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.5s both;
}

.whatsapp-fab svg {
  width: 28px;
  height: 28px;
  color: white;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-fab::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25D366;
  z-index: -1;
  animation: fabPulse 2s ease-in-out infinite;
}

@keyframes fabBounceIn {
  from { opacity: 0; transform: scale(0) translateY(40px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes fabPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50%      { transform: scale(1.4); opacity: 0; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav-links.open {
    max-height: 300px;
    padding: 16px 0;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 0.9rem;
  }

  .nav-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero .subtitle {
    font-size: 1.1rem;
  }

  .hero-image {
    width: 120px;
    height: 120px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .btn {
    width: 100%;
  }

  .section-title {
    font-size: 2rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .portfolio-grid.shorts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-container {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .about-image {
    width: 200px;
    height: 200px;
  }

  .about-content h2 {
    font-size: 1.8rem;
  }

  .tools {
    justify-content: center;
  }

  .section {
    padding: 60px 20px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .logo-role {
    display: none;
  }

  .logo-separator {
    display: none;
  }

  .hero-title {
    flex-direction: column;
    gap: 4px;
  }

  .whatsapp-fab {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-fab svg {
    width: 24px;
    height: 24px;
  }
}
