/* ============================================
   hivincenzo.com — Styles
   Apple-inspired minimal + motorsport energy
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #ffffff;
    --bg-surface: #f5f5f7;
    --bg-card: #eaeaec;
    --border: #d2d2d7;
    --text-muted: #86868b;
    --text-secondary: #6e6e73;
    --text: #1d1d1f;
    --accent: #d4281e;
    --accent-hover: #bf2018;
    --nav-bg: rgba(255, 255, 255, 0.85);
    --nav-border: rgba(0, 0, 0, 0.08);
    --mobile-menu-bg: rgba(255, 255, 255, 0.98);
    --hero-glow: rgba(232, 55, 44, 0.06);
    --btn-primary-bg: #1d1d1f;
    --btn-primary-text: #ffffff;
    --btn-primary-hover: #000000;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[data-theme="dark"] {
    --bg: #0a0a0a;
    --bg-surface: #111111;
    --bg-card: #1a1a1a;
    --border: #2a2a2a;
    --text-muted: #888888;
    --text-secondary: #b0b0b0;
    --text: #f5f5f7;
    --accent: #e8372c;
    --accent-hover: #ff4438;
    --nav-bg: rgba(10, 10, 10, 0.85);
    --nav-border: rgba(255, 255, 255, 0.06);
    --mobile-menu-bg: rgba(10, 10, 10, 0.98);
    --hero-glow: rgba(232, 55, 44, 0.08);
    --btn-primary-bg: #f5f5f7;
    --btn-primary-text: #0a0a0a;
    --btn-primary-hover: #ffffff;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 48px;
    height: 56px;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--nav-border);
    transition: background 0.4s ease, border-color 0.4s ease;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 20px;
    position: relative;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--text);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--mobile-menu-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px 48px;
    z-index: 99;
    flex-direction: column;
    gap: 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.mobile-menu a:hover {
    color: var(--text);
}

.mobile-menu-links {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--accent);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 48px 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-intro {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-name {
    font-size: clamp(64px, 12vw, 140px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-tagline {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

.hero-gradient {
    position: absolute;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse at center, var(--hero-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font);
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

.btn-primary:hover {
    background: var(--btn-primary-hover);
    transform: scale(1.02);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    transform: scale(1.02);
}

/* --- Sections --- */
.section {
    padding: 120px 48px;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 48px;
}

/* --- About --- */
.about {
    border-top: 1px solid var(--border);
}

.about-content {
    max-width: 720px;
}

.about-statement {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.about-detail {
    font-size: 17px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Credibility --- */
.credibility {
    padding: 64px 48px;
    border-top: 1px solid var(--border);
}

.credibility-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 32px;
}

.credibility-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.credibility-brand {
    display: inline-flex;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.credibility-brand:hover {
    opacity: 1;
}

.credibility-brand svg {
    height: 24px;
    width: auto;
}

.credibility-brand-icon svg {
    height: 44px;
}


@media (max-width: 768px) {
    .credibility {
        padding: 48px 24px;
    }

    .credibility-logos {
        gap: 32px;
    }

    .credibility-brand svg {
        height: 18px;
    }

    .credibility-brand-icon svg {
        height: 32px;
    }
}

/* --- Roles --- */
.roles {
    border-top: 1px solid var(--border);
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
}

.role-card {
    background: var(--bg);
    padding: 48px 40px;
}

.role-number {
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 16px;
}

.role-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.role-desc {
    font-size: 15px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Projects --- */
.projects {
    border-top: 1px solid var(--border);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
}

.project-card {
    background: var(--bg-surface);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease;
}

.project-card:hover {
    background: var(--bg-card);
}

.project-featured {
    grid-column: 1 / -1;
    background: var(--bg-surface);
}

.project-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.project-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.project-desc {
    font-size: 15px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.project-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    margin-top: 24px;
    transition: color 0.2s ease;
}

.project-card:hover .project-link {
    color: var(--accent-hover);
}

/* --- Newsletters --- */
.newsletters {
    border-top: 1px solid var(--border);
}

.newsletters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
}

.newsletter-card {
    background: var(--bg-surface);
    padding: 56px 48px;
}

.newsletter-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.newsletter-desc {
    font-size: 15px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    font-size: 14px;
    font-family: var(--font);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease;
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

.newsletter-input:focus {
    border-color: var(--text-muted);
}

/* --- Work With Me --- */
.work-with-me {
    border-top: 1px solid var(--border);
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.work-heading {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.work-detail {
    font-size: 16px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.application-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    font-size: 14px;
    font-family: var(--font);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

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

.form-group textarea::placeholder {
    color: var(--text-muted);
}

.btn-submit {
    width: 100%;
    padding: 16px 28px;
    font-size: 15px;
}

.form-success {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
}

.form-success h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-success p {
    font-size: 16px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .work-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .application-form {
        grid-template-columns: 1fr;
    }
}

/* --- Connect --- */
.connect {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 120px 48px;
}

.connect-heading {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 48px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    transition: all 0.25s ease;
}

.social-link:hover {
    border-color: var(--text);
    color: var(--text);
    transform: translateY(-2px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border);
    padding: 32px 48px;
    text-align: center;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer p {
    font-size: 12px;
    color: var(--text-muted);
}

/* --- Theme Toggle --- */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 50px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.25s ease;
    margin-left: 24px;
    flex-shrink: 0;
}

.theme-toggle-mobile {
    display: none;
}

.theme-toggle:hover {
    border-color: var(--text);
    color: var(--text);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }

[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* --- Accessibility --- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Animations --- */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav {
        padding: 0 24px;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .theme-toggle-mobile {
        display: flex;
    }

    .mobile-menu {
        padding: 24px;
    }

    .hero {
        padding: 120px 24px 80px;
    }

    .hero-name {
        font-size: clamp(48px, 14vw, 80px);
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .section {
        padding: 80px 24px;
    }

    .roles-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .newsletters-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .connect {
        padding: 80px 24px;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 48px;
    }

    .about-statement {
        font-size: 22px;
    }

    .role-card {
        padding: 32px 24px;
    }

    .project-card {
        padding: 32px 24px;
    }

    .newsletter-card {
        padding: 32px 24px;
    }
}

