/*
Theme Name: EREXTY IT Solutions
Description: Custom theme for EREXTY IT Solutions LLC, converted from the original static HTML site. Preserves the exact navy/gold branding, layout, and styling.
Author: EREXTY IT Solutions LLC
Version: 2.3.0
*/

:root {
    --navy:      #1B3A6B;
    --teal:      #0E7490;
    --gold:      #B8860B;
    --slate:     #3B5998;
    --green:     #1A5C38;
    --cream:     #F8F5EF;
    --charcoal:  #1C1C1C;
    --mid:       #4A4A4A;
    --light:     #E8EEF6;
    --white:     #FFFFFF;
    --border:    rgba(27,58,107,0.15);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Lora', Georgia, serif;
    background: var(--cream);
    color: var(--charcoal);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, .display { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.04em; }
code, .mono { font-family: 'JetBrains Mono', monospace; }

/* ── NAV ── */
nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(27,58,107,0.97);
    backdrop-filter: blur(12px);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 60px; height: 72px;
    border-bottom: 2px solid var(--gold);
}

.nav-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px; letter-spacing: 0.06em;
    color: var(--white);
    text-decoration: none;
}

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

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

.nav-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s;
}

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

/* ── HERO ── */
#home {
    min-height: 100vh;
    background: var(--navy);
    display: flex; flex-direction: column; justify-content: center;
    padding: 120px 60px 80px;
    position: relative;
    overflow: hidden;
}

#home::before {
    content: '';
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 70% 60% at 80% 50%, rgba(14,116,144,0.18) 0%, transparent 70%),
      radial-gradient(ellipse 40% 40% at 20% 80%, rgba(184,134,11,0.10) 0%, transparent 60%);
}

#home::after {
    content: 'EREXTY';
    position: absolute;
    top: 40%; right: 3%;
    transform: translateY(-50%);
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(220px, 26vw, 420px);
    letter-spacing: -0.02em;
    color: rgba(255,255,255,0.07);
    pointer-events: none;
    white-space: nowrap;
}

.hero-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
    display: flex; align-items: center; gap: 12px;
}

.hero-tag::before {
    content: '';
    display: inline-block; width: 40px; height: 2px;
    background: var(--gold);
}

.hero-h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(56px, 8vw, 120px);
    line-height: 0.95;
    color: var(--white);
    margin-bottom: 32px;
    max-width: 900px;
    position: relative;
}

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

.hero-sub {
    font-size: clamp(16px, 1.8vw, 20px);
    color: rgba(255,255,255,0.72);
    max-width: 600px;
    margin-bottom: 48px;
    line-height: 1.75;
}

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

.btn-primary {
    background: var(--gold);
    color: var(--charcoal);
    padding: 16px 40px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 500;
    border: none; cursor: pointer;
    transition: all 0.2s;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 12px 100%);
}

.btn-primary:hover { background: #d4a017; transform: translateY(-2px); }

.btn-outline {
    border: 2px solid rgba(255,255,255,0.4);
    color: var(--white);
    padding: 14px 38px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

.hero-stats {
    display: flex; gap: 60px; margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.12);
    position: relative;
    /* Balances the row now that it holds two stats rather than four, instead
       of leaving them bunched at the left with a large empty gap. All other
       hero-stat styling (gap, border, typography, spacing, and the
       flex-wrap rule in the max-width:900px media query) is unchanged. */
    justify-content: center;
    text-align: center;
}

.stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-top: 6px;
}

/* ── SECTIONS ── */
section { padding: 100px 60px; }

.section-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 16px;
    display: flex; align-items: center; gap: 12px;
}

.section-tag::before {
    content: ''; display: inline-block;
    width: 30px; height: 2px; background: var(--teal);
}

.section-h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(42px, 5vw, 72px);
    color: var(--navy);
    line-height: 1;
    margin-bottom: 24px;
}

.section-intro {
    font-size: 18px;
    color: var(--mid);
    max-width: 680px;
    line-height: 1.8;
}

/* ── SERVICES ── */
#services { background: var(--navy); }

#services .section-h2 { color: var(--white); }
#services .section-intro { color: rgba(255,255,255,0.65); }
#services .section-tag { color: var(--gold); }
#services .section-tag::before { background: var(--gold); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2px;
    margin-top: 64px;
}

.service-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 48px 40px;
    position: relative;
    transition: all 0.3s;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 4px; height: 0;
    background: var(--gold);
    transition: height 0.3s;
}

.service-card:hover {
    background: rgba(255,255,255,0.07);
    transform: translateY(-4px);
}

.service-card:hover::before { height: 100%; }

.service-icon {
    font-size: 32px;
    margin-bottom: 20px;
}

.service-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 72px;
    color: rgba(184,134,11,0.45); /* gold, visible against navy — was rgba(255,255,255,0.04), nearly invisible */
    position: absolute;
    top: 20px; right: 24px;
    line-height: 1;
}

.service-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: 0.04em;
}

.service-desc, .service-desc p {
    color: rgba(255,255,255,0.6);
    font-size: 15px;
    line-height: 1.75;
}
.service-desc { margin-bottom: 24px; }

.service-tags {
    display: flex; flex-wrap: wrap; gap: 8px;
}

.tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid rgba(125,211,232,0.5);
    color: #7DD3E8;
    background: rgba(125,211,232,0.08);
}

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

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

.about-left .big-initial {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 180px;
    color: var(--light);
    line-height: 1;
    margin-bottom: -40px;
    display: block;
}

.about-text {
    font-size: 17px;
    line-height: 1.85;
    color: var(--mid);
    margin-bottom: 24px;
}

