/*------------------------------------
  Hero Section (Clean + Apple-like)
------------------------------------*/

/* BASE HERO */
.hero {
    height: 78vh;
    min-height: 340px;
    position: relative;
    background: url('../images/Carter/carter-cover.png') no-repeat center center/cover;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    transform: translateZ(0);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    color: #ffffff;
    margin: 0;
}

/* BASE DARK OVERLAY */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.65);
}

/* LIGHT MODE OVERRIDES */
@media (prefers-color-scheme: light) {
    .hero,
    .hero h1,
    .hero h2,
    .hero p {
        color: #ffffff !important;
    }

    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
        background: rgba(0, 0, 0, 0.45) !important;
        backdrop-filter: brightness(0.7) saturate(0.9) !important;
    }

    .hero .hero-btn {
        color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.9) !important;
    }

    .hero .hero-btn:hover {
        background: #ffffff !important;
        color: #000000 !important;
    }
}

/* DARK MODE HERO BUTTONS */
@media (prefers-color-scheme: dark) {
    .hero .hero-btn {
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.9);
    }
    .hero .hero-btn:hover {
        background: #ffffff;
        color: #121212;
    }
}

/* HERO CONTENT */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 78vh;
    min-height: 340px;
    text-align: center;
    animation: fadeIn 1.5s ease-in-out;
}

/* Profile image with thinner ring */
.hero .profile-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    object-fit: cover;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
}

/* HERO TITLES */
.hero-title h1 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.2;
}

.hero-title .tagline {
    font-size: 0.85rem;
    font-weight: 400;          /* Thin, refined */
    letter-spacing: 0.22em;    /* Wide, elegant spacing */
    text-transform: uppercase;
    margin-top: 6px;
    opacity: 0.85;
    line-height: 1.4;
}

/* HERO BUTTON LAYOUT */
.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

/* Base hero button styles */
.hero .hero-btn {
    background: rgba(0, 0, 0, 0.25);
    padding: 10px 26px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease; text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.hero .hero-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}
.hero .hero-btn:hover {
    background-color: rgba(255, 255, 255, 0.12);
}
/* Fade-in keyframe */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*------------------------------------
  Scroll Reveal Animations
------------------------------------*/
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
}

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

/*------------------------------------
  Shared Section Title Styling
------------------------------------*/
.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    animation: fadeInDown 1s ease-in-out;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    height: 3px;
    width: 100%;
    background: #4facfe;
    transform-origin: center;
    transform: scaleX(0);
    animation: underlineGrow 1s ease forwards;
}

@keyframes underlineGrow {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*------------------------------------
  Secondary Background Cards
------------------------------------*/
.skill-card,
.project-card,
.experience-card,
.work-item {
    background-color: var(--bg-secondary-dark);
    transition: background-color 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: light) {
    .skill-card,
    .project-card,
    .experience-card,
    .work-item {
        background-color: var(--bg-secondary-light);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    }
}

/* Work item with no image */
.work-item.no-image {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
    padding: 24px;
}

/* Ensure consistent text styling */
.work-item.no-image .work-content {
    max-width: 600px;
}

/* Hover effect */
.work-item:hover,
.skill-card:hover,
.project-card:hover,
.experience-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

/*------------------------------------
  Skills Section – Grid Glass Cards
------------------------------------*/
.skills-section {
    padding: 0 24px 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.skills-title {
    /* uses .section-title */
}

.skills-intro {
    max-width: 620px;
    margin: 0 auto 36px;
    font-size: 0.98rem;
    line-height: 1.7;
    opacity: 0.9;
}

/* Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
    margin: 0 auto;
    max-width: 1100px;
}

/* Card */
.skill-card {
    position: relative;
    padding: 18px 18px 20px;
    border-radius: 20px;
    background: rgba(15, 15, 20, 0.9);
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    text-align: left;
    overflow: hidden;
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

/* Glow effect similar to other sections */
.skill-card::before {
    content: '';
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top left, rgba(79,172,254,0.25), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 42px rgba(0,0,0,0.6);
    border-color: rgba(255,255,255,0.16);
}

.skill-card:hover::before {
    opacity: 1;
}

/* Pill */
.skill-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.16);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 6px;
}

.skill-pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4facfe;
}

