/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary:    #0d0d0d;
    --bg-secondary:  #141414;
    --bg-card:       #1c1c1c;
    --accent:        #00c2a8;
    --accent-hover:  #00e0c4;
    --accent-dim:    rgba(0, 194, 168, 0.1);
    --text-primary:  #f5f5f5;
    --text-secondary:#a0a0a0;
    --text-muted:    #555;
    --border:        rgba(255, 255, 255, 0.08);
    --shadow:        0 4px 30px rgba(0, 0, 0, 0.5);
    --radius:        12px;
    --radius-lg:     20px;
    --transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading:  'Poppins', sans-serif;
    --font-body:     'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

/* ===== UTILITIES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

.section-alt {
    background-color: var(--bg-secondary);
}

.hidden {
    display: none !important;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 194, 168, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(13, 13, 13, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
}

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

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

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding-bottom: 2px;
}

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 2rem 60px;
    max-width: 1300px;
    margin: 0 auto;
    gap: 4rem;
    position: relative;
}

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

.hero-greeting {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.hero-name {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #9a9a9a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.6rem;
    line-height: 1.1;
}

.hero-title {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    min-height: 2rem;
}

.typed-text {
    color: var(--accent);
    font-weight: 600;
}

.cursor {
    color: var(--accent);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 460px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-socials {
    display: flex;
    gap: 0.8rem;
}

.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
    transform: translateY(-3px);
}

/* hero right side */
.hero-visual {
    flex: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 580px;
}

.hero-image-wrapper {
    width: 100%;
    max-width: 460px;
    height: 580px;
    border-radius: 220px 220px 180px 180px;
    border: 3px solid var(--accent);
    padding: 6px;
    box-shadow: 0 0 60px rgba(0, 194, 168, 0.25),
                0 0 120px rgba(0, 194, 168, 0.1);
    animation: float 6s ease-in-out infinite;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 214px 214px 174px 174px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7rem;
    color: var(--text-muted);
    overflow: hidden;
}

.hero-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

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

.floating-badge {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.6rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-heading);
    box-shadow: var(--shadow);
}

.floating-badge i {
    color: var(--accent);
}

.badge-1 {
    top: 18%;
    right: 2%;
    animation: float 5s ease-in-out infinite;
    animation-delay: -2s;
}

.badge-2 {
    bottom: 18%;
    left: 2%;
    animation: float 4s ease-in-out infinite;
    animation-delay: -1s;
}

/* scroll caret */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    width: 26px;
    height: 26px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { opacity: 0.3; transform: rotate(45deg) translateY(-4px); }
    50%       { opacity: 1;   transform: rotate(45deg) translateY(4px);  }
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-title span {
    color: var(--accent);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 5rem;
    align-items: center;
}

.about-image-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4;
    max-width: 340px;
    margin: 0 auto;
    border-radius: 16px;
    border: 2px solid var(--accent);
    padding: 6px;
    box-shadow: 0 0 50px rgba(0, 194, 168, 0.15);
}

.about-image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: var(--text-muted);
    overflow: hidden;
}

.about-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: inherit;
}

.about-name {
    font-size: 1.45rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.about-text {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 0.5rem 0.75rem;
    transition: var(--transition);
}

.stat-item:hover {
    border-color: var(--accent);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.68rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.4;
}

/* Industries flash animation */
.industries-flash {
    height: 1.3rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.3rem;
}

.industry-name {
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-align: center;
}

@keyframes industryFlash {
    0%   { opacity: 0; transform: translateY(6px) scale(0.85); }
    18%  { opacity: 1; transform: translateY(0)   scale(1);    }
    72%  { opacity: 1; transform: translateY(0)   scale(1);    }
    90%  { opacity: 0; transform: translateY(-6px) scale(0.85);}
    100% { opacity: 0; transform: translateY(-6px) scale(0.85);}
}

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

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}

.skill-category:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 194, 168, 0.1);
}

.skill-category-title {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skill-category-title i {
    color: var(--accent);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tag {
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid rgba(0, 194, 168, 0.3);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.83rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: default;
}

.skill-tag:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

/* ===== TIMELINE ===== */
.timeline-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.tab-btn {
    padding: 0.65rem 2rem;
    border-radius: 50px;
    border: 2px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

.timeline {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent) 0%, transparent 100%);
}

.timeline-item {
    position: relative;
    padding: 0 0 2.8rem 2.5rem;
}

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

.timeline-dot {
    position: absolute;
    left: -2.44rem;
    top: 0.4rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 3px var(--accent);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--accent);
    box-shadow: 0 5px 30px rgba(0, 194, 168, 0.1);
}

