/* ========================
   CSS VARIABLES FOR THEMING
======================== */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f0;
    --text-primary: #333333;
    --text-secondary: #555555;
    --text-light: #777777;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --card-bg: rgba(255, 255, 255, 0.5);
    --card-hover-bg: rgba(255, 255, 255, 0.6);
    --header-bg: rgba(255, 255, 255, 0.7);
    --blob-pink: rgba(242, 127, 166, 0.35);
    --blob-cyan: rgba(42, 184, 184, 0.25);
    --pink: #f27fa6;
    --cyan: #2AB8B8;
    --dark: #111111;
}

[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-light: #888888;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --card-bg: rgba(20, 20, 20, 0.7);
    --card-hover-bg: rgba(30, 30, 30, 0.8);
    --header-bg: rgba(10, 10, 10, 0.8);
    --blob-pink: rgba(242, 127, 166, 0.08);
    --blob-cyan: rgba(42, 184, 184, 0.08);
    --pink: #ff6b9d;
    --cyan: #00d4d4;
    --dark: #e0e0e0;
}

/* ========================
   GENERAL STYLES
======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography hierarchy */
h1 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    font-size: 3rem;
    line-height: 1.2;
    color: var(--text-primary);
}

h2 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.3;
    color: var(--text-primary);
}

h3 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--text-primary);
}

p {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}

/* ========================
   FULL PAGE GRADIENT BACKGROUND
======================== */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at center, var(--blob-pink), transparent 70%);
    border-radius: 50%;
    animation: float 25s infinite ease-in-out;
    transition: background 0.3s ease;
}

.blob.b1 {
    top: -100px;
    left: -100px;
    animation-delay: 0s;
    background: radial-gradient(circle at center, var(--blob-pink), transparent 70%);
}

.blob.b2 {
    bottom: -150px;
    right: -150px;
    animation-delay: 10s;
    background: radial-gradient(circle at center, var(--blob-cyan), transparent 70%);
}

.blob.b3 {
    top: 200px;
    right: -200px;
    animation-delay: 5s;
    background: radial-gradient(circle at center, var(--blob-pink), transparent 70%);
}

.blob.b4 {
    bottom: 100px;
    left: 100px;
    animation-delay: 15s;
    background: radial-gradient(circle at center, var(--blob-cyan), transparent 70%);
}

@keyframes float {
    0%   { transform: translate(0,0) scale(1); }
    50%  { transform: translate(50px, -30px) scale(1.1); }
    100% { transform: translate(0,0) scale(1); }
}

