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

:root {
    --bg: #050505;
    --surface: #0f0f10;
    --text: #e5e5e5;
    --muted: #9a9a9a;
    --accent: #f04a17;
    --accent-dark: #b20710;
}

html {
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(circle at top, rgba(229, 9, 20, 0.12), transparent 30%),
        linear-gradient(180deg, #070707 0%, #090909 100%);
    color: var(--text);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 10%, rgba(224, 74, 23, 0.2), transparent 18%),
        radial-gradient(circle at 80% 40%, rgba(255, 143, 54, 0.14), transparent 18%);
    pointer-events: none;
    z-index: -1;
}

.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 8%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(3, 3, 3, 0.65);
    backdrop-filter: blur(18px);
    z-index: 1000;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

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

.nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav-links a {
    font-size: 15px;
    color: var(--text);
    transition: color 0.25s ease;
}

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

.btn,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn {
    padding: 14px 30px;
    background: var(--accent);
    color: white;
}

.btn:hover {
    background: var(--accent-dark);
    box-shadow: 0 0 30px rgba(224, 74, 23, 0.3);
}

.btn-outline {
    padding: 14px 30px;
    border: 2px solid var(--accent);
    color: var(--text);
}

.btn-outline:hover {
    background: rgba(224, 74, 23, 0.1);
    border-color: rgba(224, 74, 23, 0.9);
}

.btn-read-more {
    margin-top: 30px;
}

main {
    padding-top: 100px;
}

.hero {
    width: 100%;
    min-height: calc(100vh - 100px);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 70px;
    padding: 110px 7% 80px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    right: 7%;
    top: 25%;
    width: 4px;
    height: 50%;
    background: linear-gradient(180deg, rgba(224, 74, 23, 0.95), rgba(224, 74, 23, 0.15));
    border-radius: 999px;
    display: none !important;
}

.hero-left {
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero-right {
    max-width: 520px;
}

.hero-right p,
.hero-right h2,
.hero-right h1,
.hero-right .eyebrow {
    width: 100%;
}

.hero-right .eyebrow {
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
    font-weight: 700;
}

.hero-right h1 {
    font-size: clamp(3rem, 4vw, 4.5rem);
    line-height: 1;
    margin: 0;
}

.hero-right h1 span {
    color: var(--accent);
}

.hero-right h2 {
    margin-top: 16px;
    font-size: clamp(1.5rem, 2vw, 2.2rem);
    color: #d7d7d7;
}

.hero-right p {
    margin-top: 26px;
    line-height: 1.85;
    font-size: 1rem;
    color: #b5b5b5;
    max-width: 520px;
}

.image-circle {
    width: 380px;
    height: 380px;
    min-width: 260px;
    min-height: 260px;
    border-radius: 50%;
    overflow: visible;
    background: radial-gradient(circle at top, rgba(224, 74, 23, 0.45), transparent 35%),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 40%),
        linear-gradient(180deg, #240909 0%, #050505 100%);
    box-shadow: 0 0 120px rgba(224, 74, 23, 0.28);
    display: grid;
    place-items: center;
    animation: float 6s ease-in-out infinite;
    padding: 16px;
    position: relative;
}

.image-circle::before {
    content: '';
    position: absolute;
    top: 22%;
    right: -10px;
    width: 6px;
    height: 48%;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(240, 74, 23, 1), rgba(224, 74, 23, 0.35));
}

/* Remove the image accent line on desktop as requested */
.image-circle::before {
    display: none !important;
}

.image-circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(255, 255, 255, 0.08);
}

.image-circle .profile-inner {
    position: relative;
    width: 100%;
    height: 100%;
}


@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-18px);
    }
}

.section-head {
    max-width: 720px;
    margin-bottom: 40px;
}

.section-head span {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-head h2 {
    font-size: clamp(2rem, 2.5vw, 3rem);
    line-height: 1.05;
    color: white;
}

.about,
.services,
.projects,
.contact {
    padding: 100px 8%;
}

.about-grid,
.service-grid,
.project-grid {
    display: grid;
    gap: 24px;
}

.about-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.about-card,
.service-card,
.project-card,
.contact-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 28px;
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.about-card h3,
.service-card h3,
.project-card h3 {
    margin-bottom: 18px;
    font-size: 1.25rem;
    color: white;
}

.about-card p,
.service-card p,
.project-card p {
    line-height: 1.8;
    color: #c1c1c1;
    font-size: 0.98rem;
}

.service-grid {
    grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.project-grid {
    grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.contact-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 36px;
}

.contact-card h2 {
    font-size: clamp(2rem, 2.2vw, 2.6rem);
    margin-bottom: 18px;
}

.contact-card p {
    color: #c7c7c7;
    line-height: 1.8;
    max-width: 600px;
}

.contact-card .btn {
    white-space: nowrap;
}

.project-btn {
    margin-top: 24px;
    width: fit-content;
    padding: 12px 26px;
    border: none;
    border-radius: 999px;
    background: rgba(224, 74, 23, 0.95);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(224, 74, 23, 0.22);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1100;
    padding: 28px;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    width: min(680px, 100%);
    background: #0b0b0b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 32px 34px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
    position: relative;
}

.modal-card h3 {
    margin-bottom: 18px;
    color: white;
}

.modal-card p {
    color: #c7c7c7;
    line-height: 1.8;
    margin-bottom: 18px;
}

.modal-card ul {
    list-style: disc;
    margin-left: 20px;
    color: #d1d1d1;
    line-height: 1.85;
}

.modal-card ul li {
    margin-bottom: 12px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 22px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: rgba(224, 74, 23, 0.9);
}

.sticky {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

@media (max-width: 1080px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 140px;
    }

    .hero-left,
    .hero-right {
        width: 100%;
    }

    .hero-right {
        justify-content: center;
    }

    .about-grid,
    .service-grid,
    .project-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 820px) {
    .navbar {
        padding: 16px 5%;
    }

    .logo {
        font-size: 24px;
    }

    .nav-links {
        display: none;
    }

    .btn {
        padding: 12px 24px;
    }

    .hero {
        padding: 95px 6% 55px;
    }

    .hero::after {
        display: none;
    }

    /* Hide the profile accent line on tablets/phones */
    .image-circle::before {
        display: none !important;
    }

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

    .about-grid,
    .service-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 80px 5% 30px;
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-left {
        margin: 0 auto;
        width: min(240px, 88vw);
        order: 1;
    }

    .hero-right {
        max-width: 100%;
        padding-top: 0;
        order: 2;
        text-align: center;
    }
    .image-circle::before {
        display: none;
    }

    .hero-right h1 {
        font-size: 1.9rem;
    }

    .hero-right h2 {
        font-size: 1.3rem;
    }

    .hero-right p {
        font-size: 0.9rem;
    }

    .hero-right .eyebrow {
        font-size: 0.72rem;
        letter-spacing: 0.7px;
    }

    .hero-right {
        text-align: left;
    }

    .image-circle {
        width: min(240px, 88vw);
        height: min(240px, 88vw);
        padding: 12px;
    }

    .image-circle::before {
        top: 22%;
        right: 10px;
        width: 4px;
        height: 40%;
    }

    .btn,
    .btn-outline {
        width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 16px;
    }
}
