@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root {
  --bg-main: #030712;
  --bg-card: rgba(15, 23, 42, 0.45);
  --bg-card-hover: rgba(24, 37, 66, 0.65);
  
  /* Color defaults (Cosmic / Space) */
  --primary-rgb: 139, 92, 246;       /* Violet */
  --secondary-rgb: 6, 182, 212;      /* Cyan */
  --accent-rgb: 236, 72, 153;        /* Pink */
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
  --glass-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
  --backdrop-blur: blur(16px) saturate(180%);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --max-width: 1280px;
}

/* --- THEME OVERRIDES --- */
body.theme-home {
  --primary-rgb: 139, 92, 246;
  --secondary-rgb: 6, 182, 212;
  --accent-rgb: 236, 72, 153;
  background-image: linear-gradient(rgba(3, 7, 18, 0.85), rgba(3, 7, 18, 0.95)), url('../assets/images/code_setup.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

body.theme-about {
  --primary-rgb: 239, 68, 68;
  --secondary-rgb: 255, 255, 255;
  --accent-rgb: 244, 63, 94;
  background-image: linear-gradient(rgba(3, 7, 18, 0.72), rgba(3, 7, 18, 0.85)), url('../assets/images/about_me.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

body.theme-projects {
  --primary-rgb: 234, 179, 8;
  --secondary-rgb: 245, 158, 11;
  --accent-rgb: 253, 224, 71;
  background-image: linear-gradient(rgba(3, 7, 18, 0.72), rgba(3, 7, 18, 0.85)), url('../assets/images/minato.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

body.theme-certifications {
  --primary-rgb: 37, 99, 235;
  --secondary-rgb: 2, 132, 199;
  --accent-rgb: 79, 70, 229;
  background-image: linear-gradient(rgba(3, 7, 18, 0.76), rgba(3, 7, 18, 0.88)), url('../assets/images/finishing_style_2011.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

body.theme-editing {
  --primary-rgb: 192, 38, 211;
  --secondary-rgb: 124, 58, 237;
  --accent-rgb: 6, 182, 212;
  background-image: linear-gradient(rgba(3, 7, 18, 0.65), rgba(3, 7, 18, 0.8)), url('../assets/images/ErenMikasa.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

body.theme-contact {
  --primary-rgb: 14, 165, 233;
  --secondary-rgb: 6, 182, 212;
  --accent-rgb: 99, 102, 241;
  background-image: linear-gradient(rgba(3, 7, 18, 0.72), rgba(3, 7, 18, 0.85)), url('../assets/images/sung.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

/* --- RESET & GENERAL STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  position: relative;
  
  --primary: rgb(var(--primary-rgb));
  --primary-glow: rgba(var(--primary-rgb), 0.5);
  --secondary: rgb(var(--secondary-rgb));
  --secondary-glow: rgba(var(--secondary-rgb), 0.5);
  --accent: rgb(var(--accent-rgb));
  --accent-glow: rgba(var(--accent-rgb), 0.5);
}

/* Ambient glow blobs in the background */
body::before,
body::after {
  content: '';
  position: absolute;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  pointer-events: none;
  z-index: -2;
  filter: blur(150px);
  opacity: 0.15;
}

body::before {
  top: 5%;
  left: -10%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

body::after {
  bottom: 10%;
  right: -10%;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font-family: inherit;
  color: inherit;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  border: 2px solid var(--bg-main);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* --- NAVIGATION BAR --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(3, 7, 18, 0.7);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-normal);
}

.header.scrolled {
  padding: 0.5rem 0;
  background: rgba(3, 7, 18, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-normal);
}

.header.scrolled .nav-container {
  padding: 0.8rem 2rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: var(--transition-normal);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--text-primary);
}

/* Mobile Menu Toggle Button */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 101;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  position: absolute;
  left: 0;
  transition: var(--transition-normal);
}

.menu-btn span:nth-child(1) { top: 0; }
.menu-btn span:nth-child(2) { top: 9px; }
.menu-btn span:nth-child(3) { top: 18px; }

.menu-btn.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background-color: var(--secondary);
}
.menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.menu-btn.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  background-color: var(--secondary);
}

/* --- SECTIONS GENERAL --- */
section {
  padding: 7rem 2rem 5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary) 20%, var(--primary) 60%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.title-glow-bar {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  margin: 1.5rem auto 0;
  border-radius: 2px;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* --- BUTTONS & INTERACTIVES --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-normal);
  gap: 0.6rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--secondary-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--backdrop-blur);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
}

/* --- GLASS CARD CLASS --- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-normal);
  overflow: hidden;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 15px rgba(var(--primary-rgb), 0.15);
}

/* --- HERO SECTION (HOME) --- */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding-top: 8rem;
}

.hero-content {
  flex: 1;
  max-width: 650px;
}

.hero-tag {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  border-radius: 50px;
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title span.glow {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 550px;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.hero-socials {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.social-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  transition: var(--transition-normal);
}

.social-icon:hover {
  background: rgba(var(--primary-rgb), 0.1);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px) rotate(8deg);
  box-shadow: 0 0 10px var(--primary-glow);
}

.hero-visual {
  flex: 0.8;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.visual-container {
  position: relative;
  width: 380px;
  height: 380px;
}

.visual-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.2) 0%, transparent 70%);
  z-index: -1;
  animation: float-slow 6s ease-in-out infinite alternate;
}

.visual-card {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(3, 7, 18, 0.9) 100%);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: float-main 8s ease-in-out infinite alternate;
}

.visual-art {
  width: 85%;
  height: 85%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--primary) 0%, var(--secondary) 60%, var(--bg-main) 100%);
  opacity: 0.85;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.visual-art::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg) translate(-100%, -100%);
  animation: shine 4s ease-in-out infinite;
}

