/* Base */
:root {
  --bg-1: #0b0f14;
  --bg-2: #0a0f16;
  --card: rgba(19, 24, 33, 0.8);
  --card-strong: rgba(12, 16, 23, 0.9);
  --border: rgba(148, 163, 184, 0.12);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #7c3aed;
  --accent2: #0ea5e9;
  --radius: 16px;
  --sticky-offset: 112px; /* header + tabs approx */
}

html, body { height: 100%; }
html { color-scheme: dark light; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 10% 10%, #0b1220 0%, transparent 60%),
    radial-gradient(900px 700px at 90% 20%, #111827 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  scroll-padding-top: var(--sticky-offset); /* prevents overlap when scrolling to anchors */
}

* { box-sizing: border-box; }
img { max-width: 100%; display: block; }

.container { width: min(1200px, 92vw); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: static; width: auto; height: auto; padding: 8px 12px; background: #111827; color: white; border-radius: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); background: linear-gradient(180deg, rgba(10, 15, 22, 0.85), rgba(10, 15, 22, 0.6)); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 14px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #0f172a, #111827); border: 1px solid var(--border); }
.identity .name { margin: 0; font-size: 1.25rem; background: linear-gradient(45deg, #ffffff, #9fb0c8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.identity .title { margin: 0; color: var(--muted); font-size: 0.95rem; }
.actions { display: flex; gap: 10px; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border); color: var(--text); background: rgba(255,255,255,0.04); text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 25px rgba(0,0,0,0.35); }
.button.primary { background: linear-gradient(45deg, var(--accent2), var(--accent)); border: 0; box-shadow: 0 10px 30px rgba(14,165,233,0.25); color: #fff; }
.button.ghost { background: rgba(255,255,255,0.06); }
.button.large { padding: 14px 22px; font-weight: 700; }

/* Tabs */
.tabs { position: sticky; top: 64px; z-index: 9; background: rgba(255,255,255,0.04); border-bottom: 1px solid var(--border); backdrop-filter: blur(8px); }
.tabs-inner { display: flex; gap: 8px; padding: 10px 0; justify-content: center; flex-wrap: wrap; }
.tab { border: 0; border-radius: 999px; padding: 10px 16px; background: transparent; color: #cbd5e1; cursor: pointer; font-weight: 600; }
.tab.active, .tab:hover { background: linear-gradient(45deg, rgba(14,165,233,0.25), rgba(124,58,237,0.25)); color: #fff; }

/* Sections */
.main { padding: 28px 0 60px; }
.section { display: none; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); margin: 14px 0 18px; }
.section.active { display: block; animation: fadeIn .4s ease; }

/* Ensure titles never get hidden under sticky bars when scrolled into view */
.section-title { margin: 0 0 18px; font-size: 1.6rem; background: linear-gradient(45deg, #ffffff, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; scroll-margin-top: var(--sticky-offset); }

/* Previous CV styling reintroduced */
.cv-section { margin-bottom: 22px; }
.cv-section h3 { color: #a78bfa; font-size: 1.1rem; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid rgba(124, 58, 237, 0.25); }
.experience-item, .education-item { background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.03)); padding: 16px; border-radius: 14px; margin-bottom: 12px; border-left: 4px solid var(--accent2); border: 1px solid var(--border); transition: transform 0.3s ease; }
.experience-item:hover, .education-item:hover { transform: translateX(8px); }
.item-title { font-weight: 700; color: var(--text); font-size: 1.05rem; }
.item-org { color: #93c5fd; font-weight: 600; margin: 6px 0; }
.item-date { color: #94a3b8; font-size: 0.9em; margin-bottom: 8px; }

/* Grid & Cards */
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.03)); border: 1px solid var(--border); border-left: 4px solid var(--accent2); border-radius: var(--radius); padding: 18px; }
.card.center { text-align: center; }
.card .item-title { font-weight: 700; }
.card .item-org { color: #93c5fd; font-weight: 600; margin: 6px 0; }
.card .item-date { color: #94a3b8; font-size: 0.9em; margin-bottom: 8px; }
.bulleted { padding-left: 18px; }

/* Portfolio Cards */
.portfolio-card { text-align: left; border-left-color: var(--accent); cursor: pointer; padding: 0; overflow: hidden; }
.portfolio-card .card-body { padding: 14px 16px 18px; }
.media { display: grid; place-items: center; background: radial-gradient(160px 140px at 30% 30%, rgba(14,165,233,0.35), transparent), radial-gradient(160px 140px at 70% 70%, rgba(124,58,237,0.35), transparent), linear-gradient(45deg, #0b1220, #0a0f16); border-bottom: 1px solid var(--border); }
.media.cover { aspect-ratio: 16/9; }
.media.cover .logo { width: 56%; max-width: 220px; height: auto; opacity: 0.95; }
.media.icon { font-size: 60px; height: 160px; }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* Contact */
.link { color: #93c5fd; text-decoration: none; }
.link:hover { text-decoration: underline; }
.cta { display: grid; place-items: center; margin-top: 10px; }

/* Modal */
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 1000; }
.modal.active { display: flex; }
.modal .backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); }
/* Modal base */
.modal .dialog { position: relative; background: var(--card); color: var(--text); border-radius: 16px; width: min(1000px, 92vw); max-height: 90vh; overflow: auto; padding: 20px; box-shadow: 0 30px 60px rgba(0,0,0,0.5); border: 1px solid var(--border); }
/* Contact modal: force solid background per theme */
#contact-modal .dialog { background: #0f172a; color: var(--text); }
html[data-theme="light"] #contact-modal .dialog { background: #ffffff; color: #0b1220; }
.dialog-title { margin: 0 0 12px; color: #7c3aed; font-size: 1.25rem; font-weight: 700; }
.dialog-body { max-height: calc(90vh - 200px); overflow-y: auto; }
.modal .close { position: absolute; top: 8px; right: 12px; font-size: 24px; background: transparent; border: 0; cursor: pointer; color: #7c3aed; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.gallery-grid img, .gallery-grid iframe { width: 100%; border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,0.08); background: #f6f7ff; }
.gallery-grid img { aspect-ratio: 4/3; object-fit: cover; }
.gallery-grid iframe { aspect-ratio: 16/9; }

/* Modal animations */
@keyframes backdropFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal.active .backdrop { animation: backdropFade .2s ease-out both; }
.modal.active .dialog { animation: modalPop .22s ease-out both; }

/* Utilities */
.icon.xl { font-size: 42px; }
.label { font-weight: 700; margin: 6px 0; }
.muted { color: var(--muted); }

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

/* Smooth reveal animation */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.reveal { animation: fadeUp .4s ease both; }

/* Light theme override */
@media (prefers-color-scheme: light) {
  :root { color-scheme: light dark; }
}

/* Light mode adjustments */
html[data-theme="light"] body { 
  background: #f8fafc; 
  color: #1e293b; /* Darker text color */
}
html[data-theme="light"] .site-header { 
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.6)); 
  border-bottom-color: rgba(0,0,0,0.1); 
}
html[data-theme="light"] .tabs { 
  background: rgba(0,0,0,0.04); 
  border-bottom-color: rgba(0,0,0,0.1); 
}
html[data-theme="light"] .tab { 
  color: #475569; /* Darker tab text */
}
html[data-theme="light"] .tab.active, 
html[data-theme="light"] .tab:hover { 
  color: #1e293b; /* Darker active tab text */
  background: linear-gradient(45deg, rgba(14,165,233,0.15), rgba(124,58,237,0.15));
}
html[data-theme="light"] .section { 
  background: #ffffff; 
  border-color: rgba(0,0,0,0.1); 
  box-shadow: 0 20px 50px rgba(0,0,0,0.1); 
}
html[data-theme="light"] .card { 
  background: linear-gradient(135deg, rgba(0,0,0,0.03), rgba(0,0,0,0.01)); 
  border-color: rgba(0,0,0,0.1); 
}
html[data-theme="light"] .identity .name { 
  background: linear-gradient(45deg, #1e293b, #334155); 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent; 
}
html[data-theme="light"] .section-title { 
  background: linear-gradient(45deg, #1e293b, #334155); 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent; 
}
html[data-theme="light"] .item-org { 
  color: #1e293b; /* Darker organization text */
}
html[data-theme="light"] .item-title { 
  color: #1e293b; /* Darker title text */
}
html[data-theme="light"] .item-subtitle { 
  color: #0ea5e9; /* Keep accent color for subtitles */
}
html[data-theme="light"] .item-date { 
  color: #64748b; /* Darker date text */
}
html[data-theme="light"] .muted { 
  color: #64748b; /* Darker muted text */
}
html[data-theme="light"] .card-title { 
  color: #1e293b; /* Darker card title */
}
html[data-theme="light"] .card p { 
  color: #64748b; /* Darker card description */
}
html[data-theme="light"] .label { 
  color: #1e293b; /* Darker label text */
}
html[data-theme="light"] .cv-section h3 { 
  color: #1e293b; /* Darker section headers */
}
html[data-theme="light"] .experience-item li { 
  color: #64748b; /* Darker list items */
}
html[data-theme="light"] .group-title { 
  color: #1e293b; /* Darker group title */
}
html[data-theme="light"] .about-text p { 
  color: #64748b; /* Darker about text */
}
html[data-theme="light"] .button.ghost { 
  background: rgba(0,0,0,0.06); 
  color: #1e293b; /* Darker ghost button text */
}
html[data-theme="light"] .button.primary { 
  background: linear-gradient(45deg, #0ea5e9, #3b82f6); 
  color: #ffffff; /* Keep white text for primary buttons */
}
html[data-theme="light"] .media { 
  background: #f1f5f9; 
}
html[data-theme="light"] .link { 
  color: #0ea5e9; /* Keep accent color for links */
}
html[data-theme="light"] .link:hover { 
  color: #0284c7; /* Darker hover state */
}
html[data-theme="light"] .identity .title { 
  color: #64748b; /* Darker subtitle */
}
html[data-theme="light"] .dialog-title { 
  color: #1e293b; /* Darker modal title */
}
html[data-theme="light"] .image-description h4 { 
  color: #1e293b; /* Darker image modal title */
}
html[data-theme="light"] .image-description p { 
  color: #64748b; /* Darker image modal description */
}

/* Portfolio inline results */
.portfolio-results { margin-top: 16px; }
.portfolio-results .gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.portfolio-results .gallery-grid img, .portfolio-results .gallery-grid iframe { width: 100%; border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,0.08); background: #f6f7ff; }
.portfolio-results .gallery-grid img { aspect-ratio: 4/3; object-fit: cover; }
.portfolio-results .gallery-grid iframe { aspect-ratio: 16/9; }

/* Social media video embeds - prevent scrolling */
.portfolio-results .gallery-grid iframe[src*="tiktok.com"],
.portfolio-results .gallery-grid iframe[src*="instagram.com"] {
  aspect-ratio: 9/16; /* Portrait aspect ratio for TikTok/Instagram */
  max-height: 600px; /* Prevent excessive height */
  width: 100%;
  max-width: 350px; /* Limit width for portrait videos */
  margin: 0 auto; /* Center the video */
  display: block;
}

/* YouTube videos keep landscape aspect ratio */
.portfolio-results .gallery-grid iframe[src*="youtube.com"] {
  aspect-ratio: 16/9;
  max-width: 100%;
}

/* Responsive adjustments for social media videos */
@media (max-width: 768px) {
  .portfolio-results .gallery-grid iframe[src*="tiktok.com"],
  .portfolio-results .gallery-grid iframe[src*="instagram.com"] {
    max-width: 280px;
    max-height: 500px;
  }
}

/* Modal (reused) already styled; ensure visible on light mode too */
html[data-theme="light"] .modal .dialog { background: #ffffff; color: #0b1220; box-shadow: 0 30px 60px rgba(0,0,0,0.15); border: 1px solid rgba(0,0,0,0.08); }

/* Theme toggle icons */
#themeToggle { position: relative; }
#themeToggle .icon-sun { display: none; }
html[data-theme="light"] #themeToggle .icon-sun { display: inline; }
html[data-theme="light"] #themeToggle .icon-moon { display: none; }

/* Image viewer modal */
.image-dialog { width: auto; max-width: 96vw; background: #0f172a; padding: 0; overflow: visible; box-shadow: none; border: 0; display: inline-block; max-height: none; border-radius: 12px; }
.image-dialog img { max-width: 96vw; max-height: 92vh; width: auto; height: auto; object-fit: contain; display: block; border-radius: 12px; }
html[data-theme="light"] .image-dialog { background: #ffffff; }
/* Hide any scrollbar in image dialog */
.image-dialog::-webkit-scrollbar { width: 0; height: 0; }

/* Image Modal Layout - Always show description on the right */
.image-dialog {
  max-width: 95vw !important; /* Increase from 90vw to 95vw */
  width: auto !important;
  min-width: 900px !important; /* Ensure minimum width for landscape photos */
}

.image-modal-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-direction: row; /* Always horizontal layout */
  max-height: 85vh; /* Limit total height */
  min-width: 900px; /* Ensure minimum width for landscape photos */
}

.image-modal-content img {
  max-width: 45vw; /* Reduced from 50vw to 45vw to make more room for description */
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
}

.image-description {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 20px;
  min-width: 280px; /* Increased from 250px */
  max-width: 350px; /* Increased from 300px */
  border: 1px solid var(--border);
  flex-shrink: 0; /* Prevent description from shrinking */
  overflow-y: auto; /* Allow scrolling if content is too long */
  max-height: 85vh; /* Match container height */
}

.image-description h4 {
  margin: 0 0 12px;
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 600;
}

.image-description p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Light mode adjustments for image modal */
html[data-theme="light"] .image-description {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.1);
}

html[data-theme="light"] .image-description h4 {
  color: #1e293b;
}

html[data-theme="light"] .image-description p {
  color: #64748b;
}

/* Mobile responsive for image modal */
@media (max-width: 768px) {
  .image-dialog {
    max-width: 95vw !important;
    min-width: auto !important;
  }
  
  .image-modal-content {
    flex-direction: column;
    gap: 16px;
    min-width: auto;
  }
  
  .image-modal-content img {
    max-width: 90vw;
    width: 100%;
  }
  
  .image-description {
    min-width: auto;
    max-width: none;
    padding: 16px;
    max-height: none;
  }
}

@media (max-width: 480px) {
  .image-description {
    padding: 12px;
  }
  
  .image-description h4 {
    font-size: 1.1rem;
  }
}

/* Responsive image modal layout */
@media (max-width: 1200px) {
  .image-modal-content { flex-direction: column; }
  .image-modal-content img { max-width: 90vw; }
  .image-description { min-width: auto; max-width: 90vw; }
}

/* About Me layout */
.about-grid { display: grid; grid-template-columns: min(180px, 30%) 1fr; gap: 16px; align-items: start; }
.about-photo { background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.03)); border: 1px solid var(--border); border-radius: 14px; padding: 8px; display: grid; place-items: center; }
.about-photo img { width: 100%; height: auto; border-radius: 10px; object-fit: cover; }
.about-text { background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.03)); border: 1px solid var(--border); border-radius: 14px; padding: 14px; color: var(--text); }

/* Grouped experience */
.experience-group { background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.03)); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.group-title { font-weight: 800; color: var(--text); margin-bottom: 10px; }

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

/* Mobile optimizations */
@media (max-width: 768px) {
  /* Container and spacing */
  .container { padding: 0 16px; }
  .main { padding: 20px 0; }
  
  /* Header mobile optimization */
  .header-inner { 
    flex-direction: column; 
    gap: 12px; 
    text-align: center; 
    padding: 12px 0;
  }
  .brand { gap: 10px; }
  .avatar { width: 40px; height: 40px; }
  .identity .name { font-size: 1.1rem; }
  .identity .title { font-size: 0.85rem; }
  .actions { gap: 8px; }
  .button { padding: 8px 14px; font-size: 0.9rem; }
  
  /* Tabs mobile optimization */
  .tabs-inner { 
    justify-content: flex-start; 
    padding: 8px 0;
    gap: 6px;
  }
  .tab { 
    padding: 8px 12px; 
    font-size: 0.85rem;
    white-space: nowrap;
  }
  
  /* Sections mobile optimization */
  .section { 
    padding: 16px; 
    margin: 8px 0 12px;
    border-radius: 12px;
  }
  .section-title { 
    font-size: 1.4rem; 
    margin: 0 0 16px;
  }
  
  /* Grid layouts mobile */
  .grid.three { grid-template-columns: 1fr; gap: 16px; }
  .grid.two { grid-template-columns: 1fr; gap: 16px; }
  
  /* Cards mobile optimization */
  .card { 
    padding: 16px; 
    border-radius: 12px;
  }
  .card-title { font-size: 1rem; }
  .card p { font-size: 0.9rem; line-height: 1.5; }
  
  /* Icons mobile */
  .icon.xl { 
    width: 48px; 
    height: 48px; 
    font-size: 1.2rem; 
    margin: 0 auto 8px; 
  }
  
  /* Media mobile optimization */
  .media.cover { aspect-ratio: 3/2; }
  .media .logo { padding: 12px; }
  
  /* Portfolio results mobile */
  .portfolio-results { margin-top: 12px; }
  .portfolio-results .gallery-grid { 
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); 
    gap: 12px; 
  }
  
  /* Social media video embeds mobile */
  .portfolio-results .gallery-grid iframe[src*="tiktok.com"],
  .portfolio-results .gallery-grid iframe[src*="instagram.com"] {
    max-width: 250px;
    max-height: 400px;
    aspect-ratio: 9/16;
  }
  
  /* CV styling mobile */
  .cv-section { margin-bottom: 24px; }
  .cv-section h3 { 
    font-size: 1.1rem; 
    margin: 0 0 12px; 
  }
  .experience-item, .education-item { 
    padding: 12px; 
    margin-bottom: 12px; 
    border-radius: 10px;
  }
  .item-title { font-size: 0.95rem; }
  .item-org { font-size: 0.9rem; }
  .item-date { font-size: 0.8rem; }
  .experience-item li { font-size: 0.85rem; }
  
  /* About Me mobile */
  .about-grid { 
    grid-template-columns: 1fr; 
    text-align: center; 
    gap: 16px;
  }
  .about-photo { 
    max-width: 150px; 
    margin: 0 auto; 
  }
  .about-text p { 
    font-size: 0.9rem; 
    line-height: 1.6; 
  }
  
  /* Contact modal mobile */
  #contact-modal .dialog { 
    max-width: 90vw; 
    padding: 20px; 
    margin: 20px;
  }
  #contact-modal .card { 
    padding: 16px; 
  }
  #contact-modal .link { 
    padding: 10px 16px; 
    font-size: 0.9rem;
  }
  
  /* Image modal mobile */
  .image-modal-content { 
    flex-direction: column; 
    gap: 16px;
  }
  .image-modal-content img { 
    max-width: 90vw; 
    max-height: 60vh;
  }
  .image-description { 
    min-width: auto; 
    max-width: 90vw; 
    padding: 16px;
  }
  .image-description h4 { font-size: 1rem; }
  .image-description p { font-size: 0.9rem; }
  
  /* Labels and links mobile */
  .label { font-size: 0.9rem; }
  .link { font-size: 0.85rem; }
  
  /* Muted text mobile */
  .muted { font-size: 0.85rem; }
}

/* Extra small mobile optimization */
@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .section { padding: 12px; }
  .card { padding: 12px; }
  .portfolio-results .gallery-grid { 
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); 
    gap: 10px; 
  }
  .portfolio-results .gallery-grid iframe[src*="tiktok.com"],
  .portfolio-results .gallery-grid iframe[src*="instagram.com"] {
    max-width: 200px;
    max-height: 350px;
  }
  .about-photo { max-width: 120px; }
  .icon.xl { width: 40px; height: 40px; font-size: 1rem; }
  .button { padding: 6px 12px; font-size: 0.85rem; }
  .tab { padding: 6px 10px; font-size: 0.8rem; }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
  .header-inner { flex-direction: row; text-align: left; }
  .tabs-inner { justify-content: center; }
  .main { padding: 16px 0; }
  .section { padding: 14px; }
  .portfolio-results .gallery-grid iframe[src*="tiktok.com"],
  .portfolio-results .gallery-grid iframe[src*="instagram.com"] {
    max-width: 200px;
    max-height: 300px;
  }
} 

