/* =========================
   GLOBAL SETTINGS
========================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Ubuntu', sans-serif;
    color: white;
    background: #000;
}

/* Crossfade background layers */
.bg-layer {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.bg-layer.active {
    opacity: 1;
}

/* =========================
   TOP NAVIGATION BAR
========================= */

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    box-sizing: border-box;
}

.top-nav-link {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-family: 'Ubuntu', sans-serif;
    font-size: 12px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.3s ease, background 0.3s ease;
}

.top-nav-link:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.top-nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.07);
}

.top-nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 2px solid white;
}

/* =========================
   OVERLAY CONTROL
========================= */

.overlay {
    min-height: 100vh;
    padding-top: 52px;
}

.main-page .overlay {
    background: rgba(0, 0, 0, 0.7);
}

/* Any content page (education, experience, etc.) */
.content-page .overlay {
    background: rgba(0, 0, 0, 0.5);
}

/* =========================
   MAIN PAGE LAYOUT
========================= */

.container {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 40px;
    padding: 60px 180px 60px 80px;
}

/* LEFT COLUMN */

.left-column {
    width: 400px;
    flex-shrink: 0;
    position: sticky;
    top: 60px;
}

.left-column h3 {
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    opacity: 0.5;
    font-weight: 400;
}

.left-column ul {
    padding-left: 0;
    list-style: none;
    line-height: 1.6;
}

.left-column li {
    margin-bottom: 8px;
    font-size: 20px;
    opacity: 0.6;
}

/* MAIN CONTENT */

.main-content {
    flex: 1;
    min-width: 0;
}

/* RIGHT COLUMN — kept for legacy, hidden on main page now */

.right-column {
    display: none;
}

/* =========================
   BACK BUTTON (Reusable)
========================= */

.back-button {
    position: fixed;
    top: 64px;
    left: 24px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Ubuntu', sans-serif;
    font-size: 16px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.back-button:hover {
    color: white;
    background: rgba(0, 0, 0, 0.55);
    transform: translateX(-3px);
}

/* =========================
   GENERIC FULL SECTION BLOCK
========================= */

.section-block {
    min-height: 100vh;
    padding: 120px 200px 120px 100px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    position: relative;
}

/* Gradient overlay for readability */
.section-block::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.35),
        rgba(0,0,0,0.15),
        rgba(0,0,0,0.35)
    );
    z-index: 0;
}

/* Keep content above gradient */
.section-block > * {
    position: relative;
    z-index: 2;
}

/* =========================
   TITLE + LOGO ROW
========================= */

.section-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    margin-bottom: 30px;
}

/* Title container */
.section-title {
    display: flex;
    flex-direction: column;
}

/* Main title */
.section-title h2 {
    font-size: 64px;
    margin: 0;
    line-height: 1.2;
    max-width: 70%;
}index-section-title

