:root {
    --accent-color: #eb5e09;
    --accent-color: #e0701a;
    --accent-dark: #D13B00;
    --twitch-color: #6441A5;
    --bg-dark: #010303EE;
    --bg-light: #1a1a1a;

    --gray-900: #010303;
    --gray-850: #0f0f0f;
    --gray-800: #1e1e1e;
    --gray-700: #2a2a2a;
    --gray-600: #3a3a3a;
    --gray-500: #5a5a5a;
    --gray-400: #9a9a9a;
    --gray-300: #cccccc;
    --gray-200: #e5e5e5;
    --gray-100: #f4f4f4;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: black;
    color: var(--gray-100);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    user-select: none;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}


h1, h2 {
    letter-spacing: -2.0px;
}


.highlight {
    color: var(--accent-color);
    font-weight: bold;
    font-style: italic;
}


#top-vignette {
    width: 100%;
    z-index: 1;
    height: 20vh;
    background: linear-gradient(to top, transparent, black);
}


/* --- Hero Section --- */

#hero-graphic {
    position: absolute;
    top: 0;
    right: 0;
    pointer-events: none;
    transition: transform 1s ease-out;
    transform: translateY(100%);
    object-fit: cover;
    z-index: 0;
    opacity: 80%;
    height: 100vh;
    /* max-height: 100vh; */
    max-width: 100vw;

    clip-path: inset(0 0 0 0 round 0);
    pointer-events: none;
}

header {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
}

#top-section {
    position: relative;
    height: 100vh;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--gray-850);
    background: linear-gradient(to right, black, var(--gray-850), black);
    overflow: hidden;
}


#hero-text-container {
    position: relative;
    max-width: 1500px;
    width: 90vw;
    margin: 0 auto;
}

#hero-h1 {
    max-width: 1000px;
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    opacity: 0;
    transition: all 0.7s ease-out;
    transform: translateY(20px);
    line-height: 1.2;
}

#hero-p {
    font-size: 1.2rem;
    color: var(--gray-300);
    margin-bottom: 2rem;
    opacity: 0;
    transition: all 0.7s ease-out;
    transform: translateY(20px);
    max-width: 800px;
    line-height: 1.5;
    text-wrap: balance;
}

#hero-buffer-bottom {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 1;
    min-height: 20vh;
    background: linear-gradient(to bottom, transparent, black);
}


#hero-btn-container {
    display: flex;
    justify-content: center;
    max-width: 600px;

}

#hero-btn-container a {
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    background-color: var(--accent-color);
    border: 1px solid var(--accent-color);
    color: var(--bg-dark);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    
}


#hero-btn-container a:hover {
    background-color: var(--bg-dark);
    color: var(--gray-300);
}


.spinny-words{
    display: inline-block;
    text-align: left;
}
.spinny-words span{
    position: absolute;
    font-weight: bold;
    top:-0px;
    opacity: 0;    
    animation: rotateWord 18s linear infinite 0s;
}
.spinny-words span:nth-child(2) { 
    animation-delay: 3s; 
}
.spinny-words span:nth-child(3) { 
    animation-delay: 6s; 
}
.spinny-words span:nth-child(4) { 
    animation-delay: 9s; 
}
.spinny-words span:nth-child(5) { 
    animation-delay: 12s; 
}
.spinny-words span:nth-child(6) { 
    animation-delay: 15s; 
}
@keyframes rotateWord {
  0%   { opacity: 0; }
  2%   { opacity: 0; transform: translateY(30px); }
  5%   { opacity: 1; transform: translateY(0px);}
  17%  { opacity: 1; transform: translateY(0px); }
  20%  { opacity: 0; transform: translateY(-30px); }
  80%  { opacity: 0; }
  100% { opacity: 0; }
}


/* --- Particle Effect --- */
#particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Don't block interaction */
    overflow: hidden;
    z-index: 0; /* Behind content */
}

.particle {
    position: absolute;
    background-color: var(--accent-color);
    border-radius: 50%;
    opacity: 1;
    z-index: 2;
    animation: particle-float linear infinite;
}

@keyframes particle-float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-120vh) translateX(var(--drift, 0px)) rotate(360deg); /* Move way off screen */
        opacity: 0;
    }
}


/* --- Menu Header --- */



.btn {
    font-size: 1.2rem;
    font-weight: bold;
    background-color: var(--bg-dark);
    border: 1px solid var(--accent-color);
    color: var(--gray-300);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover, .btn.active {
    background-color: var(--accent-color);
    color: var(--bg-dark);
}


#projects {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 1280px;
}


#main-container {
    background-color: #000A;
    position: relative;
    z-index: 1;
    padding-top: 10vh;
    padding-bottom: 32px;
    width: 100%;
    margin: 0 auto;
}



/* --- Footer --- */

footer {
    background-color: var(--gray-900);
    position: relative;
    z-index: 20;
    padding: 2rem 0;
    border-top: 1px solid var(--gray-800);
    margin: auto;
    text-align: center;
    align-items: center;
    color: var(--gray-400);
    font-size: 0.9rem;
    line-height: 1.5;
    width: 100%;
}

#footer-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem;
}

#footer-socials a {
    transition: color 0.3s ease;
    color: var(--gray-400);

}

#footer-socials a:hover {
    color: var(--accent-color);
}

#footer-socials a svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* --- Project Card --- */

