/* Portfolio Styles - Arka Narendra */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Admin Login Popup Styles */
.admin-login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.admin-login-content {
    background: var(--cream);
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.admin-login-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--paper);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.admin-login-close:hover {
    background: rgba(212, 199, 183, 0.1);
}

.admin-login-content h2 {
    color: var(--paper);
    margin-bottom: 30px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
}

.admin-form-group {
    margin-bottom: 20px;
}

.admin-form-group label {
    display: block;
    color: var(--paper);
    margin-bottom: 8px;
    font-weight: 500;
}

.admin-form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--asphalt);
    border: 2px solid rgba(212, 199, 183, 0.2);
    border-radius: 8px;
    color: var(--paper);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.admin-form-group input:focus {
    outline: none;
    border-color: var(--apricot);
}

.admin-login-btn {
    width: 100%;
    padding: 14px;
    background: var(--apricot);
    color: var(--asphalt);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.admin-login-btn:hover {
    background: var(--cinnabar);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 158, 112, 0.3);
}

:root {
    /* New Color Palette - Dark Primary Theme */
    --shell-beige: #D4C7B7;
    /* Light beige for text and accents */
    --apricot: #EF9E70;
    /* Orange for buttons/labels */
    --cinnabar: #AE6455;
    /* Red-brown for buttons/labels */
    --jalapeno: #756C4F;
    /* Green-brown for buttons/labels */

    /* Background Colors - Dark Theme */
    --asphalt: #0d0c0c;
    /* Very dark brown - primary background */
    --paper: #D4C7B7;
    /* Light beige for text */
    --cream: #2C2421;
    /* Dark brown for card backgrounds */
    --dark-brown: #2C2421;
    /* Dark brown for all cards */

    /* Accent Colors */
    --cherry: #EF9E70;
    /* Apricot for buttons/labels */
    --cherry-light: #F4C9AC;
    /* Shell beige for light accents */
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--asphalt);
    color: var(--paper);
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 90vw;
    max-width: 1400px;
    height: 85vh;
    position: relative;
}

/* Opening Animation - Text Center */
.text-intro {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    opacity: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    pointer-events: none;
}

.cursive-text {
    font-family: 'Dancing Script', cursive;
    font-size: 140px;
    font-weight: 700;
    color: var(--paper);
    text-align: center;
    letter-spacing: 12px;
    text-shadow:
        0 0 10px rgba(212, 199, 183, 0.3),
        2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: visible;
    padding: 60px;
}

.cursive-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(239, 158, 112, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Writing Animation */
.cursive-text.writing {
    position: relative;
}

.cursive-text.writing::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--cherry);
    font-weight: 300;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* ===== ALTERNATIVE ANIMATIONS ===== */

/* Animation Option 1: Water Ripple Effect */
.cursive-text.ripple {
    animation: rippleEffect 2s ease-out forwards;
}

@keyframes rippleEffect {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(180deg);
        filter: blur(10px);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1) rotate(0deg);
        filter: blur(2px);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0px);
    }
}

/* Animation Option 2: Morphing from Circle */
.cursive-text.morph {
    animation: morphEffect 2.5s ease-out forwards;
}

