/* ==========================================
   FIKREMICHAL MAMO - DATA ANALYST PORTFOLIO
   MOBILE-FIRST CSS ARCHITECTURE
   ========================================== */

/* === BASE RESET & VARIABLES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-black: #0a0a0a;
  --color-white: #ffffff;
  --color-gray: #666666;
  --color-light-gray: #f5f5f5;
  --color-accent: #000;
  --color-success: #22c55e;
  --font-main: "Archivo", sans-serif;

  /* Spacing */
  --container-padding: 1rem;
  --section-padding: 4rem 0;
}

html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

body {
  font-family: var(--font-main);
  background: var(--color-white);
  color: var(--color-black);
  line-height: 1.5;
  overflow-x: hidden;
}

/* === CONTAINER - Mobile First === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* === SCROLL PROGRESS === */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #000 0%, #333 100%);
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* === NAVIGATION REPLACED BY TAILWIND === */
/* See index.html for classes */

/* === HERO SECTION - Mobile First === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 2rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
}

.hero-main {
  position: relative;
  z-index: 2;
  text-align: center;
  order: 2; /* Image first on mobile, or text first? Let's keep text first for now */
}

/* Hero image styles now handled by Tailwind CSS in HTML */

/* Specific desktop overrides */
@media (min-width: 968px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    text-align: left;
  }

  .hero-main {
    text-align: left;
    order: 1;
  }

  .hero-cta {
    align-items: flex-start;
    flex-direction: row;
  }

  .quick-skills {
    justify-content: flex-start;
  }
}

/* Role Badge */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-black);
  color: white;
  padding: 0.4rem 0.8rem 0.4rem 0.5rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.6s ease-out 0.2s forwards;
}

.role-badge .icon {
  background: white;
  color: black;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Name */
.hero-name {
  font-weight: 900;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: slideUp 0.7s ease-out 0.3s forwards;
}

/* Headline */
.hero-headline {
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--color-gray);
  opacity: 0;
  animation: slideUp 0.7s ease-out 0.4s forwards;
}

.hero-headline .highlight {
  color: var(--color-black);
}

/* Summary */
.hero-summary {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-gray);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: slideUp 0.7s ease-out 0.5s forwards;
}

/* CTA Buttons - Mobile Stack */
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: slideUp 0.7s ease-out 0.6s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  width: 100%;
}

.btn-primary {
  background: var(--color-black);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--color-black);
  border: 2px solid var(--color-black);
}

.btn-secondary:hover {
  background: var(--color-black);
  color: var(--color-white);
}

/* Quick Skills */
.quick-skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  opacity: 0;
  animation: slideUp 0.7s ease-out 0.7s forwards;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.8rem;
  background: var(--color-light-gray);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.skill-pill:hover {
  background: var(--color-black);
  color: white;
}

.skill-pill .dot {
  width: 5px;
  height: 5px;
  background: var(--color-black);
  border-radius: 50%;
}

.skill-pill:hover .dot {
  background: white;
}

/* Stats Card */
.hero-stats {
  background: var(--color-black);
  color: white;
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  animation: cardReveal 0.8s ease-out 0.5s forwards;
  width: 100%;
  order: 3;
  grid-column: 1 / -1; /* Span full width at bottom */
}

@media (min-width: 968px) {
  .hero-stats {
    grid-column: auto; /* Return to normal flow if we want it side-by-side or different */
    /* Currently it's at the bottom, so full width is good, or we can make a 3-column grid */
    margin-top: 2rem;
  }
}

@keyframes cardReveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-stats::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 60%
  );
}

.stats-header {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

.stat-item {
  margin-bottom: 1.5rem;
  position: relative;
}

.stat-item:last-child {
  margin-bottom: 0;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.stat-number span {
  font-size: 1.25rem;
  opacity: 0.7;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.8;
}

.stat-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 1.25rem 0;
}

/* Available Badge */
.available-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(34, 197, 94, 0.2);
  color: var(--color-success);
  padding: 0.5rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 1rem;
}

.available-badge .dot {
  width: 7px;
  height: 7px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Scroll Indicator - Hidden on mobile */
.scroll-indicator {
  display: none;
}

/* === SECTION ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95) translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.stagger-children .stagger-item {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-children.visible .stagger-item {
  opacity: 1;
  transform: translateY(0);
}

/* === ABOUT SECTION - Mobile First === */
.about {
  padding: var(--section-padding);
  background: var(--color-light-gray);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.section-title {
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-gray);
}

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-story {
  font-size: 1rem;
  line-height: 1.7;
}

.about-story p {
  margin-bottom: 1.25rem;
}

.highlight {
  font-weight: 700;
  color: var(--color-black);
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.1) 60%);
}

.principles-list {
  list-style: none;
}