.timeline-date {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-title {
    font-size: 1.05rem;
    margin: 0.4rem 0 0.25rem;
}

.timeline-org {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== PROJECTS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: 0 15px 50px rgba(0, 194, 168, 0.15);
}

.project-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-muted);
}

.project-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 160, 138, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: var(--transition);
}

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

.project-link {
    width: 46px;
    height: 46px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.project-link:hover {
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.65;
}

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

.project-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid rgba(0, 194, 168, 0.2);
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.45rem;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--accent-dim);
    border: 1px solid rgba(0, 194, 168, 0.3);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
}

.contact-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.contact-value {
    font-weight: 500;
    color: var(--text-primary);
}

a.contact-value:hover {
    color: var(--accent);
}

.contact-socials {
    display: flex;
    gap: 0.8rem;
}

/* ===== FORM ===== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-input {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.9rem 1.2rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
    resize: vertical;
    -webkit-appearance: none;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-textarea {
    min-height: 140px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    text-align: center;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-sub {
    margin-top: 0.4rem;
    font-size: 0.8rem !important;
    color: var(--accent) !important;
}

/* ===== ANIMATED SIDE PANELS ===== */
.side-panel {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 44px;
    z-index: 999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 0;
    gap: 8px;
}

.side-panel-left  { left: 6px; }
.side-panel-right { right: 6px; }

@media (max-width: 600px) {
    .side-panel { display: none; }
}

.sp-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent), 0 0 24px rgba(0,194,168,0.7);
    flex-shrink: 0;
    animation: spDotPulse 2.4s ease-in-out infinite;
}

.sp-dot.dim {
    width: 5px;
    height: 5px;
    opacity: 0.6;
    animation-delay: 0.8s;
}

.sp-dot.dim2 {
    width: 4px;
    height: 4px;
    opacity: 0.35;
    animation-delay: 1.6s;
}

@keyframes spDotPulse {
    0%,100% { transform: scale(1);   box-shadow: 0 0 8px var(--accent); }
    50%      { transform: scale(1.8); box-shadow: 0 0 18px var(--accent), 0 0 36px rgba(0,194,168,0.6); }
}

.sp-line {
    flex: 1;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(0,194,168,0.25) 15%,
        rgba(0,194,168,0.6) 50%,
        rgba(0,194,168,0.25) 85%,
        transparent
    );
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.sp-traveler {
    position: absolute;
    left: -1px;
    width: 4px;
    height: 100px;
    border-radius: 4px;
    background: linear-gradient(to bottom,
        transparent,
        var(--accent),
        #fff,
        var(--accent),
        transparent
    );
    box-shadow: 0 0 8px var(--accent), 0 0 16px rgba(0,194,168,0.5);
}

.side-panel-left  .sp-traveler   { animation: spDown 4s linear infinite; }
.side-panel-left  .sp-traveler-2 { animation: spDown 4s linear infinite; animation-delay: -2s; }
.side-panel-right .sp-traveler   { animation: spUp   4s linear infinite; }
.side-panel-right .sp-traveler-2 { animation: spUp   4s linear infinite; animation-delay: -2s; }

@keyframes spDown {
    0%   { top: -90px; }
    100% { top: calc(100% + 90px); }
}

@keyframes spUp {
    0%   { top: calc(100% + 90px); }
    100% { top: -90px; }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 130px;
        gap: 3rem;
    }

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

    .hero-image-wrapper {
        max-width: 300px;
        height: 380px;
        border-radius: 150px 150px 120px 120px;
    }

    .hero-image-placeholder {
        border-radius: 144px 144px 114px 114px;
    }

    .badge-1,
    .badge-2 {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content .btn {
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 72%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-secondary);
        border-left: 1px solid var(--border);
        flex-direction: column;
        padding: 5.5rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.35s ease;
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

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

    .section {
        padding: 70px 0;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.6rem;
    }
}

/* ============================================================
   SUBPAGE SHARED STYLES
   ============================================================ */

