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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    font-size: 18px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

.glow-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 102, 204, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: -1;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 80px 20px;
    position: relative;
    z-index: 1;
}

.container::before {
    content: '';
    display: block;
    height: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

header {
    margin-bottom: 60px;
    padding-top: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

header.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    color: #000000;
}

.links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.links-left {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.links a {
    color: #0066cc;
    text-decoration: underline;
    font-size: 16px;
}

.links .home-link {
    color: #1a1a1a;
    text-decoration: none;
}

.links span {
    color: #0066cc;
    text-decoration: underline;
    font-size: 16px;
}

main {
    margin-bottom: 0;
}

section {
    margin-bottom: 50px;
}

.slide {
    margin-bottom: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 120px;
    padding-bottom: 40px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    scroll-margin-top: 0;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    pointer-events: none;
    box-sizing: border-box;
}

.slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.slide.fade-out {
    opacity: 0;
    transform: translateY(-50px);
}

#slide-1 {
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 80px;
}

#slide-1.active {
    opacity: 1;
    transform: translateY(0);
}

#slide-1 header {
    padding-top: 0;
}

.about {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.intro {
    font-size: 18px;
    color: #333333;
    margin-bottom: 20px;
    font-weight: 400;
}

p {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: #4a4a4a;
    margin-bottom: 15px;
    line-height: 1.7;
}

.card-image {
    display: inline-block;
    height: 1.2em;
    width: auto;
    vertical-align: middle;
    margin: 0 4px;
}

h2 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #000000;
    letter-spacing: -0.3px;
}

h2 strong {
    font-weight: 700;
}

.experience-item {
    margin-bottom: 30px;
}

.experience-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.company-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.experience-title {
    flex: 1;
}

.company-name {
    margin-bottom: 2px;
    font-size: 16px;
}

.company-name strong {
    color: #000000;
}

.company-name a {
    color: #000000;
    text-decoration: none;
}

.company-name a:hover {
    color: #0066cc;
    text-decoration: underline;
}

.role {
    font-size: 14px;
    color: #666666;
    margin: 0;
    font-style: italic;
}

.description {
    font-size: 15px;
    color: #666666;
    margin-top: 8px;
    margin-bottom: 0;
    margin-left: 52px;
}

.description a {
    color: #0066cc;
    text-decoration: underline;
}

.cp-image {
    margin-top: 15px;
    margin-left: 52px;
    max-width: 100%;
    height: auto;
    display: block;
}

.dmoj-graph-container {
    margin-top: 20px;
    margin-left: 0;
    margin-right: 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#dmojSubmissionsChart {
    width: 100% !important;
    height: 300px !important;
    max-width: 100%;
}

.graph-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
}

.year-nav {
    background: #0066cc;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    font-family: 'DM Sans', sans-serif;
}

.year-nav:hover {
    background: #0052a3;
}

.year-nav:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.year-display {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    min-width: 60px;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
}

.graph-note {
    margin-top: 15px;
    font-size: 12px;
    color: #666;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
}

.graph-note a {
    color: #0066cc;
    text-decoration: underline;
}

.other a {
    color: #0066cc;
    text-decoration: underline;
}

footer {
    margin-top: 100px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

footer p {
    font-size: 14px;
    color: #888888;
}

@media (max-width: 768px) {
    .container {
        padding: 60px 20px;
    }
    
    h1 {
        font-size: 32px;
    }
    
    .intro {
        font-size: 17px;
    }
    
    p {
        font-size: 15px;
    }
    
    body {
        font-size: 16px;
    }
    
    .company-logo {
        width: 32px;
        height: 32px;
    }
    
    .description {
        margin-left: 44px;
    }
}