.principle-item {
  padding: 1.25rem;
  background: white;
  border-radius: 14px;
  margin-bottom: 0.75rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.principle-item h4 {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.principle-item p {
  color: var(--color-gray);
  line-height: 1.5;
  font-size: 0.9rem;
}

/* === PROJECTS SECTION - Mobile First === */
.projects {
  padding: var(--section-padding);
  background: white;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-light-gray);
  border-radius: 16px;
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-black);
  opacity: 0;
  transition: opacity 0.7s ease;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover * {
  color: white;
  position: relative;
  z-index: 1;
}

.project-card:hover .tool-tag {
  background: white;
  color: black;
}

.project-number {
  font-weight: 900;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  opacity: 0.15;
}

.project-card:hover .project-number {
  opacity: 0.3;
}

.project-content h3 {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.project-context {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--color-gray);
}

.project-card:hover .project-context {
  color: rgba(255, 255, 255, 0.8);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.meta-item h5 {
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
  color: var(--color-gray);
}

.project-card:hover .meta-item h5 {
  color: rgba(255, 255, 255, 0.6);
}

.meta-item p {
  font-size: 0.85rem;
  font-weight: 500;
}

.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tool-tag {
  padding: 0.35rem 0.7rem;
  background: var(--color-black);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 50px;
  transition: all 0.7s ease;
}

/* === SKILLS SECTION - Mobile First === */
.skills {
  padding: var(--section-padding);
  background: var(--color-black);
  color: white;
}

.skills .section-title {
  color: white;
}

.skills .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.skill-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.skill-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.skill-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.skill-card h3 {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.skill-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.skill-list {
  list-style: none;
}

.skill-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

.skill-list li:last-child {
  border-bottom: none;
}

/* === CERTIFICATES SECTION - Mobile First === */
.certificates {
  padding: var(--section-padding);
  background: var(--color-light-gray);
  overflow: hidden;
}

.certificates .section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.certificates .section-title {
  margin-bottom: 0.4rem;
}

.certificates .section-subtitle {
  max-width: 100%;
  margin: 0 auto;
}

.certificate-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.certificate-wrapper::before,
.certificate-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px;
  z-index: 2;
  pointer-events: none;
}

.certificate-wrapper::before {
  left: 0;
  background: linear-gradient(
    90deg,
    var(--color-light-gray) 0%,
    transparent 100%
  );
}

.certificate-wrapper::after {
  right: 0;
  background: linear-gradient(
    270deg,
    var(--color-light-gray) 0%,
    transparent 100%
  );
}

.certificate-track {
  display: flex;
  gap: 1rem;
  animation: scrollCertificates 80s linear infinite;
  width: max-content;
}

.certificate-track:hover {
  animation-play-state: paused;
}

@keyframes scrollCertificates {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.certificate-card {
  flex-shrink: 0;
  width: 240px;
  background: white;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.certificate-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.certificate-icon {
  width: 44px;
  height: 44px;
  background: var(--color-black);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.certificate-card h4 {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

.certificate-card p {
  font-size: 0.75rem;
  color: var(--color-gray);
}

.certificate-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.6rem;
  padding: 0.25rem 0.5rem;
  background: var(--color-light-gray);
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--color-gray);
}

.certificate-card:hover .certificate-badge {
  background: var(--color-black);
  color: white;
}

.certificates-count {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-gray);
}

.certificates-count strong {
  color: var(--color-black);
}

/* === FOOTER - Mobile First === */
footer {
  padding: 4rem 0 2rem;
  background: white;
}

.footer-cta-section {
  text-align: center;
  margin-bottom: 3rem;
}

.footer-cta-section h2 {
  font-weight: 900;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.footer-cta-section p {
  font-size: 1rem;
  color: var(--color-gray);
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.footer-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.footer-links-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e5e5e5;
}

.footer-col h3 {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: var(--color-gray);
  text-decoration: none;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--color-black);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e5e5;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-gray);
}

/* ==========================================
   TABLET BREAKPOINT (min-width: 640px)
   ========================================== */
@media (min-width: 640px) {
  :root {
    --container-padding: 1.5rem;
    --section-padding: 5rem 0;
  }

  /* Navigation */
  .nav-menu {
    order: 2;
    width: auto;
    flex-wrap: nowrap;
  }

  .nav-menu li a {
    padding: 0.45rem 0.8rem;
    font-size: 0.75rem;
  }

  /* Hero */
  .hero {
    padding-top: 100px;
  }

  .hero-name {
    font-size: 2.5rem;
  }

  .hero-headline {
    font-size: 1.5rem;
  }

  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }

  .btn {
    width: auto;
    padding: 1rem 1.75rem;
  }

  /* Stats */
  .stat-number {
    font-size: 2.5rem;
  }

  /* Sections */
  .section-title {
    font-size: 2.5rem;
  }

  /* Projects */
  .project-card {
    flex-direction: row;
    gap: 2rem;
    padding: 2rem;
  }

  .project-number {
    font-size: 2.5rem;
  }

  /* Footer */
  .footer-cta-section h2 {
    font-size: 2.25rem;
  }

  .footer-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .footer-links-grid {
    flex-direction: row;
    justify-content: space-between;
  }

  /* Certificates */
  .certificate-card {
    width: 260px;
    padding: 1.5rem;
  }

  .certificate-wrapper::before,
  .certificate-wrapper::after {
    width: 80px;
  }
}

/* ==========================================
   DESKTOP BREAKPOINT (min-width: 968px)
   ========================================== */
@media (min-width: 968px) {
  :root {
    --container-padding: 3rem;
    --section-padding: 8rem 0;
  }

  /* Navigation */
  nav {
    padding: 1.5rem 0;
  }

  nav .container {
    flex-wrap: nowrap;
  }

  .nav-menu li a {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .nav-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  /* Hero */
  .hero {
    padding-top: 80px;
    padding-bottom: 0;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
  }

  .hero-main {
    text-align: left;
  }

  .hero-name {
    font-size: clamp(2.5rem, 5vw, 4rem);
  }

  .hero-headline {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
  }

  .hero-summary {
    font-size: 1.1rem;
    max-width: 500px;
  }

  .hero-cta {
    justify-content: flex-start;
  }

  .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .quick-skills {
    justify-content: flex-start;
  }

  .skill-pill {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  /* Stats */
  .hero-stats {
    padding: 3rem;
    border-radius: 24px;
  }

  .stat-number {
    font-size: 3rem;
  }

  .stat-number span {
    font-size: 1.5rem;
  }

  /* Scroll Indicator - Show on desktop */
  .scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 1.2s forwards;
    color: var(--color-gray);
  }

  @keyframes fadeIn {
    to {
      opacity: 0.6;
    }
  }

  .scroll-indicator .arrow {
    width: 20px;
    height: 30px;
    border: 2px solid var(--color-gray);
    border-radius: 10px;
    position: relative;
  }

  .scroll-indicator .arrow::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-gray);
    border-radius: 2px;
    animation: scrollBounce 2s infinite;
  }

  @keyframes scrollBounce {
    0%,
    100% {
      transform: translateX(-50%) translateY(0);
      opacity: 1;
    }
    50% {
      transform: translateX(-50%) translateY(6px);
      opacity: 0.3;
    }
  }

  /* Section Headers */
  .section-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
  }

  .section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
  }

  .section-subtitle {
    font-size: 1.1rem;
    max-width: 400px;
  }

  /* About */
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .about-story {
    font-size: 1.1rem;
  }

  .principle-item {
    padding: 1.5rem;
  }

  .principle-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  }

  /* Projects */
  .projects-grid {
    gap: 2rem;
  }

  .project-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    padding: 2.5rem;
    border-radius: 20px;
  }

  .project-card:hover {
    transform: translateY(-5px);
  }

  .project-number {
    font-size: 3rem;
  }

  .project-content h3 {
    font-size: 1.5rem;
  }

  .project-meta {
    gap: 2rem;
  }

  /* Skills */
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
  }

  .skill-card {
    padding: 2rem;
    border-radius: 20px;
  }

  .skill-card:hover {
    transform: translateY(-5px);
  }

  .skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }

  /* Certificates */
  .certificate-card {
    width: 280px;
  }

  .certificate-wrapper::before,
  .certificate-wrapper::after {
    width: 100px;
  }

  /* Footer */
  footer {
    padding: 8rem 0 4rem;
  }

  .footer-cta-section {
    margin-bottom: 6rem;
  }

  .footer-cta-section h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
  }

  .footer-cta-section p {
    font-size: 1.1rem;
    max-width: 600px;
  }

  .footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    padding-top: 4rem;
  }

  .footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    font-size: 0.875rem;
  }
}

/* ==========================================
   LARGE DESKTOP (min-width: 1200px)
   ========================================== */
@media (min-width: 1200px) {
  .hero-name {
    font-size: 4rem;
  }

  .hero-headline {
    font-size: 2.5rem;
  }

  .hero-stats {
    padding: 3.5rem;
  }

  .stat-number {
    font-size: 3.5rem;
  }
}

/* === TOUCH DEVICE OPTIMIZATIONS === */
@media (hover: none) {
  .project-card:hover::before,
  .skill-card:hover,
  .principle-item:hover,
  .certificate-card:hover {
    transform: none;
  }

  .btn:hover {
    transform: none;
  }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .certificate-track {
    animation: none;
  }
}
