/* CJ Portfolio — Main Stylesheet
   Colors are set via CSS variables in functions.php (Customizer)
   so swapping colors from WP Appearance > Customize > CJ Portfolio Colors
   updates everything automatically.
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--navy-deep);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ── NAV ── */
#site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 60px;
    background: rgba(10,24,37,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,175,215,0.12);
    transition: padding 0.3s ease;
}

.nav-logo img { height: 44px; width: auto; display: block; }

.nav-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(160,173,184,1);
    text-decoration: none;
    transition: color 0.25s ease;
}

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

/* ── HERO ── */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 60px 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg-accent {
    position: absolute;
    top: -200px; right: -200px;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(130,11,138,0.18) 0%, transparent 70%);
    pointer-events: none;
}

.hero-bg-accent-2 {
    position: absolute;
    bottom: -100px; left: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,175,215,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 36px; height: 1px;
    background: var(--teal);
}

.hero-name {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(52px, 7vw, 96px);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero-name span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 300;
    color: rgba(160,173,184,1);
    letter-spacing: 0.04em;
    margin-bottom: 36px;
}

.hero-title strong { color: var(--white); font-weight: 500; }

.hero-desc {
    font-size: 16px;
    color: rgba(160,173,184,1);
    max-width: 540px;
    line-height: 1.75;
    margin-bottom: 52px;
}

.hero-ctas { display: flex; gap: 20px; flex-wrap: wrap; }

.btn-primary {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 16px 36px;
    background: var(--gradient);
    color: var(--white);
    border: none;
    text-decoration: none;
    cursor: pointer;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
    transition: opacity 0.25s ease, transform 0.25s ease;
    display: inline-block;
}

.btn-primary:hover { opacity: 0.85; transform: translateY(-2px); color: var(--white); }

.btn-outline {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 15px 36px;
    background: transparent;
    color: var(--teal);
    border: 1px solid var(--teal);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
    display: inline-block;
}

.btn-outline:hover { background: rgba(0,175,215,0.1); }

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 72px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.stat-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 12px;
    color: rgba(107,127,143,1);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ── SECTION SHARED ── */
section { padding: 100px 60px; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0,175,215,0.25);
    max-width: 60px;
}

.section-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

/* ── CAPABILITIES ── */
#capabilities {
    background: var(--navy);
    padding: 80px 60px;
    border-top: 1px solid rgba(0,175,215,0.1);
    border-bottom: 1px solid rgba(0,175,215,0.1);
}

.cap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.cap-item { position: relative; padding-left: 20px; }

.cap-item::before {
    content: '';
    position: absolute;
    left: 0; top: 6px;
    width: 3px; height: calc(100% - 6px);
    background: var(--gradient);
}

.cap-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.cap-desc { font-size: 13px; color: rgba(107,127,143,1); line-height: 1.6; }

/* ── WORK ── */
#work { background: var(--navy-deep); }

.work-intro {
    font-size: 16px;
    color: rgba(160,173,184,1);
    max-width: 560px;
    line-height: 1.8;
    margin-bottom: 70px;
}

.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }

.project-card {
    position: relative;
    background: var(--navy);
    overflow: hidden;
    cursor: pointer;
}

.project-card.featured { grid-column: 1 / -1; }

.project-img-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--navy-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.project-card.featured .project-img-wrap { aspect-ratio: 21/9; }

.project-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

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

.project-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.18);
    text-transform: uppercase;
    background: linear-gradient(135deg, #1a3350 0%, #0f2035 100%);
    border: 1px dashed rgba(0,175,215,0.15);
    padding: 20px;
    text-align: center;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,24,37,0.97) 0%, rgba(10,24,37,0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 36px;
    transition: background 0.4s ease;
}

.project-card:hover .project-overlay {
    background: linear-gradient(to top, rgba(10,24,37,0.99) 0%, rgba(10,24,37,0.7) 60%, rgba(10,24,37,0.2) 100%);
}

.project-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

.project-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid rgba(0,175,215,0.4);
    color: var(--teal);
}

.project-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    color: var(--white);
}

.project-card.featured .project-title { font-size: 30px; }

.project-brief {
    font-size: 13px;
    color: rgba(160,173,184,1);
    line-height: 1.65;
    max-width: 500px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.project-card:hover .project-brief { opacity: 1; transform: translateY(0); }

.project-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease 0.05s, transform 0.35s ease 0.05s;
}

