/* ============================================
   DEVKiTZ™ Profile — style.css
   DkZ Design System v2 · Dark Theme
   ============================================ */

/* --- CSS Variables (DkZ v2) --- */
:root {
    --accent: #fa1e4e;
    --accent-soft: rgba(250, 30, 78, 0.12);
    --accent-glow: rgba(250, 30, 78, 0.4);
    --bg: #060608;
    --bg-alt: #0a0a0f;
    --bg-card: rgba(18, 18, 24, 0.85);
    --bg-card-hover: rgba(24, 24, 32, 0.95);
    --text-primary: #e8e8ec;
    --text-secondary: #8a8a9a;
    --text-muted: #5a5a6a;
    --green: #00ff88;
    --green-soft: rgba(0, 255, 136, 0.12);
    --yellow: #ffb800;
    --yellow-soft: rgba(255, 184, 0, 0.12);
    --red: #ff3b5c;
    --blue: #3b82f6;
    --blue-soft: rgba(59, 130, 246, 0.12);
    --purple: #a855f7;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px var(--accent-glow);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-main);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
    backdrop-filter: blur(0px);
}

.nav.scrolled {
    padding: 10px 0;
    background: rgba(6, 6, 8, 0.85);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}

.logo-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.logo-text { letter-spacing: -0.5px; }

.tm {
    color: var(--accent);
    font-size: 0.6em;
    vertical-align: super;
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
    border-radius: 1px;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#heroCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(250, 30, 78, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(250, 30, 78, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-soft);
    border: 1px solid rgba(0, 255, 136, 0.2);
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--green);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -4px;
    margin-bottom: 16px;
    position: relative;
}

.title-line {
    display: inline;
}

.title-line.accent {
    color: var(--accent);
    text-shadow: 0 0 60px var(--accent-glow), 0 0 120px rgba(250, 30, 78, 0.15);
}

.title-tm {
    color: var(--accent);
    font-size: 0.25em;
    vertical-align: super;
    margin-left: -8px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.hero-tagline {
    font-family: var(--font-mono);
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    color: var(--text-muted);
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px rgba(250, 30, 78, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(250, 30, 78, 0.45);
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--border-hover);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(12px); opacity: 0.3; }
}

/* --- Sections --- */
.section {
    padding: 120px 0;
    position: relative;
}

.section-dark {
    background: var(--bg-alt);
}

.section-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
}

.accent {
    color: var(--accent);
}

/* --- About Cards --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.about-card {
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.about-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-card);
}

.about-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Glass Morphism --- */
.glass {
    background: var(--bg-card);
    border: 1px solid var(--border);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

/* --- Ecosystem Grid --- */
.eco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.eco-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.eco-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card);
}

.eco-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--accent-soft), transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

.eco-card:hover .eco-card-glow {
    opacity: 1;
}

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

.eco-icon {
    font-size: 2rem;
}

.eco-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    letter-spacing: 1.5px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.eco-badge.accent-bg { background: var(--accent-soft); color: var(--accent); }
.eco-badge.green-bg { background: var(--green-soft); color: var(--green); }
.eco-badge.blue-bg { background: var(--blue-soft); color: var(--blue); }
.eco-badge.yellow-bg { background: var(--yellow-soft); color: var(--yellow); }

.eco-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.eco-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

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

.tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* --- Tech Grid --- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.tech-item {
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--transition);
}

.tech-item:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card);
}

.tech-icon-wrap {
    font-size: 2rem;
    margin-bottom: 12px;
}

.tech-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.tech-detail {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* --- Stats --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    text-align: center;
}

.stat-card {
    padding: 40px 24px;
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -2px;
    display: inline;
    font-variant-numeric: tabular-nums;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    display: inline;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 8px;
    font-weight: 500;
}

/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    padding: 40px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-soft);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.contact-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-link {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    word-break: break-all;
}

.contact-link:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px var(--accent-glow);
}

.contact-grid-5 {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    max-width: 1100px;
}

/* --- Footer --- */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.footer-copy {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.footer-sub {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.about-card:nth-child(2) .reveal,
.eco-card:nth-child(2),
.contact-card:nth-child(2),
.stat-card:nth-child(2) { transition-delay: 0.1s; }
.about-card:nth-child(3) .reveal,
.eco-card:nth-child(3),
.contact-card:nth-child(3),
.stat-card:nth-child(3) { transition-delay: 0.2s; }
.eco-card:nth-child(4),
.stat-card:nth-child(4) { transition-delay: 0.3s; }
.eco-card:nth-child(5),
.stat-card:nth-child(5) { transition-delay: 0.4s; }
.stat-card:nth-child(6) { transition-delay: 0.5s; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(6, 6, 8, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 48px;
        transition: right var(--transition);
        border-left: 1px solid var(--border);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links {
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        letter-spacing: -2px;
    }

    .section {
        padding: 80px 0;
    }

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

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

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 3.5rem;
        letter-spacing: -1px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 28px 16px;
    }

    .stat-number {
        font-size: 2.2rem;
    }
}

/* --- Utility: Smooth scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Selection */
::selection {
    background: var(--accent);
    color: #fff;
}