/* Headings & body */
.skill-card h3 {
    font-size: 1.08rem;
    margin-bottom: 4px;
    color: #ffffff;
}

.skill-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.94;
    margin-bottom: 8px;
}

/* Tags */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 0 0;
    padding: 0;
    list-style: none;
}

.skill-tags li {
    font-size: 0.78rem;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    opacity: 0.9;
}

/* Light mode */
@media (prefers-color-scheme: light) {
    .skill-card {
        background: rgba(255,255,255,0.9);
        border: 1px solid rgba(0,0,0,0.06);
        box-shadow: 0 10px 26px rgba(0,0,0,0.1);
    }

    .skill-card h3 {
        color: #111;
    }

    .skill-card p {
        color: #333;
    }

    .skill-tags li {
        border-color: rgba(0,0,0,0.2);
    }
}

@media (max-width: 768px) {
    .skills-section {
        padding: 0 18px 60px;
    }
}

/*------------------------------------
    Projects Section – Glass Rail
------------------------------------*/
.projects-section {
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.projects-intro {
    max-width: 640px;
    margin: 0 auto 36px;
    font-size: 0.98rem;
    line-height: 1.7;
    opacity: 0.9;
}

/* Horizontal rail */
.projects-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
    scrollbar-width: none;
}
.projects-scroll::-webkit-scrollbar {
    display: none;
}

/* Row of cards */
.projects-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 40px;
    padding: 10px 4px;
}

/*------------------------------------
    Project Card – Glass Slab + Top Image
------------------------------------*/
.project-card {
    flex: 0 0 480px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    padding: 0 24px 22px 24px;   /* image is flush at top; padding on sides + bottom */
    border-radius: 22px;

    background: rgba(15, 15, 20, 0.9);
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    position: relative;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;

    height: auto;
    min-height: 620px; /* enough vertical room; grows if content longer */
}

/* Blue radial glow like other sections */
.project-card::before {
    content: '';
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top left, rgba(79,172,254,0.26), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 48px rgba(0,0,0,0.65);
    border-color: rgba(255,255,255,0.18);
}

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

/*------------------------------------
    Media – Full-width top slab
------------------------------------*/
.project-media {
    position: relative;
    margin: 0 -24px 12px -24px;    /* bleed to card edge like before */
    height: 230px;                 /* uniform frame for all covers */
    border-radius: 22px 22px 0 0;  /* only top corners rounded */
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,0.75);
    background: #050509;
}

.project-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top,
        rgba(255,255,255,0.15),
        transparent 55%);
    mix-blend-mode: screen;
    opacity: 0.8;
    pointer-events: none;
}

.project-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateZ(0);
}

/*------------------------------------
    Body – Pill, title, copy
------------------------------------*/
.project-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
    z-index: 1;
}



/* Pill */
.project-pill {
    display: inline-flex;                /* inline so it never stretches */
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.16);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 6px;

    width: auto;                         /* ensures pill fits only content */
    max-width: fit-content;              /* prevents stretching */
    white-space: nowrap;                 /* stops line breaks inside pill */
}

.project-pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4facfe;
}

/* Titles */
.project-body h3 {
    font-size: 1.32rem;
    font-weight: 600;
    margin: 2px 0 2px 0;
    color: #ffffff;
}

.project-tag {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 2px 0 6px 0;
    color: #4facfe;
    opacity: 0.9;
}

/* Copy */
.project-body p {
    font-size: 0.96rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    margin: 0 0 10px 0;
}

.project-body p + p {
    margin-top: 2px; /* tighter between paragraphs */
}

.project-body p {
    white-space: normal !important;
    overflow-wrap: break-word !important;
}
/*------------------------------------
    Buttons – centred + anchored
------------------------------------*/
.project-buttons {
    margin-top: auto;             /* pushes buttons to bottom of card body */
    padding-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;      /* always centred */
    align-items: center;
}

.project-buttons .btn {
    background: transparent;
    color: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.22);
    padding: 9px 22px;
    border-radius: 999px;
    font-size: 0.9rem;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.project-buttons .btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-2px);
}

