/* ================= VARIABLES ================= */
:root {
    --bg: #0a0a0a;
    --panel: rgba(255,255,255,0.06);
    --border: rgba(255,255,255,0.14);
    --text: #f2f2f2;
    --muted: #b5b5b5;
    --accent: #960202;
}

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Figtree', sans-serif;
    background:
        radial-gradient(circle at 20% 10%, rgba(150,2,2,0.18), transparent 45%),
        radial-gradient(circle at 80% 30%, rgba(150,2,2,0.12), transparent 50%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ================= LAYOUT ================= */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
}

/* ================= ANIMATIONS ================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
}

/* ================= HEADER ================= */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(14px);
    background: rgba(10,10,10,0.7);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 82px;
}

.logo {
    font-weight: 900;
    font-size: 1.7rem;
    text-decoration: none;
    color: #fff;
    letter-spacing: -0.02em;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    margin-left: 2.5rem;
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ================= HERO ================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 6rem;
}

.hero h1 {
    font-size: clamp(3.2rem, 7vw, 6.5rem);
    font-weight: 900;
    margin-bottom: 1.6rem;
    letter-spacing: -0.03em;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    max-width: 820px;
    margin: auto;
    font-size: 1.45rem;
    color: var(--muted);
    margin-bottom: 3.2rem;
}

/* ================= BUTTON ================= */
.cta-button {
    display: inline-block;
    padding: 1.05rem 3rem;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    background: linear-gradient(135deg, #b30000, #700000);
    color: #fff;
    box-shadow: 0 12px 35px rgba(150,2,2,0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 55px rgba(150,2,2,0.65);
    background: linear-gradient(135deg, #cc0000, #800000);
}

.cta-button:active {
    transform: translateY(-2px);
}

/* ================= SECTION TITLES ================= */
.section-title {
    text-align: center;
    font-size: 2.7rem;
    margin-bottom: 4.5rem;
    letter-spacing: -0.02em;
}

/* ================= SERVICES ================= */
#services {
    padding-bottom: 9rem;
}

/* ================= WORK/PORTFOLIO ================= */
#work {
    padding-top: 9rem;
    padding-bottom: 9rem;
}

/* ================= FINAL CTA ================= */
#contact {
    padding-top: 6rem;
}

/* ================= PILLARS ================= */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.8rem;
}

.pillar-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
    cursor: pointer;
}

.pillar-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(150,2,2,0.3), transparent 65%);
    opacity: 0;
    transition: opacity 0.45s ease;
}

.pillar-card:hover {
    transform: translateY(-14px);
    border-color: rgba(150,2,2,0.7);
    box-shadow: 0 20px 40px rgba(150,2,2,0.2);
}

.pillar-card:hover::before {
    opacity: 1;
}

.pillar-icon {
    font-size: 2.7rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.pillar-card h3 {
    font-size: 1.55rem;
    margin-bottom: 0.9rem;
}

.pillar-card p {
    color: var(--muted);
}

/* ================= SHOWCASE ================= */
.showcase-title-container {
    margin-bottom: 4.5rem;
}

.showcase-subtitle {
    text-align: center;
    font-size: 1.45rem;
    color: var(--muted);
    margin-top: 1rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.showcase-item {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--panel);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: default;
}

.showcase-item:hover {
    border-color: rgba(150,2,2,0.7);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(150,2,2,0.2);
}

.showcase-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-item:hover .showcase-image img {
    transform: scale(1.08);
}

.showcase-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.showcase-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.showcase-name a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.showcase-name a:hover {
    color: var(--accent);
}

.showcase-name a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.showcase-name a:hover::after {
    width: 100%;
}

.showcase-text {
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
}

/* ================= FINAL CTA ================= */
.final-cta {
    text-align: center;
    border-top: 1px solid var(--border);
}

.final-cta h2 {
    font-size: 3.4rem;
    margin-bottom: 2.5rem;
    margin-top: 0;
}

.final-cta p {
    max-width: 720px;
    margin: 0 auto 3.5rem;
    color: var(--muted);
    font-size: 1.3rem;
    line-height: 1.8;
}

/* ================= FOOTER ================= */
.site-footer {
    padding: 3.5rem 0;
    text-align: center;
    color: #666;
    border-top: 1px solid var(--border);
}

/* ================= TABLET ================= */
@media (max-width: 1024px) and (min-width: 769px) {
    .showcase-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 82px;
        left: 0;
        width: 100%;
        background: rgba(10,10,10,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        margin: 1rem 0;
        margin-left: 0;
        font-size: 1.2rem;
        padding: 0.5rem 0;
        width: 100%;
    }

    section {
        padding: 6rem 0;
    }

    #services {
        padding-bottom: 7rem;
    }

    #work {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }

    #contact {
        padding-top: 5rem;
    }
    
    .final-cta h2 {
        margin-bottom: 2rem;
    }
    
    .final-cta p {
        font-size: 1.15rem;
        margin-bottom: 3rem;
    }

    .hero {
        padding-top: 4rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pillar-card {
        padding: 2rem;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .showcase-content {
        padding: 1.5rem;
    }

    .showcase-name {
        font-size: 1.3rem;
    }

    .showcase-text {
        font-size: 0.95rem;
    }

    .final-cta h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }

    .final-cta h2 {
        font-size: 1.8rem;
    }
}