/* Gentle water-like movement for about page */
@keyframes waterFloat {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(80px, -50px) scale(1.08); }
    66%  { transform: translate(-60px, -30px) scale(0.95); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes bubble {
    0%, 70% { transform: translate(0, 0) scale(1); }
    80%    { transform: translate(0, -60px) scale(1.2); }
    90%    { transform: translate(0, -30px) scale(1.1); }
    100%   { transform: translate(0, 0) scale(1); }
}

/* About page and Portfolio page specific blob animations */
.about-me ~ .gradient-bg .blob,
body:has(.about-me) .gradient-bg .blob,
.portfolio-section ~ .gradient-bg .blob,
body:has(.portfolio-section) .gradient-bg .blob {
    animation: waterFloat 15s infinite ease-in-out;
}

.about-me ~ .gradient-bg .blob.b1,
body:has(.about-me) .gradient-bg .blob.b1,
.portfolio-section ~ .gradient-bg .blob.b1,
body:has(.portfolio-section) .gradient-bg .blob.b1 {
    animation-delay: 0s;
}

.about-me ~ .gradient-bg .blob.b2,
body:has(.about-me) .gradient-bg .blob.b2,
.portfolio-section ~ .gradient-bg .blob.b2,
body:has(.portfolio-section) .gradient-bg .blob.b2 {
    animation: waterFloat 13s infinite ease-in-out, bubble 6s infinite ease-in-out;
    animation-delay: 3s, 2s;
}

.about-me ~ .gradient-bg .blob.b3,
body:has(.about-me) .gradient-bg .blob.b3,
.portfolio-section ~ .gradient-bg .blob.b3,
body:has(.portfolio-section) .gradient-bg .blob.b3 {
    animation-delay: 2s;
}

.about-me ~ .gradient-bg .blob.b4,
body:has(.about-me) .gradient-bg .blob.b4,
.portfolio-section ~ .gradient-bg .blob.b4,
body:has(.portfolio-section) .gradient-bg .blob.b4 {
    animation: waterFloat 16s infinite ease-in-out, bubble 7s infinite ease-in-out;
    animation-delay: 5s, 4s;
    bottom: -100px;
    left: 50%;
    background: radial-gradient(circle at center, rgba(242,127,166,0.25), transparent 70%);
}

/* ========================
   HEADER
======================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 15px 30px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    z-index: 100;
}

header.scrolled {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 5px var(--shadow-color);
}

header .logo {
    justify-self: start;
}

header .logo a {
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--dark);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

header .logo a:hover {
    color: var(--pink);
}

.logo-icon-container {
    position: relative;
    height: 50px;
    width: 50px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: flex-end;
}

.logo-icon-container:hover {
    transform: scale(1.05);
}

.logo-icon {
    height: 50px;
    width: auto;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: height 0.3s ease;
    opacity: 0;
}

.logo-icon.ready {
    opacity: 1;
}

/* In light mode, panda is slightly smaller */
[data-theme="light"] .logo-icon {
    height: 40px;
}

/* In dark mode, rabbit uses full height */
[data-theme="dark"] .logo-icon {
    height: 50px;
}

.logo-icon-base {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.logo-icon-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.logo-icon-hover.ready {
    opacity: 0;
}

.logo-icon-container:hover .logo-icon-hover.ready {
    opacity: 1;
}

header .site-nav {
    justify-self: center;
    display: flex;
    gap: 25px;
}

header nav a {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
    transition: color 0.3s ease;
}

header nav a:hover {
    color: var(--pink);
}

header nav a.active {
    color: var(--pink);
    pointer-events: none;
    cursor: default;
}

/* Theme Toggle */
.theme-toggle {
    justify-self: end;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.theme-toggle:hover {
    border-color: var(--pink);
    transform: scale(1.05);
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

/* ========================
   FOOTER
======================== */
footer {
    background: transparent;
    padding: 30px 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: end;
}

.footer-left {
    text-align: left;
}

.footer-left-title {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.footer-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-icon {
    height: 20px;
    width: auto;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.footer-icons a:hover .footer-icon {
    color: var(--pink);
}

.footer-center {
    display: flex;
    align-items: flex-end;
    position: relative;
    min-height: 50px;
}

.footer-panda {
    width: 50px;
    height: auto;
    opacity: 0.6;
    display: block;
    transition: opacity 0.3s ease;
}

.footer-right {
    text-align: right;
}

.footer-copy {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.footer-tagline {
    color: var(--text-light);
    font-size: 0.75rem;
    font-style: italic;
    line-height: 1.4;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }

    .footer-left {
        text-align: center;
    }

    .footer-right {
        text-align: center;
    }

    .footer-icons {
        justify-content: center;
    }

    .footer-center {
        justify-content: center;
    }

    .footer-panda {
        width: 40px;
    }
}

.footer-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-contact a:hover {
    color: var(--pink);
}

/* ========================
   HERO (INDEX.HTML)
======================== */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    margin-top: -60px;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-content h1 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    font-size: 5rem;
    color: var(--text-secondary);
    margin: 0 0 40px;
    line-height: 1.1;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content .hero-greeting {
    color: var(--text-secondary);
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    margin-right: -0.15em;
}

.hero-content .hero-name {
    color: var(--pink);
    font-family: 'Indie Flower', cursive;
    font-weight: 400;
    font-size: 1.5em;
    position: relative;
    z-index: 1;
    display: inline-block;
    animation: fadeInName 1.5s ease-out 0.5s both;
}

@keyframes fadeInName {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-content p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.6;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--pink);
    padding: 14px 32px;
    border-radius: 30px;
    border: 1px solid rgba(242, 127, 166, 0.3);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(242,127,166,0.15);
}

.cta-button:hover {
    background: var(--card-hover-bg);
    border-color: rgba(242, 127, 166, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242,127,166,0.25);
}

/* ========================
   PORTFOLIO GRID (INDEX.HTML)
======================== */
.portfolio-section {
    position: relative;
    z-index: 1;
    padding: 120px 20px 80px;
    background: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Portfolio Page Titles */
.portfolio-main-title {
    font-size: 3.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-secondary);
}

.portfolio-main-title .title-regular {
    color: var(--text-secondary);
}

.portfolio-main-title .title-accent {
    color: var(--pink);
    font-family: 'Indie Flower', cursive;
    font-weight: 400;
    font-size: 1.5em;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 60px 0 30px;
    color: var(--text-primary);
    text-align: center;
}

/* Featured Work Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.featured-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 1/1;
    display: block;
    transition: transform 0.3s ease;
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(242, 127, 166, 0.9);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(242, 127, 166, 0.25), 0 8px 24px rgba(42, 184, 184, 0.15);
}

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

.featured-overlay h3 {
    color: var(--bg-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 5px;
}

.featured-overlay p {
    color: var(--bg-primary);
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.9;
}

/* Other Projects Grid */
.other-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

[data-theme="dark"] .project-card {
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(242, 127, 166, 0.25), 0 8px 24px rgba(42, 184, 184, 0.15);
    background: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .project-card:hover {
    background: rgba(30, 30, 30, 0.8);
}

.project-card img {
    width: calc(100% - 40px);
    height: 250px;
    object-fit: contain;
    display: block;
    margin: 20px;
    border-radius: 15px;
}

.project-card img.fill-image {
    object-fit: cover;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--text-primary);
}

.project-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0 0 15px;
    line-height: 1.5;
    display: none;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    background: transparent;
    color: var(--pink);
    border: 1.5px solid var(--pink);
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tag.tech-tag {
    color: var(--cyan);
    border-color: var(--cyan);
}

/* Portfolio Page Responsive */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

    .other-projects-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-main-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin: 40px 0 20px;
    }
}

@media (max-width: 480px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 99999;
    overflow-y: auto;
    padding: 40px 20px;
}

.modal-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 60px 40px 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 60px var(--shadow-color);
    z-index: 100000;
}

[data-theme="dark"] .modal-content {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    font-weight: 300;
    color: var(--pink);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--card-bg);
    transition: all 0.3s ease;
    line-height: 1;
    box-shadow: 0 2px 10px var(--shadow-color);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(242, 127, 166, 0.9);
    color: var(--bg-primary);
    transform: rotate(90deg) scale(1.1);
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.modal-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.modal-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.modal-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-tags .tag {
    display: inline-block;
    padding: 6px 14px;
    background: transparent;
    color: var(--pink);
    border: 1.5px solid var(--pink);
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    margin-bottom: 25px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.carousel-slide.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 0;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: var(--pink);
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(242, 127, 166, 0.9);
    color: var(--bg-primary);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background: var(--pink);
    width: 30px;
    border-radius: 6px;
}

/* Image Lightbox */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100000;
    overflow-y: auto;
    padding: 20px;
}

.lightbox-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.lightbox-slide {
    display: none;
    width: 100%;
}

.lightbox-slide.active {
    display: block;
}

.lightbox-slide img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    font-weight: 300;
    color: var(--pink);
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--card-bg);
    transition: all 0.3s ease;
    line-height: 1;
    z-index: 100001;
}