/*------------------------------------
    Light Mode – Projects
------------------------------------*/
@media (prefers-color-scheme: light) {
    .project-card {
        background: rgba(255,255,255,0.92);
        border: 1px solid rgba(0,0,0,0.06);
        box-shadow: 0 10px 28px rgba(0,0,0,0.10);
    }

    .project-card::before {
        background: radial-gradient(circle at top left,
            rgba(79,172,254,0.18), transparent 60%);
    }

    .project-media {
        box-shadow: 0 12px 30px rgba(0,0,0,0.12);
        background: #f5f5f7;
    }

    .project-media::before {
        opacity: 0.7;
    }

    .project-body h3 {
        color: #111;
    }

    .project-body p {
        color: #333;
    }

    .project-tag {
        color: #007aff;
    }

    .project-pill {
        border-color: rgba(0,0,0,0.18);
        color: #111;
    }

    .project-pill .dot {
        background: #007aff;
    }

    .project-buttons .btn {
        color: #111;
        border-color: rgba(0,0,0,0.25);
    }

    .project-buttons .btn:hover {
        background: rgba(0,0,0,0.06);
        border-color: rgba(0,0,0,0.45);
    }
}

/*------------------------------------
    Projects – Responsive
------------------------------------*/
@media (max-width: 900px) {
    .projects-row {
        gap: 26px;
    }

    .project-card {
        flex: 0 0 82vw;
        max-width: 500px;
    }
}

/*------------------------------------
    Dark-mode safety just for project buttons
------------------------------------*/
@media (prefers-color-scheme: dark) {
    .project-buttons .btn:hover {
        color: #ffffff !important; /* make sure text never goes black */
        background: rgba(255,255,255,0.14) !important;
        border-color: rgba(255,255,255,0.38) !important;
    }
}

/*------------------------------------
  Current Work Section – Refined
------------------------------------*/
.current-work-section {
    padding: 80px 20px 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.current-work-section .section-title {
    margin-bottom: 18px;
}

.current-work-intro {
    max-width: 640px;
    margin: 0 auto 40px;
    font-size: 0.98rem;
    line-height: 1.7;
    opacity: 0.9;
}

/* Grid of cards */
.current-work-grid {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

/* Card shell */
.current-work-card {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 22px 24px;
    border-radius: 22px;

    background: rgba(15, 15, 20, 0.85);
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    position: relative;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

/* Subtle highlight on hover */
.current-work-card::before {
    content: '';
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top left, rgba(79,172,254,0.28), transparent 60%);
    opacity: 0;
    transform: translate3d(0,0,0);
    transition: opacity 0.4s ease;
    z-index: 0;
}

.current-work-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 48px rgba(0,0,0,0.55);
    border-color: rgba(255,255,255,0.16);
}

.current-work-card:hover::before {
    opacity: 1;
}

/* Content side */
.current-work-content {
    position: relative;
    z-index: 1;
    text-align: left;
}

.current-work-content h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
    color: #ffffff;
}

.current-work-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 8px;
}

.current-work-pill span.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4facfe;
}

.current-work-content p {
    font-size: 0.96rem;
    line-height: 1.65;
    margin-bottom: 10px;
    opacity: 0.92;
}

.current-work-meta {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Bulleted list block */
.current-work-list {
    list-style: none;
    padding-left: 0;
    margin: 8px 0 0 0;
}

.current-work-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
    font-size: 0.94rem;
    line-height: 1.6;
}

.current-work-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4facfe;
}

/* Image side */
.current-work-image {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.current-work-image-inner {
    position: relative;
    padding: 10px 12px;
    border-radius: 24px;
    background: radial-gradient(circle at top, rgba(255,255,255,0.16), rgba(0,0,0,0.8));
    box-shadow: 0 16px 40px rgba(0,0,0,0.65);
    transform: translateY(2px);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.current-work-card:hover .current-work-image-inner {
    transform: translateY(-3px);
    box-shadow: 0 22px 60px rgba(0,0,0,0.8);
}

.current-work-image-inner::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.12);
    pointer-events: none;
}

/* iPhone-ish screenshot */
.current-work-image img {
    display: block;
    width: 210px;             /* ~20% smaller than before */
    max-width: 100%;
    border-radius: 18px;
    object-fit: cover;
}

/* Card variant with no image */
.current-work-card.no-image {
    grid-template-columns: minmax(0, 1fr);
}

/* Alternating layout on desktop */
.current-work-card.card-right {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}

.current-work-card.card-right .current-work-content {
    order: 1;
}

.current-work-card.card-right .current-work-image {
    order: 2;
}