/* --- HOME FEATURED SECTION --- */
.featured-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
}

.featured-header .section-header {
  text-align: left;
  margin-bottom: 0;
}

.featured-header .section-title {
  margin-bottom: 0.5rem;
}

.featured-header .title-glow-bar {
  margin: 1rem 0 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* --- ABOUT PAGE STYLES --- */
.about-container {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 4rem;
  align-items: start;
}

.about-profile-card {
  position: sticky;
  top: 100px;
  padding: 2.5rem;
  text-align: center;
}

.profile-avatar-container {
  width: 150px;
  height: 150px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  border: 3px solid var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
  padding: 5px;
  background: var(--bg-main);
  overflow: hidden;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--bg-card-hover) 0%, var(--primary) 100%);
}

.profile-name {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.profile-title {
  color: var(--secondary);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.profile-details-list {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
}

.profile-details-list li {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
}

.profile-details-list li span:first-child {
  color: var(--text-muted);
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.about-bio-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-bio-text p {
  margin-bottom: 1.5rem;
}

/* Skills Grid */
.skills-tabs-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
}

.skills-tab-btn {
  background: none;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: var(--transition-fast);
  position: relative;
}

.skills-tab-btn:hover {
  color: var(--text-primary);
}

.skills-tab-btn.active {
  color: var(--secondary);
}

.skills-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--secondary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.skills-tab-content {
  display: none;
  animation: fade-in 0.5s ease;
}

.skills-tab-content.active {
  display: block;
}

.skill-card {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.skill-icon {
  font-size: 2rem;
  color: var(--primary);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 12px;
}

.skill-info {
  flex: 1;
}

.skill-name {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.skill-level-container {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.skill-level-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 10px;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--glass-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

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

.timeline-dot {
  position: absolute;
  left: -2.55rem;
  top: 0.3rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 3px solid var(--secondary);
  box-shadow: 0 0 8px var(--secondary-glow);
}

.timeline-date {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.timeline-card {
  padding: 1.8rem;
}

.timeline-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.timeline-company {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- FILTER CONTROLS --- */
.filter-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-normal);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--glass-border-hover);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  box-shadow: 0 4px 15px var(--primary-glow);
  color: var(--text-primary);
}

/* --- PROJECTS PAGE STYLES --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-media-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}

.project-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.project-card:hover .project-thumbnail {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-normal);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--secondary);
  background: rgba(var(--secondary-rgb), 0.08);
  border: 1px solid rgba(var(--secondary-rgb), 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.project-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.project-footer-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.2rem;
}

.project-action-link {
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-primary);
}

.project-action-link:hover {
  color: var(--primary);
}

.project-action-link i {
  font-size: 0.8rem;
}

/* --- CERTIFICATIONS GALLERY --- */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.cert-card {
  cursor: pointer;
}

.cert-thumbnail-wrapper {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}

.cert-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
  background: #111827;
}

.cert-card:hover .cert-img {
  transform: scale(1.05);
}

.cert-zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  box-shadow: 0 0 15px var(--primary-glow);
  transition: var(--transition-normal);
}

.cert-card:hover .cert-zoom-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.cert-body {
  padding: 1.5rem;
}

.cert-issuer {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.cert-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.cert-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- EDITING PORTFOLIO & PACKS --- */
.editing-layout {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.video-card {
  overflow: hidden;
  height: 100%;
}

.video-container {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumbnail-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #18181b 0%, #09090b 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  z-index: 2;
  transition: var(--transition-normal);
}

.video-card:hover .video-thumbnail-placeholder {
  opacity: 0.4;
}

.video-thumbnail-placeholder.playing {
  opacity: 0;
  pointer-events: none;
}

.video-thumbnail-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 0 20px var(--primary-glow);
  cursor: pointer;
  transition: var(--transition-normal);
  z-index: 3;
}

.video-thumbnail-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px var(--secondary-glow);
}

.video-body {
  padding: 1.5rem;
}

.video-category {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.video-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.video-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Packs Section */
.packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.pack-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pack-media-header {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}

.pack-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
  background: #111827;
}

.pack-card:hover .pack-img {
  transform: scale(1.05);
}

.pack-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.4);
}

