/* ═══════════════════════════════════════════════════════
   AMALIO GÓMEZ — Modern Portfolio
   Design: Dark luxury with glassmorphism & 3D depth
═══════════════════════════════════════════════════════ */

/* ─── Reset & Base ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color System */
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.08);
  
  --text-primary: #f0f0f5;
  --text-secondary: #8b8b9e;
  --text-muted: #555568;
  
  --accent: #00e5a0;
  --accent-blue: #5b7fff;
  --accent-purple: #a855f7;
  --accent-glow: rgba(0, 229, 160, 0.15);
  --gradient-main: linear-gradient(135deg, #00e5a0 0%, #5b7fff 50%, #a855f7 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(0, 229, 160, 0.1), rgba(91, 127, 255, 0.1));
  
  /* Typography */
  --font-heading: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  
  /* Spacing */
  --section-padding: 120px 8%;
  --border-radius: 16px;
  --radius-sm: 8px;
  --radius-pill: 50px;
  
  /* Transitions */
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent);
  color: var(--bg-primary);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ─── 3D Canvas Background ─── */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ─── Cursor Glow ─── */
.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 160, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* ─── Section Common ─── */
section {
  position: relative;
  z-index: 2;
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-main);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(0, 229, 160, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 229, 160, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-2px);
}

.btn i {
  font-size: 1.1em;
  transition: transform 0.3s ease;
}

.btn:hover i {
  transform: translateX(3px);
}

/* ═══════════════ NAVBAR ═══════════════ */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 8%;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

header.scrolled {
  padding: 12px 8%;
  border-bottom-color: var(--border-glass);
  background: rgba(10, 10, 15, 0.9);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.logo-bracket {
  color: var(--accent);
  font-weight: 300;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active {
  background: var(--bg-glass);
  color: var(--accent);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════ HERO ═══════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero-greeting {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 4px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 20px;
}

.name-line {
  display: block;
}

.name-line.accent {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-titles {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  min-height: 34px;
}

.typed-cursor {
  color: var(--accent);
  animation: blink 1s infinite;
  font-weight: 200;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-desc em {
  color: var(--accent);
  font-style: italic;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-social {
  display: flex;
  gap: 16px;
}

.hero-social a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: var(--transition);
}

.hero-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-3px);
}

/* Hero Image */
.hero-image {
  display: flex;
  justify-content: center;
  position: relative;
}

.image-wrapper {
  position: relative;
  width: 480px;
  height: 480px;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  border: 3px solid rgba(0, 229, 160, 0.2);
}

.image-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 160, 0.15) 0%, transparent 70%);
  z-index: 1;
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 1; }
}

.image-ring {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  border: 1px dashed rgba(91, 127, 255, 0.2);
  z-index: 1;
  animation: rotate-ring 30s linear infinite;
}

@keyframes rotate-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  z-index: 3;
  animation: float 6s ease-in-out infinite;
  white-space: nowrap;
}

.floating-badge i {
  font-size: 1.1rem;
  color: var(--accent);
}

.badge-1 {
  top: 10%;
  right: -10%;
  animation-delay: 0s;
}

.badge-2 {
  bottom: 15%;
  right: -5%;
  animation-delay: 2s;
}

.badge-3 {
  bottom: 5%;
  left: 5%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-heading);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ═══════════════ ABOUT ═══════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-img-wrapper {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1;
  max-width: 400px;
  margin: 0 auto;
  border: 3px solid rgba(0, 229, 160, 0.15);
  box-shadow: 0 0 60px rgba(0, 229, 160, 0.08);
}

.about-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  transition: transform 0.6s ease;
}

.about-img-wrapper:hover img {
  transform: scale(1.05);
}

.about-img-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 229, 160, 0.08), rgba(91, 127, 255, 0.06));
  pointer-events: none;
}

.about-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
  text-align: justify;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  transition: var(--transition);
}

.info-card:hover {
  border-color: rgba(0, 229, 160, 0.2);
  background: rgba(0, 229, 160, 0.05);
}

.info-card i {
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
}

.info-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-heading);
}

.info-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* ═══════════════ BLOG ═══════════════ */
.blog {
  background: var(--bg-secondary);
}

.blog-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--gradient-main);
  color: var(--bg-primary);
  border-color: transparent;
}

.filter-btn i {
  font-size: 1.1em;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 160, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px var(--accent-glow);
}

.blog-card.hidden {
  display: none;
}

.card-media {
  position: relative;
  overflow: hidden;
}

.card-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.card-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.card-image {
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card-image-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 229, 160, 0.08) 0%, rgba(91, 127, 255, 0.08) 100%);
}

.card-image-icon > i {
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.8;
}

.blog-card:hover .card-image img {
  transform: scale(1.08);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
  backdrop-filter: blur(10px);
}

.video-badge {
  background: rgba(255, 0, 0, 0.85);
  color: #fff;
}

.project-badge {
  background: rgba(0, 229, 160, 0.85);
  color: var(--bg-primary);
}

.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.card-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tech-tag {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  font-size: 0.75rem;
  font-family: var(--font-heading);
  color: var(--accent);
  font-weight: 500;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-glass);
}

.card-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}

.card-link:hover {
  gap: 8px;
}

.blog-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
}

/* ─── Blog Posts (Full Articles) ─── */
.blog-posts-header {
  text-align: center;
  margin-top: 80px;
  margin-bottom: 48px;
  padding-top: 60px;
  border-top: 1px solid var(--border-glass);
}

