/* Main styles */
:root {
    --primary-color: #8B0000;
    --secondary-color: #000000;
    --text-color: #ffffff;
    --highlight-color: #ff5c5c;
    --link-color: #ff8c8c;
    --icon-color: #ff3333;
    --section-bg: rgba(0, 0, 0, 0.7);
    --section-border: rgba(255, 92, 92, 0.3);
    --logo-glow: #ff6600;
}

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

body {
    font-family: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(to bottom right, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    scrollbar-width: none; /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    display: none;
}

header {
    height: 100vh; /* Full viewport height */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('https://source.unsplash.com/random/1920x1080/?computer') no-repeat center center/cover;
    margin-bottom: 0;
    position: relative;
}

.logo-container {
    margin-bottom: 1.5rem;
}

.logo-animation {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.logo-base {
    width: 180%;
    height: 180%;
    filter: brightness(0) invert(1); /* Make the logo white */
    transition: all 0.5s ease;
    animation: pulse 3s infinite alternate;
}

.logo-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 70%, var(--logo-glow) 100%);
    opacity: 0.6;
    z-index: -1;
    animation: glow 3s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes glow {
    0% { 
        opacity: 0.4;
        box-shadow: 0 0 5px 2px var(--logo-glow);
    }
    100% { 
        opacity: 0.8;
        box-shadow: 0 0 20px 5px var(--logo-glow);
    }
}

.logo-animation.interactive {
    animation: spin 1.5s ease-in-out;
}

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

/* Remove the old logo placeholder styles */
.logo-placeholder {
    display: none;
}

.header-content {
    padding: 2rem;
    max-width: 800px;
}

h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.05em;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.subtitle {
    font-size: 1.8rem;
    letter-spacing: -0.02em;
    font-weight: 300;
    margin-bottom: 2rem;
}

.student-info {
    position: relative;
    display: inline-block;
    cursor: pointer;
    border-bottom: 2px dashed var(--highlight-color);
    color: var(--highlight-color);
    transition: all 0.3s ease;
    padding: 2px 4px;
    margin: -2px -4px;
}

.student-info:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
    background-color: rgba(255, 92, 92, 0.2);
    border-radius: 4px;
}

.student-tooltip {
    position: fixed;
    left: auto;
    top: auto;
    margin-left: 170px;
    margin-top: -30px;
    width: 300px;
    background-color: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--highlight-color);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 92, 92, 0.6), 0 0 30px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    transition: all 0.3s ease;
}

.tooltip-arrow {
    position: absolute;
    left: -12px;
    top: 15px;
    transform: rotate(90deg);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid var(--highlight-color);
}

.student-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

.tooltip-content {
    padding: 15px;
}

.tooltip-content h4 {
    color: var(--highlight-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-align: center;
    letter-spacing: -0.02em;
    text-shadow: 0 0 5px rgba(255, 92, 92, 0.3);
}

.tooltip-content p {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.4;
}

.tooltip-content strong {
    color: var(--link-color);
    font-weight: 600;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* Hamburger menu */
.hamburger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.hamburger-menu:hover {
    background-color: var(--highlight-color);
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: all 0.3s ease;
}

nav {
    background-color: rgba(0, 0, 0, 0.9);
    position: fixed;
    top: 0;
    right: -300px; /* Start off-screen */
    height: 100vh;
    width: 300px;
    z-index: 999;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    padding-top: 70px;
}

nav.active {
    right: 0;
}

nav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0 1rem;
}

nav ul li {
    margin: 0.5rem 0;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.7rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: block;
}

nav ul li a:hover, nav ul li a.active {
    background-color: var(--highlight-color);
    color: var(--secondary-color);
}

/* Content sections */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.content-section {
    margin-bottom: 4rem;
    background-color: var(--section-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--section-border);
}

.content-section h2 {
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.5);
    font-size: 2rem;
    letter-spacing: -0.03em;
    font-weight: 600;
    border-bottom: 1px solid var(--section-border);
}

.section-content {
    padding: 2rem;
}

.section-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--highlight-color);
    letter-spacing: -0.02em;
}

.section-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--link-color);
}

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

.section-content ul, .section-content ol {
    margin-bottom: 1.5rem;
    margin-left: 2rem;
}

.section-content li {
    margin-bottom: 0.5rem;
}

/* Enhanced code blocks */
.section-content pre {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border: 1px solid var(--section-border);
    position: relative;
}

.section-content code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

/* Syntax highlighting styles */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #6a9955;
}

.token.punctuation {
    color: #d4d4d4;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: #b5cea8;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #ce9178;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: #d4d4d4;
}

.token.atrule,
.token.attr-value,
.token.keyword {
    color: #569cd6;
}

.token.function,
.token.class-name {
    color: #dcdcaa;
}

.token.regex,
.token.important,
.token.variable {
    color: #d16969;
}

/* Slideshow styles */
.slideshow-container {
    margin: 2rem 0;
    position: relative;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--section-border);
}

.slideshow {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    position: relative;
}

.slide {
    display: none;
    width: 100%;
    text-align: center;
}

.slide img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.slide-placeholder {
    padding: 4rem 2rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    text-align: center;
    color: var(--highlight-color);
    border: 1px dashed var(--section-border);
}

.slide.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    width: 3rem;
    height: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.slide-nav:hover {
    background-color: var(--highlight-color);
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.8);
    margin-top: 2rem;
    font-size: 0.9rem;
    font-weight: 300;
}

/* Responsive styles */
@media (max-width: 992px) {
    h1 {
        font-size: 3.5rem;
    }
    
    .subtitle {
        font-size: 1.5rem;
    }
    
    .content-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hamburger-menu {
        width: 45px;
        height: 45px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    .content-section {
        margin-bottom: 2rem;
    }
    
    .section-content {
        padding: 1.5rem;
    }
    
    .logo-placeholder {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
        padding: 1rem;
    }
    
    .section-content {
        padding: 1rem;
    }
    
    .slide-nav {
        padding: 0.7rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .hamburger-menu {
        width: 40px;
        height: 40px;
    }
    
    .logo-placeholder {
        width: 100px;
        height: 100px;
        font-size: 1.2rem;
    }
}

/* Copy button for code blocks */
.code-copy-button {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.code-copy-button:hover {
    opacity: 1;
}

.code-copy-button svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Make code blocks position relative for absolute positioning of copy button */
pre {
    position: relative;
}

/* For code blocks that need to be selectable */
.selectable-code {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
} 