@font-face {
    font-family: 'Chaos16';
    src: url('CHAOS16/CHAOS16.otf') format('truetype');
}


:root {
    --dark: #191716;
    --red: #75020f;
    --dark-red: #51080d;
    --darker-red: #260307;
}

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

body {
    background-color: var(--dark);
    overflow-x: hidden;
    font-family: Chaos16;
}

header {
    height: 100px;
    width: 100vw;
    background-color: var(--dark);
    color: var(--red);
    display: flex;
    position: fixed;
}

.logo-container {
    height: 100%;
    width: calc(30% - 20px);
    padding-left: 20px;
    display: flex;
    align-items: center;
}

.nav-container {
    height: 100%;
    width: calc(70% - 20px);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 30px;
}

nav {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
}

nav a {
    text-decoration: none;
    color: var(--red);
    font-size: 1.5em;
    transition: color 0.3s;
    margin-right: 20px;
}

nav a:hover {
    color: var(--dark-red);
}

/* About Me Section - Enhanced */
#about-me {
    min-height: 100vh;
    width: 100%;
    background-color: var(--dark-red);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 40px 60px;
    gap: 50px;
}

.div-gefest {
    display: flex;
    flex-direction: column;
    font-family: "Courier New", monospace;
    line-height: 1.1;
    font-size: calc(100vw/40);
    text-align: center;
    margin-bottom: 20px;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(25, 23, 22, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(25, 23, 22, 0.8));
    }
}

.gefest {
    white-space: pre;
    color: var(--dark);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Quick Info Bar */
.quick-info {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 40px;
    background: rgba(25, 23, 22, 0.3);
    border-radius: 8px;
    border: 2px solid var(--darker-red);
}

.quick-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.quick-info-label {
    color: var(--darker-red);
    font-size: 1.5em;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

.quick-info-value {
    color: var(--dark);
    font-size: 2em;
    font-weight: bold;
}



/* Projects Section */
#projects {
    min-height: 100vh;
    width: 100%;
    background-color: var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 40px;
}

#projects h2 {
    color: var(--red);
    font-size: 6em;
    margin-bottom: 20px;
}

.project-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

/* Card Container */
.container {
    position: relative;
    perspective: 1000px;
    transition: transform 0.1s ease;
}

.container:hover {
    transform: scale(1.05);
}

/* Card Styles */
.card {
    position: relative;
    width: 300px;
    height: 420px;
    box-shadow:
        0 0 0 2px black,
        -15px 25px 20px 0 rgba(0, 0, 0, 0.4);
    linear-gradient(135deg, rgb(0, 0, 0) 25%, transparent 25%),
    linear-gradient(225deg, rgb(0, 0, 0) 25%, transparent 25%),
    linear-gradient(45deg, rgb(0, 0, 0) 25%, transparent 25%),
    linear-gradient(315deg, rgb(0, 0, 0) 25%, transparent 25%);
    background-position: 10px 0px, 10px 0px, 0px 0px, 0px 0px;
    background-size: 20px 20px;
    background-color: #1b1b1b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    transform-style: preserve-3d;
    cursor: pointer;
}

.card::before,
.card::after {
    position: absolute;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    background-color: transparent;
}

.card::before {
    top: 15px;
    left: 15px;
    writing-mode: vertical-lr;
    letter-spacing: 3px;
}

.card::after {
    bottom: 15px;
    right: 15px;
    writing-mode: vertical-lr;
    letter-spacing: 3px;
    transform: rotate(180deg);
}

.card img {
    width: 100%;
    height: auto;
    image-rendering: crisp-edges;
    background-color: transparent;
}

/* Shine Effect */
.card s {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 100%);
}

.card:hover s {
    opacity: 1;
}

/* Grid for hover areas */
.grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    pointer-events: none;
}

.grid i {
    pointer-events: all;
    background-color: transparent;
}

/* Project Info Styling */
.project-info {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px 30px;
    width: 100%;
    height: 100%;

    text-align: center;
    animation: fadeIn 0.3s ease;
}

.red-info {
    background: linear-gradient(135deg, var(--darker-red) 0%, var(--red) 100%);
}

.black-info {
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker-red) 100%);
}

.red {
    color: var(--dark);
    /* text-shadow: 0 0 10px rgba(25, 23, 22, 0.6); */
    border-bottom: 3px solid var(--dark);
}

.black {
    color: var(--red);
    text-shadow: 0 0 20px rgba(117, 2, 15, 0.6);
    border-bottom: 3px solid var(--red);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-name {
    font-size: 2.5em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    width: 100%;
}

.project-description {
    font-size: 1.5em;
    color: var(--dark-red);
    line-height: 1.6;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    max-width: 90%;
    border-bottom: 0;
}

.red-description {
    color: var(--darker-red);
}



/* Contact Section */
#contact {
    min-height: 100vh;
    width: 100%;
    background-color: var(--dark-red);
    color: var(--dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
    gap: 60px;
}

#contact h2 {
    font-size: 10em;
    margin-bottom: 30px;
}

#contact p {
    font-size: 2em;
    max-width: 600px;
    line-height: 1.6;
}

.contact-links {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-links a {
    position: relative;
    padding: 25px 50px;
    font-size: 4em;
    color: var(--dark);
    text-decoration: none;
    background: linear-gradient(135deg, rgba(25, 23, 22, 0.4) 0%, rgba(25, 23, 22, 0.6) 100%);
    border: 3px solid var(--darker-red);
    border-radius: 8px;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    overflow: hidden;
}

.contact-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(25, 23, 22, 0.8), transparent);
    transition: left 0.6s ease;
}

.contact-links a:hover::before {
    left: 100%;
}

.contact-links a:hover {
    background: linear-gradient(135deg, rgba(25, 23, 22, 0.8) 0%, rgba(38, 3, 7, 0.9) 100%);
    border-color: var(--dark);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}