:root {
    --bg-color: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-color: #8b5cf6;
    --accent-light: #c084fc;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --nav-height: 80px;
    --container-width: 1100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo .text {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

/* Nav */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
}

.glass-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-img {
    height: 36px;
    width: auto;
    border-radius: 8px; /* Slight rounding to match the icon style */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-light);
}

.github-link {
    background: var(--card-bg);
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    border: 1px solid var(--glass-border);
    color: var(--text-primary) !important;
}

/* Hero */
.hero {
    padding-top: calc(var(--nav-height) + 4rem);
    padding-bottom: 8rem;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.accent {
    background: linear-gradient(135deg, var(--accent-color), #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-4px) scale(1.02);
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
    background-color: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

/* Mockup */
.hero-visual {
    position: relative;
}

.mockup-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 4px solid var(--glass-border);
    background: var(--bg-color); /* Prevents empty background during loading */
}

.mockup-img {
    width: 100%;
    display: block;
    border-radius: 16px;
}

.mockup-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.glass-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), transparent);
    pointer-events: none;
}

/* Background Blobs */
.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-color);
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #0ea5e9;
    bottom: 10%;
    left: -100px;
}

/* Sections */
.section {
    padding: 10rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 3rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 92, 246, 0.4);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-light);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Media Section */
.media-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.media-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.media-list {
    list-style: none;
    margin-top: 2rem;
}

.media-list li {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.media-list li i {
    color: var(--accent-light);
    margin-top: 0.25rem;
    font-size: 1.25rem;
}

.media-visual {
    perspective: 1000px;
}

.card-stack {
    position: relative;
    height: 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sample-card {
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.5s ease;
}

.sample-card i {
    font-size: 1.5rem;
}

.sample-card.yt { border-left: 4px solid #f00; transform: rotateX(10deg) rotateY(-10deg) translateZ(50px); }
.sample-card.dz { border-left: 4px solid #00c7f2; transform: rotateX(10deg) rotateY(-10deg) translateZ(25px); }
.sample-card.link { border-left: 4px solid var(--accent-color); transform: rotateX(10deg) rotateY(-10deg); }

.card-stack:hover .sample-card {
    transform: rotateX(0) rotateY(0) translateZ(0);
}

/* Showcase Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.gallery-item {
    padding: 1rem;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover {
    transform: scale(1.02);
    border-color: var(--accent-color);
}

.gallery-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.gallery-caption {
    padding: 1.5rem 1rem 0.5rem;
    font-weight: 600;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-primary);
}

@media (max-width: 500px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark Section / CTA */
.section-dark {
    background: rgba(2, 6, 23, 0.4);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.glass-cta {
    padding: 5rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
}

.glass-cta h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.glass-cta p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.subtext {
    font-size: 0.9rem;
    margin-top: 1.5rem;
    opacity: 0.6;
}

/* Terminal Card */
.terminal-container {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    font-family: 'monospace';
}

.terminal-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-left: 1rem;
}

.terminal-body {
    padding: 2rem;
    font-size: 1rem;
    line-height: 1.5;
    background: rgba(0,0,0,0.2);
}

.cyan { color: #2dd4bf; }
.green { color: #4ade80; }

.install-footer {
    text-align: center;
    margin-top: 3rem;
}

.github-full-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.github-full-link:hover {
    opacity: 1;
}

/* Footer */
.main-footer {
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1rem;
    color: var(--text-secondary);
}

.footer-links h4 {
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 { font-size: 3rem; }
    
    .cta-group {
        justify-content: center;
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