section {
    
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
section.visible {
    opacity: 1;
    transform: translateY(0);
}

section hr {
    width: 75%;
    border: 1px solid var(--gray-800);
    margin: auto
}

.project-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 128px 2rem;
    padding-bottom: 128px;
    gap: 2rem;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.project-image-container {
    perspective: 1000px;
}

.project-image-container img {
    /* width: 100%; */
    /* width: 600px; */
    max-width: calc(min(90vw, 600px));
    max-height: 600px;
    min-width: 300px;
    min-height: 300px;
    /* aspect-ratio: 16 / 10; */
    object-fit: cover;
    aspect-ratio: inherit;
    box-shadow: 0px 0px 15px 0 #e0701a33;
    border: 1px solid #e0701a66;
    border: 1px solid var(--accent-color);

    border-radius: 12px;

    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);

}

.project-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 50%;
    min-width: 500px;
    padding: 1rem;
}

.project-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-color);
    text-align: center;
    text-wrap: balance;
    
    letter-spacing: -1.5px;
    line-height: 3rem;
}

.project-description {
    font-size: 1.2rem;
    color: var(--gray-400);
    flex-grow: 1;
    width: 75%;
}

.project-description ul {
    margin: 2.5rem;
}

.project-info a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    gap: 0.5rem;
    text-decoration: none;
}

.project-info .coming-soon {
    height: 2.5rem;
    display: inline-flex;
    font-style: italic;
    color: var(--gray-500);
}


/* --- Fixed Menu Header --- */
#main-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 100;
    height: 5vh;
    min-height: 60px;
    background: rgba(0,0,0,0.97);
    border-bottom: 1px solid var(--gray-800);
    box-shadow: 0 2px 8px #0008;
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-between;

}

#main-menu ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    justify-content: center;
    align-items: center;
}

#main-menu li {
    display: inline-block;
}

#main-menu a {
    color: var(--gray-100);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s, color 0.2s;
}

#main-menu a:hover, #main-menu a:focus {
    color: var(--accent-color);
}

#navbar-logo {
    max-height: 100%;
}

#navbar-logo:hover {
    transform: scale(.95);
    transition: transform 0.2s ease-in-out;
}

/* --- Category Section Titles --- */
.category-section {
    margin-bottom: 4rem;
    padding-top: 6vh;
}

.category-section-title {
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.category-section-desc {
    color: var(--gray-300);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}


/* --- Feature Cards Section --- */
#feature-cards {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    margin: 3rem auto;
    padding: 2rem 1rem 0 1rem;
    position: absolute;
    top: 80vh;
    width: 100%;
    z-index: 20;
    display: none;;

}

.feature-card {
    background: none;
    border-radius: 12px;
    padding: 0;
    position: relative;
    overflow: visible;
    flex: 1 1 0;
    display: flex;
    align-items: stretch;
}


/* Inner card for content, with margin to show border */
.feature-card-inner {
    background: linear-gradient(135deg, var(--gray-700) 0%, var(--gray-850) 100%);
    border-radius: 12px;
    box-shadow: 0 4px 32px #0008;
    padding: 2.5rem 2rem 2rem 2rem;
    margin: 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 250px;
    max-width: 600px;
    position: relative;
}

.feature-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--gray-100);
/*     
    font-weight: bold;
    letter-spacing: 0.5px; */
}



.feature-card-border {
    /* Animated border container */
    background: conic-gradient(
        from var(--feature-border-angle, 0deg),
        var(--gray-400) 0%,
        var(--accent-color) 50%,
        var(--gray-400) 100%
    );
    border-radius: 12px;
    padding: 3px;
    display: flex;
    /* To allow the card to stretch vertically */
    align-items: stretch;
    /* Prevent overflow issues */
    box-sizing: border-box;
    /* Optional: add a subtle shadow */
    box-shadow: 0 4px 32px #0008;
}

.feature-card-inner p {
    text-wrap: balance;
}

.feature-card-inner ul {
    width: 67%;
    text-align: left;
    margin: 2rem auto;
}


.gradient-text {
    /* Orange gradient for Gemini text */
    background: linear-gradient(90deg, var(--accent-color) 40%, #ffb347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.feature-desc {
    color: var(--gray-300);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.feature-btn {
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    background-color: var(--accent-color);
    border: none;
    color: var(--bg-dark);
    border-radius: 12px;
    padding: 0.6rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s, color 0.2s;
    box-shadow: 0 2px 8px #eb5e0933;
    margin-top: auto;
    display: inline-block;
}

.feature-btn:hover {
    background-color: var(--bg-dark);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

/* Responsive for feature cards */
@media (max-width: 900px) {
    #feature-cards {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        padding: 2rem 0.5rem 0 0.5rem;
    }
    .feature-card {
        max-width: 98vw;
        width: 100%;
    }
}

@media (max-width: 1500px) {
    #hero-graphic {
        opacity: 10%;
    }
}

@media (max-width: 1200px) {

    .project-card {
        flex-direction: column-reverse!important;
        align-items: center;
        gap: 6rem;
    }
    
}

@media (max-width: 1000px) {
    header {
        max-height: 60vh;
    }

    #hero-h1 {
        font-size: 3rem;
    }

    nav h2, .project-title {
        font-size: 2rem;
    }

    .filter-btn {
        font-size: 1rem;
    }
        

}

@media (max-width: 700px) {
    header {
        max-height: 50vh;
    }
    
    #hero-h1 {
        font-size: 2rem;
    }

    #hero-p {
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    header {
        max-height: 40vh;
    }

    #hero-h1 {
        font-size: 1.5rem;
    }
}


