:root {
    --bg-main: #131314;      /* Gemini Dark Background */
    --bg-card: #1e1f20;      /* Slightly lighter card background */
    --accent: #a8c7fa;       /* Gemini Blue accent */
    --text-primary: #e3e3e3;
    --text-secondary: #9aa0a6;
}
body {
    color: var(--text-primary);
    margin: 0;
    font-family: 'Inter', sans-serif; /* A clean, modern font */
    background-color: var(--bg-main);
    overflow-x: hidden;
}

/* HERO SECTION */
.hero-section {
   background-color: var(--bg-main);
    background-image: 
        linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px); /* Darker grid */
    background-size: 30px 30px; /* Blueprint grid look */
    min-height: 40vh; /* Make it take up most of the screen */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1px 10%;
    position: relative;
    overflow: hidden;
    align-items: flex-start;
}

.hero-section h1 {
    font-size: 10rem; /* Big bold font */
    margin: 0;
    font-style: italic;
    font-weight: 900;
    line-height: 0.8;
    color: #fff;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    /* High-end designer touch: Mix-blend-mode makes text interact with backgrounds */
    mix-blend-mode: normal;
}

.hero-section h1:hover {
    transform: translateX(-20px) skewX(-2deg);
    -webkit-text-stroke: 3px #fff;
    color: transparent;
}

.hero-section p {
    font-family: monospace;
    font-size: 0.8rem;
    text-transform: lowercase;
    background: #000;
    color: #fff;
    padding: 8px 15px;
    width: fit-content;
    margin-top: 50px; /* Space between title and description */
    margin-left: 0; /* REMOVE margin-left: auto to keep it under the title */
    transform: rotate(-1deg); /* Slight tilt for that creative edge */
    font-weight: bold;
}
/* HERO SECTION */

/* SITE CONTENT */ 
.content{
    padding: 10px 10%;
    min-height: auto; /* Removes the 100vh issue */
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background-color: black;
    background-color: var(--bg-main);
     background-image: 
        linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px); /* Darker grid */
    background-size: 30px 30px; /* Blueprint grid look */
    min-height: 40vh; /* Make it take up most of the screen */
    margin: 0;
    display: block;
}

.category-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: left;
    color: #fff;
    letter-spacing: -1px;
    font-style: italic;
    display: inline-block;
    cursor: default;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    user-select: none;
}

.category-title:hover{
    color: transparent;
    -webkit-text-stroke: 1.5px #ffffff;
    letter-spacing: 2px;
    transform: translateX(15px) skewX(-5deg);
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background-color: #ffffff;
    transition: width 0.4s ease;
}

.category-title:hover::after {
    width: 100%;
}

/* 3. The Modern Card UI */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px; 
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05); /* Subtle border */
    border-radius: 24px; /* More rounded like Gemini/S24 UI */
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;

    display: flex;
    flex-direction: column;
    align-items: center;    /* This centers the logo, title, and buttons horizontally */
    justify-content: center; /* This centers them vertically if the card has extra height */
    text-align: center;
}

.tool-card:hover {
    background: #28292a;
    border-color: rgba(168, 199, 250, 0.3); /* Accent glow on hover */
    transform: translateY(-5px);
}

.tool-card h3 {
    font-family: monospace;
    font-size: 1.1rem;
    color: white;
}

.tool-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    margin-bottom: 16px;
    object-fit: contain;
}

.tool-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
}
/* --- SITE CONTENT --- */ 

/* --- FOOTER --- */
.footer-section{
    background-color: var(--bg-main);
    background-image: 
        linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px); /* Darker grid */
    background-size: 30px 30px; /* Blueprint grid look */
    min-height: 40vh; /* Make it take up most of the screen */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1px 10%;
    position: relative;
    overflow: hidden;
    align-items: flex-start;
}

.footer-section h2{
    font-size: 3rem; /* Big bold font */
    margin: 0;
    font-weight: 900;
    line-height: 0.8;
    color: #fff;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    /* High-end designer touch: Mix-blend-mode makes text interact with backgrounds */
    mix-blend-mode: normal;
    margin-bottom: 20px;
}


.footer-seciton p{
    font-family: monospace;
    font-size: 0.8rem;
    text-transform: lowercase;
    background: #000;
    color: #fff;
    padding: 8px 15px;
    width: fit-content;
    margin-top: 50px; /* Space between title and description */
    margin-left: 0; /* REMOVE margin-left: auto to keep it under the title */
    transform: rotate(-1deg); /* Slight tilt for that creative edge */
    font-weight: bold
}


.social-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.link-group {
    display: flex;
    align-items: center;
    gap: 25px;
}

