* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    font-size: clamp(8.5px, 0.6944vw, 10px);
}
:root {
    --bmw-light-blue: #81C4FF;
    --bmw-deep-blue: #16588E;
    --bmw-red: #E7222E;
    --pure-black: #000000;
    --off-black: #0a0a0a;
    --dark-card: #111111;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #7a7a7a;
    --transition: all 0.3s ease;
}

body {
    background-color: var(--pure-black);
    color: var(--text-primary);
    font-family: "JetBrains Mono", monospace;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
    font-size: 1.8rem;
}

.container {
    max-width: 128rem; /* 1280px */
    margin: 0 auto;
    padding: 0 3.2rem; /* 32px */
}

/* ----- TYPOGRAPHY ----- */
h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 1.6rem; /* 16px */
}

h2 {
    font-size: 3rem;
    margin-bottom: 1.6rem; /* 16px */
    position: relative;
    display: inline-block;
}

.section-title {
    margin-bottom: 4.8rem; /* 48px */
    font-weight: 500;
    letter-spacing: 0.05rem; /* 0.5px */
    border-bottom: 0.2rem solid var(--bmw-red); /* 2px */
    padding-bottom: 1.2rem; /* 12px */
}

/* ----- NAVIGATION ----- */
header {
    padding: 2.4rem 0; /* 24px */
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 0.1rem solid var(--border-subtle); /* 1px */
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.05rem; /* -0.5px */
    color: var(--text-primary);
}
.main-logo{
    width: clamp(200px, 20.8333vw, 300px);
    height: auto;
}

.logo span {
    color: var(--bmw-light-blue);
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 3.6rem; /* 36px */
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.6rem; /* 16px */
    transition: var(--transition);
    position: relative;
    padding-bottom: 0.6rem; /* 6px */
}

.nav-links a:hover {
    color: var(--bmw-light-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0.2rem; /* 2px */
    background: var(--bmw-red);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ----- HERO ----- */
.hero {
    padding: 12rem 0 10rem; /* 120px 100px */
    text-align: left;
    border-bottom: 0.1rem solid rgba(22, 88, 142, 0.3); /* 1px */
}

.hero-content {
    max-width: 85rem; /* 850px */
}

.hero h1 {
    background: linear-gradient(to right, #ffffff 0%, #81C4FF 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 2rem;
    font-weight: 500;
    color: var(--bmw-light-blue);
    margin-bottom: 2.4rem; /* 24px */
    letter-spacing: -0.03rem; /* -0.3px */
}

.description {
    font-size: 1.6rem;
    color: var(--text-secondary);
    max-width: 65rem; /* 650px */
    margin-bottom: 4.8rem; /* 48px */
    line-height: 1.7;
}

.btn-group {
    display: flex;
    gap: 2rem; /* 20px */
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem; /* 8px */
    padding: 1.4rem 3.6rem; /* 14px 36px */
    border-radius: 0.4rem; /* 4px */
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.6rem; /* 16px */
    letter-spacing: 0.03rem; /* 0.3px */
}

.btn-primary {
    background: var(--bmw-red);
    color: white;
    border: 0.2rem solid var(--bmw-red); /* 2px */
}

.btn-primary:hover {
    background: transparent;
    color: var(--bmw-red);
    border-color: var(--bmw-red);
}

.btn-outline {
    background: transparent;
    color: var(--bmw-light-blue);
    border: 0.2rem solid var(--bmw-light-blue); /* 2px */
}

.btn-outline:hover {
    background: var(--bmw-light-blue);
    color: #000;
}

/* ----- SERVICES (detailed cards) ----- */
.services {
    padding: 10rem 0; /* 100px */
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr)); /* 300px */
    gap: 3rem; /* 30px */
    margin-top: 2rem; /* 20px */
}

.service-card {
    background: var(--dark-card);
    border: 0.1rem solid var(--border-subtle); /* 1px */
    border-radius: 0.8rem; /* 8px */
    padding: 3.6rem 2.8rem; /* 36px 28px */
    transition: var(--transition);
    position: relative;
}

.service-card:hover {
    border-color: var(--bmw-deep-blue);
    transform: translateY(-0.6rem); /* -6px */
    box-shadow: 0 2rem 3rem -1.5rem rgba(22, 88, 142, 0.3); /* 0 20px 30px -15px */
}

.service-icon {
    font-size:4rem;
    color: var(--bmw-light-blue);
    margin-bottom: 2.4rem; /* 24px */
}

.service-card h3 {
    font-size: 2.2rem;
    margin-bottom: 1.8rem; /* 18px */
    color: white;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem; /* 20px */
    line-height: 1.7;
}

.detail-list {
    list-style: none;
    margin-top: 1.2rem; /* 12px */
}

.detail-list li {
    display: flex;
    align-items: baseline;
    gap: 1rem; /* 10px */
    margin-bottom: 1.2rem; /* 12px */
    color: var(--text-muted);
    font-size: 1.5rem;
}

.detail-list i {
    color: var(--bmw-red);
    font-size: 0.9rem;
    width: 1.8rem; /* 18px */
    text-align: center;
}

/* ----- TECH STACK EXPANDED ----- */
.stack {
    padding: 10rem 0; /* 100px */
    background: var(--off-black);
    border-top: 0.1rem solid #1a1a1a; /* 1px */
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr)); /* 260px */
    gap: 3rem; /* 30px */
}

