* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #fffef0;
    --card-bg: #fffef8;
    --text-color: #5a4a2a;
    --text-light: #8b7a5a;
    --primary-blue: #1da1f2;
    --light-blue: #e8f4f8;
    --light-pink: #ffeef2;
    --light-green: #e8f5e9;
    --light-yellow: #fff9e6;
    --border-radius: 16px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 40px 100px;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%;
    max-width: 100vw;
}

/* Default theme (light) - applied via body.theme-light class */
body {
    --bg-color: #fffef0;
    --card-bg: #fffef8;
    --text-color: #5a4a2a;
    --text-light: #8b7a5a;
}

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

/* Navigation */
.nav-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 16px;
}

.nav-link {
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 20px;
    transition: all 0.2s ease;
    font-size: 15px;
}

.nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.nav-link.active {
    background-color: rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

/* Sea Theme - Nav Links */
body.theme-sea .nav-bar {
    border-bottom-color: rgba(90, 159, 199, 0.3);
}

body.theme-sea .nav-link:hover {
    background-color: rgba(90, 159, 199, 0.15);
}

body.theme-sea .nav-link.active {
    background-color: rgba(90, 159, 199, 0.25);
}

/* Forest Theme - Nav Links */
body.theme-forest .nav-bar {
    border-bottom-color: rgba(122, 168, 101, 0.3);
}

body.theme-forest .nav-link:hover {
    background-color: rgba(122, 168, 101, 0.15);
}

body.theme-forest .nav-link.active {
    background-color: rgba(122, 168, 101, 0.25);
}

/* Christmas Theme - Nav Links */
body.theme-christmas .nav-bar {
    border-bottom-color: rgba(220, 20, 60, 0.3);
}

body.theme-christmas .nav-link:hover {
    background-color: rgba(220, 20, 60, 0.15);
}

body.theme-christmas .nav-link.active {
    background-color: rgba(220, 20, 60, 0.25);
}

/* Dark Theme - Nav Links */
body.theme-dark .nav-bar {
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

body.theme-dark .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Grid Layout - Masonry style with different sized cards */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 20px;
    margin-bottom: 40px;
    transition: grid-template-rows 0.3s ease;
}

/* Default card sizing - will be overridden by JavaScript for initial layout */

/* Initial layout for all cards - compact square formation */
.grid:not(.filtered) .card:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1;
    min-height: 200px;
}

.grid:not(.filtered) .card:nth-child(2) {
    grid-column: 3;
    grid-row: 1;
    min-height: 200px;
}

.grid:not(.filtered) .card:nth-child(3) {
    grid-column: 1;
    grid-row: 2 / 4;
    min-height: 400px;
}

.grid:not(.filtered) .card:nth-child(4) {
    grid-column: 2;
    grid-row: 6;
    min-height: 200px;
}

.grid:not(.filtered) .card:nth-child(5) {
    grid-column: 3;
    grid-row: 6;
    min-height: 200px;
}

.grid:not(.filtered) .card:nth-child(6) {
    grid-column: 2 / 4;
    grid-row: 3;
    min-height: 200px;
}

.grid:not(.filtered) .card:nth-child(7) {
    grid-column: 2 / 4;
    grid-row: 7;
    min-height: 200px;
}

.grid:not(.filtered) .card:nth-child(8) {
    grid-column: 2;
    grid-row: 4 / 6;
    min-height: 400px;
}

.grid:not(.filtered) .card:nth-child(9) {
    grid-column: 3;
    grid-row: 4 / 6;
    min-height: 400px;
}

.grid:not(.filtered) .card:nth-child(10) {
    grid-column: 1;
    grid-row: 5;
    min-height: 200px;
}

/* When there are only 3 projects (card 11 doesn't exist) */
.grid:not(.filtered) .card:nth-child(11):not(.project-card) {
    grid-column: 1;
    grid-row: 6;
    min-height: 200px;
}

/* Cards 12, 13, 14 default positioning (when there are only 3 projects) */
.grid:not(.filtered) .card:nth-child(12) {
    grid-column: 2;
    grid-row: 2;
    min-height: 200px;
}

.grid:not(.filtered) .card:nth-child(13) {
    grid-column: 3;
    grid-row: 2;
    min-height: 200px;
}

.grid:not(.filtered) .card:nth-child(14) {
    grid-column: 1;
    grid-row: 4;
    min-height: 200px;
}

/* When card 11 is a project card (4 projects case) */
.grid:not(.filtered) .card:nth-child(11).project-card {
    grid-column: 1;
    grid-row: 6 / 8;
    min-height: 400px;
}

/* Adjust subsequent cards when card 11 is a project (4 projects case) */
.grid:not(.filtered) .card:nth-child(11).project-card ~ .card:nth-child(12) {
    grid-column: 2;
    grid-row: 2;
    min-height: 200px;
}

.grid:not(.filtered) .card:nth-child(11).project-card ~ .card:nth-child(13) {
    grid-column: 3;
    grid-row: 2;
    min-height: 200px;
}

/* Adjust LinkedIn and Email when card 11 is a project (4 projects case) */
.grid:not(.filtered) .card:nth-child(11).project-card ~ .card:nth-child(4) {
    grid-column: 2;
    grid-row: 6;
    min-height: 200px;
}

.grid:not(.filtered) .card:nth-child(11).project-card ~ .card:nth-child(5) {
    grid-column: 3;
    grid-row: 6;
    min-height: 200px;
}

/* Adjust blog card when card 11 is a project (4 projects case) - avoid overlap */
.grid:not(.filtered) .card:nth-child(11).project-card ~ .card:nth-child(7) {
    grid-column: 2 / 4;
    grid-row: 7;
    min-height: 200px;
}

.grid:not(.filtered) .card:nth-child(11).project-card ~ .card:nth-child(14) {
    grid-column: 1;
    grid-row: 4;
    min-height: 200px;
}

/* New blog card (card 15) - positioned at the bottom */
.grid:not(.filtered) .card:nth-child(15) {
    grid-column: 1 / 3;
    grid-row: 8;
    min-height: 200px;
}

/* Adjust new blog card when card 11 is a project (4 projects case) */
.grid:not(.filtered) .card:nth-child(11).project-card ~ .card:nth-child(15) {
    grid-column: 1 / 3;
    grid-row: 8;
    min-height: 200px;
}

/* When filtered, use auto-flow for natural arrangement */
.grid.filtered {
    grid-auto-flow: row dense;
}

.grid.filtered .card {
    /* Override all nth-child positioning when filtered */
    grid-column: auto !important;
    grid-row: auto !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s ease;
}