/* Page hero banner */
.page-hero {
    padding: 150px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(0,194,168,0.07) 0%, transparent 65%);
    pointer-events: none;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--accent);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.page-hero-icon {
    font-size: 2.8rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

.page-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-hero-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Filter bar (Certifications & MOOCs) */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.4rem;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================================
   DEGREES PAGE
   ============================================================ */

.degree-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 2rem;
}

.degree-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.degree-card-image {
    height: 220px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    background: #f5f5f5;
}

.degree-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.4s ease;
}

.degree-card:hover .degree-card-image img {
    transform: scale(1.03);
}

.degree-card-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 194, 168, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: white;
    font-size: 1.6rem;
}

.degree-card:hover .degree-card-image-overlay {
    opacity: 1;
}

.pdf-loading {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    background: #f0f0f0;
}

.pdf-loading i {
    font-size: 2.5rem;
    color: var(--accent);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

.degree-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.degree-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.degree-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 194, 168, 0.12);
}

.degree-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--accent-dim);
    border: 1px solid rgba(0, 194, 168, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.2rem;
}

.degree-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.2rem 0.75rem;
    border-radius: 50px;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid rgba(0, 194, 168, 0.25);
    margin-bottom: 0.75rem;
}

.degree-title {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
    line-height: 1.4;
}

.degree-institution {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.degree-field {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.degree-meta {
    display: flex;
    gap: 1.2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.degree-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.degree-meta i {
    color: var(--accent);
}

.degree-cert-img {
    width: 100%;
    border-radius: var(--radius);
    margin-top: 1.2rem;
    border: 1px solid var(--border);
    overflow: hidden;
}

.degree-cert-img-placeholder {
    height: 160px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.degree-cert-img-placeholder i {
    font-size: 2rem;
}

/* ============================================================
   CERTIFICATIONS PAGE
   ============================================================ */

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

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cert-card-image {
    height: 175px;
    overflow: hidden;
    cursor: zoom-in;
    position: relative;
    flex-shrink: 0;
    background: #f8f8f8;
}

.cert-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
    display: block;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

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

.cert-card-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 194, 168, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: white;
    font-size: 1.6rem;
}

.cert-card:hover .cert-card-image-overlay {
    opacity: 1;
}

.cert-card-body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.93);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: zoom-out;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

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

.lightbox-img {
    max-width: min(90vw, 960px);
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.8);
    cursor: default;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.cert-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 35px rgba(0, 194, 168, 0.12);
}

.cert-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cert-org-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius);
    background: var(--accent-dim);
    border: 1px solid rgba(0, 194, 168, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
    flex-shrink: 0;
}

.cert-org-name {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.1rem;
}

.cert-name {
    font-size: 0.93rem;
    font-weight: 600;
    line-height: 1.35;
}

.cert-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.cert-date {
    font-size: 0.77rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.cert-verify-btn {
    font-size: 0.77rem;
    color: var(--accent);
    border: 1px solid rgba(0, 194, 168, 0.3);
    border-radius: 50px;
    padding: 0.2rem 0.75rem;
    transition: var(--transition);
}

.cert-verify-btn:hover {
    background: var(--accent-dim);
}

.cert-category-tag {
    align-self: flex-start;
    font-size: 0.7rem;
    padding: 0.18rem 0.6rem;
    border-radius: 50px;
    background: var(--bg-secondary);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

/* ============================================================
   MOOCs PAGE
   ============================================================ */

.mooc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.mooc-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.mooc-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 35px rgba(0, 194, 168, 0.12);
}

.mooc-card-image {
    height: 175px;
    overflow: hidden;
    cursor: zoom-in;
    position: relative;
    flex-shrink: 0;
    background: #f8f8f8;
}

.mooc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
    display: block;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.mooc-card:hover .mooc-card-image img {
    transform: scale(1.02);
}

.mooc-card-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 194, 168, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: white;
    font-size: 1.6rem;
}

.mooc-card:hover .mooc-card-image-overlay {
    opacity: 1;
}

.mooc-card-body {
    padding: 1.5rem;
}

.mooc-platform {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.75rem;
}

.mooc-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.4rem;
}

