/* ==============================
   VARIABLES & DESIGN TOKENS
   ============================== */
:root {
  --hue: 220;
  --bg-color: hsl(var(--hue), 20%, 98%);
  --surface-color: hsl(var(--hue), 20%, 100%);
  --text-main: hsl(var(--hue), 30%, 15%);
  --text-light: hsl(var(--hue), 15%, 45%);
  --border-color: hsl(var(--hue), 15%, 90%);
  
  --primary-color: hsl(230, 85%, 60%);
  --primary-color-alt: hsl(230, 85%, 50%);
  --primary-light: hsl(230, 85%, 95%);
  
  --max-width: 1100px;
  --header-height: 4rem;
  
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --font-sans: 'Inter', sans-serif;
  --h1-font-size: 2.75rem;
  --h2-font-size: 2rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;

  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-theme='dark'] {
  --bg-color: hsl(222, 47%, 11%);
  --surface-color: hsl(222, 47%, 15%);
  --text-main: hsl(210, 40%, 98%);
  --text-light: hsl(215, 20%, 75%);
  --border-color: hsl(215, 30%, 25%);
  
  --primary-color: hsl(199, 89%, 48%);
  --primary-color-alt: hsl(199, 89%, 40%);
  --primary-light: hsla(199, 89%, 48%, 0.1);

  --shadow-sm: 0 4px 6px rgba(0,0,0,0.3);
  --shadow-md: 0 10px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.5);
}

/* ==============================
   RESET & BASE STYLES
   ============================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
}
h1, h2, h3, h4 { color: var(--text-main); font-weight: 700; line-height: 1.2; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* ==============================
   4. REUSABLE CSS CLASSES
   ============================== */