.lightbox-close:hover {
    background: rgba(242, 127, 166, 0.9);
    color: var(--bg-primary);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: var(--pink);
    border: none;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 2rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    z-index: 100001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(242, 127, 166, 0.9);
    color: var(--bg-primary);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-indicators {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100001;
}

.lightbox-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.lightbox-indicator.active {
    background: var(--pink);
    width: 30px;
    border-radius: 6px;
}

/* Make project images clickable */
.project-images img {
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.project-images img:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 30px 20px;
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }

    .modal-content p {
        font-size: 1rem;
    }

    .carousel-container {
        height: 350px;
    }

    .carousel-prev,
    .carousel-next {
        padding: 10px 15px;
        font-size: 1.2rem;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 15px 20px;
        font-size: 1.5rem;
    }

    .lightbox-close {
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }
}

/* ========================
   PROJECT DETAIL PAGE
======================== */
.project-detail {
    position: relative;
    z-index: 1;
    padding: 120px 0 80px;
}

.project-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

.back-button {
    display: inline-block;
    color: var(--pink);
    font-weight: 600;
    margin-bottom: 30px;
    transition: transform 0.2s ease;
}

.back-button:hover {
    transform: translateX(-5px);
}

.project-header {
    margin-bottom: 50px;
}

.project-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.project-title .title-accent {
    font-family: 'Indie Flower', cursive;
    font-weight: 400;
    color: var(--pink);
}

