:root {
    --bg: #0c0f1a;
    --grid: rgba(255, 255, 255, 0.05);
    --accent: #4da8ff;
    --text: #e6e6e6;
    --muted: #a0a0a0;
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* ---------------- HEADER ---------------- */
/* ---------------- VIDEO BANNER ---------------- */
header {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.banner-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.4);
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(77, 168, 255, 0.15), transparent 70%);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    color: var(--text);
    max-width: 800px;
    padding: 0 20px;
}

/* Keep your tag + button styles the same */
.banner-content h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: 0.5rem;
}

.banner-content h2 {
    color: var(--muted);
    margin-bottom: 1rem;
}

.banner-content p {
    color: var(--text);
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* optional fade-in animation */
.banner-content {
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
}

h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    z-index: 1;
}

h2 {
    color: var(--muted);
    margin-bottom: 1rem;
    z-index: 1;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
    z-index: 1;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--accent);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.hero-buttons {
    z-index: 1;
    margin-top: 1.5rem;
}

.hero-buttons button {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 18px;
    font-size: 1rem;
    cursor: pointer;
    margin: 0 5px;
    transition: background 0.3s;
}

.hero-buttons button:hover {
    background: #1e7ed7;
}

/* ---------------- FEATURED PROJECTS ---------------- */
section {
    padding: 80px 10%;
}

.featured {
    text-align: center;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-buttons button {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--text);
    border-radius: 5px;
    padding: 8px 15px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.filter-buttons button.active,
.filter-buttons button:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* unified clickable card styling */
.card {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.card.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.98);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(77, 168, 255, 0.25);
}

.tags-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
}

.tags-mini span {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

/* ---------------- ABOUT ---------------- */
.about {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.about > div {
    display: flex;
    flex-direction: row;
}

.about h2 {
    text-align: center;
    width: 100%;
}

.about img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
}

/* ---------------- CONTACT ---------------- */
.contact-section {
    text-align: center;
    padding: 80px 10%;
}

.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.contact-section p {
    color: #aaa;
    margin-bottom: 2rem;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    align-items: flex-start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 2 4 300px;
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.1);
}

input,
textarea {
    width: 100%;
    padding: 16px 14px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    font-size: 1rem;
    resize: vertical;
    transition: border 0.2s ease, background 0.2s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #1e7ed7;
    background: rgba(255, 255, 255, 0.1);
}

textarea {
    min-height: 140px;
}

.contact-info {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-self: stretch;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

.info-card .icon {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    display: block;
}

.info-card h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: var(--text);
}

.info-card p {
    color: #bbb;
    font-size: 0.9rem;
}

/* ---------------- SCROLL BUTTONS ---------------- */
.scroll-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 18px;
    font-size: 1rem;
    cursor: pointer;
    margin: 0 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.scroll-btn:hover {
    background: #1e7ed7;
}

/* ---------------- FOOTER ---------------- */
footer {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
}

footer p {
    color: var(--muted);
    font-size: 0.9rem;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 768px) {
    .about {
        flex-direction: column;
    }
    .about > div {
        flex-direction: column;
    }

    header h1 {
        font-size: 2.2rem;
    }

    section {
        padding: 60px 5%;
    }

    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-form,
    .contact-info {
        width: 100%;
    }

    .info-card {
        padding: 1.2rem;
    }
}