.footer-icon {
    width: 24px;
    height: 24px;/* Since your footer is black, this makes black SVGs white */
    transition: transform 0.3s ease, opacity 0.3s;
    opacity: 0.7;
    background: transparent;
}

.footer-icon img{
    background-color: black;
}

.footer-icon:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.footer-bottom {
        padding-top: 20px;
        text-align: left; /* Keep copyright left-aligned */
    }

    .footer-bottom p {
        font-size: 0.75rem;
        color: rgba(255,255,255,0.5); /* Dim white so it's readable but professional */
    }

.footer-socials{
    margin-bottom: 30px;
}

.social-link{
    width: 35px;
    height: 35px;
    background-color: transparent;
    filter: invert(100%);
    margin-top: 10px;
}

.social-link img{
    width: 35px;
    height: 35px;
}
/* --- FOOTER SECTION --- */ 

/* SITE REDIRECTING BUTTONS UNIVERSAL */

.social-links {
    display: flex;
    flex-wrap: wrap; /* Allows buttons to wrap if there are many (like F-Droid) */
    justify-content: center;
    gap: 20px;
}

.btn-pill {
    display: flex;
    align-items: center;
    gap: 6px; /* Space between icon and text */
    text-decoration: none;
    font-size: rem;
    font-weight: 700;
    border-radius: 50px;
    background: transparent;
    color: #475569;
    transition: all 0.2s ease;
    width: 30px; /* Tiny and professional */
    height: 30px;
}

.btn-icon {
    width: 25px; /* Tiny and professional */
    height: 25px;
    filter: invert(100%);
}

/* --- BUY ME A COFFEE CTA --- */

.coffee-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 1px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05); /* Subtle dark glass */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: #CBD5E1;
    font-family: monospace;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.coffee-link:hover {
    background: #FFDD00; /* Official BMC Yellow */
    color: #000;
    border-color: #FFDD00;
    transform: translateY(-3px) rotate(-1deg);
    box-shadow: 0 10px 20px rgba(255, 221, 0, 0.2);
}

.coffee-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Subtle animation for the SVG on hover */
.coffee-link:hover .coffee-icon {
    animation: steam 1s ease infinite;
}

@keyframes steam {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
/* --- BUY ME A COFFEE -- */


/* ANIMATION */

/* Page Load Animation */
@keyframes heroReveal {
    from { opacity: 0; transform: translateY(50px); filter: blur(10px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-section h1 {
    animation: heroReveal 1s ease-out forwards;
}

.hero-section p {
    animation: heroReveal 1s ease-out 0.3s forwards; /* Delayed entrance */
    opacity: 0; /* Start hidden for animation */
}

/* --- ANIMATION --- */ 

/* --- ULTIMATE RESPONSIVE PATCH --- */
@media (max-width: 768px) {
    
    /* 1. HERO FIX: Scale down massive font to fit S24 width */
    .hero-section {
        min-height: 40vh;
        padding: 60px 5% 20px 5%;
        text-align: left; /* Keep it professional left-aligned */
    }

    .hero-section h1 {
        font-size: 5rem; /* Large but fits screen */
        letter-spacing: -3px;
        line-height: 0.9;
    }

    .hero-section p {
        font-size: 0.8rem;
        margin-top: 30px;
        transform: rotate(0deg); /* Straight for mobile */
    }

    /* 2. GRID & PILLS: Stop the buttons from stacking */
    .grid-container {
        display: flex; /* Switch from grid to flex for horizontal layout */
        flex-wrap: nowrap; /* Prevent items from wrapping to next line */
        overflow-x: auto; /* Enable horizontal scroll */
        scroll-snap-type: x mandatory; /* Makes cards 'snap' into place like an app */
        gap: 15px;
        padding: 10px 1px 20px 5px; /* Extra bottom padding for shadow visibility */
        /* Hide scrollbar for Chrome, Safari and Opera */
        -webkit-overflow-scrolling: touch; /* Smooth momentum scroll on iOS */
    }

    /* Hide scrollbar for a cleaner 'App Store' look */
    .grid-container::-webkit-scrollbar {
        display: none;
    }

    .tool-card {
        flex: 0 0 180px; /* Force each card to be exactly 180px wide */
        scroll-snap-align: start; /* Snap point */
        
    }

    /* Adjust logo and text for the compact scroll look */
    .tool-logo {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    .tool-card h3 {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis; /* Prevents long names from breaking card */
    }

    /* Ensure pills stay in one line inside the scrolled cards */
    .social-links {
        flex-direction: row !important;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 5px;
    }

    .btn-pill {
        padding: 5px 8px;
        font-size: 0.65rem;
        white-space: nowrap;
    }
}

    @media (max-width: 768px) {
    .footer-wrap {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
}


@media (max-width: 600px) {
    .category-title { font-size: 2rem; }
}