:root {
    --bg-body:#121419;
    --bg-foreground:#16191e;
    --text-base:#e2e8f0;
    --text-light:#f8fafc;
    --text-paragpraph:#cbd5e1;
    --border-color:hsl(220 30% 18%);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-base);
}

.header {
    background-color: var(--bg-foreground);
    color: var(--text-light);
    text-align: center;
    padding: 5rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #60a5fa, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
    color: var(--text-paragpraph);
}

.projects {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-foreground);
    border-radius: 7px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.3);
}

.project-image {
    width: 100%;
    /* height: 272px; */
    background-color: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.project-info p {
    color: var(--text-paragpraph);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-link {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(45deg, #006aec, #1e8cff);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.project-link:hover {
    opacity: 0.9;
}

small {
    font-size: 11px;
    color: orange;
    position: relative;
    bottom: 5px;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-foreground);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

@media (max-width: 768px) {
    .header {
        padding: 3rem 1rem;
    }

    .header h1 {
        font-size: 2rem;
    }

    .projects {
        grid-template-columns: 1fr;
    }
}