@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,1..1000&display=swap');


body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 1rem;
    background: radial-gradient(circle at top, #1f2233, #0f111a);
    font-family: 'Google Sans Flex', monospace;
    color: #e4e4e7;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-theme {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    color: #1a1d29;
}

/* ===== Base Panels ===== */
.panel {
    position: relative;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
    margin-top: -0.25rem;
}

.panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    opacity: 0.35;
    z-index: -1;
}

/* ===== Section Color Themes (Dark Mode) ===== */
.projects-panel {
    background: linear-gradient(
        135deg,
        rgba(34, 211, 238, 0.12),
        rgba(4, 83, 255, 0.322)
    );
}

.projects-panel::before {
    background: linear-gradient(135deg, #15359e, #5bc8f3);
}

.proficiencies-panel {
    background: linear-gradient(
        135deg,
        rgba(83, 13, 175, 0.12),
        rgba(0, 38, 255, 0.08)
    );
}

.proficiencies-panel::before {
    background: linear-gradient(135deg, #203632, #ec4899);
}

/* ===== Light Theme Panels ===== */
body.light-theme .panel {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95),
        rgba(248, 249, 250, 0.95)
    );
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-theme .panel::before {
    display: none;
}

body.light-theme .projects-panel {
    background: linear-gradient(
        135deg,
        rgba(240, 249, 255, 0.95),
        rgba(224, 242, 254, 0.95)
    );
}

body.light-theme .proficiencies-panel {
    background: linear-gradient(
        135deg,
        rgba(250, 245, 255, 0.95),
        rgba(243, 232, 255, 0.95)
    );
}

/* ===== Project Cards ===== */
.card {
    background: rgba(128, 128, 128, 0.15);
    border: 1px solid rgba(200, 200, 200, 0.171);
    border-radius: 12px;
    padding: 1.25rem;
    transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
    min-height: 160px;
    display: flex;
    flex-direction: column;
}

.card > div:first-child {
    margin-bottom: 0.75rem;
}

.card h3 {
    line-height: 1.4;
    max-width: calc(100% - 90px);
    flex-shrink: 1;
}

.card .status-badge {
    flex-shrink: 0;
    white-space: nowrap;
}

.card:hover {
    transform: translateY(-4px);
    border: 1px solid rgba(200, 200, 200, 0.3);
}

body.light-theme .card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.light-theme .card:hover {
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ===== Tags ===== */
.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    background: rgba(128, 128, 128, 0.15);
    border: 1px solid rgba(200, 200, 200, 0.171);
    color: #e4e4e7;
    transition: transform 0.2s ease, border 0.2s ease;
}

body.light-theme .tag {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #374151;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.light-theme .tag:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ===== Status Badges ===== */
.status-badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

body.light-theme .status-badge {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Green status badges in light mode */
body.light-theme .bg-green-500\/20 {
    background: rgba(34, 197, 94, 0.15) !important;
}

body.light-theme .text-green-300 {
    color: #16a34a !important;
}

/* Blue status badges in light mode */
body.light-theme .bg-blue-500\/20 {
    background: rgba(59, 130, 246, 0.15) !important;
}

body.light-theme .text-blue-300 {
    color: #2563eb !important;
}

/* Yellow status badges in light mode */
body.light-theme .bg-yellow-500\/20 {
    background: rgba(234, 179, 8, 0.15) !important;
}

body.light-theme .text-yellow-300 {
    color: #ca8a04 !important;
}

/* ===== Buttons ===== */
.theme-toggle,
.social-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.02)
    );
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.theme-toggle:hover,
.social-icon:hover {
    transform: scale(1.05);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.45),
        inset 0 0 0 1px rgba(139, 92, 246, 0.4);
}

body.light-theme .theme-toggle,
body.light-theme .social-icon {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.9),
        rgba(248, 249, 250, 0.9)
    );
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

body.light-theme .theme-toggle:hover,
body.light-theme .social-icon:hover {
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(59, 130, 246, 0.3);
}

body.light-theme .theme-toggle svg,
body.light-theme .social-icon svg {
    color: #374151 !important;
}

/* ===== See More Button ===== */
.projects-panel button {
    transition: all 0.3s ease;
    position: relative;
}