.container { max-width: var(--max-width); margin-inline: auto; padding-inline: 1.5rem; }
.grid { display: grid; gap: 1.5rem; }
.layout-4-col { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
@media screen and (max-width: 1024px) {
  .layout-4-col { grid-template-columns: repeat(3, 1fr); }
}
@media screen and (max-width: 768px) {
  .layout-4-col { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 576px) {
  .layout-4-col { grid-template-columns: 1fr; }
}

.layout-3-col { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
@media screen and (max-width: 768px) {
  .layout-3-col { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 576px) {
  .layout-3-col { grid-template-columns: 1fr; }
}

.layout-2-col { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
@media screen and (max-width: 576px) {
  .layout-2-col { grid-template-columns: 1fr; }
}

.layout-1-col { grid-template-columns: 1fr; }

/* Preloader */
.preloader {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-color: var(--bg-color); z-index: 9999;
  display: flex; justify-content: center; align-items: center;
  transition: opacity 0.5s ease;
}
.preloader.fade-out { opacity: 0; pointer-events: none; }
.spinner {
  width: 50px; height: 50px; border: 4px solid var(--border-color);
  border-top-color: var(--primary-color); border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

.section { padding-block: 5rem 2rem; }
.section__title { font-size: var(--h2-font-size); text-align: center; margin-bottom: 2.5rem; position: relative; display: inline-block; left: 50%; transform: translateX(-50%); }
.section__title::after { content: ''; position: absolute; width: 40px; height: 3px; background-color: var(--primary-color); bottom: -10px; left: 50%; transform: translateX(-50%); border-radius: 4px; }
.section__subtitle { text-align: center; color: var(--text-light); margin-top: -1.5rem; margin-bottom: 3rem; font-size: var(--normal-font-size); }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-3 { margin-bottom: 3rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; background-color: var(--primary-color); color: #fff !important; padding: 0.8rem 1.8rem; border-radius: var(--radius-lg); font-weight: 600; transition: var(--transition); border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn:hover { background-color: var(--primary-color-alt); transform: translateY(-2px); box-shadow: 0 10px 20px hsla(var(--hue), 85%, 50%, 0.3); }
.btn--outline { background-color: transparent; color: var(--text-main) !important; border-color: var(--border-color); }
.btn--outline:hover { background-color: var(--primary-light); border-color: var(--primary-color); color: var(--primary-color) !important; transform: translateY(-2px); box-shadow: none; }

/* Scroll Animations */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s ease-out; }
.reveal--slide-left { opacity: 0; transform: translateX(-40px); transition: all 0.8s ease-out; }
.reveal--slide-right { opacity: 0; transform: translateX(40px); transition: all 0.8s ease-out; }
.reveal--slide-up { opacity: 0; transform: translateY(40px); transition: all 0.8s ease-out; }
.reveal--fade { opacity: 0; transition: opacity 1.2s ease-out; }
.reveal.active, .reveal--slide-left.active, .reveal--slide-right.active, .reveal--slide-up.active, .reveal--fade.active { opacity: 1; transform: translate(0, 0); }

/* Theme Toggle */
.theme-toggle { position: fixed; bottom: 2rem; right: 2rem; background-color: var(--surface-color); color: var(--text-main); border: 1px solid var(--border-color); width: 45px; height: 45px; border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; z-index: 100; font-size: 1.2rem; box-shadow: var(--shadow-sm); transition: var(--transition); }
.theme-toggle:hover { transform: translateY(-3px) scale(1.05); box-shadow: var(--shadow-md); }
[data-theme='dark'] .fa-moon { display: none; }
[data-theme='light'] .fa-sun { display: none; }

/* HEADER */
.header { width: 100%; position: fixed; top: 0; left: 0; z-index: 100; background-color: transparent; transition: var(--transition); }
.scroll-header { background-color: var(--surface-color); box-shadow: var(--shadow-sm); }
.nav { height: var(--header-height); display: flex; justify-content: space-between; align-items: center; }
.nav__logo { font-size: 1.5rem; font-weight: 800; color: var(--text-main); letter-spacing: -0.5px; }
.nav__logo span { color: var(--primary-color); }
.nav__toggle, .nav__close { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-main); }
.nav__list { display: flex; gap: 2rem; align-items: center; }
.nav__link { color: var(--text-main); font-weight: 500; font-size: 0.95rem; transition: var(--transition); position: relative; }
.nav__link:hover { color: var(--primary-color); }
.nav__link::after { content: ''; position: absolute; width: 0; height: 2px; background-color: var(--primary-color); bottom: -4px; left: 0; transition: var(--transition); }
.nav__link:hover::after { width: 100%; }
.nav__link--btn { background-color: var(--primary-color); color: #fff !important; padding: 0.5rem 1.25rem; border-radius: var(--radius-lg); }
.nav__link--btn::after { display: none; }
.nav__link--btn:hover { background-color: var(--primary-color-alt); transform: scale(1.05); }

/* HERO */
.hero__container { padding-top: 4rem; grid-template-columns: 1fr 1fr; align-items: flex-start; gap: 3rem; }
.hero__data { text-align: left; margin-top: 2rem; }
.hero__title { font-size: var(--h1-font-size); margin-bottom: 0.5rem; letter-spacing: -1px; }
.highlight { color: var(--primary-color); background: linear-gradient(120deg, var(--primary-color), hsl(250, 80%, 65%)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__subtitle-wrapper { height: 60px; display: flex; align-items: center; margin-bottom: 1rem; }
.hero__subtitle { font-size: var(--h2-font-size); font-weight: 600; color: var(--text-main); white-space: nowrap; }
.typing-text { color: var(--primary-color); background: linear-gradient(120deg, var(--primary-color), hsl(199, 89%, 60%)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-left: 8px; }
.cursor { display: inline-block; color: var(--primary-color); animation: blink 0.8s infinite; margin-left: 2px;}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero__description { color: var(--text-light); font-size: 1.1rem; max-width: 500px; margin-bottom: 2.5rem; line-height: 1.7; }
.hero__buttons { display: flex; gap: 1rem; margin-bottom: 3rem; }
.hero__social { display: flex; gap: 1rem; }
.hero__social-link { width: 40px; height: 40px; background-color: var(--surface-color); color: var(--text-main); display: flex; justify-content: center; align-items: center; border-radius: 50%; font-size: 1.1rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); transition: var(--transition); }
.hero__social-link:hover { background-color: var(--primary-color); color: #fff; transform: translateY(-4px); box-shadow: var(--shadow-md); }/* Avatar Animation & Styling */
.hero__image-wrapper { display: flex; justify-content: center; align-items: center; padding-top: 2rem; }
.hero__profile { position: relative; width: 240px; height: 240px; border-radius: 50%; padding: 10px; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); box-shadow: 0 10px 30px hsla(230, 85%, 50%, 0.2); display: flex; justify-content: center; align-items: center; animation: float 6s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }
.hero__img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 5px solid var(--bg-color); background-color: var(--surface-color); }

/* SKILLS */
.skills__container { gap: 2rem; }
.skills__card { background-color: var(--surface-color); padding: 2.5rem 2rem; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); text-align: left; transition: var(--transition); display: flex; flex-direction: column; align-items: flex-start; }
.skills__card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary-color); }
.skills__card-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; width: 100%; }
.skills__icon { font-size: 1.5rem; color: var(--primary-color); background-color: var(--primary-light); width: 55px; height: 55px; display: flex; justify-content: center; align-items: center; border-radius: 12px; flex-shrink: 0; }
.skills__title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0; }
.skills__list { display: flex; flex-direction: column; gap: 1rem; width: 100%; }
.skills__item { display: flex; align-items: center; gap: 0.75rem; font-size: 1rem; color: var(--text-light); font-weight: 500; transition: var(--transition); }
.skills__item i { color: var(--primary-color); font-size: 0.9rem; }
.skills__card:hover .skills__item { color: var(--text-main); }

/* ABOUT & RESUME */
.about__content { max-width: 800px; margin: 0 auto; text-align: center; }
.about__text { font-size: 1.05rem; color: var(--text-light); margin-bottom: 1.5rem; text-align: justify; }
.about__subtitle { font-size: var(--h3-font-size); color: var(--text-main); margin-top: 2.5rem; margin-bottom: 1.5rem; font-weight: 700; }
.about__interests-list { text-align: left; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.25rem 2rem; margin: 0 auto; }
.about__interests-item { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--text-main); font-size: 1.05rem; font-weight: 500; }
.about__interests-item i { color: var(--primary-color); font-size: 1.2rem; width: 24px; flex-shrink: 0; margin-top: 3px; }
.timeline { background-color: var(--surface-color); padding: 2.5rem; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); transition: var(--transition); }
.timeline:hover { box-shadow: var(--shadow-md); }
.timeline__header { font-size: var(--h3-font-size); margin-bottom: 2rem; display: flex; align-items: center; gap: 0.75rem; color: var(--primary-color); }
.timeline__item { position: relative; padding-left: 2rem; margin-bottom: 2rem; }
.timeline__item:last-child { margin-bottom: 0; }
.timeline__item::before { content: ''; position: absolute; width: 1px; height: 100%; background-color: var(--border-color); left: 5px; top: 0; }
.timeline__item::after { content: ''; position: absolute; width: 11px; height: 11px; background-color: var(--primary-color); border-radius: 50%; left: 0; top: 5px; border: 3px solid var(--surface-color); }
.timeline__title { font-size: 1.1rem; margin-bottom: 0.25rem; }
.timeline__subtitle { font-size: 0.85rem; color: var(--primary-color); font-weight: 600; display: block; margin-bottom: 0.5rem; }
.timeline__text { font-size: 0.95rem; color: var(--text-light); }

