/* ============================================
   CSS Variables - Phunkie Color Scheme
   ============================================ */
:root {
    /* Primary Colors - Pinks & Purples */
    --phunkie-pink: #FF1493;
    --phunkie-purple: #9B59B6;
    --phunkie-dark-purple: #470562;
    --phunkie-magenta: #E91E63;
    --phunkie-lavender: #BB86FC;
    --phunkie-yellow: #e0a80d;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF1493 0%, #9B59B6 100%);
    --gradient-secondary: linear-gradient(135deg, #E91E63 0%, #BB86FC 100%);
    --gradient-dark: linear-gradient(135deg, #2D1B69 0%, #1A0B2E 100%);

    /* Neutrals */
    --dark-bg: #0F0A1E;
    --dark-section: #1A0F2E;
    --dark-card: #231642;
    --light-bg: #FFFFFF;
    --light-gray: #F5F5F7;
    --medium-gray: #E0E0E0;
    --text-dark: #1A1A1A;
    --text-light: #F0F0F0;
    --text-muted: #9E9E9E;

    /* Accents */
    --accent-blue: #00B8D4;
    --accent-green: #00E676;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(255, 20, 147, 0.3);
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

code,
pre {
    font-family: 'JetBrains Mono', monospace;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-dark {
    background: var(--gradient-dark);
    color: var(--text-light);
}

.section-gradient {
    background: var(--gradient-primary);
    color: var(--text-light);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 2.0rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo img {
    width: 40px;
    height: 40px;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--phunkie-pink);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.github-link {
    padding: 0.5rem 1rem;
    background: var(--dark-bg);
    color: white;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.github-link:hover {
    background: var(--phunkie-pink);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.github-link::after {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: var(--phunkie-pink);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    border-radius: var(--radius-sm);
    padding: var(--spacing-xs) 0;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: 400;
}

.dropdown-content a::after {
    display: none;
}

.dropdown-content a:hover {
    background-color: var(--light-gray);
    color: var(--phunkie-pink);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    color: var(--phunkie-pink);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: #7430EE;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--spacing-sm);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-text {
    max-width: 700px;
}

.hero-text h1 {
    color: var(--text-dark);
    font-size: 4.0rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
}

.gradient-text {
    background: var(--phunkie-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--phunkie-pink);
    margin-bottom: var(--spacing-sm);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-secondary {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--medium-gray);
}

.btn-secondary:hover {
    border-color: var(--phunkie-pink);
    color: var(--phunkie-pink);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.quick-install {
    background: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    border: 2px solid var(--medium-gray);
    display: inline-block;
}

.quick-install code {
    color: var(--phunkie-pink);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    color: #23124C;
}

.section-dark .section-header h2,
.section-gradient .section-header h2 {
    color: white;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.section-dark .section-subtitle,
.section-gradient .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   Feature Grid
   ============================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--phunkie-pink);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   Two Column Layout
   ============================================ */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.two-column.reverse {
    direction: rtl;
}

.two-column.reverse>* {
    direction: ltr;
}

.column h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: #23124C;
}

.section-dark .column h3 {
    color: white;
}

.column p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.section-dark .column p {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   Feature List
   ============================================ */
.feature-list {
    margin: var(--spacing-md) 0;
}

.feature-list li {
    padding: var(--spacing-sm) 0;
    padding-left: var(--spacing-md);
    position: relative;
    font-size: 1.05rem;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--phunkie-pink);
    font-weight: bold;
}

.highlight {
    color: var(--phunkie-pink);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.section-dark .highlight {
    color: var(--phunkie-lavender);
}

/* ============================================
   Code Demo
   ============================================ */
.code-demo {
    background: var(--dark-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-width: 650px;
}

.code-header {
    background: var(--dark-card);
    padding: 0.4rem 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-header .code-dots {
    position: absolute;
    left: 0.8rem;
}

.code-title {
    color: var(--text-light);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
}

.code-dots span:nth-child(1) {
    background: #FF5F56;
}

.code-dots span:nth-child(2) {
    background: #FFBD2E;
}

.code-dots span:nth-child(3) {
    background: #27C93F;
}

.code-demo pre {
    padding: var(--spacing-md);
    overflow-x: auto;
    font-size: 0.95rem;
    line-height: 1.8;
}

.code-demo code {
    color: var(--text-light);
}

/* Code Syntax Highlighting */
.comment {
    color: #6A9955;
}

.keyword {
    color: #C586C0;
}

.function {
    color: #DCDCAA;
}

.type {
    color: #4EC9B0;
}

.variable {
    color: #9CDCFE;
}

.string {
    color: #CE9178;
}

.number {
    color: #B5CEA8;
}

.prompt {
    color: var(--phunkie-lavender);
}

.output {
    color: var(--accent-green);
}

/* ============================================
   Install Box
   ============================================ */
.install-box {
    background: var(--light-gray);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-md);
    border-left: 4px solid var(--phunkie-pink);
}

.section-dark .install-box {
    background: var(--dark-card);
}

.install-box p {
    font-size: 0.95rem;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.install-box code {
    display: block;
    background: white;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    color: var(--phunkie-pink);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.section-dark .install-box code {
    background: var(--dark-bg);
}

.mt-2 {
    margin-top: var(--spacing-sm);
}

/* ============================================
   Documentation Grid
   ============================================ */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.doc-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--phunkie-pink);
}

.doc-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.doc-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--phunkie-purple);
}

.doc-card p {
    color: var(--text-muted);
}

/* ============================================
   Community Grid
   ============================================ */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.community-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.community-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.4);
}

.community-card svg {
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

.community-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.community-card p {
    opacity: 0.9;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-logo {
    width: 60px;
    height: 60px;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.footer-column h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--phunkie-lavender);
    font-weight: 600;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-column a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--phunkie-pink);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--phunkie-pink);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.3);
}

.footer-bottom p {
    margin: var(--spacing-xs) 0;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet and below */
@media (max-width: 968px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-md);
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-width: 300px;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .two-column {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .two-column.reverse {
        direction: ltr;
    }

    .code-demo {
        min-width: auto;
        max-width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --spacing-sm: 0.75rem;
        --spacing-md: 1.5rem;
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo img {
        width: 32px;
        height: 32px;
    }

    .nav-links {
        display: none;
    }

    /* Mobile menu toggle */
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text-dark);
        padding: 0.5rem;
    }

    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        z-index: 999;
        gap: var(--spacing-sm);
    }

    .nav-links.mobile-open a {
        padding: var(--spacing-sm);
        border-bottom: 1px solid var(--light-gray);
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }

    .hero-image img {
        max-width: 250px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-text h2 {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .quick-install {
        max-width: 100%;
        overflow-x: auto;
    }

    .quick-install code {
        font-size: 0.85rem;
    }

    /* Sections */
    .section {
        padding: var(--spacing-lg) 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Feature cards */
    .feature-grid,
    .docs-grid,
    .community-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .feature-card,
    .doc-card,
    .community-card {
        padding: var(--spacing-md);
    }

    /* Code demos */
    .code-demo pre {
        padding: var(--spacing-sm);
        font-size: 0.85rem;
        overflow-x: auto;
    }

    .code-header {
        padding: 0.5rem;
    }

    .code-title {
        font-size: 0.8rem;
    }

    /* Column layouts */
    .column h3 {
        font-size: 1.5rem;
    }

    .column p {
        font-size: 1rem;
    }

    /* Footer */
    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text h2 {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .code-demo pre {
        font-size: 0.75rem;
        line-height: 1.6;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .feature-card h3,
    .doc-card h3 {
        font-size: 1.25rem;
    }

    .install-box code {
        font-size: 0.8rem;
        word-break: break-all;
    }
}