.projects-panel button:hover {
    background: rgba(103, 232, 249, 0.15) !important;
    border-color: rgba(103, 232, 249, 0.5) !important;
    transform: translateX(4px);
    box-shadow: 0 0 20px rgba(103, 232, 249, 0.3);
}

.projects-panel button:active {
    transform: scale(0.95) translateX(4px);
}

body.light-theme .projects-panel button {
    color: #0891b2;
    border-color: rgba(8, 145, 178, 0.3) !important;
}

body.light-theme .projects-panel button:hover {
    background: rgba(6, 182, 212, 0.1) !important;
    border-color: rgba(6, 182, 212, 0.5) !important;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

/* ===== Pagination (Light Theme) ===== */
body.light-theme .pagination-btn,
body.light-theme .page-indicator {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #374151 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.light-theme .pagination-btn:not(:disabled):hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(6, 182, 212, 0.4) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ===== Terminal Cursor ===== */
.terminal-cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ===== Intro Outline Box ===== */
.intro-box {
    position: relative;
    border-radius: 16px;
    padding: 1.5rem;
    background: transparent;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.intro-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(90deg, #656f74, #3f4041);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

body.light-theme .intro-box {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.5);
}

body.light-theme .intro-box::before {
    background: linear-gradient(90deg, #cbd5e1, #94a3b8);
}

/* ===== Header Text Colors (Light Theme) ===== */
body.light-theme .text-orange-300 {
    color: #ea580c !important;
}

body.light-theme .text-gray-400 {
    color: #6b7280 !important;
}

body.light-theme .text-gray-300 {
    color: #4b5563 !important;
}

body.light-theme .text-cyan-300 {
    color: #0891b2 !important;
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal-panel {
    position: relative;
    max-width: 900px;
    width: 90%;
    border-radius: 16px;
    padding: 2rem;
    background: linear-gradient(
        135deg,
        rgba(34, 211, 238, 0.12),
        rgba(4, 83, 255, 0.322)
    );
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

body.light-theme .modal-panel {
    background: linear-gradient(
        135deg,
        rgba(240, 249, 255, 0.95),
        rgba(224, 242, 254, 0.95)
    );
}

.youtube-message {
    margin-top: 1rem; 
    padding-top: 1rem;
}

.video-link {
    color: #67e8f9;
    text-decoration: underline;
    transition: all 0.2s ease;
    font-weight: 500;
}

.video-link:hover {
    color: #22d3ee;
    text-decoration-thickness: 2px;
    transform: translateY(-1px);
}

body.light-theme .video-link {
    color: #0891b2;
}

body.light-theme .video-link:hover {
    color: #0e7490;
}

/* ===== Theme Settings Modal ===== */
.theme-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.theme-modal-overlay.hidden {
    display: none;
}

.theme-modal-panel {
    position: relative;
    max-width: 320px;
    width: 90%;
    border-radius: 16px;
    padding: 1.5rem;
    background: linear-gradient(
        135deg,
        rgba(31, 34, 51, 0.98),
        rgba(15, 17, 26, 0.98)
    );
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-theme .theme-modal-panel {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.98),
        rgba(248, 249, 250, 0.98)
    );
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.theme-option {
    display: block;
    cursor: pointer;
}

.theme-option-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: rgba(128, 128, 128, 0.1);
    border: 2px solid transparent;
    transition: all 0.2s ease;
    color: #e4e4e7;
}

.theme-option-label:hover {
    background: rgba(128, 128, 128, 0.2);
}

.theme-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.theme-radio:checked + .theme-option-label {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.1);
}

body.light-theme .theme-option-label {
    background: rgba(0, 0, 0, 0.05);
    color: #374151;
}

body.light-theme .theme-option-label:hover {
    background: rgba(0, 0, 0, 0.08);
}

body.light-theme .theme-radio:checked + .theme-option-label {
    border-color: #ea580c;
    background: rgba(234, 88, 12, 0.1);
}

.theme-modal-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-modal-btn-cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #9ca3af;
}

.theme-modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.theme-modal-btn-save {
    background: linear-gradient(135deg, #f97316, #ea580c);
    border: none;
    color: white;
}

.theme-modal-btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

body.light-theme .theme-modal-btn-cancel {
    border-color: rgba(0, 0, 0, 0.2);
    color: #6b7280;
}

body.light-theme .theme-modal-btn-cancel:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.3);
}

