:root {
    --bg: #050505;
    --card: #0c0c0c;
    --accent: #0070f3;
    --text: #ffffff;
    --text-muted: #888888;
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.background-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    background: radial-gradient(circle, rgba(0, 112, 243, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.logo {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--accent);
}

.nav {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--accent);
}

.cta-btn {
    background: #fff;
    color: #000 !important;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 700 !important;
}

/* Hero */
.hero {
    padding-top: 15rem;
    padding-bottom: 10rem;
    text-align: center;
}

.tagline {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 2rem;
    display: block;
}

h1 {
    font-family: var(--font-head);
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.9;
    letter-spacing: -0.025em;
    margin-bottom: 2.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 4rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
}

.stat {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.stat span {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.2rem;
}

/* Projects */
.projects {
    padding: 10rem 0;
}

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

.section-header h2 {
    font-family: var(--font-head);
    font-size: 3rem;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.project-card {
    text-decoration: none;
    color: #fff;
    background: var(--card);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.card-img {
    height: 400px;
    overflow: hidden;
    position: relative;
}

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

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

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.project-card:hover .overlay {
    opacity: 1;
}

.card-content {
    padding: 2.5rem;
}

.card-content h3 {
    font-family: var(--font-head);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.tags {
    display: flex;
    gap: 1rem;
}

.tags span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    color: var(--accent);
}

/* Footer */
.footer {
    padding: 6rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-wrap p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .project-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 10rem;
    }

    .header {
        padding: 1.5rem 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Mobile Heading Normalization & Layout Safety */
@media (max-width: 768px) {

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
    }

    .text-4xl {
        font-size: 1.75rem !important;
        line-height: 1.15 !important;
        letter-spacing: -0.01em !important;
    }

    .text-5xl {
        font-size: 2rem !important;
        line-height: 1.1 !important;
        letter-spacing: -0.015em !important;
    }

    .text-6xl,
    .text-7xl,
    .text-8xl {
        font-size: 2.25rem !important;
        line-height: 1.05 !important;
        letter-spacing: -0.02em !important;
    }
}

/* Global Overflow Security */
html,
body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Explicit layout reliability rules */
.px-6 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

@media (min-width: 768px) {
    .md\:px-10 {
        padding-left: 2.5rem !important;
        padding-right: 2.5rem !important;
    }
}