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

/* Root Variables */

:root {
    --html-orange: #E34F26;
    --css-blue: #1572B6;
    --dark-bg: #05080f;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: white;
    overflow-x: hidden;
}

/* ===== Custom Scrollbar ===== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0b0f17;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--html-orange), var(--css-blue));
    border-radius: 10px;
}


/* Background Mesh */

.mesh-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 70% 20%, rgba(21, 114, 182, 0.12), transparent 40%),
        radial-gradient(circle at 30% 80%, rgba(227, 79, 38, 0.12), transparent 40%);
}

/* Projects Container */

.container {
    padding: 160px 8% 80px;
    min-height: 100vh;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #8892b0;
    font-size: 1.1rem;
}

/* The Grid */

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
}

/* Enhanced Project Card */

.project-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover {
    transform: translateY(-12px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.card-image {
    height: 220px;
    overflow: hidden;
    background: #0a1118;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s ease;
}

.project-card:hover .card-image img {
    transform: scale(1.1);
}

/* Card Content Area */

.card-content {
    padding: 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
}

.button-group {
    display: flex;
    gap: 0.8rem;
}

.icon-btn {
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    border: 1px solid var(--glass-border);
    transition: 0.3s;
}

.icon-btn:hover {
    color: white;
    background: var(--css-blue);
    border-color: var(--css-blue);
    transform: translateY(-3px);
}

/* Footer & Back to Top */

.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 100;
}

.back-to-top i {
    color: black;
    font-size: 1.1rem;
}

/* responsiveness */

@media (max-width: 1000px) {

    .section-header h2 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .section-header p {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {

    .section-header {
        margin-bottom: 3rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .card-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}