/* PUBLICATIONS */
.publication__card { display: flex; gap: 2rem; padding: 2rem; background-color: var(--surface-color); border-radius: var(--radius-md); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); transition: var(--transition); }
.publication__card:hover { transform: translateX(10px); border-color: var(--primary-color); box-shadow: var(--shadow-md); }
.pub__year { font-size: 1.5rem; font-weight: 800; color: hsla(230, 85%, 60%, 0.2); text-transform: uppercase; width: 80px; flex-shrink: 0; }
.pub__content { flex-grow: 1; }
.pub__title { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--primary-color); }
.pub__authors { font-size: 0.95rem; margin-bottom: 0.25rem; }
.pub__venue { font-size: 0.9rem; color: var(--text-light); margin-bottom: 1rem; }
.pub__footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-color); padding-top: 1rem; }
.pub__doi { font-size: 0.85rem; font-family: monospace; color: var(--text-light); }
.pub__link { font-size: 0.85rem; font-weight: 600; color: var(--primary-color); transition: var(--transition); }
.pub__link:hover { gap: 0.5rem; margin-left: -5px; }

/* PROJECTS */
.portfolio__container { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.portfolio__card { background-color: var(--surface-color); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); transition: var(--transition); display: flex; flex-direction: column; cursor: pointer; position: relative; }
.portfolio__card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--primary-color); }
.portfolio__img-wrapper { height: 160px; display: flex; align-items: flex-end; padding: 1.5rem; border-bottom: 1px solid var(--border-color); position: relative; overflow: hidden; }
.ml-theme { background: linear-gradient(135deg, hsl(200, 80%, 90%) 0%, hsl(230, 80%, 60%) 100%); }
.data-theme { background: linear-gradient(135deg, hsl(150, 80%, 90%) 0%, hsl(170, 80%, 40%) 100%); }
.bi-theme { background: linear-gradient(135deg, hsl(40, 80%, 90%) 0%, hsl(30, 80%, 50%) 100%); }
[data-theme='dark'] .ml-theme { background: linear-gradient(135deg, hsl(200, 40%, 20%) 0%, hsla(230, 40%, 20%, 0.8) 100%); }
[data-theme='dark'] .data-theme { background: linear-gradient(135deg, hsl(150, 40%, 20%) 0%, hsla(170, 40%, 20%, 0.8) 100%); }
[data-theme='dark'] .bi-theme { background: linear-gradient(135deg, hsl(40, 40%, 20%) 0%, hsla(30, 40%, 20%, 0.8) 100%); }
.portfolio__tag { background-color: var(--primary-color); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 0.35rem 0.75rem; border-radius: 20px; z-index: 2; }
.portfolio__explore { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: hsla(var(--hue), 30%, 15%, 0.6); backdrop-filter: blur(2px); display: flex; justify-content: center; align-items: center; color: white; font-weight: bold; font-size: 1.2rem; gap: 0.5rem; opacity: 0; transition: var(--transition); z-index: 1; }
.portfolio__card:hover .portfolio__explore { opacity: 1; }
.portfolio__content { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.portfolio__title { font-size: 1.25rem; margin-bottom: 0.5rem; transition: var(--transition); }
.portfolio__card:hover .portfolio__title { color: var(--primary-color); }
.portfolio__description { font-size: 0.95rem; color: var(--text-light); margin-bottom: 1.5rem; flex: 1; }
.portfolio__tech { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.portfolio__tech span { font-size: 0.75rem; color: var(--text-main); background-color: var(--primary-light); padding: 0.25rem 0.65rem; border-radius: 4px; }

/* CERTIFICATES */
.cert__container { gap: 2rem; }
.cert__card { background-color: var(--surface-color); padding: 2rem 1.5rem; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); display: flex; flex-direction: column; align-items: center; text-align: center; transition: var(--transition); cursor: pointer; position: relative; overflow: hidden; }
.cert__card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary-color); }
.cert__icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 1rem; opacity: 0.8; }
.cert__title { font-size: 1.1rem; margin-bottom: 0.5rem; font-weight: 700; line-height: 1.4; transition: var(--transition); }
.cert__card:hover .cert__title { color: var(--primary-color); }
.cert__provider { font-size: 0.9rem; color: var(--text-light); }
.cert__overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: hsla(var(--hue), 30%, 15%, 0.85); backdrop-filter: blur(2px); display: flex; justify-content: center; align-items: center; color: white; font-weight: bold; font-size: 1.2rem; gap: 0.5rem; opacity: 0; transition: var(--transition); }
.cert__card:hover .cert__overlay { opacity: 1; }

