/* ============================================
   CINWY PORTFOLIO - SIMPLE CSS
   ============================================
   
   TO CHANGE STAR COUNT:
   Open js/script.js and look for:
   const starCount = Math.floor((canvas.width * canvas.height) / 4000);
   
   Lower number = MORE stars
   Higher number = LESS stars
   
   Example: /2000 = lots of stars
            /8000 = fewer stars
   
   ============================================ */

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

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #000;
    color: #fff;
    height: 100%;
    width: 100%;
    overflow: hidden; /* NO SCROLLING */
}

/* ============================================
   STARRY BACKGROUND CANVAS
   ============================================ */
#starCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(ellipse at bottom, #0a0a0a 0%, #000000 100%);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding-top: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 13px;
    border: 1px solid rgba(143,108,180,0.1);
}

.nav-link {
    color: rgba(97, 103, 115);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: color 0.2s;
    cursor: pointer;
}

.nav-link:hover {
    color: rgba(195, 199, 204);
}
.nav-link.active {
    color: rgb(255, 255, 255);
}

/* ============================================
   SECTIONS - NO SCROLLING, SWITCH BETWEEN THEM
   ============================================ */
.section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.section.active {
    opacity: 1;
    visibility: visible;
}

.content-container {
    max-width: 700px;
    width: 100%;
}

.content-container.center {
    text-align: center;
}

/* ============================================
   HOME PAGE - PROFILE
   ============================================ */
.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transform: translateY(-48px); /* adjust value */
}

/* Profile Image - KEEP THIS SIZE */
.profile-decoration {
    position: absolute;
    width: 155px;
    height: 155px;
    top: -13px; /* adjust until perfect */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
}

.profile-image {
    width: 124px;
    height: 124px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.3);
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-initial {
    font-size: 48px;
    font-weight: bold;
    color: #fff;
}

/* Name */
.name {
    font-size: 38px;
    font-weight: bold;
    background: linear-gradient(90deg, #d393fe, #f97cf9, #d393fe);
    background-size: 100% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

/* Title */
.title {
    font-size: 14.2px;
    line-height: 1.25rem;
    color: rgba(140, 140, 140, 1.0);
    margin-bottom: 24px;
}

/* Bio */
.bio {
    font-size: 14.2px;
    color: 	rgb(185, 185, 185);
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* ============================================
   SOCIAL CARDS
   ============================================ */
.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 520px;
    width: 100%;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 11px;
    transform: scale(1.02);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(143,108,180,0.1);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
}

.social-card:hover {
    border-color: rgba(202,152,255,.5);
}

.social-icon {
    width: 35px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: left;
    flex-shrink: 0;
}

.icon {
    width: 16px;
    height: 16px;
}

.social-info {
    display: flex;
    margin-left: -10px; /* tweak: -2px / -6px if needed */
    flex-direction: column;
    align-items: flex-start;
}

.social-name {
    font-size: 12px;
    font-weight: 600;
    color: #d3d3d3;
}

.social-followers {
    font-size: 12px;
    color: rgb(136, 136, 136);
}

/* ============================================
   PAGE TITLES
   ============================================ */
.page-title {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 24px;
    color: #fff;
}

.page-title.gradient {
    background: linear-gradient(90deg, #c084fc, #f472b6, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-text {
    margin-bottom: 40px;
}

.about-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 12px;
}

/* GitHub Activity */
.github-section {
    margin-top: 32px;
}

.github-title {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.github-grid {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.github-week {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.github-day {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    transition: transform 0.2s;
}

.github-day:hover {
    transform: scale(1.3);
}

.level-0 { background: rgba(255, 255, 255, 0.05); }
.level-1 { background: rgba(168, 85, 247, 0.3); }
.level-2 { background: rgba(168, 85, 247, 0.5); }
.level-3 { background: rgba(168, 85, 247, 0.7); }
.level-4 { background: #c084fc; }

.github-legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.legend-scale {
    display: flex;
    align-items: center;
    gap: 4px;
}

.legend-scale span {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
}

.legend-box {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 450px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(143,108,180,0.1);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s;
}

.contact-card:hover {
    background: rgba(202,152,255,.15);
    border-color: rgba(202,152,255,.5);
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.contact-card:hover .contact-icon {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(236, 72, 153, 0.3));
    transform: scale(1.1);
}

.contact-icon .icon {
    width: 24px;
    height: 24px;
    color: #c084fc;
}

.contact-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.contact-value {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
    .nav-links {
        gap: 16px;
        padding: 8px 16px;
    }

    .name {
        font-size: 36px;
    }

    .page-title {
        font-size: 32px;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
    }
}