.pack-body {
  padding: 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pack-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.pack-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.pack-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.pack-features-list {
  list-style: none;
  margin-bottom: 1.8rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.pack-features-list li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pack-features-list li::before {
  content: '✓';
  color: var(--secondary);
  font-weight: 700;
}

.pack-footer {
  margin-top: auto;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pack-price {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-primary);
}

.pack-price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 0.4rem;
}

.pack-price.free {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- CONTACT PAGE STYLES --- */
.contact-container {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-card {
  padding: 2rem;
}

.info-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.method-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.method-icon {
  width: 48px;
  height: 48px;
  background: rgba(var(--secondary-rgb), 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.2rem;
}

.method-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.method-value {
  font-weight: 600;
  font-size: 1rem;
}

.socials-card {
  padding: 2rem;
}

.socials-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.socials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.social-button-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.2rem;
  gap: 0.8rem;
}

.social-button-card i {
  font-size: 1.6rem;
  color: var(--text-secondary);
  transition: var(--transition-normal);
}

.social-button-card span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.social-button-card:hover i {
  color: var(--primary);
  transform: scale(1.15);
}

.social-button-card:hover span {
  color: var(--text-primary);
}

/* Contact Form */
.contact-form-card {
  padding: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  position: relative;
  width: 100%;
}

.form-input {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition-normal);
}

.form-input:focus {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--secondary);
  box-shadow: 0 0 10px rgba(var(--secondary-rgb), 0.15);
}

textarea.form-input {
  resize: vertical;
  min-height: 150px;
}

.form-label {
  position: absolute;
  left: 1.2rem;
  top: 1rem;
  color: var(--text-muted);
  transition: var(--transition-normal);
  pointer-events: none;
  background: transparent;
  transform-origin: left top;
}

/* Float visual effects for active and filled inputs */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  transform: translate(-0.2rem, -2.1rem) scale(0.8);
}

.form-input:not(:placeholder-shown) ~ .form-label {
  color: var(--text-secondary);
}

.form-input:focus ~ .form-label {
  color: var(--secondary);
}

.form-focus-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: var(--transition-normal);
}

.form-input:focus ~ .form-focus-line {
  left: 0;
  width: 100%;
}

.form-message-state {
  display: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 1rem;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  animation: slide-up 0.3s ease;
}

.form-message-state.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.form-message-state.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* --- FOOTER --- */
.footer {
  margin-top: auto;
  background: rgba(3, 7, 18, 0.9);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 2rem 2rem;
  backdrop-filter: var(--backdrop-blur);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-logo-section {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-logo-section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-nav h4 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-newsletter h4 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-newsletter p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 0.6rem 1.2rem;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.newsletter-input:focus {
  border-color: var(--primary);
}

.newsletter-btn {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- MODAL / LIGHTBOX STYLES --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  border-radius: 24px;
  overflow-y: auto;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 3rem 2.5rem 2.5rem;
  position: relative;
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-secondary);
  transition: var(--transition-normal);
  z-index: 10;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
  transform: rotate(90deg);
}

.modal-header-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 2rem;
  border: 1px solid var(--glass-border);
  background: #111827;
}

.modal-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-meta-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
}

.modal-meta-list li strong {
  color: var(--text-secondary);
}

.modal-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.modal-cta-group {
  display: flex;
  gap: 1rem;
}

/* Zoom Lightbox Specific */
.lightbox-container {
  max-width: 90%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  transform: scale(0.95);
  transition: transform 0.35s ease;
}

.modal-overlay.active .lightbox-container {
  transform: scale(1);
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  border: 1px solid var(--glass-border);
}

.lightbox-title {
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-primary);
}

/* --- ANIMATIONS --- */
@keyframes float-main {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes float-slow {
  0% { transform: translate(-50%, -50%) translateY(0px) scale(1); }
  50% { transform: translate(-50%, -50%) translateY(-10px) scale(1.05); }
  100% { transform: translate(-50%, -50%) translateY(0px) scale(1); }
}

@keyframes shine {
  0% { transform: rotate(45deg) translate(-150%, -150%); }
  50% { transform: rotate(45deg) translate(150%, 150%); }
  100% { transform: rotate(45deg) translate(150%, 150%); }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Reveal on scroll styling */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- RESPONSIVE DESIGN (MEDIA QUERIES) --- */
@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .about-container,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-profile-card {
    position: static;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  
  .footer-newsletter {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .menu-btn {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(3, 7, 18, 0.95);
    backdrop-filter: var(--backdrop-blur);
    border-left: 1px solid var(--glass-border);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    z-index: 100;
    transition: var(--transition-normal);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 10rem;
    gap: 4rem;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-desc {
    margin: 0 auto 2.5rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-socials {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .visual-container {
    width: 280px;
    height: 280px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-newsletter {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  section {
    padding: 5rem 1rem 3rem;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .skills-tabs-container {
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
  
  .skills-tab-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }
  
  .contact-form-card {
    padding: 2rem 1.5rem;
  }
}
