* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Font fallback strategy */
@font-face {
    font-family: 'Notable';
    font-display: swap; /* This helps with loading performance */
}

body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    cursor: none; /* Hide default cursor */
}

body, a, button, input, textarea, select {
    cursor: none !important;
}

hr {
    background-color: white;
}

/* Header and Navigation */
header {
    background-color: #000;
    color: white;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
    font-family: "Notable", sans-serif;
}

h3 {
    font-size: 1rem;
    color: #000000;
    font-family: "Open Sans", sans-serif;
}

p {
    font-family: "Open Sans", sans-serif;
    color: #000000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.name {
    font-size: 3rem;
    font-weight: bold;
    font-family: 'Notable', sans-serif;
    opacity: 0; /* Start with opacity 0 for animation */
    transform: translateY(15px); /* Start slightly below final position */
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.name:hover {
    opacity: 0.8;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1 rem;
    transition: opacity 0.3s;
    font-family: 'Notable', sans-serif;
    opacity: 0; /* Start with opacity 0 for animation */
    transform: translateY(15px); /* Start slightly below final position */
}

.nav-links .under-construction {
    color: #888;
    text-decoration: none;
    font-size: 1 rem;
    font-family: 'Notable', sans-serif;
    opacity: 0; /* Start with opacity 0 for animation - will be animated like other nav links */
    transform: translateY(15px);
    pointer-events: none;
}

.nav-links a:hover {
    opacity: 0.5;
}

/* Lorenz Attractor Section */
.lorenz-section {
    width: 100%;
    overflow: hidden;
    margin-top: 70px; /* Add margin to account for fixed header height */
}

.lorenz-container {
    width: 100%;
    height: 70vh;
    position: relative;
    overflow: hidden;
}

.lorenz-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.video-caption {
    text-align: center;
    padding: 10px 0;
    font-size: 0.9rem;
    color: #ffffff;
    background-color: #000000;
    font-style: italic;
}

.interaction-hint {
    display: block;
    font-size: 0.75rem;
    margin-top: 5px;
    opacity: 0.7;
}

/* About Section */
.about-section {
    background-color: #d9d2c6;
    padding: 60px 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-content {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: center;
}

.about-image {
    flex: 0 0 35%;
}

.profile-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 0 0 60%;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #000;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: left;
    gap: 25px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.social-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

/* Projects Section */
.projects-section {
    background-color: #2e2e2e;
    padding: 60px 0;
    position: relative; /* Needed for ambient lights absolute positioning */
    overflow: hidden;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.projects-section h2 {
    color: #ffffff;
}

.project-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.project-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.placeholder-image {
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
}

.placeholder-image::after {
    font-size: 1.5rem;
    font-style: italic;
}

.project-card h3 {
    padding: 15px 20px 0;
    margin: 0;
    font-size: 1.4rem;
    color: #222;
}

.project-card p {
    padding: 10px 20px;
    margin: 0;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
}

.project-link {
    display: inline-block;
    margin: 0 20px 20px;
    padding: 8px 15px;
    background-color: #6b2424;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.project-link:hover {
    background-color: hsla(0, 100%, 37%, 0.668);
}

/* Animation Example Section */
.animation-example {
    padding: 60px 0;
    background-color: #f8f8f8;
    text-align: center;
}

ul.example {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex: 0;
    margin: 0;
    padding: 30px 0;
}

ul.example li {
    width: 100px;
    height: 50px;
    border-radius: 10px;
    display: block;
    background-color: #8effaa;
    opacity: 0;
    flex: 0 0 50px;
}

/* General Animation Styles */
.animated-list li {
    opacity: 0;
    transform: translateY(40px);
    /* Initial state for animation - elements start invisible and lower */
}

/* For browsers without JavaScript or when animation library fails */
.animated-list li.no-js {
    opacity: 1;
    transform: translateY(0);
}

/* For script usage hint */
.animation-comment {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Font utility class that can be applied to any element */
.notable-regular {
  font-family: "Notable", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.open-sans-regular {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

/* Media query for mobile responsiveness */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }
    
    .about-text {
    }
    
    .profile-image {
        max-width: 250px;
        margin: 0 auto;
        display: block;
    }
}

/* Custom Cursor Styles */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    pointer-events: none;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2147483647; /* Max z-index to stay above iframes and all elements */
    backdrop-filter: blur(14px);
    filter: brightness(3);
    filter: invert(1);
    mix-blend-mode: difference;
    transition: width 0.2s, height 0.2s;
}

.custom-cursor.scaled {
    width: 40px;
    height: 40px;
}

.ambient-lights {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-light {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.8;
    pointer-events: none;
    transition: background 0.5s;
    will-change: transform, filter;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.projects-section > .container {
    position: relative;
    z-index: 1; /* Ensure content is above ambient lights */
}

.contact-info {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info p {
    color: white;
    font-size: 1rem;
    margin-bottom: 10px;
}

html {
    scroll-padding-top: 80px; /* Account for fixed header height + some buffer */
}
