/* ============================================
   VIDEO EDITOR PORTFOLIO — STYLE SHEET
   Color Palette:
     Base BG:    #f8f2ef
     Secondary:  #bed1e3, #93aeca, #E7EBEE
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Bodoni+Moda&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --bg-base: #f8f2ef;
  --bg-subtle: #E7EBEE;
  --accent-light: #bed1e3;
  --accent: #93aeca;
  --accent-dark: #6b8db8;
  --text-primary: #2c2c2c;
  --text-secondary: #5a5a5a;
  --text-muted: #8a8a8a;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(147, 174, 202, 0.12);
  --shadow-md: 0 4px 20px rgba(147, 174, 202, 0.18);
  --shadow-lg: 0 8px 40px rgba(147, 174, 202, 0.22);
  --shadow-hover: 0 12px 48px rgba(147, 174, 202, 0.28);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ---------- Reset & Defaults ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: pageLoad 0.8s ease forwards;
}

@keyframes pageLoad {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img, video {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: var(--font-body);
}

input, textarea {
  font-family: var(--font-body);
  border: none;
  outline: none;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: linear-gradient(135deg, rgba(190, 209, 227, 0.5), rgba(147, 174, 202, 0.3));
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(147, 174, 202, 0.15);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.section-label:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(147, 174, 202, 0.25);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  background: linear-gradient(135deg, #2c2c2c, #93aeca);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.8;
}

/* Fade-in animation for scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.0s cubic-bezier(0.34, 1.56, 0.64, 1), 
              transform 1.0s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(248, 242, 239, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Bodoni Moda', var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--font-heading) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: var(--white) !important;
  background: var(--accent);
  padding: 10px 24px !important;
  border-radius: 100px;
  box-shadow: 0 4px 16px rgba(147, 174, 202, 0.3);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(147, 174, 202, 0.4);
  color: var(--white) !important;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 4px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

/* Decorative shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
  filter: blur(60px);
  pointer-events: none;
}

.hero-shape-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-light);
  top: -120px;
  right: -100px;
}

.hero-shape-2 {
  width: 350px;
  height: 350px;
  background: var(--accent);
  bottom: -80px;
  left: -60px;
}

.hero-shape-3 {
  width: 200px;
  height: 200px;
  background: var(--bg-subtle);
  top: 40%;
  left: 30%;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  animation: heroFadeIn 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes heroFadeIn {
  0% { 
    opacity: 0; 
    transform: translateY(60px);
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-dark);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6fcf97;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text-primary);
  animation: slideInLeft 1.0s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s forwards;
  opacity: 0;
  background: linear-gradient(
    135deg,
    #2c2c2c 0%,
    #2c2c2c 45%,
    #93aeca 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(44, 44, 44, 0.1);
  letter-spacing: -1px;
}

.hero-title .highlight {
  background: linear-gradient(
    135deg,
    #93aeca 0%,
    #6b8db8 50%,
    #bed1e3 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.8;
  animation: slideInUp 1.0s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s forwards;
  opacity: 0;
  letter-spacing: 0.3px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: slideInUp 1.0s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards;
  opacity: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #93aeca, #6b8db8);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(147, 174, 202, 0.35);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #6b8db8, #4a6a9a);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 40px rgba(147, 174, 202, 0.5);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  border: 2px solid transparent;
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

/* Hero image area */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  animation: heroImgFade 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
  opacity: 0;
}

@keyframes heroImgFade {
  0% { 
    opacity: 0; 
    transform: scale(0.85) translateY(40px) rotateY(15deg);
    filter: blur(10px);
  }
  to { 
    opacity: 1; 
    transform: scale(1) translateY(0) rotateY(0deg);
    filter: blur(0px);
  }
}