/* Responsive */
@media (max-width: 900px) {
    .current-work-card,
    .current-work-card.card-right {
        grid-template-columns: minmax(0, 1fr);
    }

    .current-work-content {
        text-align: left;
    }

    .current-work-image {
        margin-top: 10px;
    }
}

@media (prefers-color-scheme: light) {
    .current-work-card {
        background: rgba(255,255,255,0.92);
        border: 1px solid rgba(0,0,0,0.06);
        box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    }
    .current-work-content h3 {
        color: #111;
    }
    .current-work-content p,
    .current-work-meta,
    .current-work-list li {
        color: #222;
    }
}

/*------------------------------------
  Global Buttons
------------------------------------*/
button.btn,
.btn {
    background: transparent;
    font-weight: 500;
    border: 1px solid currentColor;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, transform 0.2s, box-shadow 0.25s;
}

button.btn:hover,
.btn:hover {
    transform: translateY(-1px);
}

/* Hover behaviour from theme variables for non-hero buttons */
@media (prefers-color-scheme: dark) {
    .btn:hover {
        background: var(--btn-hover-bg-dark);
        color: var(--btn-hover-text-dark);
    }
}

@media (prefers-color-scheme: light) {
    .btn:hover {
        background: var(--btn-hover-bg-light);
        color: var(--btn-hover-text-light);
    }
}

/*------------------------------------
  Social Links - Icons
------------------------------------*/
.project-card .social-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.project-card .social-link {
    display: inline-block;
    width: 30px;
    height: 30px;
    transition: transform 0.3s, filter 0.3s;
}

.project-card .social-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0.8);
}

.project-card .social-link:hover img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

/* Global social links */
.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
}

.social-links img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.social-links a:hover img {
    transform: scale(1.1);
}

/*------------------------------------
  Experience Section – Timeline Cards
------------------------------------*/
.experience-section {
    padding: 80px 20px 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.experience-title {
    /* uses .section-title */
}

.experience-intro {
    max-width: 620px;
    margin: 0 auto 40px;
    font-size: 0.98rem;
    line-height: 1.7;
    opacity: 0.9;
}

.experience-grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    position: relative;
}

.experience-item {
    position: relative;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: stretch;
    gap: 18px;
}

/* Vertical line + marker */
.experience-item::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 0;
    bottom: -12px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(79,172,254,0.7), transparent);
    opacity: 0.6;
}

.experience-item:last-child::before {
    bottom: 0;
}

.experience-marker {
    position: relative;
    width: 20px;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.experience-marker::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #4facfe;
    background: #0b0b10;
    box-shadow: 0 0 0 4px rgba(79,172,254,0.25);
}

/* Card body */
.experience-card-shell {
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(15, 15, 20, 0.9);
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.experience-card-shell::before {
    content: '';
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top left, rgba(79,172,254,0.28), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.experience-card-shell:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 42px rgba(0,0,0,0.6);
    border-color: rgba(255,255,255,0.16);
}

.experience-card-shell:hover::before {
    opacity: 1;
}

.experience-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.16);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 6px;
}

.experience-pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4facfe;
}

.experience-card-shell h3 {
    font-size: 1.18rem;
    margin-bottom: 4px;
}

.experience-summary {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 6px;
    opacity: 0.94;
}

.experience-list {
    list-style: none;
    padding-left: 0;
    margin: 8px 0 0 0;
}

.experience-list li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 4px;
    font-size: 0.9rem;
    line-height: 1.55;
    opacity: 0.9;
}

.experience-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.7);
}

@media (max-width: 768px) {
    .experience-section {
        padding: 60px 16px 70px;
    }
}

/*------------------------------------
  About Section – Glass Cards
------------------------------------*/
.about-section {
    padding: 80px 20px 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-section .section-title {
    margin-bottom: 20px;
}

.about-container > p {
    max-width: 640px;
    margin: 0 auto 40px;
    font-size: 0.98rem;
    line-height: 1.7;
    opacity: 0.9;
}

.about-card {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 26px;
    align-items: center;
    padding: 24px 26px;
    margin-bottom: 26px;
    border-radius: 22px;
    background: rgba(15, 15, 20, 0.9);
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.about-card::before {
    content: '';
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top right, rgba(79,172,254,0.25), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 50px rgba(0,0,0,0.65);
    border-color: rgba(255,255,255,0.16);
}

.about-card:hover::before {
    opacity: 1;
}

.about-card-alt {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

/* Full-width card */
.about-card-full {
    grid-template-columns: minmax(0, 1fr);
}

/* Pill */
.about-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.16);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 6px;
}

.about-pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4facfe;
}

