/* ═══════════════════════════════════════════════════
   Components — Minimalist Professional Portfolio
   Clean layouts, generous spacing, subtle interactions
   ═══════════════════════════════════════════════════ */

/* ── Hero ── */
.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

/* Two-column hero layout */
.hero-split-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-3xl);
  align-items: center;
  width: 100%;
}

.hero-content {
  animation: fadeInUp .7s ease-out;
}

/* Hero profile photo */
.hero-photo-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-photo {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-border);
  box-shadow: var(--shadow-xl), 0 0 0 8px var(--color-primary-light);
  transition: box-shadow var(--transition-slow);
}

.hero-photo:hover {
  box-shadow: var(--shadow-xl), 0 0 0 12px var(--color-primary-glow);
}

.hero-photo-ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 2px dashed var(--color-border);
  animation: slowSpin 30s linear infinite;
  pointer-events: none;
}

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── Certifications Section ── */
.certs-section {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.certs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  font-size: .82rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  transition: all var(--transition-base);
}

.cert-badge:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cert-check {
  color: var(--color-success);
  font-size: 1rem;
  font-weight: 700;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: .35rem .9rem;
  background: var(--color-primary-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  font-size: .8rem;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: var(--space-xl);
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  margin-bottom: var(--space-lg);
  font-weight: 800;
  letter-spacing: -1.5px;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-grid {
  position: absolute;
  right: 0;
  top: 0;
  width: 60%;
  height: 100%;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to left, rgba(0,0,0,.06), transparent);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,.06), transparent);
}

/* ── Cards Grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-xl);
}

.cards-grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

/* ── Blog Cards ── */
.blog-card-image {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  object-fit: cover;
  margin-bottom: var(--space-lg);
  display: block;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card-image {
  transform: scale(1.02);
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: .85rem;
  color: var(--color-text-muted);
}

.blog-card h3 {
  margin-bottom: var(--space-sm);
  transition: color var(--transition-fast);
}

.blog-card:hover h3 {
  color: var(--color-primary);
}

.blog-card p {
  color: var(--color-text-secondary);
  font-size: .95rem;
  line-height: 1.7;
  flex: 1;
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* ── Project Cards ── */
.project-card {
  overflow: hidden;
}

.project-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.project-card h3 {
  margin-bottom: var(--space-sm);
}

.project-card p {
  color: var(--color-text-secondary);
  font-size: .95rem;
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.project-card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.project-card-actions {
  display: flex;
  gap: var(--space-md);
}

/* ── Product Card (retained for compatibility) ── */
.product-card { text-align: center; position: relative; }
.product-icon { width: 64px; height: 64px; border-radius: var(--radius-lg); background: var(--gradient-accent); display: flex; align-items: center; justify-content: center; font-size: 1.75rem; margin: 0 auto var(--space-lg); }
.product-card h3 { margin-bottom: var(--space-sm); }
.product-card p { color: var(--color-text-secondary); font-size: .95rem; margin-bottom: var(--space-lg); }
.product-price { font-size: 2rem; font-weight: 800; font-family: var(--font-heading); margin-bottom: var(--space-lg); }
.product-price span { font-size: .9rem; color: var(--color-text-muted); font-weight: 400; }
.product-features { list-style: none; text-align: left; margin-bottom: var(--space-xl); }
.product-features li { padding: var(--space-sm) 0; color: var(--color-text-secondary); font-size: .9rem; display: flex; align-items: center; gap: var(--space-sm); }
.product-features li::before { content: '✓'; color: var(--color-success); font-weight: 700; }
.coming-soon-badge { display: inline-flex; align-items: center; gap: var(--space-sm); padding: .5rem 1.25rem; background: var(--color-warning); color: #000; border-radius: var(--radius-xl); font-weight: 700; font-size: .85rem; letter-spacing: .05em; }

/* ── Timeline ── */
.timeline {
  position: relative;
  padding-left: var(--space-2xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border-strong);
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-2xl);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--space-2xl) + 4px);
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-primary-light);
  transition: all var(--transition-base);
}

.timeline-date {
  font-size: .8rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  letter-spacing: .02em;
}

.timeline-item h3 {
  margin-bottom: var(--space-xs);
  font-size: 1.05rem;
}

.timeline-item p {
  color: var(--color-text-secondary);
  font-size: .9rem;
  line-height: 1.7;
}