.hero-img-wrapper {
  position: relative;
  width: 380px;
  height: 460px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(147, 174, 202, 0.35);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-img-wrapper:hover {
  box-shadow: 0 30px 80px rgba(147, 174, 202, 0.45);
  transform: translateY(-8px);
}

.hero-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* floating stats cards around the hero image */
.hero-float-card {
  position: absolute;
  background: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(147, 174, 202, 0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 4s ease-in-out infinite, fadeInScale 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 3;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-float-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(147, 174, 202, 0.35);
}

.hero-float-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.hero-float-card .info strong {
  display: block;
  font-size: 1rem;
  font-family: var(--font-heading);
}

.hero-float-card .info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.float-card-1 {
  top: 30px;
  left: -40px;
  animation-delay: 0s;
}

.float-card-1 .icon {
  background: rgba(190, 209, 227, 0.3);
  color: var(--accent-dark);
}

.float-card-2 {
  bottom: 50px;
  right: -10px;
  animation-delay: 1.5s;
}

.float-card-2 .icon {
  background: rgba(111, 207, 151, 0.2);
  color: #4caf88;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  background: var(--bg-subtle);
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.about-img-area {
  position: relative;
}

.about-img-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.about-img-card video {
  width: 100%;
  border-radius: var(--radius-lg);
}

.about-accent-box {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.5;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.about-stat {
  text-align: center;
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  min-width: 120px;
  transition: var(--transition);
}

.about-stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.about-stat .number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.about-stat .label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.9;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.about-tags span {
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: var(--transition);
}

.about-tags span:hover {
  background: var(--accent);
  color: var(--white);
}

/* ============================================
   PORTFOLIO / WORK SECTION
   ============================================ */
.portfolio .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.portfolio .section-subtitle {
  margin: 0 auto;
}

/* Filter tabs */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--white);
  padding: 10px 24px;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(147, 174, 202, 0.3);
}

/* Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

.portfolio-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.portfolio-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(147, 174, 202, 0.35);
}

.portfolio-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-subtle);
}

.portfolio-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-card:hover .portfolio-thumb video {
  transform: scale(1.05);
}

.portfolio-thumb .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 44, 44, 0.25);
  opacity: 0;
  transition: var(--transition);
}

.portfolio-card:hover .play-overlay {
  opacity: 1;
}

.play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.play-btn svg {
  width: 22px;
  height: 22px;
  fill: var(--accent-dark);
  margin-left: 3px;
}

.play-btn:hover {
  transform: scale(1.1);
}

.portfolio-info {
  padding: 22px 24px;
}

.portfolio-info .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-dark);
  background: rgba(190, 209, 227, 0.35);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.portfolio-info h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.portfolio-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   VIDEO MODAL (Lightbox)
   ============================================ */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.video-modal.active {
  opacity: 1;
  pointer-events: all;
}

.video-modal-content {
  width: 90%;
  max-width: 900px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transform: scale(0.9);
  transition: var(--transition);
}

.video-modal.active .video-modal-content {
  transform: scale(1);
}

.video-modal-content video {
  width: 100%;
  border-radius: var(--radius-lg);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  border: none;
}

.modal-close:hover {
  background: var(--accent);
  color: var(--white);
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills {
  background: var(--bg-subtle);
}

.skills .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.skills .section-subtitle {
  margin: 0 auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.skill-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-light), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.skill-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(190,209,227,0.3), rgba(147,174,202,0.15));
  color: var(--accent-dark);
  transition: var(--transition);
}

.skill-card:hover .skill-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  transform: scale(1.1);
}

.skill-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.skill-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.services .section-subtitle {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.service-card .service-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(190, 209, 227, 0.3);
  line-height: 1;
  margin-bottom: 16px;
}

.service-card .service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--accent-light), rgba(147,174,202,0.2));
  color: var(--accent-dark);
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.service-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-top: 18px;
  transition: var(--transition);
}

.service-card .learn-more:hover {
  gap: 12px;
  color: var(--accent);
}

/* ============================================
   CONTACT SECTION — Cute PC Design
   ============================================ */
.contact {
  background: var(--bg-subtle);
  overflow: hidden;
}

.pc-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 60px;
}