/* PROJECT MODAL - BIG DESIGN */
.proj-modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; justify-content: center; align-items: center;
  z-index: 2000; opacity: 0; visibility: hidden; transition: var(--transition);
}
.proj-modal.show-modal { opacity: 1; visibility: visible; }
.proj-modal__overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.7); backdrop-filter: blur(8px); }
.proj-modal__content {
  position: relative; background-color: var(--surface-color);
  max-width: 1100px; width: 95%; max-height: 90vh; overflow-y: auto; border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); z-index: 2001;
  transform: scale(0.95) translateY(20px); transition: var(--transition);
  display: flex; flex-direction: column;
}
.proj-modal.show-modal .proj-modal__content { transform: scale(1) translateY(0); }

/* Modal Header */
.proj-modal__header {
    display: flex; justify-content: space-between; align-items: center; 
    padding: 1.5rem 2rem; border-bottom: 1px solid var(--border-color); background-color: var(--surface-color);
    position: sticky; top: 0; z-index: 10;
}
.proj-modal__main-title { font-size: 1.5rem; font-weight: 700; color: var(--text-main); margin: 0; }
.proj-modal__close { background: transparent; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-light); transition: var(--transition); padding: 0.5rem; }
.proj-modal__close:hover { color: var(--primary-color); transform: scale(1.1); }