/* Define card sizes for auto-flow when filtered */
.grid.filtered .card[data-size="wide"] {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 280px;
}

.grid.filtered .card[data-size="tall"] {
    grid-column: span 1;
    grid-row: span 2;
    min-height: 400px;
}

.grid.filtered .card[data-size="square"] {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 200px;
}

@media (max-width: 768px) {
    body {
        padding: 20px 16px;
    }
    
    .container {
        padding: 0;
        max-width: 100%;
    }
    
    .nav-bar {
        gap: 8px;
        margin-bottom: 24px;
        padding: 0 4px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        padding: 10px 14px;
        font-size: 14px;
        min-height: 44px; /* Better touch target */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 32px;
    }
    
    .grid:not(.filtered) .card:nth-child(n) {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        min-height: auto;
    }
    
    .card {
        padding: 20px;
        border-radius: 12px;
    }
    
    .card:hover:not(.filtered-out) {
        transform: translateY(-1px);
    }
    
    /* Mobile screen adjustments */
    .mobile-screen {
        margin: 12px;
        padding: 16px;
        border-radius: 16px;
    }
    
    /* Avatar adjustments */
    .avatar {
        width: 64px;
        height: 64px;
        font-size: 32px;
    }
    
    .about-text {
        font-size: 14px;
    }
    
    /* Map card adjustments */
    .map-container {
        padding: 16px;
        min-height: 250px;
    }
    
    .map-avatar {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .street-name {
        font-size: 11px;
    }
    
    /* Notification adjustments */
    .notification {
        padding: 12px;
        gap: 10px;
    }
    
    .notification-icon {
        font-size: 20px;
    }
    
    .notification-text strong {
        font-size: 13px;
    }
    
    .notification-text p {
        font-size: 12px;
    }
    
    .notification-section {
        padding: 16px;
    }
    
    .notification-section h3 {
        font-size: 16px;
    }
    
    .notification-section p {
        font-size: 13px;
    }
    
    .turn-on-btn {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
    }
    
    /* Help section */
    .help-section {
        padding: 16px;
    }
    
    .help-section h3 {
        font-size: 16px;
    }
    
    .help-illustration {
        font-size: 36px;
    }
    
    .help-section p {
        font-size: 13px;
    }
    
    /* Card headers */
    .travel-map-card .map-header,
    .hobbies-header,
    .countdown-header,
    .timezone-header,
    .weather-header {
        margin-bottom: 16px;
        padding-bottom: 10px;
    }
    
    .map-icon,
    .hobbies-icon,
    .countdown-icon,
    .timezone-icon,
    .weather-icon {
        font-size: 20px;
    }
    
    .map-title,
    .hobbies-title,
    .countdown-title,
    .timezone-title,
    .weather-title {
        font-size: 15px;
    }
    
    /* Countdown adjustments */
    .countdown-display {
        gap: 8px;
    }
    
    .countdown-number {
        font-size: 24px;
    }
    
    .countdown-label {
        font-size: 10px;
    }
    
    /* Timezone adjustments */
    .timezone-time {
        font-size: 28px;
    }
    
    .timezone-date {
        font-size: 13px;
    }
    
    .timezone-location {
        font-size: 11px;
    }
    
    /* Weather adjustments */
    .weather-temp {
        font-size: 32px;
    }
    
    .weather-desc {
        font-size: 13px;
    }
    
    .weather-location {
        font-size: 11px;
    }
    
    /* LinkedIn/Email/Availability cards */
    .linkedin-logo,
    .email-icon,
    .availability-icon {
        font-size: 40px;
    }
    
    .linkedin-name {
        font-size: 16px;
    }
    
    .email-address {
        font-size: 13px;
    }
    
    .availability-text {
        font-size: 15px;
    }
    
    /* Blog card */
    .blog-title {
        font-size: 18px;
    }
    
    .blog-description {
        font-size: 13px;
    }
    
    .read-more-link {
        font-size: 13px;
    }
    
    .blog-date {
        font-size: 11px;
    }
    
    /* Hobbies */
    .hobbies-list {
        gap: 6px;
    }
    
    .hobbies-carousel-container {
        min-height: 120px;
        margin-top: 12px;
    }
    
    .hobbies-carousel {
        min-height: 100px;
    }
    
    .hobby-emoji {
        font-size: 56px;
    }
    
    .hobby-text {
        font-size: 16px;
    }
    
    .hobbies-carousel-controls {
        margin-top: 16px;
        gap: 12px;
    }
    
    .hobby-nav-btn {
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    
    .hobby-tag {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .hobby-nav-btn {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
    
    /* Subscription section */
    .subscription-section {
        padding: 24px 20px;
    }
    
    .subscription-section h2 {
        font-size: 24px;
    }
    
    .subscription-description {
        font-size: 14px;
    }
    
    .subscription-form {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .email-input {
        width: 100%;
        min-width: auto;
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
    }
    
    .subscribe-btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 16px;
        min-height: 44px;
        justify-content: center;
    }
    
    .subscriber-count {
        margin-left: 0;
        margin-top: 8px;
        text-align: center;
    }
    
    /* Dark mode toggle */
    .dark-mode-toggle {
        width: 70px;
        height: 36px;
        min-width: 70px; /* Prevent shrinking */
    }
    
    .toggle-switch {
        width: 28px;
        height: 28px;
    }
    
    .moon-icon {
        font-size: 16px;
    }
    
    /* Zoom button mobile adjustments */
    .zoom-btn {
        width: 44px;
        height: 44px;
        bottom: 12px;
        left: 12px;
    }
    
    /* External link icon mobile adjustments */
    .external-link-icon {
        width: 36px;
        height: 36px;
        bottom: 12px;
        left: 12px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 16px 12px;
    }
    
    .nav-bar {
        gap: 6px;
        margin-bottom: 20px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .grid {
        gap: 12px;
    }
    
    .card {
        padding: 16px;
    }
    
    .mobile-screen {
        margin: 10px;
        padding: 14px;
    }
    
    .landing-title {
        font-size: 24px;
    }
    
    .subscription-section {
        padding: 20px 16px;
    }
    
    .subscription-section h2 {
        font-size: 20px;
    }
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s ease,
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    opacity: 1;
    border: 1px solid transparent;
}

/* Dark mode: border-based cards */
body.theme-dark .card {
    background-color: transparent;
    border: 1px solid var(--border-color);
    box-shadow: none;
}

/* Sea Theme - General cards (About, etc.) */
body.theme-sea .card[data-category="about"]:not(.linkedin-card):not(.email-card):not(.availability-card) {
    background-color: rgba(168, 213, 226, 0.2);
}

/* Forest Theme - General cards (About, etc.) */
body.theme-forest .card[data-category="about"]:not(.linkedin-card):not(.email-card):not(.availability-card) {
    background-color: rgba(168, 201, 159, 0.2);
}

/* Christmas Theme - General cards (About, etc.) */
body.theme-christmas .card[data-category="about"]:not(.linkedin-card):not(.email-card):not(.availability-card) {
    background-color: rgba(220, 20, 60, 0.15);
}

/* Christmas Theme - About Card Glow Effect */
body.theme-christmas .card[data-category="about"][data-size="wide"]:not(.linkedin-card):not(.email-card):not(.availability-card) {
    position: relative;
    overflow: hidden;
    animation: christmasGlow 3s ease-in-out infinite;
}

/* Project cards in dark mode - no background, just border */
body.theme-dark .project-card.card {
    background-color: transparent;
    border: 1px solid var(--border-color);
}

body.theme-dark .card:hover:not(.filtered-out) {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.theme-dark .project-card.card:hover:not(.filtered-out) {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.2);
}

.card[data-category].filtered-out {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.card:hover:not(.filtered-out) {
    transform: translateY(-2px) scale(1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Project Card Flip Animation */
.project-card {
    perspective: 1000px;
    -webkit-perspective: 1000px;
    height: 100%;
}

.project-card .card-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transition: -webkit-transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

/* Project card flip - only on devices that support hover */
@media (hover: hover) and (pointer: fine) {
    .project-card:hover .card-flip-inner {
        transform: rotateY(180deg);
        -webkit-transform: rotateY(180deg);
    }

    /* 取消專案卡片原本的 hover 效果，因為我們要翻轉 */
    .project-card:hover:not(.filtered-out) {
        transform: none;
        -webkit-transform: none;
        box-shadow: var(--shadow);
    }
}

/* Touch devices - flip on tap/click */
@media (hover: none) and (pointer: coarse) {
    .project-card.flipped .card-flip-inner {
        transform: rotateY(180deg);
        -webkit-transform: rotateY(180deg);
    }
}

/* 卡片正面和背面 */
.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.card-front {
    transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
}

.card-back {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    background-color: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.theme-dark .card-back {
    background-color: transparent;
    border: 1px solid var(--border-color);
}

/* 確保原有的 mobile-screen 在正面 */
.project-card .mobile-screen {
    position: relative;
    z-index: 1;
    height: 100%;
}

/* 背面圖片樣式 */
.card-back-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.card-back-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 215, 0, 0.2);
    color: var(--text-color);
    padding: 24px;
    text-align: center;
}

/* Dark Theme - Card Back Placeholder */
body.theme-dark .card-back-placeholder {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Sea Theme - Card Back Placeholder */
body.theme-sea .card-back-placeholder {
    background-color: rgba(168, 213, 226, 0.3);
}

/* Forest Theme - Card Back Placeholder */
body.theme-forest .card-back-placeholder {
    background-color: rgba(168, 201, 159, 0.3);
}

/* Christmas Theme - Card Back Placeholder */
body.theme-christmas .card-back-placeholder {
    background-color: rgba(220, 20, 60, 0.25);
}

.card-back-placeholder-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.card-back-placeholder-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

/* About Card */
.avatar-container {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #ffd700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.about-text {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.6;
}

/* Map Card */
.map-card {
    padding: 0;
    position: relative;
}

.map-container {
    position: relative;
    height: 100%;
    min-height: 300px;
    padding: 24px;
}

.map-content {
    position: relative;
    height: 100%;
    width: 100%;
}

.street-name {
    position: absolute;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
}

.street-name:nth-child(1) {
    top: 10%;
    left: 5%;
}

.street-name:nth-child(2) {
    top: 30%;
    right: 10%;
}

.street-name:nth-child(3) {
    bottom: 40%;
    left: 15%;
}

.street-name:nth-child(4) {
    top: 50%;
    right: 20%;
}

.street-name:nth-child(5) {
    bottom: 20%;
    left: 50%;
}

.map-avatar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffd700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.zoom-btn {
    position: absolute;
    bottom: 16px;
    left: 16px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: var(--card-bg);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
        min-width: 44px; /* Better touch target */
        min-height: 44px;
}

.zoom-btn:hover {
    transform: scale(1.1);
}

/* Sea Theme - Zoom Button */
body.theme-sea .zoom-btn {
    border-color: rgba(90, 159, 199, 0.3);
    background-color: rgba(255, 255, 255, 0.8);
}

body.theme-sea .zoom-btn:hover {
    border-color: #5a9fc7;
    background-color: rgba(90, 159, 199, 0.2);
}

/* Forest Theme - Zoom Button */
body.theme-forest .zoom-btn {
    border-color: rgba(122, 168, 101, 0.3);
    background-color: rgba(255, 255, 255, 0.8);
}

body.theme-forest .zoom-btn:hover {
    border-color: #7aa865;
    background-color: rgba(122, 168, 101, 0.2);
}

/* Christmas Theme - Zoom Button */
body.theme-christmas .zoom-btn {
    border-color: rgba(220, 20, 60, 0.3);
    background-color: rgba(255, 255, 255, 0.8);
}

body.theme-christmas .zoom-btn:hover {
    border-color: #dc143c;
    background-color: rgba(220, 20, 60, 0.2);
}

/* Mobile Cards */
.mobile-card {
    padding: 0;
    position: relative;
    overflow: visible;
}

/* 專案卡片需要確保內部結構正確 */
.project-card.card {
    padding: 0;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    opacity: 0.6;
}

body.theme-dark .card-bg {
    opacity: 0;
}

.bg-1 {
    background-color: rgba(255, 215, 0, 0.3);
}

.bg-2 {
    background-color: rgba(255, 223, 0, 0.3);
}

.bg-3 {
    background-color: rgba(255, 215, 0, 0.25);
}

.bg-4 {
    background-color: rgba(255, 223, 0, 0.25);
}

.bg-5 {
    background-color: rgba(255, 215, 0, 0.3);
}

.bg-6 {
    background-color: rgba(255, 223, 0, 0.3);
}

/* Sea Theme - Ocean colors for project cards */
body.theme-sea .bg-1 {
    background-color: rgba(168, 213, 226, 0.4);
}

body.theme-sea .bg-2 {
    background-color: rgba(127, 179, 211, 0.4);
}

body.theme-sea .bg-3 {
    background-color: rgba(90, 159, 199, 0.4);
}

body.theme-sea .bg-4 {
    background-color: rgba(74, 139, 184, 0.4);
}

body.theme-sea .bg-5 {
    background-color: rgba(60, 120, 160, 0.4);
}

body.theme-sea .bg-6 {
    background-color: rgba(50, 100, 140, 0.4);
}

body.theme-sea .card-bg {
    opacity: 0.4;
}

/* Forest Theme - Nature colors for project cards */
body.theme-forest .bg-1 {
    background-color: rgba(168, 201, 159, 0.4);
}

body.theme-forest .bg-2 {
    background-color: rgba(143, 184, 122, 0.4);
}

body.theme-forest .bg-3 {
    background-color: rgba(122, 168, 101, 0.4);
}

body.theme-forest .bg-4 {
    background-color: rgba(107, 149, 84, 0.4);
}

body.theme-forest .bg-5 {
    background-color: rgba(95, 135, 70, 0.4);
}

body.theme-forest .bg-6 {
    background-color: rgba(85, 120, 60, 0.4);
}

body.theme-forest .card-bg {
    opacity: 0.4;
}

/* Christmas Theme - Project card backgrounds */
body.theme-christmas .bg-1 {
    background-color: rgba(220, 20, 60, 0.5);
}

body.theme-christmas .bg-2 {
    background-color: rgba(0, 100, 0, 0.5);
}

body.theme-christmas .bg-3 {
    background-color: rgba(178, 34, 34, 0.5);
}

body.theme-christmas .bg-4 {
    background-color: rgba(0, 128, 0, 0.5);
}

body.theme-christmas .bg-5 {
    background-color: rgba(220, 20, 60, 0.4);
}

body.theme-christmas .bg-6 {
    background-color: rgba(0, 100, 0, 0.4);
}

body.theme-christmas .card-bg {
    opacity: 0.4;
}

.mobile-screen {
    position: relative;
    z-index: 1;
    background-color: var(--card-bg);
    border-radius: 24px;
    margin: 20px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: rotate(-2deg);
}

body.theme-dark .mobile-screen {
    background-color: transparent;
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.mobile-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.skip-btn {
    padding: 6px 12px;
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-color);
    transition: all 0.2s ease;
        min-height: 32px; /* Better touch target */
        display: flex;
        align-items: center;
        justify-content: center;
}

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

/* Sea Theme - Skip Button */
body.theme-sea .skip-btn {
    border-color: rgba(90, 159, 199, 0.3);
}

body.theme-sea .skip-btn:hover {
    border-color: #5a9fc7;
    background-color: rgba(90, 159, 199, 0.1);
}

/* Forest Theme - Skip Button */
body.theme-forest .skip-btn {
    border-color: rgba(122, 168, 101, 0.3);
}

body.theme-forest .skip-btn:hover {
    border-color: #7aa865;
    background-color: rgba(122, 168, 101, 0.1);
}

/* Christmas Theme - Skip Button */
body.theme-christmas .skip-btn {
    border-color: rgba(220, 20, 60, 0.3);
}

body.theme-christmas .skip-btn:hover {
    border-color: #dc143c;
    background-color: rgba(220, 20, 60, 0.1);
}

.mobile-content {
    color: var(--text-color);
}

.notification {
    display: flex;
    gap: 12px;
    padding: 16px;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
}

.notification-icon {
    font-size: 24px;
}

.notification-text strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.notification-text p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

.notification-section {
    padding: 20px;
}

.notification-section h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.notification-section p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.turn-on-btn {
    padding: 10px 20px;
    background-color: #ffd700;
    color: #2d2d2d;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.turn-on-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Dark Theme - Turn On Button */
body.theme-dark .turn-on-btn {
    background-color: #ffffff;
    color: #000000;
}

/* Sea Theme - Turn On Button */
body.theme-sea .turn-on-btn {
    background-color: #5a9fc7;
    color: white;
}

/* Forest Theme - Turn On Button */
body.theme-forest .turn-on-btn {
    background-color: #7aa865;
    color: white;
}

/* Christmas Theme - Turn On Button */
body.theme-christmas .turn-on-btn {
    background-color: #dc143c;
    color: white;
}

.help-section {
    padding: 20px;
    text-align: center;
}

.help-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.help-illustration {
    font-size: 48px;
    margin: 16px 0;
}

.help-section p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.coffee-img {
    font-size: 32px;
}

.external-link-icon {
    position: absolute;
    bottom: 16px;
    left: 16px;
    width: 24px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 2;
        min-width: 36px; /* Better touch target on mobile */
        min-height: 36px;
}

/* Travel Map Card */
.travel-map-card .map-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.theme-dark .travel-map-card .map-header,
body.theme-sea .travel-map-card .map-header,
body.theme-forest .travel-map-card .map-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.theme-christmas .travel-map-card .map-header,
body.theme-christmas .hobbies-header {
    border-bottom-color: rgba(220, 20, 60, 0.3);
}

.map-icon {
    font-size: 24px;
}

.map-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

/* Sea Theme - Travel Map Card */
body.theme-sea .travel-map-card {
    background-color: rgba(168, 213, 226, 0.2);
}

/* Forest Theme - Travel Map Card */
body.theme-forest .travel-map-card {
    background-color: rgba(168, 201, 159, 0.2);
}

/* Christmas Theme - Travel Map Card */
body.theme-christmas .travel-map-card {
    background-color: rgba(0, 100, 0, 0.2);
}

/* LinkedIn Card */
.linkedin-card {
    background-color: #ffd700;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.theme-dark .linkedin-card {
    background: transparent;
    border: 1px solid var(--border-color);
}

/* Dark Theme - LinkedIn Card */
body.theme-dark .linkedin-link {
    color: white;
}

/* Sea Theme - LinkedIn Card */
body.theme-sea .linkedin-card {
    background-color: #5a9fc7;
}

body.theme-sea .linkedin-link {
    color: white;
}

/* Forest Theme - LinkedIn Card */
body.theme-forest .linkedin-card {
    background-color: #7aa865;
}

body.theme-forest .linkedin-link {
    color: white;
}

/* Christmas Theme - LinkedIn Card */
body.theme-christmas .linkedin-card {
    background-color: #dc143c;
}

body.theme-christmas .linkedin-link {
    color: white;
}

.linkedin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.linkedin-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #2d2d2d;
    width: 100%;
    height: 100%;
    padding: 24px;
}

.linkedin-logo {
    font-size: 48px;
    margin-bottom: 12px;
}

.linkedin-info {
    text-align: center;
}

.linkedin-label {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.linkedin-name {
    font-size: 18px;
}

.linkedin-card .external-link-icon {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Email Card */
.email-card {
    background-color: #ffd700;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.theme-dark .email-card {
    background: transparent;
    border: 1px solid var(--border-color);
}

/* Dark Theme - Email Card */
body.theme-dark .email-link {
    color: white;
}

/* Sea Theme - Email Card */
body.theme-sea .email-card {
    background-color: #7fb3d3;
}

body.theme-sea .email-link {
    color: white;
}

/* Forest Theme - Email Card */
body.theme-forest .email-card {
    background-color: #8fb87a;
}

body.theme-forest .email-link {
    color: white;
}

/* Christmas Theme - Email Card */
body.theme-christmas .email-card {
    background-color: #006400;
}

body.theme-christmas .email-link {
    color: white;
}

.email-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.email-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #2d2d2d;
    width: 100%;
    height: 100%;
    padding: 24px;
}

.email-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.email-info {
    text-align: center;
}

.email-label {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.email-address {
    font-size: 14px;
    word-break: break-all;
}

.email-card .external-link-icon {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Hobbies Card */
.hobbies-card {
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

/* Sea Theme - Hobbies Card */
body.theme-sea .hobbies-card {
    background-color: rgba(168, 213, 226, 0.25);
}

/* Forest Theme - Hobbies Card */
body.theme-forest .hobbies-card {
    background-color: rgba(168, 201, 159, 0.25);
}

/* Christmas Theme - Hobbies Card */
body.theme-christmas .hobbies-card {
    background-color: rgba(220, 20, 60, 0.2);
}

.hobbies-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.theme-dark .hobbies-header,
body.theme-sea .hobbies-header,
body.theme-forest .hobbies-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.hobbies-icon {
    font-size: 24px;
}

.hobbies-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.hobbies-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-grow: 1;
}

/* Hobbies Carousel */
.hobbies-carousel-container {
    position: relative;
    overflow: hidden;
    min-height: 140px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hobbies-carousel {
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    position: relative;
}

.hobby-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
}

.hobby-item.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.hobby-emoji {
    font-size: 64px;
    line-height: 1;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    animation: emojiBounce 0.6s ease-out;
}

.hobby-item.active .hobby-emoji {
    animation: emojiBounce 0.6s ease-out;
}

@keyframes emojiBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.hobby-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    letter-spacing: 0.3px;
}

.hobby-tag {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    font-size: 13px;
    color: var(--text-color);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0 4px;
}

.hobby-tag.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

body.theme-dark .hobby-tag,
body.theme-sea .hobby-tag,
body.theme-forest .hobby-tag {
    background-color: rgba(255, 255, 255, 0.1);
}

.hobby-tag:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

body.theme-dark .hobby-tag:hover,
body.theme-sea .hobby-tag:hover,
body.theme-forest .hobby-tag:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

body.theme-christmas .hobby-tag {
    background-color: rgba(255, 255, 255, 0.1);
}

body.theme-christmas .hobby-tag:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.hobbies-carousel-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    padding-top: 12px;
}

.hobby-nav-btn {
    width: 32px;
    height: 32px;
    border: none;
    background-color: transparent;
    color: var(--text-color);
    cursor: pointer;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: 300;
    line-height: 1;
    opacity: 0.6;
    padding: 0;
}

.hobby-nav-btn:hover:not(:disabled) {
    opacity: 1;
    transform: scale(1.2);
}

.hobby-nav-btn:active:not(:disabled) {
    transform: scale(1.1);
}

.hobby-nav-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    transform: scale(1);
}

/* Theme-specific styles for carousel buttons - simplified */
body.theme-dark .hobby-nav-btn {
    color: rgba(255, 255, 255, 0.6);
}

body.theme-dark .hobby-nav-btn:hover:not(:disabled) {
    color: rgba(255, 255, 255, 1);
}

body.theme-sea .hobby-nav-btn {
    color: rgba(30, 58, 95, 0.6);
}

body.theme-sea .hobby-nav-btn:hover:not(:disabled) {
    color: rgba(30, 58, 95, 1);
}

body.theme-forest .hobby-nav-btn {
    color: rgba(45, 80, 22, 0.6);
}

body.theme-forest .hobby-nav-btn:hover:not(:disabled) {
    color: rgba(45, 80, 22, 1);
}

body.theme-christmas .hobby-nav-btn {
    color: rgba(220, 20, 60, 0.6);
}

body.theme-christmas .hobby-nav-btn:hover:not(:disabled) {
    color: rgba(220, 20, 60, 1);
}

/* Availability Card */
.availability-card {
    background-color: #ffd700;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.theme-dark .availability-card {
    background: transparent;
    border: 1px solid var(--border-color);
}

/* Dark Theme - Availability Card */
body.theme-dark .availability-link {
    color: white;
}

/* Sea Theme - Availability Card */
body.theme-sea .availability-card {
    background-color: #4a8bb8;
}

body.theme-sea .availability-link {
    color: white;
}

/* Forest Theme - Availability Card */
body.theme-forest .availability-card {
    background-color: #6b9554;
}

body.theme-forest .availability-link {
    color: white;
}

/* Christmas Theme - Availability Card */
body.theme-christmas .availability-card {
    background-color: #006400;
}

body.theme-christmas .availability-link {
    color: white;
}

.availability-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.availability-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #2d2d2d;
    width: 100%;
    height: 100%;
    padding: 24px;
}

.availability-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.availability-info {
    text-align: center;
}

.availability-label {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.availability-text {
    font-size: 16px;
}

.availability-card .external-link-icon {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Blog Card */
.blog-card {
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

/* Sea Theme - Blog Card */
body.theme-sea .blog-card {
    background-color: rgba(168, 213, 226, 0.3);
}

/* Forest Theme - Blog Card */
body.theme-forest .blog-card {
    background-color: rgba(168, 201, 159, 0.3);
}

/* Christmas Theme - Blog Card */
body.theme-christmas .blog-card {
    background-color: rgba(220, 20, 60, 0.25);
}

.blog-title {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.blog-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
    flex-grow: 1;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.read-more-link:hover {
    text-decoration: underline;
}

/* Sea Theme - Read More Link */
body.theme-sea .read-more-link {
    color: #5a9fc7;
}

body.theme-sea .read-more-link:hover {
    color: #4a8bb8;
}

/* Forest Theme - Read More Link */
body.theme-forest .read-more-link {
    color: #7aa865;
}

body.theme-forest .read-more-link:hover {
    color: #6b9554;
}

/* Christmas Theme - Read More Link */
body.theme-christmas .read-more-link {
    color: #dc143c;
}

body.theme-christmas .read-more-link:hover {
    color: #b22222;
}

.blog-date {
    font-size: 12px;
    color: var(--text-light);
    text-align: right;
    margin-top: auto;
}

/* Theme Toggle Card */
.dark-mode-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 24px;
}

/* Countdown Card */
.countdown-card {
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.countdown-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.theme-dark .countdown-header,
body.theme-sea .countdown-header,
body.theme-forest .countdown-header,
body.theme-christmas .countdown-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.countdown-icon {
    font-size: 24px;
}

.countdown-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.countdown-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-display {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.countdown-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
}

.countdown-label {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sea Theme - Countdown Card */
body.theme-sea .countdown-card {
    background-color: rgba(168, 213, 226, 0.25);
}

/* Forest Theme - Countdown Card */
body.theme-forest .countdown-card {
    background-color: rgba(168, 201, 159, 0.25);
}

/* Christmas Theme - Countdown Card */
body.theme-christmas .countdown-card {
    background-color: rgba(220, 20, 60, 0.2);
    position: relative;
    overflow: hidden;
    animation: christmasGlow 3s ease-in-out infinite;
}

/* Christmas Theme - Countdown Card Glow Effect */
@keyframes christmasGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3),
                    0 0 20px rgba(255, 215, 0, 0.2),
                    inset 0 0 10px rgba(255, 215, 0, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5),
                    0 0 30px rgba(255, 215, 0, 0.3),
                    inset 0 0 15px rgba(255, 215, 0, 0.2);
    }
}

/* Christmas Tree Sway Animation */
body.theme-christmas .countdown-icon {
    display: inline-block;
    animation: treeSway 3s ease-in-out infinite;
    transform-origin: center bottom;
}

@keyframes treeSway {
    0%, 100% {
        transform: rotate(-2deg);
    }
    50% {
        transform: rotate(2deg);
    }
}

/* Sparkle Emoji Animation */
body.theme-christmas .sparkle-emoji {
    display: inline-block;
    animation: sparkle 1.5s ease-in-out infinite;
    margin-left: 2px;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* Falling Animation Container */
.countdown-animation-container,
.card-animation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Falling Emoji Styles */
.falling-emoji {
    position: absolute;
    top: -30px;
    font-size: 20px;
    animation: fallDown linear;
    pointer-events: none;
    z-index: 2;
}

@keyframes fallDown {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100% + 50px)) rotate(360deg);
        opacity: 0.3;
    }
}

/* Ensure countdown content is above falling emojis */
body.theme-christmas .countdown-header,
body.theme-christmas .countdown-content {
    position: relative;
    z-index: 3;
}

/* Ensure card content is above falling emojis */
.timezone-header,
.timezone-content,
.weather-header,
.weather-content,
.hobbies-header,
.hobbies-carousel-container,
.linkedin-link,
.email-link,
.availability-link,
.dark-mode-toggle,
.avatar-container,
.about-text {
    position: relative;
    z-index: 3;
}

/* Timezone Card */
.timezone-card {
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.timezone-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.theme-dark .timezone-header,
body.theme-sea .timezone-header,
body.theme-forest .timezone-header,
body.theme-christmas .timezone-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.timezone-icon {
    font-size: 24px;
}

.timezone-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.timezone-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timezone-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.timezone-time {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
}

.timezone-date {
    font-size: 14px;
    color: var(--text-light);
}

.timezone-location {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sea Theme - Timezone Card */
body.theme-sea .timezone-card {
    background-color: rgba(168, 213, 226, 0.25);
}

/* Forest Theme - Timezone Card */
body.theme-forest .timezone-card {
    background-color: rgba(168, 201, 159, 0.25);
}

/* Christmas Theme - Timezone Card */
body.theme-christmas .timezone-card {
    background-color: rgba(0, 100, 0, 0.2);
}

/* Weather Card */
.weather-card {
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.weather-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.theme-dark .weather-header,
body.theme-sea .weather-header,
body.theme-forest .weather-header,
body.theme-christmas .weather-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.weather-icon {
    font-size: 24px;
}

.weather-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.weather-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weather-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.weather-temp {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
}

.weather-desc {
    font-size: 14px;
    color: var(--text-light);
    text-transform: capitalize;
}

.weather-location {
    font-size: 12px;
    color: var(--text-light);
}

/* Sea Theme - Weather Card */
body.theme-sea .weather-card {
    background-color: rgba(168, 213, 226, 0.25);
}

/* Forest Theme - Weather Card */
body.theme-forest .weather-card {
    background-color: rgba(168, 201, 159, 0.25);
}

/* Christmas Theme - Weather Card */
body.theme-christmas .weather-card {
    background-color: rgba(220, 20, 60, 0.2);
}

.dark-mode-toggle {
    width: 80px;
    height: 40px;
    background-color: #000000;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dark-mode-toggle[data-theme="light"] {
    background-color: #f0f0f0;
    justify-content: flex-start;
}

.dark-mode-toggle[data-theme="dark"] {
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    justify-content: flex-end;
}

.dark-mode-toggle[data-theme="sea"] {
    background-color: #1e3a5f;
    justify-content: flex-end;
}

.dark-mode-toggle[data-theme="forest"] {
    background-color: #2d5016;
    justify-content: flex-end;
}

.dark-mode-toggle[data-theme="christmas"] {
    background-color: #dc143c;
    justify-content: flex-end;
}

.toggle-switch {
    width: 32px;
    height: 32px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.moon-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.dark-mode-toggle[data-theme="dark"] .toggle-switch,
.dark-mode-toggle[data-theme="sea"] .toggle-switch,
.dark-mode-toggle[data-theme="forest"] .toggle-switch,
.dark-mode-toggle[data-theme="christmas"] .toggle-switch {
    background-color: #2a2a2a;
}

.dark-mode-toggle[data-theme="dark"] .moon-icon,
.dark-mode-toggle[data-theme="sea"] .moon-icon,
.dark-mode-toggle[data-theme="forest"] .moon-icon,
.dark-mode-toggle[data-theme="christmas"] .moon-icon {
    color: #ffd700;
}

.dark-mode-toggle[data-theme="light"] .toggle-switch {
    background-color: #ffffff;
}

.dark-mode-toggle[data-theme="light"] .moon-icon {
    color: #333;
}

/* Theme-specific body styles */
body.theme-light {
    --bg-color: #fffef0;
    --card-bg: #fffef8;
    --text-color: #5a4a2a;
    --text-light: #8b7a5a;
}

body.theme-dark {
    --bg-color: #000000;
    --card-bg: transparent;
    --text-color: #e8e8e8;
    --text-light: #b8b8b8;
    --border-color: rgba(255, 255, 255, 0.1);
}

body.theme-sea {
    --bg-color: #e8f4f8;
    --card-bg: #ffffff;
    --text-color: #1e3a5f;
    --text-light: #4a6fa5;
    --primary-blue: #1e3a5f;
}

body.theme-forest {
    --bg-color: #f0f5e8;
    --card-bg: #ffffff;
    --text-color: #2d5016;
    --text-light: #5a7a3a;
    --primary-blue: #2d5016;
}

body.theme-christmas {
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --text-color: #2d2d2d;
    --text-light: #666666;
    --primary-blue: #006400;
    --border-color: rgba(220, 20, 60, 0.3);
}

/* Subscription Section */
.subscription-section {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    text-align: center;
}

body.theme-dark .subscription-section {
    background-color: transparent;
    border: 1px solid var(--border-color);
    box-shadow: none;
}

/* Sea Theme - Subscription Section */
body.theme-sea .subscription-section {
    background-color: rgba(168, 213, 226, 0.25);
}

/* Forest Theme - Subscription Section */
body.theme-forest .subscription-section {
    background-color: rgba(168, 201, 159, 0.25);
}

/* Christmas Theme - Subscription Section */
body.theme-christmas .subscription-section {
    background-color: rgba(220, 20, 60, 0.2);
}

.subscription-section h2 {
    font-size: 28px;
    margin-bottom: 12px;
    font-weight: 600;
}

.subscription-description {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.subscription-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.email-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 15px;
    background-color: var(--card-bg);
    color: var(--text-color);
}

body.theme-dark .email-input {
    border-color: var(--border-color);
    background-color: transparent;
}

/* Sea Theme - Email Input */
body.theme-sea .email-input {
    border-color: rgba(90, 159, 199, 0.3);
    background-color: rgba(255, 255, 255, 0.5);
}

body.theme-sea .email-input:focus {
    border-color: #5a9fc7;
    outline: none;
}

/* Forest Theme - Email Input */
body.theme-forest .email-input {
    border-color: rgba(122, 168, 101, 0.3);
    background-color: rgba(255, 255, 255, 0.5);
}

body.theme-forest .email-input:focus {
    border-color: #7aa865;
    outline: none;
}

/* Christmas Theme - Email Input */
body.theme-christmas .email-input {
    border-color: rgba(220, 20, 60, 0.3);
    background-color: rgba(255, 255, 255, 0.5);
}

body.theme-christmas .email-input:focus {
    border-color: #dc143c;
    outline: none;
}

.subscribe-btn {
    padding: 12px 24px;
    background-color: var(--text-color);
    color: var(--card-bg);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s ease;
}

.subscribe-btn:hover {
    opacity: 0.9;
}

body.theme-dark .subscribe-btn {
    background-color: var(--card-bg);
    color: var(--text-color);
}

/* Sea Theme - Subscribe Button */
body.theme-sea .subscribe-btn {
    background-color: #5a9fc7;
    color: white;
}

body.theme-sea .subscribe-btn:hover {
    background-color: #4a8bb8;
}

/* Forest Theme - Subscribe Button */
body.theme-forest .subscribe-btn {
    background-color: #7aa865;
    color: white;
}

body.theme-forest .subscribe-btn:hover {
    background-color: #6b9554;
}

/* Christmas Theme - Subscribe Button */
body.theme-christmas .subscribe-btn {
    background-color: #dc143c;
    color: white;
}

body.theme-christmas .subscribe-btn:hover {
    background-color: #b22222;
}

.subscriber-count {
    font-size: 14px;
    color: var(--text-light);
    margin-left: 12px;
}

@media (max-width: 768px) {
    .subscription-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .email-input {
        width: 100%;
    }
    
    .subscriber-count {
        margin-left: 0;
        margin-top: 8px;
    }
}

/* Project Modal */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border: 1px solid transparent;
}

body.theme-dark .modal-content {
    background-color: transparent;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Sea Theme - Modal Content */
body.theme-sea .modal-content {
    background-color: rgba(168, 213, 226, 0.15);
    border: 1px solid rgba(90, 159, 199, 0.3);
    box-shadow: 0 8px 32px rgba(90, 159, 199, 0.2);
}

/* Forest Theme - Modal Content */
body.theme-forest .modal-content {
    background-color: rgba(168, 201, 159, 0.15);
    border: 1px solid rgba(122, 168, 101, 0.3);
    box-shadow: 0 8px 32px rgba(122, 168, 101, 0.2);
}

/* Christmas Theme - Modal Content */
body.theme-christmas .modal-content {
    background-color: rgba(220, 20, 60, 0.15);
    border: 1px solid rgba(220, 20, 60, 0.4);
    box-shadow: 0 8px 32px rgba(220, 20, 60, 0.3);
}

.project-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: background-color 0.2s ease;
    z-index: 1002;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

body.theme-dark .modal-close {
    background-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Sea Theme - Modal Close */
body.theme-sea .modal-close {
    background-color: rgba(90, 159, 199, 0.2);
}

body.theme-sea .modal-close:hover {
    background-color: rgba(90, 159, 199, 0.3);
}

/* Forest Theme - Modal Close */
body.theme-forest .modal-close {
    background-color: rgba(122, 168, 101, 0.2);
}

body.theme-forest .modal-close:hover {
    background-color: rgba(122, 168, 101, 0.3);
}

/* Christmas Theme - Modal Close */
body.theme-christmas .modal-close {
    background-color: rgba(220, 20, 60, 0.2);
}

body.theme-christmas .modal-close:hover {
    background-color: rgba(220, 20, 60, 0.3);
}

.modal-top-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.theme-dark .modal-top-section {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Sea Theme - Modal Top Section */
body.theme-sea .modal-top-section {
    border-bottom-color: rgba(90, 159, 199, 0.2);
}

/* Forest Theme - Modal Top Section */
body.theme-forest .modal-top-section {
    border-bottom-color: rgba(122, 168, 101, 0.2);
}

/* Christmas Theme - Modal Top Section */
body.theme-christmas .modal-top-section {
    border-bottom-color: rgba(220, 20, 60, 0.3);
}

.modal-left {
    display: flex;
    flex-direction: column;
}

.modal-title-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.modal-icon {
    font-size: 32px;
}

.modal-title-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
}

.modal-tagline {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 24px;
}

.modal-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
}

.modal-visuals {
    padding: 32px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    padding: 8px 0;
    padding-left: 0;
    position: relative;
}

.project-links {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.project-link-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-color);
    text-decoration: none;
    font-size: 11px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-link-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

body.theme-dark .project-link-btn {
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

body.theme-dark .project-link-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.visual-placeholder {
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    padding: 60px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

body.theme-dark .visual-placeholder {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Sea Theme - Visual Placeholder */
body.theme-sea .visual-placeholder {
    background-color: rgba(168, 213, 226, 0.2);
    border: 1px solid rgba(90, 159, 199, 0.2);
}

/* Forest Theme - Visual Placeholder */
body.theme-forest .visual-placeholder {
    background-color: rgba(168, 201, 159, 0.2);
    border: 1px solid rgba(122, 168, 101, 0.2);
}

/* Christmas Theme - Visual Placeholder */
body.theme-christmas .visual-placeholder {
    background-color: rgba(220, 20, 60, 0.2);
    border: 1px solid rgba(220, 20, 60, 0.3);
}

@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    .modal-overlay {
        backdrop-filter: blur(2px);
    }
    
    .modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 20px;
        background-color: rgba(0, 0, 0, 0.15);
    }
    
    .modal-top-section {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 16px;
    }
    
    .modal-title-section {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .modal-title-section h2 {
        font-size: 22px;
        line-height: 1.3;
    }
    
    .modal-icon {
        font-size: 24px;
    }
    
    .modal-tagline {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .modal-text {
        font-size: 14px;
    }
    
    .modal-visuals {
        padding: 20px 16px;
    }
    
    .features-list li {
        font-size: 14px;
        padding: 6px 0;
    }
    
    .visual-placeholder {
        padding: 40px 20px;
        font-size: 13px;
    }
}

/* Project Detail Page */
.project-detail-page {
    padding: 0;
}

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

.project-back-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 40px;
    transition: all 0.2s ease;
}

.project-back-btn:hover {
    opacity: 0.7;
}

/* Sea Theme - Project Back Button */
body.theme-sea .project-back-btn:hover {
    color: #5a9fc7;
    opacity: 1;
}

/* Forest Theme - Project Back Button */
body.theme-forest .project-back-btn:hover {
    color: #7aa865;
    opacity: 1;
}

/* Christmas Theme - Project Back Button */
body.theme-christmas .project-back-btn:hover {
    color: #dc143c;
    opacity: 1;
}

.project-detail-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.project-detail-left {
    display: flex;
    flex-direction: column;
}

.project-title-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.project-icon {
    font-size: 48px;
}

.project-title-section h1 {
    font-size: 42px;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
}

.project-tagline {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 32px;
}

.project-detail-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    margin: 0;
}

.project-visuals {
    margin-top: 60px;
}

.visual-showcase-container {
    width: 100%;
}

.project-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    gap: 16px;
    margin-top: 20px;
}

@media (min-width: 1200px) {
    .project-showcase-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .project-showcase-grid {
        grid-template-columns: 1fr;
    }
}

.showcase-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.showcase-item.showcase-wide {
    grid-column: span 2;
}

.showcase-item.showcase-tall {
    grid-row: span 2;
}

.showcase-item.showcase-large {
    grid-column: span 2;
    grid-row: span 2;
}

.project-showcase-image {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    object-fit: cover;
    background-color: rgba(0, 0, 0, 0.02);
}

.showcase-item:hover .project-showcase-image {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

body.theme-dark .project-showcase-image {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.05);
}

body.theme-dark .showcase-item:hover .project-showcase-image {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Sea Theme - Project Showcase */
body.theme-sea .project-showcase-image {
    box-shadow: 0 4px 16px rgba(90, 159, 199, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(90, 159, 199, 0.1);
}

body.theme-sea .showcase-item:hover .project-showcase-image {
    box-shadow: 0 8px 24px rgba(90, 159, 199, 0.3);
    border-color: rgba(90, 159, 199, 0.3);
}

/* Forest Theme - Project Showcase */
body.theme-forest .project-showcase-image {
    box-shadow: 0 4px 16px rgba(122, 168, 101, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(122, 168, 101, 0.1);
}

body.theme-forest .showcase-item:hover .project-showcase-image {
    box-shadow: 0 8px 24px rgba(122, 168, 101, 0.3);
    border-color: rgba(122, 168, 101, 0.3);
}

/* Christmas Theme - Project Showcase */
body.theme-christmas .project-showcase-image {
    box-shadow: 0 4px 16px rgba(220, 20, 60, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(220, 20, 60, 0.2);
}

body.theme-christmas .showcase-item:hover .project-showcase-image {
    box-shadow: 0 8px 24px rgba(220, 20, 60, 0.3);
    border-color: rgba(220, 20, 60, 0.4);
}

.project-detail-page .features-list {
    margin-top: 24px;
}

.project-detail-page .features-list li {
    font-size: 16px;
    padding: 10px 0;
}

@media (max-width: 768px) {
    .project-detail-container {
        padding: 20px 16px;
    }
    
    .project-back-btn {
        font-size: 15px;
        margin-bottom: 24px;
        padding: 8px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .project-detail-top {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 32px;
    }
    
    .project-title-section {
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .project-title-section h1 {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .project-icon {
        font-size: 32px;
    }
    
    .project-tagline {
        font-size: 15px;
        margin-bottom: 24px;
    }
    
    .project-detail-right {
        gap: 20px;
    }
    
    .project-text {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .project-visuals {
        margin-top: 32px;
    }
    
    .project-showcase-grid {
        grid-template-columns: 1fr !important;
        grid-auto-rows: 220px;
        gap: 12px;
    }
    
    .showcase-item.showcase-wide,
    .showcase-item.showcase-tall,
    .showcase-item.showcase-large {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
    
    .project-detail-page .features-list {
        margin-top: 20px;
    }
    
    .project-detail-page .features-list li {
        font-size: 15px;
        padding: 8px 0;
    }
}

@media (max-width: 480px) {
    .project-detail-container {
        padding: 16px 12px;
    }
    
    .project-title-section h1 {
        font-size: 24px;
    }
    
    .project-icon {
        font-size: 28px;
    }
    
    .project-tagline {
        font-size: 14px;
    }
    
    .project-text {
        font-size: 14px;
    }
    
    .project-showcase-grid {
        grid-auto-rows: 200px;
        gap: 10px;
    }
}