/* --- Monitor --- */
.pc-monitor {
  position: relative;
  width: 100%;
  max-width: 680px;
  background: var(--white);
  border-radius: 24px;
  padding: 14px;
  box-shadow:
    0 8px 40px rgba(147, 174, 202, 0.18),
    inset 0 0 0 2px rgba(190, 209, 227, 0.25);
}

.pc-webcam {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-light);
  margin: 0 auto 10px;
}

.pc-screen {
  background: linear-gradient(145deg, #f0f4f8, var(--bg-base));
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(190, 209, 227, 0.3);
}

/* Window title bar */
.pc-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--white);
  border-bottom: 1px solid rgba(190, 209, 227, 0.25);
}

.pc-window-dots {
  display: flex;
  gap: 6px;
}

.pc-window-dots .dot-red,
.pc-window-dots .dot-yellow,
.pc-window-dots .dot-green {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red    { background: #ff6b6b; }
.dot-yellow { background: #ffd93d; }
.dot-green  { background: #6bcb77; }

.pc-window-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Form inside the screen */
.pc-form {
  padding: 28px 28px 24px;
}

.pc-form .form-group {
  margin-bottom: 16px;
}

.pc-form .form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.pc-form .form-group input,
.pc-form .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(190, 209, 227, 0.35);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--white);
  transition: var(--transition);
}

.pc-form .form-group input:focus,
.pc-form .form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(147, 174, 202, 0.12);
}

.pc-form .form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.pc-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pc-form .submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(147, 174, 202, 0.35);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  border: none;
}

.pc-form .submit-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(147, 174, 202, 0.45);
}

/* --- Monitor Stand --- */
.pc-stand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pc-stand-neck {
  width: 40px;
  height: 30px;
  background: linear-gradient(180deg, #d4dbe3, #bfc9d4);
  border-radius: 0 0 4px 4px;
}

.pc-stand-base {
  width: 120px;
  height: 10px;
  background: linear-gradient(180deg, #c8d1db, #b8c3cf);
  border-radius: 0 0 14px 14px;
}

/* --- Keyboard --- */
.pc-keyboard {
  margin-top: 16px;
  background: var(--white);
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(147, 174, 202, 0.15);
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 380px;
  width: 100%;
}

.kb-keys-row {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.kb-key {
  border-radius: 4px;
  background: var(--bg-subtle);
  border: 1px solid rgba(190, 209, 227, 0.3);
}

.kb-key.small {
  width: 28px;
  height: 20px;
}

.kb-key.spacebar {
  width: 140px;
  height: 20px;
}

/* --- Floating Desktop Icons --- */
.desk-items {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.desk-icon {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: all;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.desk-icon:hover {
  transform: translateY(-6px);
}

.desk-icon-img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--white);
  color: var(--accent-dark);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.desk-icon:hover .desk-icon-img {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.desk-icon span {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.8);
  padding: 2px 10px;
  border-radius: 8px;
}

.desk-icon-1 { top: 10%; left: 2%; }
.desk-icon-2 { top: 38%; left: 0%; }
.desk-icon-3 { top: 66%; left: 2%; }

/* Social stickers */
.desk-sticker {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  pointer-events: all;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.desk-sticker:hover {
  transform: translateY(-5px) rotate(0deg) !important;
  box-shadow: var(--shadow-md);
}

.sticker-1 {
  top: 30%;
  right: 3%;
  background: #0077b5;
  color: var(--white);
  transform: rotate(5deg);
}

/* --- Cute Plant --- */
.desk-plant {
  position: absolute;
  bottom: 8px;
  left: 6%;
  pointer-events: none;
}

.plant-pot {
  width: 30px;
  height: 24px;
  background: #d4a574;
  border-radius: 4px 4px 8px 8px;
  margin: 0 auto;
  position: relative;
}

.plant-pot::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -3px;
  width: 36px;
  height: 6px;
  background: #c49464;
  border-radius: 3px;
}

.plant-leaf {
  position: absolute;
  width: 14px;
  height: 22px;
  border-radius: 50% 50% 50% 0;
  background: #6bcb77;
}

.leaf-1 {
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) rotate(-10deg);
}

.leaf-2 {
  bottom: 24px;
  left: 2px;
  transform: rotate(-35deg);
  background: #5ab868;
  width: 12px;
  height: 18px;
}

.leaf-3 {
  bottom: 24px;
  right: 2px;
  transform: rotate(25deg);
  border-radius: 50% 50% 0 50%;
  width: 12px;
  height: 18px;
}

/* --- Coffee Cup --- */
.desk-coffee {
  position: absolute;
  bottom: 8px;
  right: 8%;
  pointer-events: none;
}

.coffee-cup {
  width: 28px;
  height: 22px;
  background: var(--white);
  border-radius: 0 0 10px 10px;
  border: 2.5px solid var(--accent-light);
  border-top: none;
  position: relative;
}

.coffee-cup::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: calc(100% + 6px);
  height: 3px;
  background: var(--accent-light);
  border-radius: 3px;
}

.coffee-cup::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(100% - 8px);
  height: 10px;
  background: #c49464;
  border-radius: 0 0 6px 6px;
  opacity: 0.6;
}

.coffee-handle {
  position: absolute;
  right: -10px;
  top: 4px;
  width: 10px;
  height: 12px;
  border: 2.5px solid var(--accent-light);
  border-left: none;
  border-radius: 0 6px 6px 0;
}

.coffee-steam {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 3px;
}

.coffee-steam span {
  width: 2px;
  height: 10px;
  background: rgba(147, 174, 202, 0.3);
  border-radius: 2px;
  animation: steam 1.8s ease-in-out infinite;
}

.coffee-steam span:nth-child(2) {
  animation-delay: 0.3s;
  height: 12px;
}

.coffee-steam span:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes steam {
  0%, 100% {
    transform: translateY(0) scaleY(1);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-6px) scaleY(1.3);
    opacity: 0.6;
  }
}