.project-link::after { content: '→'; transition: transform 0.2s ease; }
.project-link:hover::after { transform: translateX(4px); }
.project-card:hover .project-link { opacity: 1; transform: translateY(0); }

/* ── SELECT WORKS ── */
#select-works { background: var(--navy); }

.works-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    margin-top: 60px;
    background: rgba(255,255,255,0.04);
}

.work-item {
    background: var(--navy);
    padding: 32px 36px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.25s ease;
}

.work-item:hover { background: var(--navy-mid); }

.work-year {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--teal);
    margin-bottom: 10px;
}

.work-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
    line-height: 1.3;
}

.work-desc { font-size: 13px; color: rgba(107,127,143,1); line-height: 1.5; }

/* ── CLIENTS ── */
#clients {
    background: var(--navy);
    padding: 60px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.clients-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(107,127,143,1);
    margin-bottom: 40px;
}

.clients-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 56px;
    flex-wrap: wrap;
}

.client-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.22);
    transition: color 0.25s ease;
}

.client-name:hover { color: rgba(255,255,255,0.55); }

/* ── ABOUT ── */
#about { background: var(--navy-deep); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-top: 60px;
}

.about-bio p {
    font-size: 16px;
    color: rgba(160,173,184,1);
    line-height: 1.85;
    margin-bottom: 22px;
}

.about-bio p strong { color: var(--white); font-weight: 500; }
.about-bio p em { font-style: normal; color: var(--teal); }

.award-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border: 1px solid rgba(130,11,138,0.35);
    background: rgba(130,11,138,0.08);
    margin-top: 10px;
    margin-bottom: 32px;
}

.award-icon { font-size: 24px; }
.award-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2px;
}

.award-sub { font-size: 11px; color: rgba(107,127,143,1); letter-spacing: 0.05em; }

.skills-category { margin-bottom: 36px; }

.skills-cat-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 16px;
}

.skills-pills { display: flex; flex-wrap: wrap; gap: 8px; }

.skill-pill {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 7px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(160,173,184,1);
    letter-spacing: 0.04em;
    transition: border-color 0.2s, color 0.2s;
}

.skill-pill:hover { border-color: var(--teal); color: var(--teal); }

/* ── CONTACT ── */
#contact { background: var(--navy-deep); padding: 100px 60px 120px; }

.contact-inner { max-width: 680px; margin: 0 auto; text-align: center; }

.contact-inner .section-label { justify-content: center; }
.contact-inner .section-label::after { display: none; }
.contact-inner .section-label::before {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0,175,215,0.25);
    max-width: 60px;
}

.contact-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 24px;
}

.contact-heading span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-sub {
    font-size: 16px;
    color: rgba(160,173,184,1);
    line-height: 1.75;
    margin-bottom: 52px;
}

.contact-options { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

.contact-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: 1px solid rgba(0,175,215,0.3);
    transition: border-color 0.25s, background 0.25s;
}

.contact-link:hover { border-color: var(--teal); background: rgba(0,175,215,0.07); color: var(--teal); }

/* ── FOOTER ── */
#site-footer {
    background: var(--navy);
    padding: 32px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-logo img { height: 32px; opacity: 0.5; }
.footer-copy { font-size: 12px; color: rgba(107,127,143,1); letter-spacing: 0.04em; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    #site-nav { padding: 18px 28px; }
    .nav-links { gap: 24px; }
    section, #hero, #contact { padding: 80px 28px; }
    #capabilities, #clients { padding: 60px 28px; }
    .hero-stats { gap: 28px; }
    .projects-grid { grid-template-columns: 1fr; }
    .project-card.featured { grid-column: auto; }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    #site-footer { flex-direction: column; gap: 16px; text-align: center; }
    .project-brief, .project-link { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
    .nav-links { display: none; }
    .hero-stats { flex-wrap: wrap; gap: 24px; }
    .hero-ctas { flex-direction: column; }
    .btn-primary, .btn-outline { text-align: center; }
}

/* ── MOBILE NAV TOGGLE ── */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px; height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--teal);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 600px) {
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(10,24,37,0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 36px;
        z-index: 99;
        backdrop-filter: blur(12px);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        font-size: 20px;
        letter-spacing: 0.12em;
    }
}

/* ── ELEMENTOR CANVAS BODY CLASS ── */
body.cj-elementor-page #site-nav,
body.cj-elementor-page #site-footer {
    /* Nav and footer render inside page-home.php for Elementor pages */
}

/* Ensure Elementor sections use brand colors */
body .elementor-section {
    background-color: var(--navy-deep);
}