@keyframes morphEffect {
    0% {
        opacity: 0;
        transform: scale(0.1);
        border-radius: 50%;
        background: radial-gradient(circle, var(--cherry), transparent);
        width: 200px;
        height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    30% {
        opacity: 0.5;
        transform: scale(0.8);
        border-radius: 20%;
    }

    60% {
        opacity: 0.8;
        transform: scale(1.1);
        border-radius: 0%;
        background: none;
    }

    100% {
        opacity: 1;
        transform: scale(1);
        border-radius: 0%;
        background: none;
        width: auto;
        height: auto;
    }
}

/* Animation Option 3: Glitch Effect */
.cursive-text.glitch {
    animation: glitchEffect 2s ease-out forwards;
}

@keyframes glitchEffect {
    0% {
        opacity: 0;
        transform: translateX(-100px) skewX(15deg);
        filter: hue-rotate(0deg) contrast(1);
    }

    20% {
        opacity: 0.3;
        transform: translateX(50px) skewX(-10deg);
        filter: hue-rotate(90deg) contrast(2);
    }

    40% {
        opacity: 0.6;
        transform: translateX(-20px) skewX(5deg);
        filter: hue-rotate(180deg) contrast(1.5);
    }

    60% {
        opacity: 0.8;
        transform: translateX(10px) skewX(-2deg);
        filter: hue-rotate(270deg) contrast(1.2);
    }

    80% {
        opacity: 0.9;
        transform: translateX(-5px) skewX(1deg);
        filter: hue-rotate(360deg) contrast(1.1);
    }

    100% {
        opacity: 1;
        transform: translateX(0) skewX(0deg);
        filter: hue-rotate(0deg) contrast(1);
    }
}

/* Animation Option 4: Wave Effect */
.cursive-text.wave {
    animation: waveEffect 2.2s ease-out forwards;
}

@keyframes waveEffect {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0.5);
        filter: blur(20px);
    }

    25% {
        opacity: 0.4;
        transform: translateY(-20px) scale(0.8);
        filter: blur(10px);
    }

    50% {
        opacity: 0.7;
        transform: translateY(10px) scale(1.1);
        filter: blur(5px);
    }

    75% {
        opacity: 0.9;
        transform: translateY(-5px) scale(0.95);
        filter: blur(2px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

/* Animation Option 5: Neon Pulse */
.cursive-text.neon {
    animation: neonEffect 1.5s ease-out forwards;
}

@keyframes neonEffect {
    0% {
        opacity: 0;
        transform: scale(0.3);
        text-shadow: 0 0 5px var(--cherry),
            0 0 10px var(--cherry);
    }

    40% {
        opacity: 0.8;
        transform: scale(1.1);
        text-shadow: 0 0 15px var(--cherry),
            0 0 30px var(--cherry),
            0 0 45px var(--cherry),
            0 0 60px var(--cherry);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        text-shadow: 0 0 20px var(--cherry),
            0 0 40px var(--cherry),
            0 0 60px var(--cherry),
            0 0 80px var(--cherry);
    }
}

/* Animation Option 6: Particle Assembly */
.cursive-text.particle {
    animation: particleEffect 3s ease-out forwards;
}

@keyframes particleEffect {
    0% {
        opacity: 0;
        transform: scale(0.1);
        background:
            radial-gradient(circle at 20% 20%, rgba(212, 199, 183, 0.4), transparent 40%),
            radial-gradient(circle at 80% 80%, rgba(239, 158, 112, 0.3), transparent 40%),
            radial-gradient(circle at 40% 60%, rgba(212, 199, 183, 0.3), transparent 35%),
            radial-gradient(circle at 60% 40%, rgba(239, 158, 112, 0.2), transparent 35%);
        background-size: 120px 120px, 100px 100px, 110px 110px, 90px 90px;
        background-position: -60px -60px, 120% 120%, 40% 70%, 70% 30%;
        text-shadow:
            0 0 15px rgba(212, 199, 183, 0.4),
            0 0 25px rgba(239, 158, 112, 0.2);
    }

    25% {
        opacity: 0.4;
        transform: scale(0.4);
        background-size: 160px 160px, 140px 140px, 150px 150px, 130px 130px;
        background-position: -40px -40px, 110% 110%, 50% 60%, 60% 40%;
        text-shadow:
            0 0 20px rgba(212, 199, 183, 0.5),
            0 0 30px rgba(239, 158, 112, 0.3);
    }

    50% {
        opacity: 0.7;
        transform: scale(0.7);
        background-size: 200px 200px, 180px 180px, 190px 190px, 170px 170px;
        background-position: -20px -20px, 100% 100%, 60% 50%, 50% 50%;
        text-shadow:
            0 0 25px rgba(212, 199, 183, 0.6),
            0 0 35px rgba(239, 158, 112, 0.4);
    }

    75% {
        opacity: 0.9;
        transform: scale(0.9);
        background-size: 240px 240px, 220px 220px, 230px 230px, 210px 210px;
        background-position: 0% 0%, 90% 90%, 70% 40%, 40% 60%;
        text-shadow:
            0 0 20px rgba(212, 199, 183, 0.4),
            0 0 30px rgba(239, 158, 112, 0.3);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        background: none;
        text-shadow:
            0 0 10px rgba(212, 199, 183, 0.3),
            2px 2px 4px rgba(0, 0, 0, 0.2);
        color: var(--paper);
    }
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 20px;
    height: 100%;
    opacity: 0;
}

/* Header with Name */
.header {
    grid-column: 1 / 13;
    grid-row: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--cherry);
}

.name-title {
    text-align: right;
}

.name-title h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 2px;
}