.about-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.about-content p {
    font-size: 0.96rem;
    line-height: 1.7;
    opacity: 0.94;
    margin-bottom: 10px;
}

/* Image shell */
.about-image {
    display: flex;
    justify-content: center;
}

.about-image-inner {
    position: relative;
    padding: 10px 12px;
    border-radius: 24px;
    background: radial-gradient(circle at top, rgba(255,255,255,0.15), rgba(0,0,0,0.9));
    box-shadow: 0 16px 40px rgba(0,0,0,0.75);
    transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.about-card:hover .about-image-inner {
    transform: translateY(-3px);
    box-shadow: 0 22px 60px rgba(0,0,0,0.9);
}

.about-image-inner::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.16);
    pointer-events: none;
}

.about-image img {
    display: block;
    width: 230px;
    max-width: 100%;
    border-radius: 18px;
    object-fit: cover;
}

@media (max-width: 900px) {
    .about-card,
    .about-card-alt {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-image {
        margin-top: 8px;
        justify-content: flex-start;
    }
}

/*------------------------------------
  Contact Section – Glass Form
------------------------------------*/
.contact-section {
    padding: 70px 20px 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-intro {
    max-width: 620px;
    margin: 0 auto 32px;
    font-size: 0.98rem;
    line-height: 1.7;
    opacity: 0.9;
}

.contact-card {
    max-width: 820px;
    margin: 0 auto;
    padding: 24px 26px 30px;
    border-radius: 22px;
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top left, rgba(79,172,254,0.24), transparent 60%);
    opacity: 0.2;
    pointer-events: none;
}

/* Form layout */
.form-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 26px;
    max-width: 780px;
    margin: 0 auto 26px;
    text-align: left;
}

.form-left,
.form-right {
    flex: 1;
    min-width: 260px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(5, 5, 8, 0.7);
    font-size: 0.95rem;
    color: #ffffff;
    transition: box-shadow 0.25s, border-color 0.25s, background 0.25s, transform 0.15s;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4facfe;
    box-shadow: 0 0 0 1px rgba(79,172,254,0.55);
    background: rgba(12, 12, 20, 0.95);
    transform: translateY(-1px);
}

.contact-btn {
    margin-top: 4px;
    padding-inline: 30px;
}

/* Light mode tweaks */
@media (prefers-color-scheme: light) {
    .contact-card {
        background: rgba(255,255,255,0.96);
        border: 1px solid rgba(0,0,0,0.06);
        box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    }

    .form-group input,
    .form-group textarea {
        background: rgba(255,255,255,0.96);
        border-color: rgba(0,0,0,0.18);
        color: #111;
    }

    .form-group input:focus,
    .form-group textarea:focus {
        background: #ffffff;
        border-color: #4facfe;
        box-shadow: 0 0 0 1px rgba(79,172,254,0.55);
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 16px 70px;
    }

    .form-wrapper {
        flex-direction: column;
    }
}

/*------------------------------------
  Footer – Tight & Clean
------------------------------------*/
.site-footer {
    background: #0b0b10;
    padding: 18px 18px 22px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 20px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    font-size: 0.9rem;
}

.footer-left p {
    margin: 0;
}

