:root {
    --bg-color: #0f172a; /* Dark Slate */
    --card-bg: #1e293b; /* Lighter Slate */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #8b5cf6; /* Violet */
    --accent-hover: #7c3aed;
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: sticky;
    top: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.accent { color: var(--accent); }

.nav-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.icon-btn {
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.icon-btn:hover { color: var(--accent); }

.cta-btn {
    background-color: var(--accent);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.cta-btn:hover { background-color: var(--accent-hover); }

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Filter Tabs */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 0 1rem 2rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--bg-color);
    font-weight: 600;
}

/* Gallery Grid */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5% 4rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Project Card */
.project-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.tag {
    display: inline-block;
    font-size: 0.75rem;
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .navbar { flex-direction: column; gap: 1rem; }
}

/* Tech Stack Section */
.tech-stack {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.stack-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
}

.logos {
    display: flex;
    gap: 2.5rem; /* Space between logos */
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.logos img {
    height: 35px; /* Keeps them small and clean */
    width: auto;
    object-fit: contain;
    
    /* THE AESTHETIC MAGIC: */
    filter: grayscale(100%) brightness(0.7); /* Black & white and slightly dim */
    opacity: 1;
    filter: none;
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* 1. n8n (First logo) - Make it POP */
.logos img:first-child {
    transform: scale(1.3);
    z-index: 10;
}

/* 2. Make (Second logo) - Tame it down */
.logos img:nth-child(2) {
    height: 24px; /* Adjusted height specifically for Make */
}

/* 3. Zapier (Third logo) - Tame it down */
.logos img:nth-child(3) {
    height: 30px; /* Adjusted height specifically for Make */
}

/* Hover Effect - Just a subtle lift */
.logos img:hover {
    transform: translateY(-5px); /* Moves up slightly */
}

/* Replace existing .details-btn code with this */
.details-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Space between icon and text */
    
    margin-top: 1.2rem;
    padding: 0.7rem 1.2rem;
    width: 100%;
    
    /* The Aesthetic Part */
    background-color: rgba(37, 99, 235, 0.08); /* Very light blue tint */
    color: var(--accent); /* Royal Blue text */
    border: none; /* No ugly border */
    border-radius: 8px;
    
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.details-btn:hover {
    background-color: var(--accent); /* Solid Blue on hover */
    color: white; /* White text on hover */
    transform: translateY(-2px); /* Slight lift */
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2); /* Blue glow shadow */
}

.details-btn:hover {
    background-color: var(--accent); /* Solid Blue on hover */
    color: white; /* White text on hover */
    transform: translateY(-2px); /* Slight lift */
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2); /* Blue glow shadow */
}

/* MODAL STYLES (The Popup) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.85); /* Dark dim background */
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from {transform: translateY(20px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 10px;
    z-index: 10;
    cursor: pointer;
}

.close-modal:hover { color: var(--accent); }

.modal-video-box {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: black;
}

.modal-video-box iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

.modal-details {
    padding: 2rem;
    color: var(--text-primary);
}

.modal-details h2 { margin-top: 0.5rem; margin-bottom: 1rem; }
.modal-details p { color: var(--text-secondary); line-height: 1.7; }

/* Attachments Section */
.attachments-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.attachments-section h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.attachment-item {
    background: rgba(255,255,255,0.03);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Audio Player styling */
audio {
    width: 100%;
    height: 35px;
}

.download-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.download-link:hover { text-decoration: underline; }