/* ============================================================
   PORTFOLIO — FRANKY BRICE KOUAM
   Theme: Dark Navy / White — Professional
   ============================================================ */

:root {
  --navy-dark:   #0d1b2a;
  --navy:        #1b2d4f;
  --navy-light:  #243b6e;
  --accent:      #4a9edd;
  --accent-dark: #2d7fc0;
  --white:       #ffffff;
  --gray-light:  #f0f4f8;
  --gray:        #94a3b8;
  --text-dark:   #1e293b;
  --text-muted:  #64748b;
  --border:      #e2e8f0;
  --card-bg:     #ffffff;
  --radius:      12px;
  --shadow:      0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover:0 8px 30px rgba(0,0,0,0.15);
}

/* ---- BASE ---- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

.fw-700 { font-weight: 700; }
.text-accent { color: var(--accent); }
.text-muted-light { color: rgba(255,255,255,0.65); }

/* ---- NAVBAR ---- */
#mainNav {
  background: rgba(13, 27, 42, 0.97);
  backdrop-filter: blur(8px);
  padding: 14px 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

#mainNav.scrolled {
  padding: 8px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent) !important;
  letter-spacing: 1px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8) !important;
  padding: 6px 12px !important;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--white) !important;
  background: rgba(255,255,255,0.08);
}

.lang-toggle {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-color: rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.85);
  padding: 4px 14px;
  border-radius: 20px;
  transition: all 0.2s;
}

.lang-toggle:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* ---- SECTIONS ---- */
.section-light {
  padding: 90px 0;
  background: var(--gray-light);
}

.section-dark {
  padding: 90px 0;
  background: var(--navy-dark);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
  color: var(--text-dark);
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 10px;
}

.section-dark .section-title::after {
  background: var(--accent);
}

/* ---- HERO ---- */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  position: relative;
  padding: 100px 0 60px;
}

.hero-greeting {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-name {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
}

.hero-title {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}

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

.hero-photo-wrapper {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  overflow: hidden;
  box-shadow: 0 0 0 8px rgba(74, 158, 221, 0.15), 0 20px 60px rgba(0,0,0,0.4);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-scroll-hint a {
  color: rgba(255,255,255,0.5);
  font-size: 1.2rem;
  animation: bounce 2s infinite;
  text-decoration: none;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ---- BUTTONS ---- */
.btn-accent {
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
  font-weight: 600;
  padding: 10px 26px;
  border-radius: 8px;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 158, 221, 0.35);
}

.btn-accent-sm {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 6px;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

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

.btn-cv {
  background: transparent;
  color: #ffd54f;
  border: 2px solid #ffd54f;
  font-weight: 600;
  padding: 10px 26px;
  border-radius: 8px;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-cv:hover {
  background: #ffd54f;
  color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 213, 79, 0.3);
}

.btn-navy-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 8px;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-navy-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* ---- ABOUT ---- */
.about-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 16px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--accent);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

/* ---- SKILLS ---- */
.skill-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 24px;
  height: 100%;
  transition: border-color 0.2s, transform 0.2s;
}

.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.skill-card-header h5 {
  color: var(--white);
  font-weight: 600;
  margin: 0;
  font-size: 1rem;
}

.skill-icon {
  color: var(--accent);
  font-size: 1.2rem;
  width: 20px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  background: rgba(74, 158, 221, 0.15);
  color: var(--accent);
  border: 1px solid rgba(74, 158, 221, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.skill-tag-sm {
  background: rgba(74, 158, 221, 0.12);
  color: #7ec8f5;
  border: 1px solid rgba(74, 158, 221, 0.25);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* On light sections, adjust skill tags */
.section-light .skill-tag {
  background: rgba(27, 45, 79, 0.08);
  color: var(--navy);
  border-color: rgba(27, 45, 79, 0.2);
}

.section-light .skill-tag-sm {
  background: rgba(27, 45, 79, 0.07);
  color: var(--navy);
  border-color: rgba(27, 45, 79, 0.15);
}

/* ---- TIMELINE ---- */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), rgba(74, 158, 221, 0.1));
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--white);
  border: 3px solid var(--accent);
  border-radius: 50%;
}

.timeline-dot.accent {
  background: var(--accent);
}

.timeline-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
  transition: box-shadow 0.2s;
}

.timeline-content:hover {
  box-shadow: var(--shadow-hover);
}

.timeline-company {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.timeline-role {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 2px 0 0;
}

.timeline-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(74, 158, 221, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.timeline-location {
  font-size: 0.82rem;
  color: var(--gray);
  margin: 4px 0 12px;
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 3px 0 3px 18px;
  position: relative;
}

.timeline-list li::before {
  content: '▸';
  color: var(--accent);
  position: absolute;
  left: 0;
}

.badge-freelance {
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(74, 158, 221, 0.15);
  color: var(--accent);
  border: 1px solid rgba(74, 158, 221, 0.3);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ---- PROJECTS ---- */
.project-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.project-card-personal {
  border-color: rgba(74, 158, 221, 0.4);
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.project-icon {
  color: var(--accent);
  font-size: 1.4rem;
}

.project-badge {
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(74, 158, 221, 0.15);
  color: var(--accent);
  border: 1px solid rgba(74, 158, 221, 0.3);
  padding: 3px 10px;
  border-radius: 20px;
}

.badge-personal {
  background: rgba(255, 193, 7, 0.15);
  color: #ffd54f;
  border-color: rgba(255, 193, 7, 0.3);
}

.project-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.project-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 14px;
}

/* ---- EDUCATION ---- */
.edu-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  border-left: 4px solid var(--accent);
  transition: box-shadow 0.2s;
}

.edu-card:hover {
  box-shadow: var(--shadow-hover);
}

.edu-icon {
  font-size: 1.5rem;
  color: var(--accent);
  min-width: 40px;
  margin-top: 4px;
}

.edu-degree {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.edu-school {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.edu-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
}

/* ---- CONTACT ---- */
.form-control-dark {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  border-radius: 8px;
  padding: 10px 14px;
  transition: border-color 0.2s;
}

.form-control-dark::placeholder { color: rgba(255,255,255,0.35); }

.form-control-dark:focus {
  background: rgba(255,255,255,0.08);
  border-color: var(--accent);
  color: var(--white);
  box-shadow: 0 0 0 3px rgba(74, 158, 221, 0.15);
  outline: none;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-icon {
  color: var(--accent);
  font-size: 1.1rem;
  width: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 0.78rem;
  color: var(--gray);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.contact-info-value {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}

a.contact-info-value:hover {
  color: var(--accent);
}

#formStatus.success {
  color: #4ade80;
  font-size: 0.9rem;
}

#formStatus.error {
  color: #f87171;
  font-size: 0.9rem;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 30px 0;
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
}

.footer strong {
  color: rgba(255,255,255,0.85);
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
}

.footer .text-accent { color: var(--accent) !important; }

/* ---- WHATSAPP FLOAT ---- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 54px;
  height: 54px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
  color: var(--white);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero-section { padding: 80px 0 50px; }
  .hero-photo-wrapper { width: 200px; height: 200px; }
  .section-light, .section-dark { padding: 60px 0; }
  .timeline { padding-left: 24px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 1.8rem; }
  .stats-grid { grid-template-columns: 1fr; }
}