/* Modal Body */
.proj-modal__body { padding: 2rem; }
.pm-row { display: grid; grid-template-columns: 5fr 7fr; gap: 3rem; margin-bottom: 2rem; }

/* Left Col Details */
.pm-badge-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.pm-badge { background-color: hsla(230, 85%, 60%, 0.15); color: var(--primary-color); padding: 0.5rem 1rem; border-radius: 8px; font-weight: 600; font-size: 0.9rem; }
.pm-icon-logo { font-size: 2.5rem; color: var(--primary-color); opacity: 0.8; }
.pm-title { font-size: 2.2rem; font-weight: 800; color: var(--text-main); margin-bottom: 1rem; line-height: 1.2; }
.pm-domain { font-size: 1.1rem; color: var(--text-light); margin-bottom: 1.5rem; }
.pm-highlight { color: hsl(150, 80%, 40%); font-weight: 700; }
[data-theme='dark'] .pm-highlight { color: hsl(150, 80%, 60%); }
.pm-desc-short { font-size: 1rem; color: var(--text-light); line-height: 1.7; margin-bottom: 2rem; }

.pm-action-row { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.pm-action-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-main); font-weight: 600; font-size: 0.95rem; }
.pm-action-link i { font-size: 1.5rem; color: var(--text-light); transition: var(--transition); }
.pm-action-text { transition: none; }
.pm-action-link:hover i { color: var(--primary-color); transform: scale(1.15); }

/* Right Col Carousel (Simple Vanilla Carousel) */
.pm-carousel { position: relative; width: 100%; height: 350px; background-color: var(--bg-color); border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); }
.pm-carousel-inner { width: 100%; height: 100%; position: relative; }
.pm-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s ease-in-out; display: flex; flex-direction: column; justify-content: center; align-items: center; background-color: #1e293b; }
.pm-slide.active { opacity: 1; z-index: 2; }
.pm-slide img { max-width: 100%; max-height: 100%; object-fit: contain; }

.pm-carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: var(--transition); opacity: 0.7; z-index: 10; }
.pm-carousel-nav:hover { opacity: 1; background: var(--primary-color); }
.pm-carousel-nav.prev { left: 10px; }
.pm-carousel-nav.next { right: 10px; }
.pm-carousel-caption { position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(0,0,0,0.8); color: white; padding: 0.75rem 2rem; text-align: center; font-size: 0.85rem; z-index: 10; line-height: 1.4; }

.pm-divider { border: 0; height: 1px; background-color: var(--border-color); margin: 2rem 0; }

/* Bottom Row */
.pm-subtitle { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--text-main); }
.pm-desc-long { font-size: 1.05rem; color: var(--text-light); line-height: 1.8; }
.pm-desc-long ul { list-style: none; margin-bottom: 1rem; }
.pm-desc-long li { margin-bottom: 0.5rem; position: relative; padding-left: 1.5rem; }
.pm-desc-long li::before { content: '\f054'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 4px; font-size: 0.85rem; color: var(--primary-color); }
.pm-desc-long p { margin-bottom: 1rem; }

.pm-video-wrapper { position: relative; width: 100%; padding-bottom: 56.25%; /* 16:9 Aspect Ratio */ background-color: var(--bg-color); border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); }
.pm-video-iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* CERTIFICATE MODAL */
.cert-modal-content { max-width: 900px; }
.cert-modal-body { padding: 3rem; }
.cm-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.cm-title { font-size: 2rem; font-weight: 800; color: var(--text-main); margin-bottom: 0.5rem; line-height: 1.2; }
.cm-provider { font-size: 1.1rem; color: var(--primary-color); font-weight: 600; margin-bottom: 2rem; }
.cm-skills-wrap { margin-bottom: 2.5rem; }
.cm-subtitle { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-main); }
.cm-skills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cm-skills span { background-color: var(--primary-light); color: var(--text-main); font-size: 0.85rem; padding: 0.4rem 1rem; border-radius: 4px; font-weight: 500; border: 1px solid var(--border-color); }
.cm-verify-btn { width: 100%; justify-content: center; }
.cm-image-wrapper { width: 100%; border-radius: 12px; overflow: hidden; border: 2px solid var(--border-color); box-shadow: var(--shadow-md); background-color: var(--bg-color); padding: 10px; }
.cm-image { width: 100%; height: auto; display: block; border-radius: 6px; }

