@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;500;700&display=swap');

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

body {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
    color: #333;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

.site-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
}

.gif-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: none;
}

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

.gif-slide.active {
    opacity: 1;
    display: block;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
    pointer-events: none;
}

.header-container {
    position: relative;
    margin-bottom: 50px;
    padding: 20px;
    margin-top: 30px;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.glowing-border {
    position: absolute;
    inset: -3px;
    border-radius: 18px;
    background: linear-gradient(
        45deg,
        #FF6B6B,
        #4ECDC4,
        #45B7D1,
        #FF6B6B
    );
    mask: linear-gradient(#fff 0 0) content-box,
          linear-gradient(#fff 0 0);
    mask-composite: xor;
    padding: 3px;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

header {
    position: relative;
    color: #fff;
    border-radius: 15px;
    overflow: hidden;
}

.header-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4.5em;
    font-weight: 700;
    margin: 0;
    color: #ff6b8b;
    text-shadow:
        0 0 20px rgba(255, 107, 139, 0.5),
        0 0 40px rgba(255, 107, 139, 0.3),
        0 0 60px rgba(255, 107, 139, 0.2);
    letter-spacing: -1px;
    opacity: 0.9;
}

header p {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    font-size: 1.4em;
    margin: 15px 0 0;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    position: relative;
    letter-spacing: 0.5px;
}

main {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin: 20px auto;
    max-width: 1200px;
}

.social-links {
    text-align: center;
    margin: 40px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

.social-links a:hover {
    background: rgba(255, 107, 139, 0.9);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(255, 107, 139, 0.3);
}

section {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

h2 {
    color: #ff6b8b;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 20px;
    font-size: 2em;
}

h3 {
    color: #4ECDC4;
    font-family: 'Space Grotesk', sans-serif;
    margin-top: 20px;
    margin-bottom: 15px;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card h4 {
    color: #FF6B6B;
    margin-bottom: 15px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3em;
}

.tag {
    display: inline-block;
    background: rgba(78, 205, 196, 0.2);
    color: #4ECDC4;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    margin: 5px 5px 0 0;
    backdrop-filter: blur(5px);
}

.substack-section {
    background: rgba(255, 103, 25, 0.1);
    border-left: 4px solid #ff6719;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
}

.substack-section h3 {
    color: #ff6719;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #ff6719;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-weight: 500;
}

.btn:hover {
    background: #e65a00;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 103, 25, 0.3);
}

.blog-post {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.blog-post:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 139, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-post h3 {
    color: #ff6b8b;
    margin-top: 0;
}

.post-date {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
    margin-bottom: 15px;
}

.blog-post a {
    color: #ff6b8b;
    text-decoration: none;
}

.blog-post a:hover {
    color: #ff5252;
}

.ai-notice {
    background: rgba(78, 205, 196, 0.1);
    border-left: 4px solid #4ECDC4;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-size: 0.95em;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(100px);
    border: 2px solid #FF6B6B;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #FF6B6B;
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    margin: 50px auto 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.5em;
    }

    header p {
        font-size: 1.1em;
    }

    .research-grid {
        grid-template-columns: 1fr;
    }
}
