/* ═══════════════════════════════════════════════════════════════
   WRIGHTFORGE — Main Site Redesign
   Clean, Modern, Professional
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   CSS Variables
   ───────────────────────────────────────────────────────────────── */
:root {
    /* Colors - Electric Coral Palette (Bold & Distinctive) */
    --bg-primary: #0c0c0c;
    --bg-secondary: #141414;
    --bg-dark: #080808;
    --bg-card: #1a1a1a;

    /* Accent - Electric Coral (Signature Color) */
    --accent: #ff6b4a;
    --accent-light: #ff8a6f;
    --accent-dark: #e55a3a;
    --accent-subtle: rgba(255, 107, 74, 0.12);

    /* Secondary accents */
    --electric-blue: #00d4ff;
    --mint: #4ade80;
    --gold: #fbbf24;

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #707070;
    --text-inverse: #0c0c0c;

    /* Borders */
    --border: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);
    --border-accent: rgba(255, 107, 74, 0.3);

    /* Typography - Distinctive choices */
    --font-display: 'Archivo Black', Impact, sans-serif;
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    /* Spacing */
    --section-padding: 120px;
    --container-width: 1200px;

    /* Effects */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.7);
    --glow-accent: 0 0 30px rgba(255, 107, 74, 0.4);
    --glow-blue: 0 0 20px rgba(0, 212, 255, 0.3);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Animated Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 25s linear infinite;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(245, 158, 11, 0.03) 0%, transparent 40%);
    pointer-events: none;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* ─────────────────────────────────────────────────────────────────
   Header
   ───────────────────────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background: rgba(10, 10, 16, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 24px;
    color: var(--accent);
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.5px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.main-nav a:hover {
    color: var(--accent);
    background: var(--accent-subtle);
}

.main-nav .nav-highlight {
    color: var(--accent);
    background: var(--accent-subtle);
}

.main-nav .nav-highlight:hover {
    background: rgba(37, 99, 235, 0.12);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-inverse);
    background: var(--text-primary);
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.2s ease;
}

.header-cta:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

.cta-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ─────────────────────────────────────────────────────────────────
   Hero Section - Bold & Asymmetric
   ───────────────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
    padding: 140px 80px 100px;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 74, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-title {
    margin-bottom: 32px;
}

.title-small {
    display: block;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.title-main {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(48px, 7vw, 80px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.accent-text {
    color: var(--accent);
    position: relative;
}

.accent-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--accent);
    opacity: 0.3;
    transform: skewX(-12deg);
}

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: var(--glow-accent);
}

.btn-ghost {
    color: var(--text-primary);
    background: transparent;
    border: 2px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Hero Visual - Abstract Shape */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.visual-shape {
    position: relative;
    width: 350px;
    height: 350px;
}

.shape-layer {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphShape 8s ease-in-out infinite;
}

.shape-layer.l1 {
    inset: 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    animation-delay: 0s;
}

.shape-layer.l2 {
    inset: 20px;
    background: linear-gradient(135deg, var(--electric-blue) 0%, #0099cc 100%);
    animation-delay: -2s;
    opacity: 0.7;
}

.shape-layer.l3 {
    inset: 50px;
    background: var(--bg-primary);
    animation-delay: -4s;
}

@keyframes morphShape {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg);
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
        transform: rotate(90deg);
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

/* ─────────────────────────────────────────────────────────────────
   Section Styling
   ───────────────────────────────────────────────────────────────── */
.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.label-number {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
}

.label-line {
    width: 40px;
    height: 1px;
    background: var(--border);
}

.label-text {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

/* ─────────────────────────────────────────────────────────────────
   About Section - Minimal
   ───────────────────────────────────────────────────────────────── */
.about-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 24px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.about-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    transition: gap 0.2s ease;
}

.about-link:hover {
    gap: 12px;
}

/* ─────────────────────────────────────────────────────────────────
   Projects Section
   ───────────────────────────────────────────────────────────────── */
.projects-section {
    padding: var(--section-padding) 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: uppercase;
}

/* Project Card */
.project-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: border-color 0.3s ease;
}

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

.project-card.reverse {
    grid-template-columns: 0.8fr 1.2fr;
}

.project-card.reverse .project-preview {
    order: 2;
}

.project-card.reverse .project-info {
    order: 1;
}

/* Project Preview */
.project-preview {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-dark);
    border: 1px solid var(--border);
}

.project-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
    transition: pointer-events 0.3s ease;
}

.project-card:hover .project-preview iframe {
    pointer-events: auto;
}

.preview-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--mint);
    background: rgba(0, 0, 0, 0.8);
    border-radius: var(--radius-sm);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.project-card:hover .preview-overlay {
    opacity: 0;
}

.preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-secondary) 100%);
}

.placeholder-icon {
    font-size: 48px;
}

.placeholder-text {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Project Info */
.project-info {
    padding: 20px 0;
}

.project-tag {
    display: inline-block;
    padding: 6px 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--electric-blue);
    background: rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.project-info h3 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.project-info p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: gap 0.2s ease;
}

.project-link:hover {
    gap: 14px;
}

/* Projects CTA */
.projects-cta {
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
}

.projects-cta p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

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

.btn-secondary:hover {
    background: var(--accent);
    color: var(--text-inverse);
}

/* ─────────────────────────────────────────────────────────────────
   Updates Section
   ───────────────────────────────────────────────────────────────── */
.updates-section {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.updates-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.updates-header h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
}

.updates-link {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.updates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.update-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.update-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
}

.update-card time {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.update-card h3 {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.update-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────────────────────────── */
.site-footer {
    padding: 80px 40px;
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand .logo-mark {
    font-size: 20px;
    color: var(--accent);
}

.footer-brand .logo-text {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-meta {
    text-align: right;
    font-size: 13px;
    color: var(--text-muted);
    font-size: 13px;
    color: var(--text-muted);
}

.footer-meta .divider {
    color: var(--border);
}

/* ─────────────────────────────────────────────────────────────────
   Responsive Design
   ───────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 140px 40px 80px;
        text-align: center;
    }

    .hero-visual {
        order: -1;
    }

    .visual-shape {
        width: 280px;
        height: 280px;
    }

    .hero-actions {
        justify-content: center;
    }

    .project-card {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-card.reverse .project-preview,
    .project-card.reverse .project-info {
        order: unset;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-main {
        align-items: center;
    }

    .footer-meta {
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .site-header {
        padding: 16px 20px;
    }

    .main-nav {
        display: none;
    }

    .hero {
        padding: 120px 20px 60px;
    }

    .section-container {
        padding: 0 20px;
    }

    .title-main {
        font-size: 36px;
    }

    .hero-description {
        font-size: 17px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .project-card {
        padding: 24px;
    }

    .project-info h3 {
        font-size: 24px;
    }

    .projects-cta {
        padding: 40px 24px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .title-main {
        font-size: 28px;
    }

    .section-title {
        font-size: 28px;
    }

    .about-text {
        font-size: 18px;
    }

    .visual-shape {
        width: 220px;
        height: 220px;
    }
}

/* ─────────────────────────────────────────────────────────────────
   Utilities
   ───────────────────────────────────────────────────────────────── */
::selection {
    background: var(--accent);
    color: var(--text-inverse);
}