/* CONTACT & FOOTER */
.contact__desc { color: var(--text-light); margin-bottom: 3rem; max-width: 600px; margin-inline: auto; }
.contact__cards { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.contact__card { background-color: var(--surface-color); border: 1px solid var(--border-color); padding: 2.5rem 1.5rem; border-radius: var(--radius-md); text-align: center; transition: var(--transition); box-shadow: var(--shadow-sm); }
.contact__card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary-color); }
.contact__icon { font-size: 2rem; color: var(--primary-color); margin-bottom: 1.5rem; }
.contact__card-title { font-size: 1.1rem; margin-bottom: 0.5rem; }
.contact__data { font-size: 0.95rem; color: var(--text-light); }

.footer { background-color: var(--surface-color); padding-block: 4rem 2rem; border-top: 1px solid var(--border-color); }
.footer__content { text-align: center; }
.footer__title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.footer__subtitle { color: var(--text-light); margin-bottom: 2rem; font-size: 0.95rem; }
.footer__socials { display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; }
.footer__social-link { width: 45px; height: 45px; background-color: var(--surface-color); color: var(--text-main); display: flex; justify-content: center; align-items: center; border-radius: 50%; font-size: 1.2rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); transition: var(--transition); }
.footer__social-link:hover { background-color: var(--primary-color); color: #fff; transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary-color); }
.footer__copy { color: var(--text-light); font-size: 0.85rem; margin-top: 3rem; border-top: 1px solid var(--border-color); padding-top: 2rem; }

/* MEDIA QUERIES */
@media screen and (max-width: 992px) {
  .hero__container { grid-template-columns: 1fr; text-align: center; align-items: center; }
  .hero__image-wrapper { order: -1; padding-top: 1rem; margin-bottom: 1rem; }
  .hero__profile { width: 180px; height: 180px; }
  .hero__subtitle-wrapper { justify-content: center; } 
  .hero__data { text-align: center; margin-top: 0; }
  .hero__buttons, .hero__social { justify-content: center; }
  .layout-4-col { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .layout-3-col { grid-template-columns: repeat(2, 1fr); }
  .layout-2-col { grid-template-columns: 1fr; }
  .portfolio__container { grid-template-columns: 1fr; }
  
  /* Modal changes */
  .pm-row { grid-template-columns: 1fr; gap: 2rem; }
  .pm-carousel { height: 250px; }
  .cm-layout { grid-template-columns: 1fr; gap: 2rem; }
  .cm-left { order: 2; }
  .cm-right { order: 1; }
}

@media screen and (max-width: 768px) {
  :root { --h1-font-size: 2.25rem; --h2-font-size: 1.75rem; }
  .header { top: 0; bottom: auto; background-color: transparent; }
  .scroll-header { box-shadow: var(--shadow-sm); background-color: var(--surface-color); }
  .theme-toggle { bottom: 2rem; right: 1.5rem; }
  
  .hero__subtitle { font-size: 1.4rem; white-space: normal; } 
  .hero__subtitle-wrapper { height: auto; min-height: 60px; } 
  
  .nav__menu {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh;
    background-color: rgba(15, 23, 42, 0.95); backdrop-filter: blur(15px);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    opacity: 0; visibility: hidden; z-index: 1000;
  }
  [data-theme='light'] .nav__menu { background-color: rgba(255, 255, 255, 0.95); }
  .nav__menu.show-menu { opacity: 1; visibility: visible; }
  
  .nav__list { flex-direction: column; gap: 2.5rem; width: 100%; text-align: center; }
  .nav__link { font-size: 1.5rem; font-weight: 700; color: #fff; }
  [data-theme='light'] .nav__link { color: var(--text-main); }
  
  .nav__toggle, .nav__close { display: block; z-index: 101; }
  .nav__close { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 2rem; color: #fff; cursor: pointer; transition: 0.3s; }
  [data-theme='light'] .nav__close { color: var(--text-main); }
  
  .nav__menu.show-menu ~ .nav__toggle { opacity: 0; pointer-events: none; }
  
  .layout-4-col { grid-template-columns: 1fr; }
  .layout-3-col { grid-template-columns: 1fr; }
  .publication__card { flex-direction: column; gap: 1rem; }
  .pub__year { width: auto; font-size: 1.2rem; }
  .contact__cards { grid-template-columns: 1fr; }
}

@media screen and (max-width: 576px) {
  .hero__buttons { flex-direction: column; }
}