/* Cards */
.card {
    border-radius: 16px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(154, 0, 2, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.card:hover .card-icon {
    opacity: 1;
    transform: scale(1.1) rotate(5deg);
}

.card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 700;
}

/* Inline header (icon + title) */
.card-header-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.card-header-inline .card-icon {
    margin: 0;
    width: 28px;
    height: 28px;
    opacity: 0.9;
}

.card-header-inline h3 {
    margin: 0;
    font-size: 22px;
}

.card p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.8;
}

/* Hero Card - Creative Direction */
.hero-card {
    grid-column: 1 / 6;
    grid-row: 2 / 5;
    background: var(--dark-brown);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-card h2 .highlight {
    font-style: italic;
    color: var(--cherry-light);
}

/* Photo Card */
.photo-card {
    grid-column: 9 / 13;
    grid-row: 2 / 6;
    padding: 0;
    overflow: hidden;
    background: var(--shell-beige);
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: transform 0.5s ease;
    border-radius: 16px;
}

.card:hover .photo-card img {
    transform: scale(1.05);
}

/* About Card */
.about-card {
    grid-column: 6 / 9;
    grid-row: 2 / 5;
    background: var(--dark-brown);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--apricot);
}

/* Projects Card */
.projects-card {
    grid-column: 4 / 9;
    grid-row: 5 / 9;
    background: var(--dark-brown);
    color: var(--paper);
}

.projects-card h3,
.projects-card p {
    color: var(--paper);
}

.projects-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--apricot);
}

/* Project Items in Projects Card */
.project-item {
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(239, 237, 227, 0.1);
}

.project-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.project-thumbnail {
    width: 100%;
    height: 100px;
    background: rgba(48, 47, 44, 0.15);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* .project-thumbnail:hover {
    transform: scale(1.02);
} */

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* .project-thumbnail:hover img {
    transform: scale(1.05);
} */

.project-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--paper);
}

.project-info p {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 10px;
    opacity: 0.8;
    color: var(--paper);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-tag {
    background: var(--apricot);
    color: var(--asphalt);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--cherry-light);
    transform: translateY(-1px);
}

/* Horizontal Projects Layout */
.projects-horizontal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 15px;
}

/* Remove underline from project card links */
.projects-card {
    text-decoration: none !important;
}

.projects-card h4,
.projects-card * {
    text-decoration: none !important;
}

.project-item-horizontal {
    display: flex;
    flex-direction: column;
    background: rgba(44, 36, 33, 0.3);
    border-radius: 12px;
    padding: 12px 12px 16px 12px;
    border: 1px solid rgba(239, 158, 112, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

/* .project-item-horizontal:hover {
    transform: translateY(-3px);
    border-color: var(--apricot);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
} */

.project-thumbnail-horizontal {
    width: 100%;
    height: 160px;
    background: rgba(48, 47, 44, 0.15);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-thumbnail-horizontal:hover {
    transform: scale(1.02);
}

.project-thumbnail-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-thumbnail-horizontal:hover img {
    transform: scale(1.05);
}

.project-info-horizontal h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--paper);
    line-height: 1.2;
    text-decoration: none;
}

.project-tech-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.project-tech-horizontal .tech-tag {
    background: var(--apricot);
    color: var(--asphalt);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-tech-horizontal .tech-tag:hover {
    background: var(--cherry-light);
    transform: translateY(-1px);
}

/* Experience Card */
.experience-card {
    grid-column: 1 / 4;
    grid-row: 5 / 9;
    background: var(--shell-beige);
    color: var(--asphalt);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.experience-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--apricot);
}

.experience-card h3,
.experience-card .card-icon {
    color: var(--asphalt);
}

.experience-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(44, 36, 33, 0.2);
}

.experience-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.experience-item h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--asphalt);
}

.experience-item p {
    font-size: 13px;
    opacity: 0.8;
    color: var(--asphalt);
}

/* Blog Card */
.blog-card {
    grid-column: 9 / 13;
    grid-row: 6 / 9;
    background: var(--dark-brown);
    border: 1px solid rgba(212, 199, 183, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--apricot);
}

.blog-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(239, 237, 227, 0.1);
}

.blog-item:last-child {
    border: none;
    margin-bottom: 0;
}

.blog-item h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.blog-category {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    background: var(--cinnabar);
    color: var(--shell-beige);
    border-radius: 4px;
    margin-bottom: 6px;
}