/* Subtitle */
.section-subtitle {
    font-size: 32px;
    margin-top: 10px;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

/* Logo */
.section-logo {
    height: 400px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.section-logo:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Description */

.section-description {
    font-size: 24px;
    max-width: 1600px;
    line-height: 1.7;
}

/* =========================
   SKILLS
========================= */

.skill-item {
    display: flex;
    justify-content: space-between; /* pushes detail to right */
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start; /* aligns top of text */
}

/* Left column: Skill name */
.skill-name {
    flex: 0 0 25%; /* 35% width */
    font-size: 24px;
    line-height: 1.7;
    font-weight: 600;
}

/* Right column: Skill detail */
.skill-detail {
    flex: 1 1 75%; /* 65% width */
    font-size: 24px;
    line-height: 1.7;
    font-weight: 500;
    opacity: 0.85;
}

/* Responsive: stack on mobile */
@media (max-width: 700px) {
    .skill-item {
        flex-direction: column;
    }

    .skill-name,
    .skill-detail {
        flex: 1 1 100%;
        margin-bottom: 8px;
    }
}

/* =========================
   MAIN PAGE BACKGROUND
========================= */

/* main-page background is set via JS bg-layer */
.main-page {
    background: #000;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {

    body {
        background-size: cover;
        background-attachment: scroll;
    }

    .container {
        flex-direction: column;
        padding: 40px;
    }

    .left-column,
    .main-content,
    .right-column {
        width: 100%;
        position: static;
    }

    .right-column {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 30px;
    }

    .nav-button {
        flex: 1 1 auto;
    }

    .section-block {
        padding: 80px 30px;
    }

    /* Stack logo under title */
    .section-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .section-logo {
        height: 100px;
    }

    .section-title h2 {
        font-size: 32px;
        max-width: 100%;
    }

    .section-subtitle {
        font-size: 16px;
    }
}

/* =========================
   TOOLS
========================= */

.section-block.with-tools {
    padding-top: 80px;
    padding-bottom: 60px;
}

/* Tools container */
.tools-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 20px auto; /* reduced from 40px */
    background-color: rgba(255, 255, 255, 0.2); /* semi-transparent white rectangle */
    padding: 20px;
    border-radius: 12px;
}

/* Individual tool logos */
.tool-logo {
    width: 140px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.tool-logo:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* =========================
   RIGHT SIDEBAR PANEL
========================= */

.side-panel {
    position: fixed;
    right: 0;
    top: 52px;
    width: 160px;
    height: calc(100vh - 52px);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 32px 0;
    z-index: 999;
    box-sizing: border-box;
}

/* Scroll Spy */

.scroll-spy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.spy-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
}

.spy-label {
    color: white;
    font-size: 16px;
    font-family: 'Ubuntu', sans-serif;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    opacity: 0.3;
    transform: translateY(0);
    transition: opacity 0.3s ease;
    white-space: nowrap;
    text-align: center;
    max-width: 110px;
    overflow: visible;
    text-overflow: clip;
}

.spy-item:hover .spy-label {
    opacity: 0.65;
}

.spy-item.active .spy-label {
    opacity: 1;
}

.spy-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.spy-item:hover .spy-dot {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.spy-item.active .spy-dot {
    background: white;
    border-color: white;
    transform: scale(1.5);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Side nav (index page) */

.side-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.side-nav-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-family: 'Ubuntu', sans-serif;
    font-size: 16px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 0;
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.3s ease, background 0.3s ease;
}

.side-nav-link:first-child {
    border-top: none;
}

.side-nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.07);
}

/* Social Icons */

.side-socials {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.side-social-link {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-social-link:hover {
    color: white;
    transform: scale(1.15);
}

.side-social-link svg {
    width: 40px;
    height: auto;
    fill: currentColor;
    pointer-events: none;
}

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

/* =========================
   ABOUT
========================= */

.photo-frame {
    width: 320px;
    height: 400px; /* match the image ratio */
    background-color: rgba(200,200,200,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px; /* rounded corners, not full circle */
    padding: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* entire image visible */
    border-radius: 20px; /* optional, match frame */
}
/* =========================
   INDEX — SECTION BLOCKS
========================= */

.index-section {
    margin-top: 60px;
    padding-bottom: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
}

.index-section-title {
    font-size: 24px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 28px 0;
    font-weight: 400;
}

.hero h1 {
    font-size: 36px;
}

.hero-subtitle {
    font-size: 20px;
}
/* =========================
   INDEX — EXPERIENCE CARDS
========================= */

.exp-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.exp-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px 24px;
    text-decoration: none;
    color: white;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.exp-card:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateX(4px);
}

.exp-card--placeholder {
    opacity: 0.5;
}

.exp-card-logo-wrap {
    flex: 0 0 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 6px;
}

.exp-card-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.exp-card-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.exp-card-company {
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.exp-card-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.exp-card-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.exp-card-location {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* =========================
   INDEX — CV EMBED
========================= */

.cv-embed-wrap {
    width: 100%;
    border-radius: 12px;
    
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

.cv-embed {
    width: 100%;
    height: 700px;
    border: none;
    display: block;
}

.cv-download-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-family: 'Ubuntu', sans-serif;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.cv-download-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

/* =========================
   EXPERIENCES — ROLE ROWS
========================= */

.exp-roles {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
}

.exp-role-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.exp-role-title {
    font-size: 22px;
    font-weight: 600;
}

.exp-role-dates {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.5px;
}

.exp-placeholder-note {
    opacity: 0.6;
    font-style: italic;
}