/* ================== ROOT VARIABLES ================== */
:root {
    --primary: #00ff88;
    --primary-dark: #00cc66;
    --bg: #0a0a0a;
    --card: rgba(20, 20, 20, 0.92);
}

/* ================== GLOBAL RESET ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: #e0e0e0;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Background */
.background {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(10, 10, 10, 0.88), rgba(10, 10, 10, 0.92)), url('modern.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

/* ================== NAVBAR ================== */
.navbar {
    position: relative;
    padding: 1.1rem 5%;
    display: flex;
    align-items: center;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 255, 136, 0.15);
    z-index: 1000;
}

.home-button {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    padding: 10px 24px;
    font-size: 1.05rem;
    text-decoration: none;
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.35);
    transition: all 0.4s ease;
    font-weight: 600;
}

.home-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.5);
    background: linear-gradient(45deg, var(--primary-dark), var(--primary));
}

/* ================== PROJECTS PAGE ================== */
.projects-page {
    padding: 100px 5% 80px;
}

.projects-container {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.9rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.projects-subtitle {
    font-size: 1.2rem;
    color: #aaa;
    max-width: 620px;
    margin: 0 auto 4rem;
}

/* Project Cards */
.project-card {
    background: var(--card);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.8rem;
    text-align: left;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 255, 136, 0.25);
    border-color: var(--primary);
}

.project-icon {
    width: 72px;
    height: 72px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.3rem;
    color: var(--primary);
    flex-shrink: 0;
}

.project-content h3 {
    color: white;
    margin-bottom: 0.8rem;
    font-size: 1.45rem;
}

.project-content p {
    color: #bbb;
    margin-bottom: 1.4rem;
    line-height: 1.65;
}

.project-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border: 1px solid rgba(0, 255, 136, 0.4);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.project-card a:hover {
    background: var(--primary);
    color: #111;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

/* Footer */
footer {
    background: #0a0a0a;
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 136, 0.15);
}

/* ================== RESPONSIVE ================== */
@media (max-width: 992px) {
    .projects-page { padding: 80px 5% 60px; }
    .section-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .navbar { padding: 1rem 5%; }
    
    .project-card {
        flex-direction: column;
        text-align: center;
        padding: 1.8rem;
    }
    
    .project-icon {
        margin: 0 auto 1rem;
    }
}

@media (max-width: 480px) {
    .section-title { font-size: 2.2rem; }
    .project-card { padding: 1.5rem; margin-bottom: 1.5rem; }
    .project-icon { width: 60px; height: 60px; font-size: 1.8rem; }
}