/* Vibrant Artistic Portfolio CSS - Color Blocking & Playful Typography */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@700&family=Fredoka:wght@600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    /* Medium Intensity Color Palette - Halfway between original and softer */
    --hot-pink: #FF4470;
    --electric-blue: #3D9EF0;
    --sunny-yellow: #FFDE5C;
    --deep-purple: #835E98;
    --vibrant-orange: #FF8157;
    --lime-green: #9FE0CD;
    --coral: #FF92B0;

    /* Neutrals */
    --charcoal: #2C3E50;
    --soft-white: #FAFAFA;
    --cream: #FFF8E7;
}

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

body {
    font-family: 'Crimson Text', serif;
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--charcoal);
    background: var(--cream);
}

/* Header with Bold Color Blocks */
.site-header {
    background: linear-gradient(135deg, var(--hot-pink) 0%, var(--deep-purple) 100%);
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: var(--electric-blue);
    opacity: 0.3;
    transform: rotate(15deg);
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
}

.banner-with-overlay {
    position: relative;
    padding: 1.5rem 2rem;
}

.header-banner {
    display: none; /* Hide the mountain banner for artistic style */
}

.profile-overlay {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: static;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 8px solid var(--sunny-yellow);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.profile-photo:hover {
    transform: rotate(3deg) scale(1.05);
}

.mountain-art {
    flex: 1;
    min-width: 200px;
    max-width: 600px;
    height: auto;
    margin-left: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.mountain-art:hover {
    opacity: 0.9;
}

.profile-info h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 4rem;
    color: white;
    margin-bottom: 0;
}

.profile-info .title,
.profile-info .subtitle,
.profile-info .contact-quick {
    color: white;
    font-size: 1.1rem;
    margin: 0 0;
    border: none;
}

.profile-info a {
    color: var(--sunny-yellow);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.profile-info a:hover {
    border-bottom-color: var(--sunny-yellow);
}

/* Playful Navigation */
.main-nav {
    background: var(--charcoal);
    padding: 1rem 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    border: none;
}

.main-nav a {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    text-decoration: none;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    border: none;
}

.main-nav a:nth-child(4n+1) {
    background: var(--hot-pink);
}

.main-nav a:nth-child(4n+2) {
    background: var(--electric-blue);
}

.main-nav a:nth-child(4n+3) {
    background: var(--vibrant-orange);
}

.main-nav a:nth-child(4n+4) {
    background: var(--deep-purple);
}

.main-nav a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.main-nav a.current {
    transform: scale(1.15);
    box-shadow: 0 0 0 4px var(--sunny-yellow);
}

.nav-separator {
    color: var(--sunny-yellow);
    font-size: 1.5rem;
    margin: 0 0.5rem;
}

/* Main Content with Bold Color Blocks */
.content {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.intro {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 15px 15px 0 var(--hot-pink), -15px -15px 0 var(--electric-blue);
    margin-bottom: 3rem;
    position: relative;
    border: none;
}

.intro::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--sunny-yellow), var(--lime-green));
    border-radius: 20px;
    z-index: -2;
    opacity: 0.3;
}

.intro p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Vibrant Color-Blocked Sections */
.content-section {
    background: white;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 15px;
    position: relative;
    transition: transform 0.3s ease;
}

.content-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 15px;
    height: 100%;
    border-radius: 15px 0 0 15px;
}

.content-section:nth-child(6n+1) {
    box-shadow: 12px 12px 0 var(--hot-pink);
}

.content-section:nth-child(6n+1)::before {
    background: var(--hot-pink);
}

.content-section:nth-child(6n+2) {
    box-shadow: 12px 12px 0 var(--electric-blue);
}

.content-section:nth-child(6n+2)::before {
    background: var(--electric-blue);
}

.content-section:nth-child(6n+3) {
    box-shadow: 12px 12px 0 var(--vibrant-orange);
}

.content-section:nth-child(6n+3)::before {
    background: var(--vibrant-orange);
}

.content-section:nth-child(6n+4) {
    box-shadow: 12px 12px 0 var(--lime-green);
}

.content-section:nth-child(6n+4)::before {
    background: var(--lime-green);
}

.content-section:nth-child(6n+5) {
    box-shadow: 12px 12px 0 var(--deep-purple);
}

.content-section:nth-child(6n+5)::before {
    background: var(--deep-purple);
}

.content-section:nth-child(6n+6) {
    box-shadow: 12px 12px 0 var(--coral);
}

.content-section:nth-child(6n+6)::before {
    background: var(--coral);
}

.content-section:hover {
    transform: translateY(-5px);
}

.content-section h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    border: none;
    padding: 0;
}

.content-section:nth-child(6n+1) h2 {
    color: var(--hot-pink);
}

.content-section:nth-child(6n+2) h2 {
    color: var(--electric-blue);
}

.content-section:nth-child(6n+3) h2 {
    color: var(--vibrant-orange);
}

.content-section:nth-child(6n+4) h2 {
    color: var(--lime-green);
}

.content-section:nth-child(6n+5) h2 {
    color: var(--deep-purple);
}

.content-section:nth-child(6n+6) h2 {
    color: var(--coral);
}

