/* =============================================
   MAGNINA CAMILLE — PORTFOLIO CSS
   Style: Bleu & Blanc Moderne
   ============================================= */

:root {
  --blue-deep:    #0A1628;
  --blue-mid:     #1A3A6B;
  --blue-brand:   #1D6FE8;
  --blue-light:   #4A90F5;
  --blue-pale:    #EBF3FF;
  --white:        #FFFFFF;
  --gray-50:      #F8FAFC;
  --gray-100:     #F1F5F9;
  --gray-300:     #CBD5E1;
  --gray-500:     #64748B;
  --gray-700:     #334155;
  --accent:       #00D4FF;

  --font-display: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    40px;

  --shadow-sm:    0 2px 8px rgba(29,111,232,0.08);
  --shadow-md:    0 8px 32px rgba(29,111,232,0.14);
  --shadow-lg:    0 20px 60px rgba(29,111,232,0.18);

  --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(29,111,232,0.08);
  transition: var(--transition);
}
.navbar.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
}
.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-deep);
  letter-spacing: -0.5px;
}
.nav-logo .dot { color: var(--blue-brand); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-500);
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue-brand); }
.btn-nav {
  background: var(--blue-brand);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: var(--radius-xl);
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.btn-nav:hover {
  background: var(--blue-mid) !important;
  transform: translateY(-1px);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-deep);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
  gap: 60px;
  max-width: 1160px;
  margin: 0 auto;
}
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}
.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--blue-brand), var(--blue-light));
  top: -150px; left: -150px;
  animation: blobFloat 8s ease-in-out infinite;
}
.blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--accent), var(--blue-light));
  bottom: -100px; right: -80px;
  animation: blobFloat 10s ease-in-out infinite reverse;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29,111,232,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,111,232,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.97); }
}

.hero-content { flex: 1; max-width: 580px; }
.hero-eyebrow {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--blue-brand);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.0;
  color: var(--blue-deep);
  letter-spacing: -2px;
  margin-bottom: 12px;
}
.hero-title .accent {
  background: linear-gradient(135deg, var(--blue-brand), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1rem;
  color: var(--blue-brand);
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.hero-bio {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.btn-primary {
  display: inline-block;
  background: var(--blue-brand);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(29,111,232,0.3);
}
.btn-primary:hover {
  background: var(--blue-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(29,111,232,0.4);
}
.btn-primary.btn-large { padding: 18px 40px; font-size: 1rem; }
.btn-ghost {
  display: inline-block;
  border: 2px solid var(--blue-brand);
  color: var(--blue-brand);
  padding: 12px 28px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn-ghost:hover {
  background: var(--blue-pale);
  transform: translateY(-2px);
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--blue-deep);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-300);
}

/* Hero Visual */
.hero-visual {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.avatar-ring {
  width: 220px; height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-brand), var(--accent));
  padding: 4px;
  box-shadow: var(--shadow-lg);
  animation: rotate 10s linear infinite;
}
@keyframes rotate {
  from { box-shadow: 0 0 0 0 rgba(29,111,232,0.3), var(--shadow-lg); }
  50%  { box-shadow: 0 0 40px 10px rgba(0,212,255,0.2), var(--shadow-lg); }
  to   { box-shadow: 0 0 0 0 rgba(29,111,232,0.3), var(--shadow-lg); }
}
.avatar-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  overflow: hidden;
}
.avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 260px;
}
.tag {
  padding: 6px 14px;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.tag-wp  { background: #21759B22; color: #21759B; border: 1px solid #21759B44; }
.tag-sh  { background: #96BF4822; color: #5E8E3E; border: 1px solid #5E8E3E44; }
.tag-js  { background: #F7DF1E22; color: #B8860B; border: 1px solid #F7DF1E66; }
.tag-css { background: #1D6FE822; color: var(--blue-brand); border: 1px solid #1D6FE844; }

/* ---- SKILLS STRIP ---- */
.skills-strip {
  background: var(--blue-deep);
  padding: 20px 0;
}
.strip-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.strip-items {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.strip-item {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.strip-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--blue-brand);
}

/* ---- SECTIONS ---- */
.section { padding: 96px 0; }
.section-alt { background: var(--gray-50); }
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-brand);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--blue-deep);
  letter-spacing: -1px;
}

/* ---- SERVICES GRID ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-light);
}
.service-card.featured {
  border-color: var(--blue-brand);
  box-shadow: var(--shadow-md);
  background: linear-gradient(160deg, var(--white), var(--blue-pale));
}
.service-badge {
  position: absolute;
  top: -12px; right: 24px;
  background: var(--blue-brand);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-xl);
  letter-spacing: 0.05em;
}
.service-icon { font-size: 2rem; margin-bottom: 16px; }
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 12px;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 20px;
}
.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-brand);
  transition: gap var(--transition);
}
.card-link:hover { opacity: 0.8; }

/* ---- FEATURE CARD ---- */
.feature-card {
  display: flex;
  gap: 60px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}
.feature-info { flex: 1; }
.feature-tag {
  display: inline-block;
  background: var(--blue-pale);
  color: var(--blue-brand);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: var(--radius-xl);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.feature-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-deep);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.feature-desc {
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.feature-techs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.feature-techs li {
  background: var(--blue-pale);
  color: var(--blue-mid);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-xl);
}
.feature-mockup { flex: 0 0 400px; }
.mockup-browser {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}
.mockup-bar {
  background: var(--gray-100);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mockup-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
}
.mockup-url {
  background: var(--white);
  border-radius: 4px;
  padding: 2px 12px;
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-left: 8px;
  flex: 1;
}
.mockup-screen { height: 220px; }
.mockup-placeholder {
  height: 100%;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255,255,255,0.15);
  letter-spacing: -1px;
}

/* ---- CTA ---- */
.cta-section { padding: 96px 0; }
.cta-box {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  border-radius: var(--radius-xl);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-blob {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,212,255,0.2), transparent);
  border-radius: 50%;
  top: -100px; right: -80px;
  pointer-events: none;
}
.cta-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.cta-sub {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo { color: var(--white); margin-bottom: 12px; display: inline-block; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; max-width: 280px; }
.footer-links h4 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .feature-card { flex-direction: column; }
  .feature-mockup { flex: none; width: 100%; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .hero { flex-direction: column; padding-top: 100px; text-align: center; gap: 40px; }
  .hero-bio { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { width: 100%; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 32px 24px; }
  .cta-box { padding: 48px 24px; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .blob, .avatar-ring { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---- FOOTER SOCIAL ICONS ---- */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  transition: background var(--transition), transform var(--transition);
}
.footer-social a:hover {
  background: var(--blue-brand);
  transform: translateY(-3px);
}
.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---- WHATSAPP FLOATING BUTTON ---- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  z-index: 999;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: waPulse 2.4s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(37,211,102,0.6);
}
.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: var(--white);
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 6px 24px rgba(37,211,102,0.45), 0 0 0 8px rgba(37,211,102,0.15); }
}
@media (max-width: 768px) {
  .whatsapp-float { width: 52px; height: 52px; bottom: 18px; right: 18px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
}
