@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200;300;400;500;600;700&display=swap');

:root {
    --bg-dark: #000000;
    --primary: #a881fb;
    --primary-glow: rgba(168, 129, 251, 0.4);
    --secondary: #22d3ee;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-gradient: linear-gradient(135deg, #a881fb 0%, #22d3ee 100%);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

body {
    background-color: transparent;
    /* Allow fixed background to show through */
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Cinematic Overlays */
.cinematic-lens {
    position: fixed;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 15vh rgba(139, 92, 246, 0.12);
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 999;
}

.hero-background {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('../assets/images/starfield.jpg') center/cover no-repeat;
    background-color: #050510;
    /* Fallback color */
    filter: brightness(0.7) saturate(0.8) contrast(1.5);
    /* Increased brightness */
    z-index: -1;
    animation: celestial-orbit 60s linear infinite;
    will-change: transform;
}

@keyframes celestial-orbit {
    0% {
        transform: rotate(0deg) scale(1.0);
    }

    50% {
        transform: rotate(3deg) scale(1.2);
    }

    100% {
        transform: rotate(0deg) scale(1.0);
    }
}

.hero-gradient {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, var(--bg-dark) 100%);
    opacity: 0.7;
    /* Reduced opacity needed */
    z-index: -1;
}

/* Navbar - Floating Capsule */
nav {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2.5rem;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(30px) saturate(180%);
    border: none;
    border-radius: 99px;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    /* For dropdown positioning */
}

.dropdown-container {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: rgba(20, 20, 30, 0.9);
    min-width: 160px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    z-index: 1001;
    border-radius: 1rem;
    overflow: hidden;
    margin-top: 10px;
}

.dropdown-menu.show {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.dropdown-menu a {
    color: var(--text-main);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

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

/* Removed old btn-nav-download styles as requested */

.nav-icon-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
    text-decoration: none;
    /* Remove underline for link-based buttons */
}

.nav-icon-btn i {
    font-size: 1.4rem;
}

.nav-icon-btn:hover {
    color: var(--text-main);
}

/* GitHub Icon specific styling if needed */
.nav-icon-btn i.fa-github {
    font-size: 1.5rem;
}

/* Layout - Storytelling Flow */
section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10vh 10%;
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

section.reveal {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Hero Section */
.hero {
    text-align: center;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 200;
    line-height: 1.05;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    background: linear-gradient(to bottom, #fff 40%, rgba(255, 255, 255, 0.4) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 4rem;
    letter-spacing: 0.02em;
}

/* Showcase Sections */
.showcase-card {
    width: 100%;
    max-width: 1100px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 2.5rem;
    padding: 6rem;
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 4rem;
}

.showcase-content {
    flex: 1;
}

.showcase-media {
    flex: 1.2;
    height: 400px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 1.5rem;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.showcase-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-card:hover .showcase-media img {
    transform: scale(1.05);
}

.showcase-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent, rgba(0, 0, 0, 0.4));
}

.showcase-card h2 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.showcase-card p {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Quote/Hook Section */
.hook {
    text-align: center;
}

.hook h2 {
    font-size: 3.5rem;
    font-weight: 200;
    max-width: 900px;
    line-height: 1.2;
    color: #fff;
}

/* Buttons */
.cta-group {
    display: flex;
    gap: 2rem;
}

.btn {
    padding: 1.25rem 3rem;
    border-radius: 99px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 45px -12px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

/* Footer */
footer {
    padding: 8rem 10%;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .showcase-card {
        flex-direction: column;
        padding: 4rem 2rem;
        text-align: center;
    }

    h1 {
        font-size: 4rem;
    }

    .hook h2 {
        font-size: 2.5rem;
    }
}

/* Link Tree Specific Styles */
.links-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.links-wrapper {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.links-logo {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.1em;
}

.links-tagline {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.link-card {
    display: block;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.link-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.link-card:hover::before {
    transform: translateX(100%);
}