/* Custom font face */
@font-face {
    font-family: 'FOT-Matisse-Pro-EB';
    src: url('FOT-Matisse-Pro-EB.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'FOT-Matisse-Pro-EB', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ff0000;
    background-color: #000000;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(120, 120, 120, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(120, 120, 120, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(120, 120, 120, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, rgba(20, 20, 20, 0.8) 0%, rgba(0, 0, 0, 0.9) 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-attachment: fixed;
    font-size: 16px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5), 0 0 20px rgba(255, 0, 0, 0.3), 0 0 30px rgba(255, 0, 0, 0.1);
    z-index: 1000;
}

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

.brand-link {
    text-decoration: none;
    transition: opacity 0.2s ease;
    display: inline-block;
    color: #ff0000;
}

.brand-link:hover {
    opacity: 0.8;
}

.brand-logo {
    height: 60px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #ff6666;
    font-weight: 400;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #ff0000;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #ff0000;
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Main content */
.main {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* Hero section */
.hero {
    padding: 6rem 2rem 4rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content {
    position: relative;
    display: inline-block;
}

.hero-sigil {
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    opacity: 0.15;
    z-index: 1;
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.3));
    border: 2px solid rgba(255, 0, 0, 0.4);
    border-radius: 50%;
    padding: 10px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #ff6666;
    font-weight: 400;
}

/* Sections */
.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 3rem;
    color: #ff0000;
}

/* Grid layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Cards */
.card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid #333333;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    text-decoration: none;
    display: block;
    color: inherit;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
    border-color: #555555;
    background: rgba(30, 30, 30, 0.9);
    text-decoration: none;
    color: inherit;
}

.card-image {
    width: 100%;
    height: 250px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #333333;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.card-img video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.placeholder-image {
    color: #666;
    font-size: 1rem;
    font-weight: 400;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #ff0000;
}

.card-description {
    color: #ff6666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(255, 0, 0, 0.1);
    color: #ff6666;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 400;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

/* About section */
.about-content {
    max-width: 600px;
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #ff6666;
    margin-bottom: 2rem;
}

.skills h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #ff0000;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background: rgba(255, 0, 0, 0.1);
    color: #ff6666;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 400;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

/* Contact section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.25rem;
    color: #ff6666;
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-link {
    color: #ff6666;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
    position: relative;
}

.contact-link:hover {
    color: #ff0000;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #ff0000;
    transition: width 0.2s ease;
}

.contact-link:hover::after {
    width: 100%;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    text-align: center;
    color: #ff6666;
    border-top: 1px solid #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5), 0 0 20px rgba(255, 0, 0, 0.3), 0 0 30px rgba(255, 0, 0, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .nav {
        padding: 0 1rem;
        flex-direction: column;
        height: auto;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
        gap: 1.5rem;
    }

    .main {
        margin-top: 120px;
    }

    .hero {
        padding: 3rem 1rem 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .section {
        padding: 2rem 1rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .card-content {
        padding: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.nav-link:focus,
.contact-link:focus,
.brand-link:focus {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

/* Loading animation for cards */
.card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

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