/* Global Styles */
:root {
    /* Light Theme (default) */
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #7c3aed;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background: #ffffff;
    --card-bg: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --code-bg: #f3f4f6;
    --code-text: #1f2937;
}

/* Dark Theme */
[data-theme="dark"] {
    --primary-color: #6366f1;
    --primary-hover: #818cf8;
    --secondary-color: #8b5cf6;
    --text-color: #f3f4f6;
    --light-text: #9ca3af;
    --background: #111827;
    --card-bg: #1f2937;
    --border-color: #374151;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --code-bg: #1f2937;
    --code-text: #f3f4f6;
}

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

body {
    background-color: var(--background);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
}

/* Dynamic Island Navigation */
.dynamic-island {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(0, 20, 50, 0.2);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.island-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-pill i {
    font-size: 1rem;
}

.nav-pill:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-pill.active {
    background: rgba(255, 255, 255, 0.25);
    font-weight: 600;
}

.nav-pill.contact-button {
    background: #3b82f6;
    color: white;
}

.nav-pill.contact-button:hover {
    background: #2563eb;
}

@media (max-width: 768px) {
    .dynamic-island {
        width: 95%;
        overflow-x: auto;
        padding: 6px;
    }
    
    .island-nav {
        width: max-content;
        padding: 0 10px;
    }
    
    .nav-pill span {
        display: none;
    }
    
    .nav-pill {
        padding: 10px 15px;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
}

/* Animation keyframes can be used for other elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #4f46e5;
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

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

/* Contact Button */
.contact-button {
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 6px;
    margin-left: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    font-weight: 600 !important;
}

.contact-button::after {
    display: none;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
}

.contact-button:active {
    transform: translateY(0);
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-button span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Adjust main content to account for fixed header */
main {
    margin-top: 80px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Content Sections */
.content, .portfolio, .vault, .quackers {
    padding: 5rem 0;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

p {
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-item h3 {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.portfolio-item p {
    padding: 0 1.5rem 1.5rem;
}

/* Vault Section */
.vault-section {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.donate-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.donate-button:hover {
    background-color: var(--secondary-color);
}

/* Quackers Section */
.api-endpoint {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 6px;
    margin: 1.5rem 0;
    font-family: 'Courier New', Courier, monospace;
}

.api-endpoint code {
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--light-bg);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: #1a1a1a;
        padding: 0.75rem 2rem;
    }

    .mobile-menu-button {
        display: block;
    }

    .hero h1 {
        font-size: 2.25rem;
    }
}
