/* ===== CSS Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* AMOLED Black Background */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;

    /* Soft Ice Blue Color Palette */
    --accent-primary: hsl(195, 60%, 75%);
    --accent-secondary: hsl(200, 55%, 85%);
    --accent-gradient: linear-gradient(135deg, hsl(195, 60%, 75%), hsl(210, 55%, 85%));

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #707070;

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow: hidden;
    min-height: 100vh;
}

/* ===== Snow Canvas ===== */
#snow-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ===== Main Container ===== */
.main-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm);
    z-index: 10;
}

/* ===== Portfolio Box ===== */
.portfolio-box {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: var(--spacing-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: fadeInScale 0.6s ease;
}

/* Hide Scrollbar */
.portfolio-box::-webkit-scrollbar {
    width: 0;
    display: none;
}

.portfolio-box {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}



/* ===== Profile Section ===== */
.profile-section {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--accent-primary);
    object-fit: cover;
    margin-bottom: var(--spacing-sm);
    box-shadow: 0 10px 30px rgba(135, 206, 235, 0.2);
    transition: transform 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-title {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
}

/* ===== Tab Navigation ===== */
.tab-navigation {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem;
    border-radius: 12px;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--accent-primary);
    color: #000000;
}

/* ===== Tab Content ===== */
.tab-content-container {
    min-height: 300px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== About Me Section ===== */
.about-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.about-list {
    list-style: none;
    padding: 0;
    margin-bottom: var(--spacing-md);
}

.about-list li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.about-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-size: 1.2rem;
}

/* Social Links List */
.social-links-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-link-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link-item:hover {
    background: rgba(135, 206, 235, 0.15);
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.social-link-item svg {
    flex-shrink: 0;
    color: var(--accent-primary);
}

.social-link-item span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* ===== Projects Section ===== */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.project-item {
    background: rgba(255, 255, 255, 0.03);
    padding: var(--spacing-md);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.project-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xs);
}

.project-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.project-year {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.tag {
    background: rgba(135, 206, 235, 0.15);
    color: var(--accent-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(135, 206, 235, 0.25);
}

/* ===== CV Section ===== */
.cv-section {
    margin-bottom: var(--spacing-lg);
}

.cv-heading {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.cv-item {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--glass-border);
}

.cv-item:last-child {
    border-bottom: none;
}

.cv-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xs);
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.cv-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.cv-company {
    color: var(--accent-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
}

.cv-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* CV Download Button */
.cv-download {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--glass-border);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 1rem 2rem;
    background: var(--accent-primary);
    color: #000000;
    border: none;
    border-radius: 50px;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-3px);
    background: hsl(195, 60%, 80%);
}

.download-btn:active {
    transform: translateY(-1px);
}

.download-btn svg {
    width: 20px;
    height: 20px;
}

/* ===== Footer ===== */
.box-footer {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.box-footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== Advertisement Banner ===== */
.ad-banner {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.ad-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ad-link:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(135, 206, 235, 0.3);
    border-color: var(--accent-primary);
}

.ad-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.ad-image.active {
    opacity: 1;
}

/* ===== Animations ===== */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .portfolio-box {
        padding: var(--spacing-md);
        max-height: 95vh;
    }

    .profile-photo {
        width: 100px;
        height: 100px;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .profile-title {
        font-size: 0.9rem;
    }

    .tab-btn {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }

    .section-heading {
        font-size: 1.3rem;
    }

    .ad-banner {
        max-width: 100%;
    }

    .ad-link {
        height: 80px;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 0.5rem;
    }

    .portfolio-box {
        padding: var(--spacing-sm);
        border-radius: 16px;
    }

    .profile-photo {
        width: 80px;
        height: 80px;
    }

    .profile-name {
        font-size: 1.3rem;
    }

    .tab-navigation {
        gap: 0.25rem;
    }

    .tab-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.5rem;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cv-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== Click RGB Effect ===== */
.click-rgb-effect {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%) scale(0);
    animation: rgbPulse 0.8s ease-out forwards;
}

@keyframes rgbPulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}