/* Welcome Animation Overlay */
.welcome-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0b0f14, #1e293b);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: all 0.8s ease;
}

.welcome-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.welcome-content {
  text-align: center;
  animation: welcomeFadeIn 1.2s ease;
}

.welcome-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 24px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.2);
  animation: avatarPulse 2s ease-in-out infinite;
}

.welcome-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 8px;
  background: linear-gradient(45deg, #ffffff, #9fb0c8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleSlideUp 1s ease 0.3s both;
}

.welcome-subtitle {
  font-size: 1.2rem;
  color: #94a3b8;
  margin: 0 0 32px;
  animation: subtitleSlideUp 1s ease 0.5s both;
}

.welcome-loading {
  animation: loadingFadeIn 1s ease 0.7s both;
}

.loading-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0ea5e9;
  animation: loadingBounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

/* Welcome animations */
@keyframes welcomeFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes avatarPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(14,165,233,0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(14,165,233,0); }
}

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

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

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

@keyframes loadingBounce {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* Avatar styling update */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f172a, #111827);
  border: 1px solid var(--border);
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Light mode welcome overlay */
html[data-theme="light"] .welcome-overlay {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

html[data-theme="light"] .welcome-title {
  background: linear-gradient(45deg, #1e293b, #334155);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-theme="light"] .welcome-subtitle {
  color: #64748b;
}

html[data-theme="light"] .loading-dots span {
  background: #0ea5e9;
}

/* Mobile welcome overlay */
@media (max-width: 768px) {
  .welcome-avatar {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
  }
  
  .welcome-title {
    font-size: 2rem;
  }
  
  .welcome-subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  
  .loading-dots span {
    width: 6px;
    height: 6px;
  }
}

@media (max-width: 480px) {
  .welcome-avatar {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
  }
  
  .welcome-title {
    font-size: 1.6rem;
  }
  
  .welcome-subtitle {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
} 

/* Soft Skills Section */
.skill-group {
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.skill-group .group-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-list li {
  background: rgba(14,165,233,0.1);
  color: #0ea5e9;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(14,165,233,0.2);
}

/* Photography Categories */
.category-section {
  margin-bottom: 40px;
}

.category-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  position: relative;
}

.category-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #0ea5e9, #3b82f6);
}

/* Light mode adjustments for soft skills */
html[data-theme="light"] .skill-group {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.1);
}

html[data-theme="light"] .skill-group .group-title {
  color: #1e293b;
  border-bottom-color: rgba(0,0,0,0.1);
}

html[data-theme="light"] .skill-list li {
  background: rgba(14,165,233,0.08);
  color: #0369a1;
  border-color: rgba(14,165,233,0.15);
}

html[data-theme="light"] .category-title {
  color: #1e293b;
  border-bottom-color: rgba(0,0,0,0.1);
}

/* Mobile responsive for soft skills */
@media (max-width: 768px) {
  .skill-group {
    padding: 16px;
    margin-bottom: 20px;
  }
  
  .skill-list {
    gap: 6px;
  }
  
  .skill-list li {
    padding: 4px 10px;
    font-size: 0.85rem;
  }
  
  .category-title {
    font-size: 1.2rem;
    margin-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .skill-group {
    padding: 12px;
    margin-bottom: 16px;
  }
  
  .skill-list li {
    padding: 3px 8px;
    font-size: 0.8rem;
  }
  
  .category-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }
} 

/* Video Modal Styling */
#video-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#video-modal.active {
  display: flex;
}

#video-modal .backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
}