.project-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 600;
}

.project-timeline {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background: var(--card-hover-bg);
    backdrop-filter: blur(10px);
    color: var(--pink);
    border: 1.5px solid var(--pink);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.project-hero-image {
    width: 100%;
    margin-bottom: 60px;
    border-radius: 15px;
    overflow: hidden;
}

.project-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.project-section {
    margin-bottom: 50px;
}

.project-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.project-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.project-list {
    list-style: none;
    padding: 0;
}

.project-list li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

.project-list li::before {
    content: "•";
    color: var(--pink);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -2px;
}

.tools-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tool-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--card-hover-bg);
    backdrop-filter: blur(10px);
    color: var(--pink);
    border: 1.5px solid var(--pink);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Technical/tool tags - cyan color */
.tool-tag.tech-tag {
    color: var(--cyan);
    border-color: var(--cyan);
}

/* Design/skill tags - keep pink (default) */
.tool-tag.design-tag {
    color: var(--pink);
    border-color: var(--pink);
}

.project-images {
    display: grid;
    gap: 30px;
}

.project-images img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Farm42 images without shadow (transparent backgrounds) */
.farm42-images img {
    box-shadow: none;
}

/* Farm42 components image with shadow */
.farm42-components-with-shadow {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

.project-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.nav-link {
    color: var(--pink);
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.nav-link:hover {
    transform: translateX(-5px);
}

.nav-link:last-child:hover {
    transform: translateX(5px);
}

/* Challenge & Solution Layout */
.challenge-solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    padding: 30px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.challenge-item h3,
.solution-item h3 {
    color: var(--pink);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.challenge-item p,
.solution-item p {
    font-size: 1rem;
    line-height: 1.6;
}

/* 2-Column Image Grid */
.project-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.project-images-grid img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Museum App Screens Layout */
.museum-app-screens {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.screen-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.screen-row-single {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
}

.museum-app-screens img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.museum-app-screens img:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(242, 127, 166, 0.2);
}

/* Museum Hero Image Shadow */
.museum-hero-with-shadow img {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 15px;
}

/* Peek Hero Image No Shadow */
.peek-hero-no-shadow img {
    box-shadow: none;
}

/* Peek Project Images No Shadow */
.peek-images-no-shadow img {
    box-shadow: none;
}

/* OnAir Images No Shadow */
.onair-images-no-shadow img {
    box-shadow: none;
}

/* Instructure Images No Shadow */
.instructure-images-no-shadow img {
    box-shadow: none;
}

/* ========================
   404 ERROR PAGE
======================== */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 80px;
    position: relative;
}

.error-container {
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.error-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.error-message {
    font-family: 'Indie Flower', cursive;
    font-size: 1.5rem;
    color: var(--pink);
    margin-bottom: 20px;
}

.error-image {
    margin: 10px 0 40px;
}

.error-image img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.error-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--pink);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 30px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(242, 127, 166, 0.3);
}

.error-button:hover {
    background: #e06a8f;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(242, 127, 166, 0.4);
}

@media (max-width: 768px) {
    .error-title {
        font-size: 1.8rem;
    }

    .error-message {
        font-size: 1.2rem;
    }
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.process-step {
    padding: 30px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(242, 127, 166, 0.3);
    line-height: 1;
    margin-bottom: 15px;
}

.process-step h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.process-step p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    display: block;
    border-radius: 15px;
}

/* Single Large Image */
.single-image-large {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 600px;
}

.single-image-large img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Role Grid */
.role-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.role-item {
    padding: 25px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.role-item:hover {
    transform: translateY(-3px);
    background: var(--card-hover-bg);
    box-shadow: 0 8px 25px rgba(242, 127, 166, 0.12);
}

.role-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--pink);
}