.tech-category {
    background: var(--dark-card);
    border-radius: 0.8rem; /* 8px */
    padding: 2.8rem 2.4rem; /* 28px 24px */
    border-left: 0.4rem solid var(--bmw-deep-blue); /* 4px */
}

.tech-category h3 {
    font-size: 2.2rem;
    margin-bottom: 1.8rem; /* 18px */
    color: var(--bmw-light-blue);
    display: flex;
    gap: 1rem; /* 10px */
    flex-direction: column;
}
.tech-category h3 i{
    font-size: 1.3em;
}
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem; /* 10px */
}

.tags span {
    background: #1e1e1e;
    padding: 0.8rem 1.6rem; /* 8px 16px */
    border-radius: 2rem; /* 20px */
    font-size: 1.2rem;
    font-weight: 500;
    color: #ddd;
    border: 0.1rem solid #2a2a2a; /* 1px */
    transition: var(--transition);
}

.tags span:hover {
    background: var(--bmw-deep-blue);
    border-color: var(--bmw-light-blue);
    color: white;
}

/* ----- FOOTER / CONTACT ----- */
.contact {
    padding: 10rem 0 7rem; /* 100px 70px */
    text-align: center;
    background: var(--pure-black);
    border-top: 0.1rem solid #1f1f1f; /* 1px */
}

.contact h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem; /* 20px */
}

.contact p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 4rem; /* 40px */
}

.email-display {
    font-size: 1.6rem;
    font-weight: 600;
    background: rgba(22, 88, 142, 0.2);
    padding: 1.2rem 3rem; /* 12px 30px */
    border-radius: 4rem; /* 40px */
    display: inline-block;
    margin-bottom: 3rem; /* 30px */
    color: var(--bmw-light-blue);
    border: 0.1rem solid var(--bmw-deep-blue); /* 1px */
    letter-spacing: 0.05rem; /* 0.5px */
    word-break: break-all;
}
.email-display a{
    color: var(--bmw-light-blue);
    text-decoration: none;
}
.email-display a:hover{
    color: #fff;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2.8rem; /* 28px */
    margin: 4rem 0; /* 40px */
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.8rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--bmw-red);
    transform: translateY(-0.4rem); /* -4px */
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5rem; /* 50px */
}

/* Responsive */
@media (max-width: 767px) {
    .container {
        padding: 0 2rem; /* 20px */
    }
    .nav-links {
        display: none;
    }
    .hero {
        padding: 8rem 0 6rem; /* 80px 60px */
    }
    .subtitle {
        font-size: 1.4rem;
    }
    .btn-group {
        flex-direction: column;
        align-items: flex-start;
    }
}