@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #000000;
    -webkit-font-smoothing: antialiased;
}


/* 1. Main Card Container */
.project-card {
    background-color: #ffffff;
    border-radius: 12px;         /* Smooth, modern rounded corners */
    overflow: hidden;            /* Clips image/video to the rounded corners */
    border: 1px solid #f3f4f6;   /* Swaps harsh black lines for a near-invisible light gray divider */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); /* Soft elevation shadow */
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Elegant lift and shadow expansion on hover */
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
}

/* 2. Media / Thumbnail Wrapper */
.card-image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;        /* Keeps thumbnails perfectly uniform across the grid */
    background-color: #f9fafb;
    border-bottom: 1px solid #f3f4f6; /* Subtle separation line between media and text */
    overflow: hidden;
}

/* Ensures video/images scale beautifully to fill the frame without distortion */
.card-image-placeholder img,
.card-image-placeholder video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 3. Text & Content Area */
.card-content {
    padding: 1.5rem;             /* More breathable padding for titles */
    background-color: #ffffff;
}

.card-title {
    font-size: 1.125rem;         /* 18px */
    font-weight: 600;            /* Semi-bold for clean readability */
    color: #111827;              /* Deep off-black gray */
    line-height: 1.4;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 50;
    display: none; 
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background-color: white;
    max-width: 32rem; 
    width: 100%;
    padding: 2rem;
    position: relative;
    border: 2px solid black;
    box-shadow: 8px 8px 0px 0px rgba(0, 0, 0, 1);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.875rem;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #ef4444;
}

/* Modal Button Container */
.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Base Action Button */
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    border: 2px solid black;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.875rem;
}

/* Button Variants */
.github-btn {
    background-color: white;
    color: black;
}
.github-btn:hover {
    background-color: black;
    color: white;
}

.docs-btn {
    background-color: #4f46e5;
    border-color: #4f46e5;
    color: white;
}
.docs-btn:hover {
    background-color: #4338ca;
    border-color: #4338ca;
}

.demo-btn {
    background-color: #0d9488; /* Deep Teal */
    color: white;
    border: 2px solid #000000; /* Matching brutalist black border */
    box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 1); /* Optional mini block-shadow */
}
.demo-btn:hover {
    background-color: #0f766e;
    box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 1);
    transform: translate(-2px, -2px);
}

.hire-me-btn {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 700;
    font-size: 0.75rem;
    border-bottom: 1px solid black;
    background: none;
    padding-bottom: 2px;
    cursor: pointer;
}