/* =========================================================
    AAE PORTFOLIO — MASTER STYLESHEET
    Alex Austin
    AI Automation Engineer 

    Theme: Midnight Blue & Electric Cyan
========================================================= */

/* ========================================================= 1. DESIGN TOKENS AND RESET ========================================================= */
:root {
    --bg: #0a1322;
    --bg-secondary: #0d192b;
    --bg-card: #0f1b2f;
    --bg-card-hover: #142740;

    --cyan: #33c3ff;
    --blue: #1f7aff;
    --gradient: linear-gradient(110deg, #33c3ff, #1f7aff);

    --text: #f4f8ff;
    --text-secondary: #c4cede;
    --muted: #a6b5c9;

    --border: #20334b;
    --border-light: rgba(166, 181, 201, 0.13);

    --success: #45e0a8;
    --warning: #ffc76b;
    --danger: #ff8181;

    --container-width: 1200px;
    --header-height: 88px;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --shadow-card: 0 15px 45px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 12px 35px rgba(51, 195, 255, 0.12);

    --transition: 0.25s ease;
}

* {box-sizing: border-box; margin: 0; padding: 0;}
html {scroll-behavior: smooth; scroll-padding-top: 110px;}
body {min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;}
body,
button,
input,
textarea,
select {font-family: Inter, "Segoe UI", Arial, sans-serif;}
img,
svg,
video {display: block; max-width: 100%;}
img {height: auto;}
a {color: var(--cyan); text-decoration: none; transition: color var(--transition);}
a:hover {color: var(--text);}
button,
input,
textarea,
select {font: inherit;}
button {cursor: pointer;}
ul,
ol {padding-left: 22px;}
li {margin-bottom: 8px;}
::selection {color: var(--bg); background: var(--cyan);}
:focus-visible {outline: 2px solid var(--cyan); outline-offset: 4px;}
.container {width: min(var(--container-width), calc(100% - 48px)); margin-inline: auto;}
main {flex: 1; width: 100%;}
section {position: relative;}
p {color: var(--text-secondary);}
h1,
h2,
h3,
h4,
h5,
h6 {color: var(--text); font-weight: 700; line-height: 1.25; letter-spacing: -0.025em;}
h1 {font-size: clamp(2.6rem, 6vw, 4.8rem);}
h2 {font-size: clamp(1.8rem, 3.5vw, 2.7rem);}
h3 {font-size: 1.25rem;}
h4 {font-size: 1.05rem;}
h1,
h2,
h3,
h4,
p {overflow-wrap: break-word;}

/* ========================================================= 2. SHARED TYPOGRAPHY========================================================= */
.eyebrow {display: inline-block; margin-bottom: 14px; color: var(--cyan); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.15em; line-height: 1.5; text-transform: uppercase;}
.gradient-text,
.text-gradient {background: var(--gradient); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; color: var(--cyan);}
.section {padding: 90px 0;}
.section-heading {max-width: 760px; margin: 0 auto 48px; text-align: center;}
.section-heading h2 {margin-bottom: 18px;}
.section-heading p {line-height: 1.85;}
.section-description {max-width: 760px; color: var(--muted); font-size: 1.1rem; line-height: 1.9;}
.section-heading .tag-list {justify-content: center; margin-top: 25px;}

/* ========================================================= 3. HEADER AND BRAND========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(10, 19, 34, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition:
        background var(--transition),
        box-shadow var(--transition);
}
.site-header.scrolled {
    background: rgba(10, 19, 34, 0.98);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.header-container {
    min-height: var(--header-height);

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;

    min-width: 0;
    color: var(--text);
    text-decoration: none;
}

.brand:hover {
    color: var(--text);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;
    flex-shrink: 0;

    border-radius: 17px;
    background: var(--gradient);

    color: var(--bg);
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.brand-text strong {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.4;
}

.brand-text small {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    line-height: 1.5;
}


/* =========================================================
   4. PRIMARY NAVIGATION
========================================================= */

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 25px;
}

.nav-link {
    position: relative;

    display: inline-block;
    padding: 10px 0;

    color: var(--text-secondary);
    font-size: 0.91rem;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;

    transition: color var(--transition);
}

.nav-link::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;

    height: 2px;
    border-radius: 2px;
    background: var(--gradient);

    transform: scaleX(0);
    transform-origin: left;

    transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--cyan);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}


/* Mobile menu button */

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;

    width: 44px;
    height: 44px;

    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
}