.video-dialog {
  position: relative;
  background: var(--card-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  z-index: 1001;
}

.video-modal-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-direction: row;
}

/* Responsive design untuk layar kecil */
@media (max-width: 768px) {
  .video-modal-content {
    flex-direction: column;
    align-items: center;
  }
  
  .video-modal-content iframe {
    max-width: 90vw;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }
  
  .video-description {
    min-width: auto;
    max-width: 90vw;
  }
}

.video-modal-content iframe {
  max-width: 70vw;
  max-height: 85vh;
  width: 560px;
  height: 315px;
  border-radius: 12px;
  flex-shrink: 0;
}

/* Specific styling for TikTok and Instagram videos */
.video-modal-content iframe[src*="tiktok.com"] {
  width: 350px;
  height: 600px;
  max-width: 350px;
  max-height: 600px;
}

.video-modal-content iframe[src*="instagram.com"] {
  width: 400px;
  height: 500px;
  max-width: 400px;
  max-height: 500px;
}

.video-description {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 20px;
  min-width: 250px;
  max-width: 300px;
  border: 1px solid var(--border);
}

.video-description h4 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 600;
}

.video-description p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Video Wrapper and Overlay */
.video-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.video-wrapper:hover {
  transform: scale(1.02);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-wrapper:hover .video-overlay {
  opacity: 1;
}

.play-button {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Video Cover Styling */
.video-cover {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--border);
}

.video-cover:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-cover:hover img {
  transform: scale(1.05);
}

.cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: background 0.2s ease;
}