.mooc-provider {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.mooc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mooc-date {
    font-size: 0.77rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.mooc-cert-link {
    font-size: 0.77rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition);
    border: 1px solid rgba(0, 194, 168, 0.3);
    border-radius: 50px;
    padding: 0.2rem 0.7rem;
}

.mooc-cert-link:hover {
    background: var(--accent-dim);
}

/* ============================================================
   CV PAGE
   ============================================================ */

.cv-download-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.cv-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.cv-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cv-sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
}

.cv-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    overflow: hidden;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    font-size: 2.8rem;
    color: var(--text-muted);
}

.cv-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cv-sidebar-name {
    text-align: center;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.cv-sidebar-role {
    text-align: center;
    font-size: 0.82rem;
    color: var(--accent);
    margin-bottom: 0;
}

.cv-sidebar-section-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.cv-contact-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.83rem;
    color: var(--text-secondary);
    margin-bottom: 0.7rem;
    word-break: break-all;
}

.cv-contact-row i {
    color: var(--accent);
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.cv-skill-bar {
    margin-bottom: 1rem;
}

.cv-skill-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
}

.cv-skill-bar-labels span:last-child {
    color: var(--accent);
    font-size: 0.75rem;
}

.cv-skill-bar-track {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.cv-skill-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    width: 0;
    transition: width 1s ease;
}

.cv-lang-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.83rem;
    margin-bottom: 0.6rem;
}

.cv-lang-level {
    font-size: 0.73rem;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 0.15rem 0.6rem;
    border-radius: 50px;
}

/* CV main content */
.cv-main-block {
    margin-bottom: 2.5rem;
}

.cv-block-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent);
}

.cv-block-header i {
    color: var(--accent);
    font-size: 1.05rem;
}

.cv-block-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.cv-entry {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.cv-entry:hover {
    border-color: var(--accent);
}

.cv-entry-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.3rem;
    flex-wrap: wrap;
}

.cv-entry-title {
    font-size: 0.97rem;
    font-weight: 600;
}

.cv-entry-date-badge {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    background: var(--accent-dim);
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    white-space: nowrap;
}

.cv-entry-org {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.cv-entry-bullets {
    list-style: none;
}

.cv-entry-bullets li {
    font-size: 0.87rem;
    color: var(--text-secondary);
    padding: 0.18rem 0 0.18rem 1rem;
    position: relative;
    line-height: 1.65;
}

.cv-entry-bullets li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.cv-skills-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* ============================================================
   CONTACT PAGE (standalone)
   ============================================================ */

.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

/* ============================================================
   E-PROCEEDINGS PAGE
   ============================================================ */

.paper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.paper-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.paper-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 194, 168, 0.12);
}

.paper-card-preview {
    height: 260px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    background: #f5f5f5;
}

.paper-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.4s ease;
}

.paper-card:hover .paper-card-preview img {
    transform: scale(1.02);
}

.paper-card-preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 194, 168, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: white;
    font-size: 1.6rem;
    gap: 1.2rem;
}

.paper-card:hover .paper-card-preview-overlay {
    opacity: 1;
}

.paper-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.paper-type-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.2rem 0.75rem;
    border-radius: 50px;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid rgba(0, 194, 168, 0.25);
    align-self: flex-start;
}

.paper-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
}

.paper-authors {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

.paper-venue {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.5;
}

.paper-abstract {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.paper-meta {
    display: flex;
    gap: 1.2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.paper-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.paper-meta i {
    color: var(--accent);
}

.paper-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* ============================================================
   PHOTO GALLERY
   ============================================================ */

.gallery-video-wrapper {
    margin-bottom: 2.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #000;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
}

.gallery-video-wrapper video {
    width: 100%;
    display: block;
    max-height: 450px;
    object-fit: contain;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    grid-auto-flow: dense;
}

@media (max-width: 1100px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    aspect-ratio: 3 / 4;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.gallery-item.wide {
    aspect-ratio: 16 / 9;
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.4s ease;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 194, 168, 0.72);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-caption {
    color: white;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-heading);
    line-height: 1.4;
}

/* ============================================================
   RESPONSIVE — SUBPAGES
   ============================================================ */

@media (max-width: 960px) {
    .cv-layout {
        display: block !important;
        grid-template-columns: 1fr;
    }

    .cv-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .cv-main-block {
        opacity: 1 !important;
        transform: none !important;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 600px) {
    .degree-grid,
    .cert-grid,
    .mooc-grid {
        grid-template-columns: 1fr;
    }
}