/* ── Skills Grid ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-md);
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: .8rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: all var(--transition-base);
}

.skill-item:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.skill-icon {
  font-size: 1.75rem;
  transition: transform var(--transition-base);
}

.skill-item:hover .skill-icon {
  transform: scale(1.15);
}

/* ── Newsletter ── */
.newsletter-section {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.newsletter-content {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-content h2 {
  margin-bottom: var(--space-sm);
}

.newsletter-content p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
}

.newsletter-form input {
  flex: 1;
  padding: .7rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: .9rem;
  transition: border-color var(--transition-fast);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.newsletter-form input::placeholder {
  color: var(--color-text-muted);
}

/* ── Filters ── */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  justify-content: center;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-top: var(--space-4xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand p {
  color: var(--color-text-secondary);
  font-size: .85rem;
  margin-top: var(--space-md);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: var(--space-sm);
}

.footer-col ul a {
  color: var(--color-text-secondary);
  font-size: .85rem;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: var(--color-text-muted);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  color: var(--color-primary);
  transform: translateY(-1px);
}

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-toast);
  background: var(--cookie-bg);
  border-top: 1px solid var(--color-border);
  padding: var(--space-md) 0;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
  box-shadow: 0 -2px 12px rgba(0,0,0,.06);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.cookie-text {
  font-size: .85rem;
  color: var(--color-text-secondary);
  flex: 1;
}

.cookie-text a {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* ── Legal Content ── */
.legal-content {
  padding-top: calc(72px + var(--space-3xl));
}

.legal-content h1 {
  margin-bottom: var(--space-2xl);
}

.legal-content h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  font-size: 1.3rem;
}

.legal-content p,
.legal-content li {
  color: var(--color-text-secondary);
  line-height: 1.9;
}

.legal-content ul {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
}

.legal-content li {
  margin-bottom: var(--space-sm);
}

/* ═══════════════════════════════
   Animations — Subtle, refined
   ═══════════════════════════════ */

.page-content {
  animation: pageEnter .5s cubic-bezier(.16,1,.3,1);
}

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

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

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

.animate-in {
  animation: slideUp .5s ease-out both;
}

.animate-delay-1 { animation-delay: .05s; }
.animate-delay-2 { animation-delay: .1s; }
.animate-delay-3 { animation-delay: .15s; }
.animate-delay-4 { animation-delay: .2s; }

/* ── Stats ── */
.stats-row {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--color-primary);
  /* Solid color instead of animated gradient — cleaner */
  -webkit-text-fill-color: unset;
  background: none;
}

.stat-label {
  font-size: .8rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 500;
}

/* ── About ── */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  margin-bottom: var(--space-4xl);
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  object-fit: cover;
}

.about-image-wrapper::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: calc(var(--radius-xl) + 6px);
  border: 1px solid var(--color-border);
  z-index: -1;
}

/* Reading time */
.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.reading-time::before {
  content: '📖';
  font-size: .8em;
}

/* ── Enhanced Card Hover — Subtle ── */
.glass-card {
  position: relative;
  overflow: hidden;
}


/* Timeline enhanced hover */
.timeline-item:hover .timeline-dot {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px var(--color-primary-light);
}

/* Gradient text — NO animation for minimal look */
.gradient-text {
  background-size: 100% auto;
}

/* ── Hero Particles — Hidden in light, subtle in dark ── */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

[data-theme="light"] .hero-particles {
  display: none;
}

@keyframes particleFloat {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: .4; }
  90% { opacity: .4; }
  100% { transform: translateY(-100vh) translateX(60px); opacity: 0; }
}

.hero-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 10s linear infinite;
}

.hero-particle:nth-child(1) { left: 10%; bottom: 0; animation-delay: 0s; animation-duration: 9s; }
.hero-particle:nth-child(2) { left: 30%; bottom: 0; animation-delay: 2s; animation-duration: 11s; width: 2px; height: 2px; background: var(--color-accent); }
.hero-particle:nth-child(3) { left: 50%; bottom: 0; animation-delay: 4s; animation-duration: 8s; width: 4px; height: 4px; }
.hero-particle:nth-child(4) { left: 70%; bottom: 0; animation-delay: 6s; animation-duration: 12s; width: 2px; height: 2px; background: var(--color-accent); }
.hero-particle:nth-child(5) { left: 85%; bottom: 0; animation-delay: 3s; animation-duration: 10s; }
.hero-particle:nth-child(6) { left: 20%; bottom: 0; animation-delay: 7s; animation-duration: 13s; width: 2px; height: 2px; }
.hero-particle:nth-child(7) { left: 60%; bottom: 0; animation-delay: 9s; animation-duration: 9s; width: 3px; height: 3px; }
.hero-particle:nth-child(8) { left: 40%; bottom: 0; animation-delay: 5s; animation-duration: 11s; width: 2px; height: 2px; background: var(--color-accent); }

/* ── Section Entrance ── */
.section {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}

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

.hero {
  opacity: 1 !important;
  transform: none !important;
}

/* ── Scroll to Top ── */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: var(--z-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ═══════════════════════════════
   Responsive
   ═══════════════════════════════ */

@media (max-width: 1024px) {
  .hero-grid { display: none; }
  .hero-split-inner { grid-template-columns: 1fr; }
  .hero-photo-wrapper { order: -1; }
  .hero-photo { width: 200px; height: 200px; }
  .about-intro { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: var(--space-xl);
    gap: var(--space-sm);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.05rem; padding: var(--space-md) var(--space-lg); width: 100%; }
  .mobile-menu-toggle { display: flex; }
  .hero { min-height: auto; padding-top: calc(72px + var(--space-2xl)); padding-bottom: var(--space-3xl); }
  .hero h1 { font-size: 1.8rem; }
  .cards-grid, .cards-grid-2 { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .cookie-content { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-bottom { flex-direction: column; gap: var(--space-md); text-align: center; }
  .stats-row { justify-content: center; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .hero-particles { display: none; }
}

@media (max-width: 480px) {
  :root { font-size: 14px; }
  .container { padding: 0 var(--space-md); }
}

@media print {
  .navbar, .footer, .cookie-banner, .scroll-top, .bg-orbs, .newsletter-section, .hero-particles {
    display: none !important;
  }
  body::before { display: none; }
  body { background: #fff; color: #000; }
  .hero { min-height: auto; padding-top: var(--space-xl); }
}