.content-section h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--charcoal);
}

.content-section h4 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.content-section p {
    margin-bottom: 1.2rem;
}

.content-section ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.content-section li {
    padding: 0.3rem 0 0.3rem 2rem;
    position: relative;
    margin-bottom: 0.2rem;
}

.content-section li::before {
    content: '●';
    position: absolute;
    left: 0;
    font-size: 1.5rem;
}

.content-section:nth-child(6n+1) li::before { color: var(--hot-pink); }
.content-section:nth-child(6n+2) li::before { color: var(--electric-blue); }
.content-section:nth-child(6n+3) li::before { color: var(--vibrant-orange); }
.content-section:nth-child(6n+4) li::before { color: var(--lime-green); }
.content-section:nth-child(6n+5) li::before { color: var(--deep-purple); }
.content-section:nth-child(6n+6) li::before { color: var(--coral); }

/* Playful Links */
a {
    color: var(--electric-blue);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

a:hover {
    color: var(--hot-pink);
    border-bottom-color: var(--hot-pink);
}

.intro a {
    color: var(--deep-purple);
    border-bottom: 2px solid var(--deep-purple);
}

.intro a:hover {
    color: var(--hot-pink);
    border-bottom-color: var(--hot-pink);
}

/* Section Navigation */
.section-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 2rem;
    margin-bottom: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 10px 10px 0 var(--lime-green);
}

.section-nav a {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 3px solid;
}

.section-nav a:nth-child(4n+1) {
    background: var(--hot-pink);
    border-color: var(--hot-pink);
    color: white;
}

.section-nav a:nth-child(4n+2) {
    background: var(--electric-blue);
    border-color: var(--electric-blue);
    color: white;
}

.section-nav a:nth-child(4n+3) {
    background: var(--vibrant-orange);
    border-color: var(--vibrant-orange);
    color: white;
}

.section-nav a:nth-child(4n+4) {
    background: var(--deep-purple);
    border-color: var(--deep-purple);
    color: white;
}

.section-nav a:hover {
    transform: translateY(-3px) rotate(2deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Project Items */
.project,
.project-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border-left: 8px solid;
    transition: all 0.3s ease;
}

.project-item:nth-child(4n+1) {
    border-left-color: var(--hot-pink);
    box-shadow: 8px 8px 0 var(--hot-pink);
}

.project-item:nth-child(4n+2) {
    border-left-color: var(--electric-blue);
    box-shadow: 8px 8px 0 var(--electric-blue);
}

.project-item:nth-child(4n+3) {
    border-left-color: var(--vibrant-orange);
    box-shadow: 8px 8px 0 var(--vibrant-orange);
}

.project-item:nth-child(4n+4) {
    border-left-color: var(--deep-purple);
    box-shadow: 8px 8px 0 var(--deep-purple);
}

.project-item:hover {
    transform: translateY(-3px);
}

/* Paper Items */
.paper {
    margin-bottom: 1.5rem;
}

/* History, Committees, Courses, Outreach */
.history,
.committees,
.courses,
.outreach-item {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border-left: 8px solid;
}

.history {
    border-left-color: var(--deep-purple);
    box-shadow: 8px 8px 0 var(--deep-purple);
}

.committees {
    border-left-color: var(--vibrant-orange);
    box-shadow: 8px 8px 0 var(--vibrant-orange);
}

.courses {
    border-left-color: var(--electric-blue);
    box-shadow: 8px 8px 0 var(--electric-blue);
}

.outreach-item {
    border-left-color: var(--hot-pink);
    box-shadow: 8px 8px 0 var(--hot-pink);
}

/* Footer with Color Block */
.site-footer {
    background: var(--charcoal);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(90deg,
        var(--hot-pink) 0%,
        var(--electric-blue) 25%,
        var(--sunny-yellow) 50%,
        var(--vibrant-orange) 75%,
        var(--deep-purple) 100%
    );
}

.site-footer p {
    margin: 0;
}

/* Page Title */
.page-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--hot-pink);
    transform: rotate(-1deg);
    display: inline-block;
}

.page-title a {
    color: var(--hot-pink);
    border: none;
}

.page-title a:hover {
    color: var(--electric-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-overlay {
        flex-direction: column;
        text-align: center;
    }

    .profile-info h1 {
        font-size: 2.5rem;
    }

    .content-section {
        box-shadow: 8px 8px 0 currentColor;
    }

    .intro {
        box-shadow: 10px 10px 0 var(--hot-pink);
        padding: 2rem;
    }

    .content {
        padding: 0 1.5rem;
    }

    .main-nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .section-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .profile-info h1 {
        font-size: 2rem;
    }

    .content-section h2 {
        font-size: 2rem;
    }

    .content-section h3 {
        font-size: 1.5rem;
    }

    .intro {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .header-banner,
    .section-nav {
        display: none;
    }

    .site-header {
        background: white;
        border-bottom: 2px solid #000;
    }

    .site-header::before {
        display: none;
    }

    .profile-info h1 {
        color: #000;
        text-shadow: none;
    }

    a {
        color: #000;
        text-decoration: underline;
        border: none;
    }
}