.video-cover:hover .cover-overlay {
  background: rgba(0,0,0,0.7);
}

.play-icon {
  font-size: 48px;
  color: white;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: transform 0.2s ease;
}

.video-cover:hover .play-icon {
  transform: scale(1.1);
}

.platform-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Platform-specific badge colors */
.youtube-cover .platform-badge {
  background: #ff0000;
  color: white;
}

.tiktok-cover .platform-badge {
  background: #000000;
  color: white;
}

.instagram-cover .platform-badge {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
}

/* Light mode adjustments for video modal */
html[data-theme="light"] .video-description {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.1);
}

html[data-theme="light"] .video-description h4 {
  color: #1e293b;
}

html[data-theme="light"] .video-description p {
  color: #64748b;
}

html[data-theme="light"] .video-overlay {
  background: rgba(0,0,0,0.2);
}

html[data-theme="light"] .play-button {
  background: rgba(255,255,255,0.95);
  color: #000;
}

/* Mobile responsive for video modal */
@media (max-width: 768px) {
  .video-modal-content {
    flex-direction: column;
    gap: 16px;
  }
  
  .video-modal-content iframe {
    max-width: 90vw;
    width: 100%;
    height: 200px;
  }
  
  .video-modal-content iframe[src*="tiktok.com"] {
    width: 100%;
    height: 500px;
    max-width: 100%;
    max-height: 500px;
  }
  
  .video-modal-content iframe[src*="instagram.com"] {
    width: 100%;
    height: 400px;
    max-width: 100%;
    max-height: 400px;
  }
  
  .video-description {
    min-width: auto;
    max-width: none;
    padding: 16px;
  }
  
  .play-button {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .video-modal-content iframe {
    height: 180px;
  }
  
  .video-modal-content iframe[src*="tiktok.com"] {
    height: 400px;
  }
  
  .video-modal-content iframe[src*="instagram.com"] {
    height: 350px;
  }
  
  .video-description {
    padding: 12px;
  }
  
  .video-description h4 {
    font-size: 1.1rem;
  }
  
  .play-button {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
} 

/* Ensure images are clickable */
.gallery-grid img {
  cursor: zoom-in !important;
  transition: transform 0.2s ease;
  pointer-events: auto !important;
  user-select: none;
}

.gallery-grid img:hover {
  transform: scale(1.02);
} 

/* Make sure images in portfolio results are clickable */
.portfolio-results .gallery-grid img {
  cursor: zoom-in !important;
  pointer-events: auto !important;
  transition: transform 0.2s ease;
}

.portfolio-results .gallery-grid img:hover {
  transform: scale(1.02);
}

/* Ensure category sections don't interfere with image clicks */
.category-section .gallery-grid img {
  cursor: zoom-in !important;
  pointer-events: auto !important;
} 

/* Video Covers for TikTok and Instagram */
.video-cover {
  aspect-ratio: 9/16;
  background: #1a1a1a;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
  cursor: pointer;
  border: 1px solid var(--border);
}

.video-cover:hover {
  transform: scale(1.02);
}

.tiktok-cover {
  background: linear-gradient(135deg, #ff0050 0%, #00f2ea 100%);
}

.instagram-cover {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
}

.play-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.platform-badge {
  font-size: 1rem;
  font-weight: 600;
  background: rgba(0,0,0,0.7);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Light mode adjustments for video covers */
html[data-theme="light"] .video-cover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: rgba(0,0,0,0.1);
}

/* Mobile responsive for video covers */
@media (max-width: 768px) {
  .video-cover {
    aspect-ratio: 4/5;
  }
  
  .play-icon {
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
    margin-bottom: 12px;
  }
  
  .platform-badge {
    font-size: 0.9rem;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .video-cover {
    aspect-ratio: 1/1;
  }
  
  .play-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
  }
  
  .platform-badge {
    font-size: 0.8rem;
    padding: 4px 10px;
  }
} 

/* Smooth theme transitions */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Image modal description styling */
.image-description {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 20px;
  min-width: 280px;
  max-width: 350px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  overflow-y: auto;
  max-height: 85vh;
}

.image-description h4 {
  margin: 0 0 12px;
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 600;
}

.image-description p {
  margin: 0 0 8px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.image-description p:last-child {
  margin-bottom: 0;
}

/* Photo details styling */
.photo-details {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.photo-details p {
  margin: 0 0 6px;
  font-size: 0.9rem;
}

.photo-details strong {
  color: var(--text-primary);
  font-weight: 600;
  min-width: 80px;
  display: inline-block;
}

.photo-description {
  margin-bottom: 16px;
}

.photo-description p:first-child {
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
}

.photo-description p:not(:first-child) {
  margin-bottom: 8px;
  text-align: justify;
}

/* Design details styling */
.design-details {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.design-details p {
  margin: 0 0 6px;
  font-size: 0.9rem;
}

.design-details strong {
  color: var(--text-primary);
  font-weight: 600;
  min-width: 80px;
  display: inline-block;
}

.design-description {
  margin-bottom: 16px;
}

.design-description p:first-child {
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
}

.design-description p:not(:first-child) {
  margin-bottom: 8px;
  text-align: justify;
}

.design-objective {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.design-objective p:first-child {
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
}

.design-objective p:not(:first-child) {
  margin-bottom: 0;
  text-align: justify;
}

/* Light mode adjustments for descriptions */
html[data-theme="light"] .image-description {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.1);
}

html[data-theme="light"] .image-description h4,
html[data-theme="light"] .photo-details strong,
html[data-theme="light"] .design-details strong,
html[data-theme="light"] .photo-description p:first-child,
html[data-theme="light"] .design-description p:first-child,
html[data-theme="light"] .design-objective p:first-child {
  color: #1e293b;
}

html[data-theme="light"] .image-description p,
html[data-theme="light"] .photo-details p,
html[data-theme="light"] .design-details p,
html[data-theme="light"] .photo-description p:not(:first-child),
html[data-theme="light"] .design-description p:not(:first-child),
html[data-theme="light"] .design-objective p:not(:first-child) {
  color: #64748b;
}

html[data-theme="light"] .photo-details,
html[data-theme="light"] .design-details,
html[data-theme="light"] .design-objective {
  border-color: rgba(0,0,0,0.1);
}

/* Enhanced theme toggle animation */
.theme-toggle {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.icon-sun,
.icon-moon {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.icon-sun {
  opacity: 1;
  transform: rotate(0deg);
}

.icon-moon {
  opacity: 0;
  transform: rotate(-90deg);
}

html[data-theme="dark"] .icon-sun {
  opacity: 0;
  transform: rotate(90deg);
}

html[data-theme="dark"] .icon-moon {
  opacity: 1;
  transform: rotate(0deg);
}

/* Smooth page transitions */
body {
  transition: background-color 0.3s ease;
}

.container {
  transition: background-color 0.3s ease;
}

/* Smooth header and navigation transitions */
header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-tabs {
  transition: background-color 0.3s ease;
}

.nav-tabs button {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Smooth content transitions */
.section {
  transition: background-color 0.3s ease;
}

.card {
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Smooth modal transitions */
.modal {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal .dialog {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal:not(.active) .dialog {
  transform: scale(0.9);
  opacity: 0;
}

.modal.active .dialog {
  transform: scale(1);
  opacity: 1;
}

/* Mobile responsive for descriptions */
@media (max-width: 768px) {
  .image-description {
    padding: 16px;
  }
  
  .photo-details,
  .design-details,
  .design-objective {
    margin-bottom: 12px;
    padding-bottom: 12px;
  }
  
  .photo-details p,
  .design-details p {
    font-size: 0.85rem;
  }
  
  .photo-description p,
  .design-description p,
  .design-objective p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .image-description {
    padding: 12px;
  }
  
  .photo-details strong,
  .design-details strong {
    min-width: 70px;
  }
} 

/* Photography categories styling */
.category-section {
  margin-bottom: 40px;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* Gallery grid improvements */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.gallery-item {
  width: 100%;
  height: auto;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: zoom-in;
  aspect-ratio: auto;
  object-fit: cover;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Video cover styling */
.video-cover {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-cover:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-cover iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-cover:hover .cover-overlay {
  opacity: 1;
}

.play-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.platform-badge {
  font-size: 0.9rem;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.7);
  padding: 4px 12px;
  border-radius: 20px;
}

/* Light mode adjustments for categories */
html[data-theme="light"] .category-title {
  color: #1e293b;
  border-bottom-color: var(--accent);
}

html[data-theme="light"] .video-cover {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.1);
}

/* Mobile responsive for categories */
@media (max-width: 768px) {
  .category-section {
    margin-bottom: 30px;
  }
  
  .category-title {
    font-size: 1.3rem;
    margin-bottom: 16px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
  }
  
  .video-cover {
    height: 160px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }
  
  .video-cover {
    height: 140px;
  }
  
  .play-icon {
    font-size: 1.5rem;
  }
  
  .platform-badge {
    font-size: 0.8rem;
    padding: 3px 10px;
  }
} 

/* Skills Section Styling */
.skills-subsection {
  margin-bottom: 32px;
}

.skills-subsection:last-child {
  margin-bottom: 0;
}

.subsection-title {
  color: #a78bfa;
  font-size: 1.2rem;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(124, 58, 237, 0.25);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Tools Grid */
.tools-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.tool-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.tool-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  border-radius: 12px;
  border: 1px solid var(--border);
}

.tool-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0.9);
  transition: filter 0.3s ease;
}

.tool-card:hover .tool-logo {
  filter: brightness(1.1);
}

.tool-emoji {
  font-size: 32px;
  color: var(--text);
  transition: transform 0.3s ease;
}

.tool-card:hover .tool-emoji {
  transform: scale(1.1);
}

/* Grid Four */
.grid.four {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
} 