:root {
    --primary-color: #1a1a1a;
    --secondary-color: #666;
    --accent-color: #a0a0a0;
    --bg-color: #ffffff;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: var(--bg-color);
    color: var(--primary-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Header */
.header {
    width: 100%;
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #ddd;
    font-style: italic;
    color: #888;
    position: relative;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header span {
    position: relative;
    z-index: 1;
    cursor: default;
    transition: color 0.3s ease;
}

.header:hover span {
    color: var(--primary-color);
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--primary-color);
    animation: headerLine 2s ease-out forwards;
}

@keyframes headerLine {
    to {
        width: 100px;
    }
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    padding: 4rem 2rem;
    position: relative;
    z-index: 10;
    pointer-events: none;
}

.main-content > * {
    pointer-events: auto;
}

/* About Section */
.about-section {
    position: relative;
    z-index: 10;
    padding: 6rem 2rem 2rem 2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
}

.text-section {
    flex: 1;
    max-width: 500px;
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInLeft 0.8s ease-out 0.3s forwards;
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.title {
    font-size: 2.5rem;
    font-weight: normal;
    line-height: 1.4;
    letter-spacing: -0.02em;
    cursor: default;
}

.title::first-line {
    font-style: italic;
}

/* Typewriter effect for subtitle */
.subtitle {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
    letter-spacing: 0.1em;
    text-transform: lowercase;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.cursor {
    display: inline-block;
    color: var(--primary-color);
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Inline DateTime under subtitle */
.datetime-inline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--accent-color);
    letter-spacing: 0.08em;
}

.datetime-separator {
    color: #ddd;
}

.time {
    font-size: 0.75rem;
    color: var(--secondary-color);
}

.date {
    font-size: 0.75rem;
    color: var(--secondary-color);
}

.gif-section {
    flex: 0 0 auto;
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInRight 0.8s ease-out 0.5s forwards;
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* GIF Container - Perfect Square with Centered Image */
.gif-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* background: #f8f8f8; */
    /* border: 2px solid var(--primary-color); */
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}


.gif-image {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    transition: transform 0.5s var(--transition-smooth);
}

.gif-wrapper:hover .gif-image {
    transform: scale(1.05);
}

/* Corner decorations */
.gif-wrapper::before,
.gif-wrapper::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    transition: border-color 0.4s ease;
    z-index: 2;
}

.gif-wrapper::before {
    top: -2px;
    left: -2px;
    border-top-color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.gif-wrapper::after {
    bottom: -2px;
    right: -2px;
    border-bottom-color: var(--primary-color);
    border-right-color: var(--primary-color);
}


/* Footer */
.footer {
    padding: 2rem;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.7s forwards;
    position: relative;
    z-index: 10;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
    }
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    background: #fafafa;
    transition: all 0.3s var(--transition-smooth);
}

.social-link:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.social-icon {
    width: 24px;
    height: 24px;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.social-link:hover .social-icon {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.author {
    font-size: 0.75rem;
    color: #999;
    letter-spacing: 0.05em;
    position: relative;
    display: inline-block;
}

.author::before {
    content: '✦ ';
    color: var(--accent-color);
}

.author::after {
    content: ' ✦';
    color: var(--accent-color);
}

/* Floating particles background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 50%;
    opacity: 0;
    animation: float 15s infinite;
}

@keyframes float {
    0% {
        opacity: 0;
        transform: translateY(100vh) rotate(0deg);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) rotate(720deg);
    }
}

/* Loading animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-text {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    text-transform: lowercase;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
        gap: 2rem;
    }

    .text-section {
        text-align: center;
    }

    .title {
        font-size: 2rem;
    }

    .gif-wrapper {
        width: 280px;
        height: 280px;
    }

    .subtitle {
        animation: none;
        border: none;
        white-space: normal;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 4rem 1.5rem;
    }

    .about-title {
        font-size: 1.6rem;
    }

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

    .about-stats {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }

    .stat-divider {
        width: 50px;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

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

    .about-card {
        padding: 2rem 1.5rem;
    }

    .about-card-icon {
        font-size: 2rem;
    }

    .about-card-title {
        font-size: 1.1rem;
    }

    .about-card-text {
        font-size: 0.85rem;
    }
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.about-title {
    font-size: 2rem;
    font-weight: normal;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--primary-color);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.about-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(26, 26, 26, 0.1);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform: scaleX(0);
    transition: transform 0.4s var(--transition-smooth);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(26, 26, 26, 0.2);
}

.about-card:hover::before {
    transform: scaleX(1);
}

.about-card-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
    color: var(--accent-color);
    transition: transform 0.4s var(--transition-smooth), color 0.3s ease;
}

.about-card:hover .about-card-icon {
    transform: scale(1.2) rotate(10deg);
    color: var(--primary-color);
}

.about-card-title {
    font-size: 1.3rem;
    font-weight: normal;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: lowercase;
}

.about-card-text {
    font-size: 0.9rem;
    color: var(--secondary-color);
    line-height: 1.7;
}

/* Stats Section */
.about-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 3rem;
    background: rgba(26, 26, 26, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(26, 26, 26, 0.08);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: normal;
    color: var(--primary-color);
    font-family: 'Courier New', Courier, monospace;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--secondary-color);
    letter-spacing: 0.1em;
    text-transform: lowercase;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, transparent, var(--accent-color), transparent);
}

/* Selection color */
::selection {
    background: var(--primary-color);
    color: var(--bg-color);
}
