:root {
    --bg-color: #000000;
    --text-primary: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
    --accent: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Page Transitions */
.page-transition {
    animation: fadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 40px 60px;
    display: flex;
    justify-content: flex-end;
    z-index: 100;
    opacity: 0;
    transform: translateY(-40px);
    animation: navReveal 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: 0.5s;
    pointer-events: none;
    /* Let it not block clicks until animated in */
}

.navbar.active {
    pointer-events: auto;
}

@keyframes navReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border: 1px solid var(--border-color);
    border-radius: 40px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: auto;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.2);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-primary);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}

.nav-link:hover {
    color: var(--bg-color);
    border-color: var(--text-primary);
}

.nav-link:hover::before {
    transform: translateY(0);
}

/* Background TRY Area */
.hero-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at center, #0a0a0a 0%, #000000 100%);
}

.try-svg {
    width: 90%;
    max-width: 1600px;
    height: auto;
    opacity: 0.8;
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.1));
}

.try-svg path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: drawStroke 4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.try-svg path:nth-child(1) {
    animation-delay: 0.2s;
}

.try-svg path:nth-child(2) {
    animation-delay: 0.4s;
}

.try-svg path:nth-child(3) {
    animation-delay: 0.6s;
}

.try-svg path:nth-child(4) {
    animation-delay: 0.8s;
}

.try-svg path:nth-child(5) {
    animation-delay: 1.0s;
}

.try-svg path:nth-child(6) {
    animation-delay: 1.2s;
}

@keyframes drawStroke {
    to {
        stroke-dashoffset: 0;
    }
}

/* About Overlay / Page Elements */
.about-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 40px;
    position: relative;
    z-index: 10;
}

.about-content {
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.intro-text {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 60px;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    margin-bottom: 80px;
}

.contact-card {
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.contact-card:nth-child(1) {
    animation-delay: 0.4s;
}

.contact-card:nth-child(2) {
    animation-delay: 0.5s;
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(30, 30, 30, 0.8);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.contact-icon {
    width: 48px;
    height: 48px;
    color: var(--text-primary);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.contact-card:hover .contact-icon {
    opacity: 1;
}

.contact-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.contact-value {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
}

.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.7s;
}

.qr-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.qr-wrapper {
    position: relative;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.qr-wrapper:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.qr-img {
    width: 220px;
    height: 220px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Animations Core */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back button in About page */
.back-nav {
    position: fixed;
    top: 40px;
    left: 60px;
    z-index: 100;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideRightFade 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: 0.3s;
}

@keyframes slideRightFade {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: var(--text-primary);
}

.back-btn svg {
    transition: transform 0.3s ease;
}

.back-btn:hover svg {
    transform: translateX(-5px);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 30px;
        justify-content: center;
    }

    .back-nav {
        top: 30px;
        left: 30px;
    }

    .intro-text {
        font-size: 2.5rem;
    }

    .contact-card {
        padding: 30px 20px;
    }

    .try-svg {
        width: 150%;
        height: auto;
        transform: translateY(-5%);
    }
}