.menu-toggle span {
    width: 20px;
    height: 2px;

    border-radius: 2px;
    background: var(--text);

    transition:
        transform var(--transition),
        opacity var(--transition);
}

.menu-toggle.is-open span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
   5. BUTTONS
========================================================= */

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    min-height: 46px;
    padding: 12px 21px;

    border: 1px solid transparent;
    border-radius: 10px;

    font-size: 0.91rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;

    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--gradient);
    color: #04121f;
    box-shadow: 0 8px 25px rgba(51, 195, 255, 0.1);
}

.btn-primary:hover {
    color: #04121f;
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    border-color: var(--border);
    background: var(--bg-card);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: var(--cyan);
    background: var(--bg-card-hover);
    color: var(--cyan);
}

.btn-outline {
    border-color: var(--cyan);
    background: transparent;
    color: var(--cyan);
}

.btn-outline:hover {
    background: rgba(51, 195, 255, 0.08);
    color: var(--cyan);
}

.btn-group,
.hero-actions,
.project-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}


/* =========================================================
   6. HOME PAGE HERO
========================================================= */

.hero {
    position: relative;
    overflow: hidden;
    padding: 115px 0 100px;
}

.hero::before {
    content: "";

    position: absolute;
    top: -150px;
    right: -100px;

    width: 480px;
    height: 480px;

    border-radius: 50%;
    background: rgba(51, 195, 255, 0.055);
    filter: blur(90px);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    align-items: center;
    gap: 65px;
}

.hero-content {
    max-width: 780px;
}

.hero h1 {
    margin-bottom: 24px;
    line-height: 1.12;
}

.hero h1 span {
    display: inline;
}

.hero-description,
.hero p {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.9;
}

.hero-actions {
    margin-top: 32px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: min(100%, 360px);
    aspect-ratio: 1;
    object-fit: cover;

    border: 1px solid var(--border);
    border-radius: 30px;

    box-shadow: var(--shadow-card);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 8px 13px;
    margin-bottom: 25px;

    border: 1px solid var(--border);
    border-radius: 100px;
    background: rgba(15, 27, 47, 0.7);

    color: var(--text-secondary);
    font-size: 0.82rem;
}

.hero-badge::before {
    content: "";

    width: 8px;
    height: 8px;
    border-radius: 50%;

    background: var(--success);
    box-shadow: 0 0 12px rgba(69, 224, 168, 0.5);
}


/* =========================================================
   7. PAGE HERO AND BREADCRUMBS
========================================================= */

.page-hero {
    padding: 85px 0 65px;

    border-bottom: 1px solid var(--border-light);

    background:
        radial-gradient(
            ellipse at 85% 0%,
            rgba(51, 195, 255, 0.08),
            transparent 48%
        ),
        var(--bg);
}

.page-hero .container {
    max-width: var(--container-width);
}

.page-hero h1 {
    max-width: 950px;
    margin: 15px 0 22px;
    font-size: clamp(2.4rem, 5.5vw, 4.1rem);
}

.page-hero p {
    max-width: 800px;
    font-size: 1.05rem;
    line-height: 1.9;
}

.breadcrumb {
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 0.85rem;
}

.breadcrumb a {
    color: var(--cyan);
}

.breadcrumb a:hover {
    text-decoration: underline;
}


/* =========================================================
   8. CARDS AND GRIDS
========================================================= */

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    align-items: stretch;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    min-width: 0;
    padding: 28px;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-card);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);

    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(51, 195, 255, 0.45);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-card);
}

.card h2,
.card h3 {
    margin-bottom: 14px;
}

.card p {
    line-height: 1.85;
}

.card .eyebrow {
    margin-bottom: 12px;
}

.card h3 + p {
    margin-top: 0;
}

.card .tag-list {
    margin-top: 22px;
}


/* =========================================================
   9. STATS AND METRICS
========================================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.stat-card {
    padding: 25px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
}

.stat-number,
.stat-card strong {
    display: block;
    margin-bottom: 7px;

    color: var(--cyan);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
}

.stat-label {
    color: var(--muted);
    font-size: 0.9rem;
}


/* =========================================================
   10. TAGS AND CLEAN LISTS
========================================================= */

.tag-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.tag {
    display: inline-flex;
    align-items: center;

    padding: 6px 11px;

    border: 1px solid var(--border);
    border-radius: 7px;
    background: rgba(10, 19, 34, 0.65);

    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.5;
}

.list-clean,
.experience-list {
    padding-left: 20px;
    margin-top: 15px;
}