.about-text strong { color: var(--navy); font-weight: 600; }

.differentiators {
    margin-top: 48px;
    display: flex; flex-direction: column; gap: 20px;
}

.diff-item {
    display: flex; gap: 20px; align-items: flex-start;
    padding: 24px;
    background: var(--white);
    border-left: 4px solid var(--teal);
}

.diff-icon { font-size: 24px; flex-shrink: 0; }

.diff-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    color: var(--navy);
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.diff-desc {
    font-size: 14px;
    color: var(--mid);
    line-height: 1.65;
}

/* Education & Certs */
.edu-block {
    margin-top: 40px;
}

.edu-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.edu-degree {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 25px;
    color: var(--navy);
    letter-spacing: 0.03em;
}

.edu-school {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--teal);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 4px;
}

.edu-detail {
    font-size: 16px;
    color: var(--mid);
    font-style: italic;
    margin-top: 4px;
}

/* ── PORTFOLIO ── */
#portfolio { background: #0F1F3D; }

#portfolio .section-h2 { color: var(--white); }
#portfolio .section-intro { color: rgba(255,255,255,0.6); }
#portfolio .section-tag { color: var(--gold); }
#portfolio .section-tag::before { background: var(--gold); }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    margin-top: 64px;
}

.portfolio-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.portfolio-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.portfolio-card:hover { background: rgba(255,255,255,0.07); }
.portfolio-card:hover::after { transform: scaleX(1); }

.project-category {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.project-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 30px;
    color: var(--white);
    letter-spacing: 0.04em;
    margin-bottom: 16px;
    line-height: 1.15;
}

.project-desc, .project-desc p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.75;
}
.project-desc { margin-bottom: 24px; }

.project-metrics {
    display: flex; flex-wrap: wrap; gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.metric {
    text-align: center;
}

.metric-val {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    color: #C9A84C;
    line-height: 1;
}

.metric-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin-top: 4px;
}

/* ── CREDENTIALS ── */
#credentials { background: var(--cream); }

.creds-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 64px;
}

.cred-section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    color: var(--navy);
    letter-spacing: 0.04em;
    margin-bottom: 32px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--gold);
}

.cred-item {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.cred-dot {
    width: 10px; height: 10px;
    background: var(--teal);
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

.cred-name {
    font-size: 17px;
    color: var(--charcoal);
    font-weight: 600;
    margin-bottom: 4px;
}

.cred-detail {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--teal);
    letter-spacing: 0.06em;
}

/* tech stack */
.tech-stack {
    margin-top: 48px;
}

.tech-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 27px;
    color: var(--navy);
    margin-bottom: 20px;
}

.tech-pills {
    display: flex; flex-wrap: wrap; gap: 10px;
}

.tech-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.08em;
    padding: 8px 17px;
    background: #FFFFFF;
    color: #1B3A6B;
    border: 2px solid #1B3A6B;
    border-radius: 3px;
    font-weight: 600;
}

.tech-pill.highlight {
    background: #B8860B;
    color: #FFFFFF;
    border: 2px solid #8B6508;
    font-weight: 700;
}

/* ── CONTACT ── */
#contact { background: var(--navy); }
#contact .section-h2 { color: var(--white); }
#contact .section-intro { color: rgba(255,255,255,0.65); }
#contact .section-tag { color: var(--gold); }
#contact .section-tag::before { background: var(--gold); }

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

.contact-info { }

.contact-item {
    display: flex; gap: 20px; align-items: flex-start;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.contact-icon {
    width: 48px; height: 48px;
    background: rgba(14,116,144,0.2);
    border: 1px solid var(--teal);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-value {
    color: var(--white);
    font-size: 16px;
    text-decoration: none;
}

.contact-value:hover { color: var(--teal); }

/* contact form */
.contact-form { }

.form-group { margin-bottom: 24px; }

.form-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #C9A84C;
    font-weight: 800;
    margin-bottom: 10px;
}

.form-input, .form-textarea {
    width: 100%;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.45);
    color: #FFFFFF;
    padding: 14px 18px;
    font-family: 'Lora', serif;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--teal);
}

.form-input::placeholder, .form-textarea::placeholder {
    color: #FFFFFF;
    opacity: 0.55;
}

.form-textarea { resize: vertical; min-height: 140px; }

.form-submit {
    background: var(--gold);
    color: var(--charcoal);
    border: none;
    padding: 16px 48px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 12px 100%);
}

.form-submit:hover { background: #d4a017; }

.form-success {
    background: #1A5C38 !important;
    color: #fff !important;
    clip-path: none !important;
}

/* ── FOOTER ── */
footer {
    background: #0A1628;
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid var(--gold);
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    color: var(--white);
    letter-spacing: 0.06em;
}

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

.footer-copy {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
    text-align: center;
}

.footer-links {
    display: flex; gap: 24px; list-style: none;
}

.footer-links a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold); }

/* ── SCROLL ANIMATIONS ── */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    nav { padding: 0 24px; }
    .nav-links { display: none; }
    section { padding: 80px 24px; }
    #home { padding: 100px 24px 60px; }
    #home::after { display: none; } /* the giant watermark has no room on narrow screens */
    .about-grid, .contact-grid, .creds-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-stats { flex-wrap: wrap; gap: 32px; }
    footer { flex-direction: column; text-align: center; padding: 40px 24px; }
}

/* ── UTILITY ── */
.text-gold { color: var(--gold); }
.mt-8 { margin-top: 8px; }
.mb-0 { margin-bottom: 0; }

/* ── WORDPRESS CORE COMPATIBILITY (not in original site; required by WP) ── */
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text { position: absolute; left: -9999px; }