.footer-sub {
    opacity: 0.7;
    font-size: 0.82rem;
    margin-top: 2px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-right .social-link {
    display: inline-block;
    width: 28px;
    height: 28px;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.footer-right .social-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-right .social-link:hover {
    transform: translateY(-1px) scale(1.05);
    filter: brightness(1.15);
}

@media (max-width: 700px) {
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/*------------------------------------
  Base Page
------------------------------------*/
body {
    margin: 0;
    padding: 0;
}

/*------------------------------------
  GLOBAL LIGHT MODE OVERRIDES
------------------------------------*/
@media (prefers-color-scheme: light) {

    /*==============================
      ABOUT SECTION – Light Theme
    ==============================*/
    .about-card,
    .about-card-alt,
    .about-card-full {
        background: rgba(255,255,255,0.9) !important;
        border: 1px solid rgba(0,0,0,0.08) !important;
        box-shadow: 0 10px 32px rgba(0,0,0,0.10) !important;
    }

    .about-card::before,
    .about-card-alt::before,
    .about-card-full::before {
        background: radial-gradient(circle at top right,
            rgba(79,172,254,0.22), transparent 60%) !important;
        opacity: 0.35 !important;
    }

    .about-content h3 {
        color: #111 !important;
    }

    .about-content p {
        color: #333 !important;
        opacity: 0.92 !important;
    }

    .about-pill {
        border-color: rgba(0,0,0,0.18) !important;
    }

    .about-pill .dot {
        background: #007aff !important;
    }

    .about-image-inner {
        background: rgba(255,255,255,0.90) !important;
        box-shadow: 0 14px 34px rgba(0,0,0,0.10) !important;
    }

    .about-image-inner::before {
        border-color: rgba(0,0,0,0.1) !important;
    }


    /*==============================
      EXPERIENCE SECTION – Light Theme
    ==============================*/
    .experience-card-shell {
        background: rgba(255,255,255,0.94) !important;
        border: 1px solid rgba(0,0,0,0.08) !important;
        box-shadow: 0 12px 30px rgba(0,0,0,0.10) !important;
    }

    .experience-card-shell::before {
        background: radial-gradient(circle at top left,
            rgba(79,172,254,0.18), transparent 60%) !important;
        opacity: 0.4 !important;
    }

    .experience-card-shell h3 {
        color: #111 !important;
    }

    .experience-summary,
    .experience-list li {
        color: #333 !important;
        opacity: 0.9 !important;
    }

    .experience-list li::before {
        background: rgba(0,0,0,0.45) !important;
    }

    .experience-pill {
        border-color: rgba(0,0,0,0.18) !important;
    }

    .experience-pill .dot {
        background: #007aff !important;
    }


    /*==============================
      VERTICAL TIMELINE – Light Theme
    ==============================*/
    .experience-item::before {
        background: linear-gradient(to bottom, rgba(0,122,255,0.65), transparent) !important;
    }

    .experience-marker::before {
        border-color: #007aff !important;
        background: #ffffff !important;
        box-shadow: 0 0 0 4px rgba(0,122,255,0.25) !important;
    }


    /*==============================
      FOOTER – Light Theme
    ==============================*/
    .site-footer {
        background: #fafafa !important;
        border-top: 1px solid rgba(0,0,0,0.08) !important;
        color: #111 !important;
    }

    .footer-left p,
    .footer-sub {
        color: #111 !important;
        opacity: 0.9 !important;
    }

    .footer-right .social-link img {
        filter: brightness(0.3) !important;
    }

    .footer-right .social-link:hover {
        filter: brightness(0.15) !important;
    }


    /*==============================
      SHARED LIGHT-MODE TWEAKS
    ==============================*/

    /* Pills */
    .about-pill,
    .experience-pill,
    .current-work-pill,
    .skill-pill {
        border-color: rgba(0,0,0,0.18) !important;
        color: #111 !important;
    }

    .about-pill .dot,
    .experience-pill .dot,
    .current-work-pill .dot,
    .skill-pill .dot {
        background: #007aff !important;
    }

    /* Text tokens */
    .about-content p,
    .experience-summary,
    .experience-list li,
    .current-work-content p {
        color: #222 !important;
    }

    /* Image shells */
    .about-image-inner,
    .current-work-image-inner {
        background: rgba(255,255,255,0.90) !important;
        box-shadow: 0 12px 30px rgba(0,0,0,0.10) !important;
    }

    .about-image-inner::before,
    .current-work-image-inner::before {
        border-color: rgba(0,0,0,0.1) !important;
    }
}
/* ----- Compact global vertical spacing ----- */
.about-section,
.projects-section,
.current-work-section,
.experience-section,
.skills-section,
.contact-section {
    padding-top: 48px !important;
    padding-bottom: 60px !important;
}

/* Section titles closer to content */
.section-title {
    margin-bottom: 26px !important;
}

/* Intro paragraphs tighter */
.about-intro,
.projects-intro,
.current-work-intro,
.experience-intro,
.contact-intro,
.skills-intro {
    margin-bottom: 24px !important;
}