/* Contact Card - Vertical Bar */
.contact-card {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 200px;
    background: var(--dark-brown);
    color: var(--paper);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.social-links a {
    width: 35px;
    height: 35px;
    background: var(--asphalt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--paper);
    text-decoration: none;
    transition: all 0.3s ease;
    pointer-events: auto;
    cursor: pointer;
    z-index: 101;
    position: relative;
}

.social-links a:hover {
    background: var(--cherry);
    transform: translateY(-4px);
}

.social-links a svg {
    pointer-events: none;
    z-index: auto;
}

/* Contact Card Mobile - Hidden on Desktop */
.contact-card-mobile {
    display: none;
    background: var(--dark-brown);
    color: var(--paper);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.contact-card-mobile .card-header-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.contact-card-mobile .card-icon {
    width: 24px;
    height: 24px;
    color: var(--apricot);
    flex-shrink: 0;
}

.contact-card-mobile h3 {
    color: var(--paper);
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.social-links-mobile {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.social-links-mobile a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(239, 158, 112, 0.1);
    border: 1px solid rgba(239, 158, 112, 0.2);
    border-radius: 8px;
    color: var(--paper);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    pointer-events: auto;
    cursor: pointer;
    z-index: 10;
    position: relative;
}

.social-links-mobile a:hover {
    background: var(--apricot);
    color: var(--asphalt);
    transform: translateY(-2px);
    border-color: var(--apricot);
}

.social-links-mobile a svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.social-links-mobile a span {
    font-weight: 500;
}

/* Coming Soon Styles */
.coming-soon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    background: rgba(44, 36, 33, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(239, 158, 112, 0.1);
    grid-column: 1 / -1;
}

.coming-soon-badge {
    background: var(--cherry);
    color: var(--asphalt);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coming-soon-item h4 {
    color: var(--paper);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.coming-soon-item p {
    color: rgba(239, 237, 227, 0.7);
    font-size: 14px;
    margin: 0;
}

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background: var(--asphalt);
    border: 1px solid rgba(239, 237, 227, 0.2);
    border-radius: 20px;
    padding: 50px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    /* Hide scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.popup-content::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--cherry);
    border: none;
    color: var(--paper);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
}

.popup-close:hover {
    transform: rotate(90deg);
    background: var(--cherry-light);
}

.popup-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--cherry-light);
}

.popup-content img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
}

.popup-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.popup-links a {
    padding: 12px 24px;
    background: var(--apricot);
    color: var(--asphalt);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.popup-links a:hover {
    background: var(--cherry-light);
    transform: translateY(-2px);
}

/* Experience Popup Overlay */
.experience-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.experience-popup-content {
    background: var(--dark-brown);
    color: var(--paper);
    border-radius: 20px;
    padding: 50px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    /* Hide scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.experience-popup-content::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.experience-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--cherry);
    border: none;
    color: var(--paper);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
}

.experience-popup-close:hover {
    transform: rotate(90deg);
    background: var(--cherry-light);
}

.experience-popup-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    margin-bottom: 30px;
    color: var(--cherry);
    text-align: center;
}

.experience-timeline {
    position: relative;
    padding-left: 30px;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--cherry);
}

.experience-item-detail {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px;
}

.experience-item-detail::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: var(--cherry);
    border-radius: 50%;
    border: 3px solid var(--cream);
}

.experience-item-detail h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--shell-beige);
}

.experience-item-detail .company {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--paper);
}

.experience-item-detail .duration {
    font-size: 14px;
    color: var(--shell-beige);
    margin-bottom: 15px;
    font-weight: 500;
    opacity: 0.8;
}

.experience-item-detail .description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--paper);
}

.experience-item-detail .technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.experience-item-detail .tech-tag {
    background: var(--jalapeno);
    color: var(--shell-beige);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.experience-item-detail .achievements {
    background: rgba(154, 0, 2, 0.1);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--cherry);
}

.experience-item-detail .achievements h4 {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--paper);
    font-weight: 600;
}

.experience-item-detail .achievements ul {
    list-style: none;
    padding: 0;
}

.experience-item-detail .achievements li {
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--asphalt);
    position: relative;
    padding-left: 15px;
}

.experience-item-detail .achievements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--cherry);
    font-weight: bold;
}

/* About Popup Overlay */
.about-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.about-popup-content {
    background: var(--dark-brown);
    color: var(--paper);
    border-radius: 20px;
    padding: 50px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    /* Hide scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.about-popup-content::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.about-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--cherry);
    border: none;
    color: var(--paper);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
}

.about-popup-close:hover {
    transform: rotate(90deg);
    background: var(--cherry-light);
}

.about-popup-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    margin-bottom: 30px;
    color: var(--paper);
    text-align: center;
}

.about-section {
    margin-bottom: 40px;
}

.about-section h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--paper);
    font-family: 'Playfair Display', serif;
}

.about-section p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--paper);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.skill-category {
    background: rgba(154, 0, 2, 0.1);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--cherry);
}

.skill-category h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--paper);
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: var(--apricot);
    color: var(--asphalt);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* Skills Simple Format */
.skills-simple {
    margin-bottom: 20px;
}

.skill-row {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.skill-label {
    font-weight: 600;
    color: var(--paper);
    min-width: 120px;
    margin-right: 15px;
    font-size: 1rem;
}

.skill-items {
    color: var(--paper);
    opacity: 0.9;
    line-height: 1.6;
    flex: 1;
}

/* Languages Simple */
.languages-simple {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.language-item {
    background: var(--apricot);
    color: var(--asphalt);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Hobbies Simple */
.hobbies-simple {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.hobbies-simple .hobby-item {
    background: var(--jalapeno);
    color: var(--shell-beige);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Experience Photos */
.experience-photos {
    margin-top: 15px;
    margin-bottom: 20px;
}

.photo-stack {
    position: relative;
    width: 120px;
    height: 80px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.photo-stack:hover {
    transform: scale(1.05);
}

.photo-stack img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.photo-stack img:nth-child(1) {
    z-index: 3;
    transform: rotate(-2deg);
}

.photo-stack img:nth-child(2) {
    z-index: 2;
    transform: rotate(1deg) translate(5px, 5px);
}

.photo-stack img:nth-child(3) {
    z-index: 1;
    transform: rotate(-1deg) translate(10px, 10px);
}

/* Photo Gallery Popup */
.photo-gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.photo-gallery-overlay.active {
    opacity: 1;
    visibility: visible;
}

.photo-gallery-overlay.active .photo-gallery-content {
    opacity: 1;
    transform: scale(1);
}

.photo-gallery-content {
    max-width: 90%;
    max-height: 90%;
    background: var(--dark-brown);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.photo-gallery-content::-webkit-scrollbar {
    display: none;
}

.photo-gallery-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    color: var(--shell-beige);
    cursor: pointer;
    z-index: 10001;
}

.photo-gallery-title {
    color: var(--shell-beige);
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.photo-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.02);
}

.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.personal-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    background: rgba(239, 237, 227, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(239, 237, 227, 0.1);
}

.info-item h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--paper);
    font-weight: 600;
}

.info-item p {
    font-size: 14px;
    color: var(--paper);
    opacity: 0.9;
}

.hobbies-interests {
    background: rgba(154, 0, 2, 0.1);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--cherry);
}

.hobbies-interests h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--paper);
    font-weight: 600;
}

.hobbies-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hobby-item {
    background: var(--cinnabar);
    color: var(--shell-beige);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
}

/* Arrow Icon */
.arrow-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    opacity: 0;
    transform: translate(-10px, 10px);
    transition: all 0.3s ease;
}

.card:hover .arrow-icon {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        width: 95vw;
        height: 90vh;
    }

    .grid {
        gap: 15px;
    }

    .hero-card h2 {
        font-size: 36px;
    }

    .contact-card h3 {
        font-size: 28px;
    }
}

@media (max-width: 992px) {
    body {
        overflow: auto;
        height: auto;
        min-height: 100vh;
    }

    .container {
        width: 100vw;
        height: auto;
        min-height: 100vh;
        padding: 20px;
    }

    .grid {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: auto;
        gap: 20px;
        opacity: 1;
    }

    .header {
        grid-column: 1 / 7;
        margin-bottom: 20px;
    }

    .hero-card {
        grid-column: 1 / 7;
        grid-row: auto;
        min-height: 300px;
    }

    .photo-card {
        grid-column: 1 / 4;
        grid-row: auto;
        min-height: 250px;
        padding: 0;
        background: var(--shell-beige);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .experience-card {
        grid-column: 1 / 4;
        grid-row: auto;
        min-height: 250px;
    }

    .about-card {
        grid-column: 4 / 7;
        grid-row: auto;
        min-height: 200px;
    }

    .projects-card {
        grid-column: 1 / 7;
        grid-row: auto;
        min-height: 200px;
    }

    .projects-horizontal {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .project-item-horizontal {
        flex-direction: row;
        align-items: center;
        padding: 12px;
        height: auto;
    }

    .project-thumbnail-horizontal {
        width: 60px;
        height: 60px;
        margin-bottom: 0;
        margin-right: 10px;
        flex-shrink: 0;
    }

    .project-info-horizontal {
        flex: 1;
    }

    .project-info-horizontal h4 {
        font-size: 13px;
        margin-bottom: 6px;
        text-decoration: none;
    }

    .blog-card {
        grid-column: 1 / 4;
        grid-row: auto;
        min-height: 200px;
    }

    .contact-card {
        display: none;
    }
    
    .contact-card-mobile {
        display: block;
        grid-column: 1;
        order: 999;
    }

    .social-links a {
        width: 30px;
        height: 30px;
        pointer-events: auto;
        cursor: pointer;
        z-index: 101;
        position: relative;
    }

    .experience-popup-content {
        padding: 30px;
        margin: 20px;
    }

    .experience-popup-content h2 {
        font-size: 36px;
    }

    .experience-item-detail h3 {
        font-size: 22px;
    }

    .experience-item-detail .company {
        font-size: 16px;
    }

    .experience-item-detail .description {
        font-size: 15px;
    }

    .text-intro {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 40px;
    }
    
    .container {
        padding: 15px;
        margin-bottom: 30px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }

    .header {
        grid-column: 1;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .name-title h1 {
        font-size: 24px;
    }

    .hero-card,
    .about-card,
    .experience-card,
    .projects-card,
    .blog-card {
        grid-column: 1;
        min-height: auto;
        margin-bottom: 20px;
    }
    
    .blog-card:last-child,
    .projects-card:last-child {
        margin-bottom: 30px;
    }

    /* Hide photo card on mobile */
    .photo-card {
        display: none;
    }
    
    /* About card order - move to second position */
    .about-card {
        order: 2;
    }
    
    .experience-card {
        order: 3;
    }
    
    .projects-card {
        order: 4;
    }
    
    .blog-card {
        order: 5;
    }

    .contact-card {
        display: none;
    }
    
    .contact-card-mobile {
        display: block;
        grid-column: 1;
        order: 999;
        margin-bottom: 30px;
    }
    
    .social-links-mobile {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .social-links-mobile a {
        padding: 14px 16px;
        font-size: 16px;
        pointer-events: auto;
        cursor: pointer;
        z-index: 10;
        position: relative;
    }

    .social-links a {
        width: 28px;
        height: 28px;
        pointer-events: auto;
        cursor: pointer;
        z-index: 101;
        position: relative;
    }

    .hero-card h2 {
        font-size: 28px;
    }

    .contact-card h3 {
        font-size: 24px;
    }

    .card {
        padding: 20px;
    }

    .popup-content {
        padding: 30px;
        margin: 20px;
    }

    .popup-content h2 {
        font-size: 28px;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body {
        padding-bottom: 50px;
    }
    
    .container {
        padding: 10px;
        margin-bottom: 40px;
    }

    .grid {
        gap: 10px;
        margin-bottom: 30px;
    }

    .card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .card:last-child {
        margin-bottom: 25px;
    }

    .hero-card h2 {
        font-size: 24px;
    }

    .name-title h1 {
        font-size: 20px;
    }

    .logo {
        font-size: 16px;
    }

    .card h3 {
        font-size: 20px;
    }

    .card p {
        font-size: 13px;
    }

    .popup-content {
        padding: 20px;
        margin: 10px;
    }

    .popup-content h2 {
        font-size: 24px;
    }

    .popup-links {
        flex-direction: column;
    }

    .popup-links a {
        text-align: center;
    }

    .experience-popup-content {
        padding: 20px;
        margin: 10px;
    }

    .experience-popup-content h2 {
        font-size: 28px;
    }

    .experience-item-detail h3 {
        font-size: 20px;
        color: var(--paper);
    }

    .experience-item-detail .company {
        font-size: 16px;
    }

    .experience-item-detail .description {
        font-size: 14px;
    }

    .experience-timeline {
        padding-left: 20px;
    }

    .experience-item-detail {
        padding-left: 20px;
    }

    .experience-item-detail::before {
        left: -6px;
        width: 12px;
        height: 12px;
    }

    .experience-timeline::before {
        left: 10px;
    }

    .about-popup-content {
        padding: 20px;
        margin: 10px;
    }

    .about-popup-content h2 {
        font-size: 28px;
    }

    .about-section h3 {
        font-size: 22px;
        color: var(--paper);
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .personal-info {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}