.list-clean li,
.experience-list li {
    padding-left: 3px;
    margin-bottom: 10px;

    color: var(--text-secondary);
    line-height: 1.75;
}

.list-clean li::marker,
.experience-list li::marker {
    color: var(--cyan);
}


/* =========================================================
   11. FEATURED PROJECTS
========================================================= */

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.project-visual {
    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 190px;
    padding: 25px;

    border-bottom: 1px solid var(--border);

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(51, 195, 255, 0.13),
            transparent 45%
        ),
        linear-gradient(135deg, #0d192b, #14233b);

    color: var(--cyan);
    font-size: 1.15rem;
    font-weight: 800;
    text-align: center;
}

.project-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 28px;
}

.project-body h2,
.project-body h3 {
    margin-bottom: 14px;
}

.project-body h4 {
    margin-top: 22px;
    margin-bottom: 10px;
}

.project-body > p {
    margin-bottom: 16px;
}

.project-body .tag-list {
    margin-top: auto;
    padding-top: 22px;
}

.project-body .project-links {
    margin-top: 22px;
}

.project-card .project-visual + .project-body {
    min-height: 0;
}

.automation-card {
    display: flex;
    flex-direction: column;
}

.automation-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.automation-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(51, 195, 255, 0.08);
    color: var(--cyan);
    font-weight: 800;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 0.72rem;
    line-height: 1.5;
}

.status-progress {
    border-color: rgba(255, 199, 107, 0.3);
    background: rgba(255, 199, 107, 0.07);
    color: var(--warning);
}

.status-complete {
    border-color: rgba(69, 224, 168, 0.3);
    background: rgba(69, 224, 168, 0.07);
    color: var(--success);
}

@media (max-width: 1050px) {
    :root { --header-height: 80px; }
    .main-navigation { gap: 15px; }
    .nav-link { font-size: 0.84rem; }
    .brand-mark { width: 49px; height: 49px; }
    .brand-text strong { font-size: 0.9rem; }
    .brand-text small { font-size: 0.66rem; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .menu-toggle { display: flex; flex-shrink: 0; }
    .header-container { position: relative; min-height: 78px; }
    .main-navigation {
        position: absolute; top: calc(100% + 1px); right: 0; left: 0;
        display: none; flex-direction: column; align-items: stretch; gap: 3px;
        padding: 15px; border: 1px solid var(--border); border-radius: 0 0 14px 14px;
        background: var(--bg-secondary); box-shadow: var(--shadow-card);
    }
    .main-navigation.is-open { display: flex; }
    .nav-link { padding: 12px 14px; border-radius: 8px; font-size: 0.95rem; }
    .nav-link::after { display: none; }
    .nav-link:hover, .nav-link.active { background: rgba(51, 195, 255, 0.06); }
    .hero-grid, .about-grid, .contact-layout { grid-template-columns: 1fr; }
    .hero { padding: 80px 0; }
    .hero-image { max-width: 300px; }
    .footer-main { flex-direction: column; gap: 30px; }
}

@media (max-width: 700px) {
    .container { width: min(100% - 36px, var(--container-width)); }
    .section { padding: 65px 0; }
    .page-hero { padding: 65px 0 45px; }
    .page-hero h1, .hero h1 { font-size: clamp(2.2rem, 9vw, 3.4rem); }
    .grid-2, .grid-3, .stats-grid { grid-template-columns: 1fr; }
    .card { padding: 23px; }
    .project-card { padding: 0; }
    .project-body { padding: 23px; }
    .section-heading, .section-head { margin-bottom: 35px; text-align: left; }
    .footer-container { width: calc(100% - 40px); padding-top: 32px; }
    .footer-social-section { margin-top: 25px; padding: 25px 0; }
    .footer-socials { gap: 35px; }
    .footer-socials a { width: 44px; height: 44px; font-size: 2.35rem; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
    .container { width: calc(100% - 32px); }
    .brand { gap: 9px; }
    .brand-mark { width: 43px; height: 43px; border-radius: 12px; font-size: 0.92rem; }
    .brand-text strong { font-size: 0.79rem; }
    .brand-text small { font-size: 0.58rem; letter-spacing: 0.035em; }
    .hero-actions, .btn-group { align-items: stretch; flex-direction: column; }
    .hero-actions .btn, .btn-group .btn { width: 100%; }
    .footer-socials { gap: 23px; }
    .footer-socials a { width: 38px; height: 38px; font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .reveal, .reveal-up, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}
