/* ===== WEBTOON AESTHETIC THEME ===== */
/* Cute Pastel Color Palette */
:root {
    --primary-pink: #FFB6D9;
    --primary-lavender: #D5AAFF;
    --primary-mint: #B4E7CE;
    --primary-peach: #FFC8A2;
    --primary-sky: #A2D2FF;
    --bg-cream: #FFF8F0;
    --bg-light: #FFFBF5;
    --text-dark: #4A4A4A;
    --text-medium: #6B6B6B;
    --white: #FFFFFF;
    --shadow-soft: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: 'Quicksand', 'Fredoka', sans-serif;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-light) 100%);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ===== FLOATING DECORATIVE SHAPES ===== */
.floating-shapes {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.shape-1 { top: 10%; left: 10%; animation-delay: 0s; }
.shape-2 { top: 20%; right: 15%; animation-delay: 2s; }
.shape-3 { bottom: 30%; left: 20%; animation-delay: 4s; }
.shape-4 { top: 60%; right: 10%; animation-delay: 6s; }
.shape-5 { bottom: 10%; right: 30%; animation-delay: 8s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-40px) rotate(-5deg); }
    75% { transform: translateY(-20px) rotate(3deg); }
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* ===== HEADER WITH PROFILE ===== */
.webtoon-header {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-lavender) 100%);
    border-bottom: 5px solid var(--white);
    box-shadow: 0 10px 30px var(--shadow-medium);
    position: relative;
    z-index: 1;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.profile-image-wrapper {
    position: relative;
}

.profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 6px solid var(--white);
    box-shadow: 0 15px 35px var(--shadow-medium);
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.profile-ring {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 3px dashed var(--primary-peach);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 20s linear infinite;
    z-index: 1;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.profile-info {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.title-main {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
    font-family: 'Fredoka', sans-serif;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 2rem;
    opacity: 0.95;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    background: var(--white);
    color: var(--text-dark);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 5px 15px var(--shadow-medium);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.social-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-medium);
    border-color: var(--primary-peach);
}

/* ===== SECTIONS ===== */
.section-webtoon {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-family: 'Fredoka', sans-serif;
}

.title-underline {
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-pink), var(--primary-lavender));
    margin: 0 auto;
    border-radius: 10px;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 0 10px 30px var(--shadow-soft);
    text-align: center;
    border: 4px solid var(--primary-mint);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-medium);
    border-color: var(--primary-pink);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-family: 'Fredoka', sans-serif;
}

.about-card p {
    color: var(--text-medium);
    line-height: 1.8;
}

/* ===== COMPETITIVE PROGRAMMING SECTION ===== */
.cp-section {
    background: linear-gradient(135deg, var(--primary-sky) 0%, var(--primary-mint) 100%);
    border-top: 5px solid var(--white);
    border-bottom: 5px solid var(--white);
}

.cp-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.cp-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 25px;
    box-shadow: 0 15px 35px var(--shadow-medium);
    border: 5px solid;
    transition: all 0.3s ease;
}

.codechef-card {
    border-color: #5B4638;
}

.codeforces-card {
    border-color: #1F8ACB;
}

.cp-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px var(--shadow-medium);
}

.cp-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px dashed var(--primary-peach);
}

.cp-logo {
    font-size: 3rem;
}

.cp-header h3 {
    font-size: 2rem;
    font-family: 'Fredoka', sans-serif;
    color: var(--text-dark);
}

.cp-stats {
    margin-bottom: 1.5rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 2px solid var(--bg-cream);
}

.stat-label {
    font-weight: 600;
    color: var(--text-medium);
}

.stat-value {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.cp-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-lavender));
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow-medium);
}

.cp-link:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px var(--shadow-medium);
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--white);
    border-radius: 25px;
    padding: 2rem;
    border: 4px solid var(--primary-lavender);
    box-shadow: 0 10px 30px var(--shadow-soft);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-pink), var(--primary-lavender), var(--primary-mint));
}

.project-card:hover {
    transform: translateY(-10px) rotate(-1deg);
    box-shadow: 0 20px 40px var(--shadow-medium);
    border-color: var(--primary-pink);
}

.project-language {
    display: inline-block;
    background: var(--primary-peach);
    color: var(--white);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    font-family: 'Fredoka', sans-serif;
}

.project-card p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.project-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-lavender), var(--primary-sky));
    color: var(--white);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow-soft);
}

.project-link:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.project-link-demo {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-mint), var(--primary-peach));
    color: var(--white);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow-soft);
}

.project-link-demo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.loading-card {
    text-align: center;
    padding: 3rem;
    border-color: var(--primary-mint);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--bg-cream);
    border-top: 5px solid var(--primary-pink);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: linear-gradient(135deg, var(--primary-peach) 0%, var(--primary-pink) 100%);
    border-top: 5px solid var(--white);
}

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

.contact-text {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 2rem;
    font-weight: 500;
}

.contact-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    background: var(--white);
    color: var(--text-dark);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px var(--shadow-medium);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 3px solid transparent;
}

.contact-link:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px var(--shadow-medium);
    border-color: var(--primary-lavender);
}

.link-icon {
    font-size: 1.5rem;
}

/* ===== FOOTER ===== */
.webtoon-footer {
    background: linear-gradient(135deg, var(--primary-lavender) 0%, var(--primary-pink) 100%);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    border-top: 5px solid var(--white);
}

.webtoon-footer p {
    margin: 0.5rem 0;
    font-weight: 500;
}

.footer-sub {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .title-main {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .profile-pic {
        width: 150px;
        height: 150px;
    }
    
    .profile-ring {
        width: 170px;
        height: 170px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .profile-section {
        gap: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .cp-container {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .title-main {
        font-size: 2rem;
    }
    
    .social-links {
        flex-direction: column;
    }
    
    .social-btn {
        width: 100%;
    }
}