:root {
    --bg-dark: #010816;
    --accent-blue: #0071e3;
    --text-main: #ffffff;
    --text-dim: #a1a1a6;
    --glass: rgba(255, 255, 255, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.4;
    overflow-x: hidden;
}

.container.tight {
    max-width: 800px;
    margin: 20px auto; /* Minimal white space */
    padding: 0 20px;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), #00a8ff);
    z-index: 1001;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(0, 113, 227, 0.5);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(1, 8, 22, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
}

.logo { font-weight: 700; text-decoration: none; color: #fff; font-size: 0.8rem; }
.nav-links { display: flex; list-style: none; gap: 15px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-dim); font-size: 0.75rem; }

.resume-btn {
    border: 1px solid var(--accent-blue);
    padding: 4px 12px;
    border-radius: 15px;
    color: var(--accent-blue) !important;
}

/* CENTERED WORD CAROUSEL */
.hero-center {
    height: 50vh; /* Reduced height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 15px;
    min-height: 4rem;
}

.hook-text {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-dim);
    margin-bottom: 30px;
    min-height: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.hook-text sup {
    font-size: 0.7em;
    vertical-align: super;
}

.hook-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
    margin-left: 4px;
}

.hook-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.resume-download-btn {
    display: block;
    margin: 24px auto 30px auto;
    padding: 10px 20px;
    background: transparent;
    color: var(--accent-blue);
    text-decoration: none;
    border: 1px solid var(--accent-blue);
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    width: fit-content;
}

.resume-download-btn:hover {
    background: rgba(0, 113, 227, 0.1);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.cursor {
    color: var(--accent-blue);
    font-weight: 300;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.word-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    height: 48px;
    font-size: 1.1rem;
    color: var(--text-dim);
}

.static-text { white-space: nowrap; }

.skills-carousel {
    position: relative;
    overflow: hidden;
    max-width: 520px;
}

.skills-track {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    animation: scroll-skills 22s linear infinite;
    will-change: transform;
}

.skill-pill {
    border-radius: 999px;
    padding: 6px 14px;
    border: 1px solid rgba(0, 113, 227, 0.5);
    background: rgba(0, 113, 227, 0.12);
    color: var(--accent-blue);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

@keyframes scroll-skills {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* CONTENT BLOCKS */
.section-label { color: var(--accent-blue); font-family: monospace; font-size: 0.65rem; margin-bottom: 15px; opacity: 0.6; }

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.glass-card { background: var(--glass); padding: 20px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); }
.project-item { margin-bottom: 20px; }
.project-header { display: flex; justify-content: space-between; margin-bottom: 2px; }
.project-header h3 { font-size: 1.1rem; }
.project-date { color: var(--accent-blue); font-size: 0.8rem; font-weight: 600; }

/* CARDS GRID */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.experience-card {
    background: var(--glass);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    cursor: pointer;
}

.experience-card[open],
.experience-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 113, 227, 0.2);
}

.experience-card summary {
    list-style: none;
    cursor: pointer;
}

.experience-card summary::-webkit-details-marker {
    display: none;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.card-badge {
    background: rgba(0, 113, 227, 0.15);
    color: var(--accent-blue);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.experience-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
}

.card-link {
    color: var(--accent-blue);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: auto;
}

.card-summary {
    margin-bottom: 8px;
}

.card-details {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
    font-size: 0.9rem;
}

.card-details ul {
    padding-left: 18px;
}

.card-details li {
    margin-bottom: 6px;
}

.project-images {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.project-images h4 {
    color: var(--accent-blue);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 12px;
}

.image-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0, 113, 227, 0.3);
}

.image-placeholder {
    background: rgba(0, 113, 227, 0.08);
    border: 2px dashed rgba(0, 113, 227, 0.3);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-dim);
}

.image-placeholder p {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.image-placeholder small {
    font-size: 0.75rem;
    opacity: 0.7;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.tech-tag {
    background: rgba(0, 113, 227, 0.1);
    color: var(--accent-blue);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(0, 113, 227, 0.2);
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: rgba(0, 113, 227, 0.2);
    transform: translateY(-1px);
}

.skills-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.skill-category {
    background: var(--glass);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-category h3 {
    color: var(--accent-blue);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-item {
    background: rgba(0, 113, 227, 0.08);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 113, 227, 0.15);
    transition: all 0.2s ease;
}

.skill-item:hover {
    background: rgba(0, 113, 227, 0.15);
    border-color: var(--accent-blue);
    transform: translateY(-1px);
}

.contact-card {
    background: var(--glass);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.contact-card p {
    color: var(--text-dim);
    margin-bottom: 24px;
    line-height: 1.6;
}

.contact-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: var(--accent-blue);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.4);
    background: #005bb5;
}

.contact-btn.secondary {
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    box-shadow: none;
}

.contact-btn.secondary:hover {
    background: rgba(0, 113, 227, 0.1);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
}

footer { text-align: center; padding: 25px; color: var(--text-dim); font-size: 0.7rem; }
/* LinkedIn button */
.linkedin-btn {
    background: #0a66c2;
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.35);
}

.linkedin-btn:hover {
    background: #004182;
    box-shadow: 0 6px 20px rgba(10, 102, 194, 0.45);
}

.linkedin-icon {
    width: 18px;
    height: 18px;
    fill: white;
    margin-right: 8px;
}
/* Visible image carousel */
/* Project images: one per row, no compression */
.visible-carousel {
    display: flex;
    flex-direction: column;   /* 👈 THIS is the key */
    gap: 16px;
}

.carousel-img img {
    width: 100%;              /* 👈 fill container */
    height: auto;             /* 👈 preserve aspect ratio */
    max-height: 420px;        /* optional, prevents giant images */
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
}


.visible-carousel::-webkit-scrollbar {
    height: 6px;
}

.visible-carousel::-webkit-scrollbar-thumb {
    background: rgba(0, 113, 227, 0.4);
    border-radius: 4px;
}

.carousel-img img {
    height: 160px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.carousel-img img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0,113,227,0.35);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(1,8,22,0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.lightbox:target {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2.5rem;
    color: white;
    text-decoration: none;
}