.blog-posts-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.blog-posts-title i {
  color: var(--accent);
  font-size: 1.2em;
}

.blog-posts-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.blog-post {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 40px;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
}

.blog-post:hover {
  border-color: rgba(0, 229, 160, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 40px var(--accent-glow);
  transform: translateY(-4px);
}

.blog-post.reverse {
  grid-template-columns: 1fr 400px;
}

.blog-post.reverse .post-image {
  order: 2;
}

.blog-post.reverse .post-content {
  order: 1;
}

.post-image {
  position: relative;
  height: 100%;
  min-height: 300px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-post:hover .post-image img {
  transform: scale(1.05);
}

.post-date-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 14px;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  z-index: 2;
}

.post-day {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.post-month {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.post-content {
  padding: 36px 36px 36px 0;
  display: flex;
  flex-direction: column;
}

.blog-post.reverse .post-content {
  padding: 36px 0 36px 36px;
}

.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.post-tag {
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  font-size: 0.75rem;
  font-family: var(--font-heading);
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.post-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.post-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 14px;
  text-align: justify;
}

.post-body:last-of-type {
  margin-bottom: 24px;
}

.post-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
}

.post-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  background: var(--bg-glass);
  transition: var(--transition);
}

.post-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-2px);
}

.post-link i {
  font-size: 1.15em;
}

.post-link-yt {
  border-color: rgba(255, 0, 0, 0.3);
  color: #ff4444;
}

.post-link-yt:hover {
  border-color: #ff4444;
  color: #fff;
  background: rgba(255, 0, 0, 0.15);
}

/* Post icon placeholder (for projects without screenshot) */
.post-image-icon {
  background: linear-gradient(135deg, rgba(0, 229, 160, 0.06) 0%, rgba(91, 127, 255, 0.06) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-icon-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.post-icon-display i {
  font-size: 4.5rem;
  color: var(--accent);
  opacity: 0.7;
}

.post-icon-display span {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-blue);
  opacity: 0.5;
  letter-spacing: 6px;
}

/* ═══════════════ PORTFOLIO ═══════════════ */
.portfolio-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.mosaic-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 16/11;
  cursor: pointer;
  display: block;
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.mosaic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10, 10, 15, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition);
}

.mosaic-item:hover .mosaic-overlay {
  opacity: 1;
}

.mosaic-item:hover img {
  transform: scale(1.1);
}

.mosaic-tag {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.mosaic-overlay h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.mosaic-overlay p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ═══════════════ PLATFORMS ═══════════════ */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
}

.platform-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  background: rgba(0, 229, 160, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.platform-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gradient-subtle);
  border: 1px solid var(--border-glass);
  margin-bottom: 16px;
  font-size: 1.5rem;
  color: var(--accent);
  transition: var(--transition);
}

.platform-icon svg {
  stroke: var(--accent);
}

.platform-card:hover .platform-icon {
  background: var(--accent-glow);
  border-color: var(--accent);
  transform: scale(1.1);
}

.platform-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.platform-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ═══════════════ CONTACT ═══════════════ */
.contact-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  padding: 14px 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(0, 229, 160, 0.03);
  box-shadow: 0 0 0 3px rgba(0, 229, 160, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.btn-submit {
  align-self: flex-start;
  margin-top: 8px;
}

/* ═══════════════ FOOTER ═══════════════ */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-glass);
  padding: 60px 8% 0;
  background: var(--bg-secondary);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 320px;
}

.footer-links h4,
.footer-social-col h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 4px 0;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ═══════════════ ANIMATIONS ═══════════════ */

/* Reveal on Scroll */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1024px) {
  section {
    padding: 80px 6%;
  }
  
  .hero-content {
    gap: 40px;
  }
  
  .image-wrapper {
    width: 380px;
    height: 380px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 70px 5%;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(30px);
    gap: 8px;
    padding: 20px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid var(--border-glass);
  }
  
  .navbar.active {
    right: 0;
  }
  
  .nav-link {
    font-size: 1.1rem;
    padding: 14px 20px;
    width: 100%;
    text-align: left;
  }
  
  .hero {
    padding-top: 80px;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-desc {
    text-align: center;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-social {
    justify-content: center;
  }
  
  .hero-image {
    order: -1;
  }
  
  .image-wrapper {
    width: 300px;
    height: 300px;
  }
  
  .floating-badge {
    display: none;
  }
  
  .scroll-indicator {
    display: none;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-img {
    display: flex;
    justify-content: center;
  }
  
  .about-img-wrapper {
    max-width: 300px;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-post {
    grid-template-columns: 1fr;
  }
  
  .blog-post.reverse {
    grid-template-columns: 1fr;
  }
  
  .blog-post.reverse .post-image {
    order: unset;
  }
  
  .blog-post.reverse .post-content {
    order: unset;
  }
  
  .post-image {
    min-height: 220px;
    max-height: 280px;
  }
  
  .post-content {
    padding: 24px !important;
  }
  
  .blog-post.reverse .post-content {
    padding: 24px !important;
  }
  
  .portfolio-mosaic {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand p {
    max-width: 100%;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-links a:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .platforms-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .blog-filters {
    gap: 6px;
  }
  
  .filter-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

@media (max-width: 340px) {
  .platforms-grid {
    grid-template-columns: 1fr;
  }
}