/* ============================================
   VIDEO MODAL (Lightbox) — Aspect-Ratio Aware
   ============================================ */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.video-modal.active {
  opacity: 1;
  pointer-events: all;
}

.video-modal-content {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transform: scale(0.9);
  transition: var(--transition);
  /* Default landscape sizing */
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
}

/* Portrait mode (9:16) — set by JS */
.video-modal-content.portrait {
  width: auto;
  max-width: 400px;
  max-height: 90vh;
}

.video-modal.active .video-modal-content {
  transform: scale(1);
}

.video-modal-content video {
  width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  display: block;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  border: none;
}

.modal-close:hover {
  background: var(--accent);
  color: var(--white);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.65);
  padding: 60px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo {
  color: var(--white);
  margin-bottom: 14px;
  display: inline-block;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.8;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  padding: 5px 0;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--accent-light);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.footer-bottom .footer-socials {
  display: flex;
  gap: 14px;
}

.footer-bottom .footer-socials a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
  transition: var(--transition);
}

.footer-bottom .footer-socials a:hover {
  color: var(--accent-light);
}

/* ============================================
   SCROLL-TO-TOP BUTTON
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: var(--transition);
  cursor: pointer;
  z-index: 900;
  border: none;
}

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

.scroll-top:hover {
  background: var(--accent-dark);
  transform: translateY(-4px);
}

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 2;
  }

  .hero-visual {
    order: 1;
  }

  .hero-text {
    margin: 0 auto 36px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-img-wrapper {
    width: 280px;
    height: 340px;
  }

  .float-card-1 {
    left: 10px;
    top: 10px;
  }

  .float-card-2 {
    right: 0;
    bottom: 20px;
  }

  .about .container {
    grid-template-columns: 1fr;
  }

  .desk-icon,
  .desk-sticker,
  .desk-plant,
  .desk-coffee {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-base);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    box-shadow: -4px 0 30px rgba(0,0,0,0.1);
    transition: var(--transition);
    z-index: 998;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
    z-index: 999;
  }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 600px) {
  .section-padding {
    padding: 70px 0;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 70px;
  }

  .hero-img-wrapper {
    width: 220px;
    height: 280px;
  }

  .hero-float-card {
    display: none;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .pc-form .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .about-stats {
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}