.role-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Features List */
.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.feature-item {
    padding: 25px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-item p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* App Store Links */
.app-store-links {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.app-store-button {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(242, 127, 166, 0.9);
    color: var(--bg-primary);
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.app-store-button:hover {
    background: rgba(242, 127, 166, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(242, 127, 166, 0.3);
}

/* Comparison Images (Side by Side) */
.comparison-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.comparison-side {
    text-align: center;
}

.comparison-side h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--pink);
}

.comparison-side img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* ========================
   CONTACT PAGE
======================== */
.contact-page {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 120px 20px 80px;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.contact-title .title-regular {
    font-weight: 800;
    color: var(--text-primary);
}

.contact-title .title-accent {
    font-family: 'Indie Flower', cursive;
    font-weight: 400;
    color: var(--pink);
    font-size: 1.4em;
}

.contact-message {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: var(--card-hover-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(242, 127, 166, 0.15);
}

.contact-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.contact-email {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pink);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-email:hover {
    color: #d946a6;
    transform: scale(1.05);
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    background: rgba(242, 127, 166, 0.1);
    border: 2px solid var(--pink);
    border-radius: 30px;
    color: var(--pink);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--pink);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(242, 127, 166, 0.3);
}

.social-icon {
    width: 24px;
    height: 24px;
}

/* Contact Page Responsive */
@media (max-width: 768px) {
    .contact-title {
        font-size: 2.5rem;
    }

    .contact-message {
        font-size: 1rem;
    }

    .contact-card {
        padding: 30px 20px;
    }

    .contact-email {
        font-size: 1.2rem;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .social-link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Project Detail Responsive */
@media (max-width: 768px) {
    .project-container {
        padding: 0 20px;
    }

    .project-title {
        font-size: 2.5rem;
    }

    .project-subtitle {
        font-size: 1rem;
    }

    .project-section h2 {
        font-size: 1.5rem;
    }

    .project-navigation {
        flex-direction: column;
        gap: 20px;
    }

    .nav-link:last-child {
        text-align: right;
    }

    .challenge-solution,
    .process-steps,
    .project-images-grid,
    .role-grid,
    .features-list,
    .comparison-images {
        grid-template-columns: 1fr;
    }

    .screen-row {
        grid-template-columns: 1fr;
    }

    .screen-row-single {
        max-width: 100%;
    }
}

.portfolio-title {
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    font-size: 3rem;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.portfolio-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 850px;
    margin: 0 auto;
}

.portfolio-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px var(--shadow-color);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(242, 127, 166, 0.25), 0 8px 24px rgba(42, 184, 184, 0.15);
    border: 1px solid rgba(242, 127, 166, 0.4);
}

.card-image {
    width: 220px;
    height: 220px;
    flex-shrink: 0;
    overflow: hidden;
    background: rgba(242, 127, 166, 0.05);
    border-radius: 15px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-card:hover .card-image img {
    transform: scale(1.08);
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 4px;
}

.card-header h3 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.card-timeline {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    color: var(--pink);
    background: rgba(242, 127, 166, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.card-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    text-align: left;
}

.card-description {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    flex: 1;
    text-align: left;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.card-tag {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.75rem;
    color: var(--pink);
    background: var(--card-hover-bg);
    border: 1px solid rgba(242, 127, 166, 0.3);
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Technical tags - cyan */
.card-tag.tech-tag {
    color: var(--cyan);
    border-color: rgba(42, 184, 184, 0.3);
}

.portfolio-card:hover .card-tag {
    background: rgba(242, 127, 166, 0.15);
    border-color: rgba(242, 127, 166, 0.5);
}

.portfolio-card:hover .card-tag.tech-tag {
    background: rgba(42, 184, 184, 0.15);
    border-color: rgba(42, 184, 184, 0.5);
}

/* ========================
   ABOUT PAGE (about.html)
======================== */
.about-me {
    padding: 120px 20px 80px;
    background: transparent;
    position: relative;
}

.about-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
    align-items: start;
}

.about-left {
    position: sticky;
    top: 100px;
    text-align: left;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-photo-container {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
    cursor: pointer;
}

.profile-photo {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(242, 127, 166, 0.2);
    transition: all 0.5s ease;
    display: block;
}

.profile-color-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: rgba(42, 184, 184, 0.5);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.profile-photo-container:hover .profile-photo {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(242, 127, 166, 0.35);
}

.profile-photo-container:hover .profile-color-overlay {
    opacity: 1;
    transform: scale(1.05);
}

.profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.5s ease;
    z-index: 2;
    object-fit: fill;
    object-position: center;
}

.profile-overlay-dori {
    transition: opacity 0.6s ease, transform 0.5s ease;
}

.profile-overlay-light {
    clip-path: inset(0 100% 0 0);
    transition: transform 0.5s ease;
    animation: none;
    opacity: 0.3;
}

.profile-photo-container:hover .profile-overlay {
    opacity: 1;
    transform: scale(1.05);
}

.profile-photo-container:hover .profile-overlay-dori {
    opacity: 1;
}

.profile-photo-container:hover .profile-overlay-light {
    animation: light-sweep 0.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes light-sweep {
    0% {
        clip-path: inset(0 100% 0 0);
    }
    40% {
        clip-path: inset(0 0 0 0);
    }
    45% {
        clip-path: inset(0 0 0 0);
    }
    100% {
        clip-path: inset(0 0 0 100%);
    }
}

.about-left h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    margin-top: 25px;
    color: var(--text-primary);
}

.skills-pills, .languages-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.skill-pill, .language-pill {
    background: transparent;
    color: var(--pink);
    padding: 6px 15px;
    border-radius: 20px;
    border: 1.5px solid var(--pink);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.skill-pill:hover, .language-pill:hover {
    background: var(--pink);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 127, 166, 0.3);
}

/* Tool pills - cyan color */
.skill-pill.tool-pill {
    color: var(--cyan);
    border-color: var(--cyan);
}

.skill-pill.tool-pill:hover {
    background: var(--cyan);
    color: var(--bg-primary);
    box-shadow: 0 4px 12px rgba(42, 184, 184, 0.3);
}

/* Adobe expandable pill styles */
.skill-pill.adobe-expandable {
    cursor: pointer;
}

.skill-pill.adobe-expandable:hover {
    background: var(--cyan);
    color: var(--bg-primary);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(42, 184, 184, 0.3);
}

.skill-pill.adobe-expanded {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    color: var(--cyan);
    border-color: var(--cyan);
}

.skill-pill.adobe-expanded.visible {
    opacity: 1;
    transform: scale(1);
}

.skill-pill.adobe-expanded:hover {
    background: var(--cyan);
    color: var(--bg-primary);
    box-shadow: 0 4px 12px rgba(42, 184, 184, 0.3);
}

/* Italian language pill - lighter opacity */
.skill-pill.italian-pill {
    opacity: 0.5;
}

.skill-pill.italian-pill:hover {
    opacity: 1;
}

.about-right {
    padding-top: 20px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.about-right h1 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    font-size: 3.5rem;
    margin-bottom: 30px;
    line-height: 1.2;
    color: var(--text-secondary);
}

.about-right .about-regular {
    color: var(--text-secondary);
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
}

.about-right .about-accent {
    color: var(--pink);
    font-family: 'Indie Flower', cursive;
    font-weight: 400;
    font-size: 1.5em;
    position: relative;
}

.about-right p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 60px;
    color: var(--text-secondary);
}

.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 50px;
    position: relative;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #f27fa6, rgba(242, 127, 166, 0.3));
    animation: growDown 1.2s ease-out 0.4s both;
}

@keyframes growDown {
    from {
        transform: scaleY(0);
        transform-origin: top;
    }
    to {
        transform: scaleY(1);
        transform-origin: top;
    }
}

.timeline-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 8px;
    position: relative;
    padding-left: 0;
}

/* The solid pink dot */
.timeline-dot {
    position: absolute;
    left: -36px;
    top: 8px;
    width: 14px;
    height: 14px;
    background: #f27fa6;
    border-radius: 50%;
    z-index: 2;
    animation: dotFadeIn 0.5s ease-out both;
}

/* Alternating timeline dot colors */
.timeline-dot.dot-pink {
    background: #f27fa6;
}

.timeline-dot.dot-cyan {
    background: #2AB8B8;
}

.timeline-dot.dot-pink::before {
    background: rgba(242, 127, 166, 0.3);
}

.timeline-dot.dot-cyan::before {
    background: rgba(42, 184, 184, 0.3);
}

.timeline-item:nth-child(1) .timeline-dot {
    animation-delay: 0.8s;
}

.timeline-item:nth-child(2) .timeline-dot {
    animation-delay: 1s;
}

.timeline-item:nth-child(3) .timeline-dot {
    animation-delay: 1.2s;
}

.timeline-item:nth-child(4) .timeline-dot {
    animation-delay: 1.4s;
}

.timeline-item:nth-child(5) .timeline-dot {
    animation-delay: 1.6s;
}

/* The semi-transparent pulse ring */
.timeline-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    background: rgba(242, 127, 166, 0.3);
    border-radius: 50%;
    z-index: -1;
}

.timeline-item:hover .timeline-dot::before {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.6;
    }
}

@keyframes dotFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.timeline-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.timeline-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.timeline-company {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.timeline-company a {
    color: var(--pink);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.timeline-company a:hover {
    text-decoration: underline;
}

.timeline-duration {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--text-light);
}

.timeline-right {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    line-height: 2;
    color: var(--text-primary);
}

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

/* Tablet/Medium screens - 2 column layout */
@media (max-width: 1024px) {
    .about-container {
        grid-template-columns: 250px 1fr;
        gap: 40px;
    }

    .profile-photo {
        max-width: 200px;
        transition: all 0.5s ease;
    }

    .skills-pills, .languages-pills {
        gap: 8px;
    }

    .skill-pill, .language-pill {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .about-right h1 {
        font-size: 3rem;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .timeline-left {
        align-items: flex-start;
    }
}

/* Mobile - Single column */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .portfolio-title {
        font-size: 2rem;
    }

    .portfolio-card {
        flex-direction: column;
        padding: 0;
    }

    .card-image {
        width: 100%;
        height: 200px;
        border-radius: 0;
    }

    .card-content {
        padding: 20px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .card-header h3 {
        font-size: 1.2rem;
    }

    .card-timeline {
        font-size: 0.75rem;
    }

    /* About page mobile styles */
    .about-me {
        padding: 80px 20px 60px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .about-left {
        position: static;
        background: #f27fa6;
        padding: 25px 20px;
        margin: 0 -20px 40px;
        text-align: left;
    }

    .about-left h3 {
        color: #ffffff;
        font-size: 1rem;
        margin-bottom: 8px;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
    }

    .about-left h3:first-of-type {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }

    .profile-photo {
        display: none;
    }

    .skills-pills, .languages-pills {
        display: block;
        margin-bottom: 0;
    }

    .skill-pill, .language-pill {
        display: inline;
        background: transparent;
        padding: 0;
        border-radius: 0;
        color: #ffffff;
        font-weight: 700;
        font-size: 0.9rem;
        border: none;
    }

    /* Override tool pill colors on mobile */
    .skill-pill.tool-pill {
        color: #ffffff;
        border: none;
    }

    .skill-pill.tool-pill:hover {
        background: transparent;
        color: #ffffff;
        transform: none;
        box-shadow: none;
    }

    .skill-pill::after, .language-pill::after {
        content: " • ";
        color: #ffffff;
        font-weight: 400;
    }

    .skill-pill:last-child::after, .language-pill:last-child::after {
        content: "";
    }

    .about-right {
        padding-top: 0;
    }

    .about-right h1 {
        font-size: 2.5rem;
        text-align: left;
    }

    .about-right p {
        text-align: left;
        margin-bottom: 40px;
    }

    .experience-timeline::before {
        left: 0;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 15px;
        padding-left: 30px;
    }

    .timeline-item::before {
        left: -6px;
        width: 12px;
        height: 12px;
    }

    .timeline-left {
        align-items: flex-start;
        text-align: left;
    }
}