/* Hence Website - Custom Styles */
/* Layers on top of Bootstrap 5 CSS grid/utilities */

:root {
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-text-secondary: #555555;
    --color-accent: #2563eb;
    --color-accent-hover: #1d4ed8;
    --color-border: #e5e7eb;
    --color-dark: #0f172a;
    --color-dark-light: #1e293b;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1200px;
    --nav-height: 72px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-dark);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-text);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.25rem;
    color: var(--color-text-secondary);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: transparent;
    border-bottom: 1px solid transparent;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.site-nav.nav-dark.nav-scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    text-decoration: none;
}

.logo-text {
    font-family: 'Raleway', var(--font-heading);
    font-weight: 300;
    font-size: 2.1rem;
    color: #ffffff;
    letter-spacing: 0.02em;
    line-height: 1;
}

.logo-accent {
    font-weight: 300;
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-accent);
    border-radius: 1px;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #ffffff;
}

.nav-toggle svg {
    width: 24px;
    height: 24px;
}

/* Hero — full screen dark section (home page) */
.hero {
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--color-dark);
    position: relative;
    overflow: hidden;
}


/* Page Hero — full screen dark section (inner pages) */
.page-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--color-dark);
    position: relative;
}


/* Shared hero content */
.hero-content {
    max-width: 760px;
    position: relative;
    z-index: 1;
}

.hero-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
}

.hero h1,
.page-hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    color: #ffffff;
    line-height: 1.1;
}

.hero h1 .highlight,
.page-hero h1 .highlight {
    color: #60a5fa;
    -webkit-text-fill-color: #60a5fa;
}

.hero .lead,
.page-hero .lead,
.contact-hero .lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 600px;
}

.hero .btn-primary {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

.hero .btn-primary:hover {
    box-shadow: none;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    opacity: 0.5;
    transition: opacity 0.5s ease;
}

.scroll-indicator.hidden {
    opacity: 0;
}

.scroll-indicator svg {
    width: 28px;
    height: 28px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Contact hero — form sits beside the headline */
.contact-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--color-dark);
    position: relative;
    overflow: hidden;
    padding: calc(var(--nav-height) + 2rem) 0 2rem;
}


.contact-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.contact-hero .hero-content {
    max-width: 480px;
}

.contact-hero .hero-content .lead {
    margin-bottom: 2rem;
}

.contact-hero .contact-details-dark {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.contact-hero h1 {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.contact-hero h1 .highlight {
    color: #60a5fa;
    -webkit-text-fill-color: #60a5fa;
}

/* Hero animations */
.hero-content .hero-label,
.page-hero .hero-content .hero-label {
    animation: fadeInUp 0.6s ease both;
    animation-delay: 0.1s;
}

.hero-content h1,
.page-hero .hero-content h1 {
    animation: fadeInUp 0.6s ease both;
    animation-delay: 0.2s;
}

.hero-content .lead,
.page-hero .hero-content .lead {
    animation: fadeInUp 0.6s ease both;
    animation-delay: 0.35s;
}

.hero-content .btn {
    animation: fadeInUp 0.6s ease both;
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Dark section — scrollable content below page-hero */
.dark-section {
    background: var(--color-dark);
    padding: 5rem 0 6rem;
    border-top: none;
}

.content-block {
    max-width: 640px;
    margin-bottom: 4rem;
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-block h2 {
    color: #ffffff;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.content-block p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0;
}

/* About layout with profile */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-profile {
    text-align: center;
}

.profile-photo {
    width: 100%;
    max-width: 360px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    filter: grayscale(100%);
}

.about-profile h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.about-profile p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.9rem;
    margin: 0;
}

/* Platforms list */
.platforms-list {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.02em;
}

/* Contact form — dark variant */
.contact-form-dark {
    max-width: 560px;
}

.contact-form-dark .form-group label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.5rem;
}

.label-optional {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-control-dark {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control-dark:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-control-dark::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-control-dark.is-invalid {
    border-color: #ef4444;
}

.form-control-dark.is-valid {
    border-color: #22c55e;
}

.form-control-dark.is-invalid + .invalid-feedback {
    display: block;
}

textarea.form-control-dark {
    min-height: 120px;
    resize: vertical;
}

.form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.invalid-feedback {
    display: none;
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.35rem;
}

.form-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-message {
    font-size: 0.875rem;
    margin: 0;
}

.form-message.success {
    color: #22c55e;
}

.form-message.error {
    color: #ef4444;
}

.recaptcha-note-dark {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 1.5rem;
}

.recaptcha-note-dark a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: underline;
}

.recaptcha-note-dark a:hover {
    color: rgba(255, 255, 255, 0.6);
}

.contact-details-dark {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 2rem;
}

.contact-details-dark a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.contact-details-dark a:hover {
    color: #ffffff;
}

.contact-details-dark span {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.9rem;
}

/* Spinner */
.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.spinner.active {
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Privacy page */
.privacy-content {
    max-width: 800px;
}

.privacy-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #ffffff;
}

.privacy-content p {
    color: rgba(255, 255, 255, 0.6);
}

.privacy-content ul {
    color: rgba(255, 255, 255, 0.6);
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
}

.privacy-content a {
    color: var(--color-accent);
}

/* Hide reCAPTCHA badge */
.grecaptcha-badge {
    display: none !important;
}

/* Responsive */
@media (max-width: 991px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }

    .hero h1,
    .page-hero h1 { font-size: 2.5rem; }

    .dark-section { padding: 3rem 0 4rem; }
    .content-block { margin-bottom: 3rem; }
    .form-row-grid { grid-template-columns: 1fr; }
    .contact-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .profile-photo { max-width: 280px; }
    .contact-hero { min-height: auto; padding-top: calc(var(--nav-height) + 3rem); padding-bottom: 3rem; }

    /* Mobile nav */
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--color-dark);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        display: flex;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding-top: 0;
        padding-bottom: 0;
    }

    .nav-links.open {
        max-height: 300px;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        color: #ffffff;
        font-size: 1rem;
        font-weight: 400;
    }

    .nav-links a:hover {
        color: rgba(255, 255, 255, 0.6);
    }

    .nav-links a.active {
        color: #ffffff;
        border-left: 2px solid var(--color-accent);
        padding-left: 0.75rem;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-links a.active::after {
        display: none;
    }
}

@media (max-width: 575px) {
    .hero h1,
    .page-hero h1 { font-size: 2rem; }
    .container { padding: 0 1rem; }
    .form-footer { flex-direction: column; align-items: stretch; }
    .contact-details-dark { flex-direction: column; gap: 0.5rem; }
}
