:root {
    --bg-color: #0f172a;
    --text-main: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #38bdf8;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Full height for layout */
html,
body {
    height: 100%;
}

/* Global layout */
body {
    font-family: "Inter", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Wrapper for page content */
.page-content {
    flex: 1;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    background-color: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(8px);

    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

    padding: 20px 32px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 600;
    font-size: 1.1rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Typography */
p {
    margin-bottom: 16px;
    line-height: 1.6;
}

/* =========================
   Project description (dynamic content)
   ========================= */

#project-description {
    max-width: 900px;
    margin: 0 auto;
}

#project-description h3 {
    margin-top: 32px;
    margin-bottom: 12px;
    font-weight: 600;
}

#project-description ul {
    margin-left: 20px;
    padding-left: 20px;
    margin-bottom: 24px;
    list-style-type: disc;
}

#project-description li {
    margin-bottom: 8px;
    line-height: 1.6;
}

#project-description li::marker {
    color: var(--accent);
}

/* =========================
   Tech stack & Contact (BASE FIX)
   ========================= */
.tech-stack,
.contact-strip {
    position: relative;
    z-index: 1;
}

/* Contact section */
.contact-strip {
    margin-top: auto;
    padding: 40px 20px 60px;
    text-align: center;
}

/* Divider line */
.divider {
    width: 240px;
    height: 2px;
    background-color: var(--accent);
    margin: 0 auto 32px;
    border-radius: 2px;
}

/* Social icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.social-icons img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icons img:hover {
    transform: translateY(-3px);
    opacity: 0.85;
}

/* =========================
   Tablet fixes (iPad)
   ========================= */
@media (max-width: 1024px) {

    .tech-stack {
        padding-bottom: 32px;
    }

    .contact-strip {
        padding-top: 20px;
    }

    .divider {
        margin-bottom: 24px;
    }
}

/* =========================
   Responsive (Mobile)
   ========================= */
@media (max-width: 768px) {

    /* Navbar */
    .nav-container {
        flex-direction: column;
        gap: 12px;
    }

    .nav-links {
        gap: 16px;
    }

    /* Headings */
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    /* Paragraphs */
    p {
        font-size: 1rem;
    }

    /* Buttons */
    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Contact */
    .divider {
        width: 180px;
    }

    .social-icons {
        gap: 24px;
    }
}
