/* DEVREWOH PORTFOLIO - COMPLETE PRODUCTION CSS
   Theme: Industrial Platinum (Enterprise SaaS Refinement)
*/

:root {
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-surface-dark: #0f172a;
    --color-primary: #ea580c;
    --color-primary-hover: #c2410c;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-text-light: #f1f5f9;
    --color-border: #e2e8f0;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --font-sans: "Inter", system-ui, -apple-system, sans-serif;
}

/* --- BASE & RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

/* --- HEADER & NAV --- */
.header {
    background: var(--color-surface-dark);
    height: 70px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.nav-logo {
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
}
.nav-menu {
    display: flex;
    gap: 1.5rem;
}
.nav-link {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}
.nav-link:hover {
    color: var(--color-primary);
}

/* --- HERO SECTION --- */
.hero {
    padding: 6rem 0;
    background: white;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 1rem;
}
.hero-name {
    color: var(--color-primary);
}
.hero-tagline {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-weight: 300;
}
.hero-description {
    max-width: 650px;
    margin: 0 auto 2.5rem;
    color: #475569;
    font-size: 1.1rem;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* --- BUTTONS --- */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    border: none;
    display: inline-block;
    font-size: 0.9rem;
}
.btn-primary {
    background: var(--color-primary);
    color: white;
}
.btn-primary:hover {
    background: var(--color-primary-hover);
}
.btn-secondary {
    background: var(--color-text-light);
    color: var(--color-text);
}
.btn-secondary:hover {
    background: #e2e8f0;
}

/* --- GRID & CARDS --- */
section {
    padding: 5rem 0;
}
.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 3rem;
    position: relative;
}
.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 4px;
    background: var(--color-primary);
}

.projects-grid,
.skills-grid,
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card,
.project-card,
.value-card {
    background: white;
    border: 1px solid var(--color-border);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    transition: 0.3s;
}
.card:hover,
.project-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
}

.project-title,
.card-title,
.value-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-surface-dark);
}
.project-description,
.card-content,
.value-description {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.project-tech {
    font-size: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}
.tech-label {
    font-weight: 700;
    color: var(--color-text);
}
.tech-list {
    color: var(--color-primary);
    font-family: monospace;
}

/* --- GO TINY / PRICING --- */
.compress-hero {
    background: var(--color-surface-dark);
    color: white;
    padding: 5rem 0;
    text-align: center;
}
.compress-pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: -3rem;
}

.pricing-card {
    background: white;
    border: 1px solid var(--color-border);
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}
.pricing-card-featured {
    border: 2.5px solid var(--color-primary);
    transform: scale(1.05);
    z-index: 10;
}
.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 900;
}
.pricing-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
}
.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    margin: 0.5rem 0;
}
.pricing-credits {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}
.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}
.pricing-features li {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pricing-features li::before {
    content: "✓";
    color: var(--color-primary);
    font-weight: 900;
}

/* --- PAGES --- */
.about-hero,
.contact-hero {
    background: white;
    padding: 4rem 0;
    border-bottom: 1px solid var(--color-border);
}
.page-title {
    font-size: 3rem;
    font-weight: 900;
}
.page-subtitle {
    color: var(--color-text-muted);
    font-size: 1.2rem;
}
.contact-method {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}
.contact-label {
    font-weight: 800;
    margin-right: 10px;
}
.contact-link {
    color: var(--color-primary);
    font-weight: 600;
}

/* --- FOOTER --- */
.footer {
    background: var(--color-surface-dark);
    padding: 3rem 0;
    color: #64748b;
    margin-top: auto;
    text-align: center;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    /* Make nav menu stack vertically on mobile instead of hiding */
    .nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.5rem;
    }

    .nav-menu {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .pricing-card-featured {
        transform: none;
        margin-bottom: 1rem;
    }
}

/* --- NAV DROPDOWN --- */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown > .nav-link {
    cursor: pointer;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-surface-dark);
    min-width: 160px;
    border: 1px solid #334155;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 25px rgb(0 0 0 / 0.3);
    z-index: 200;
    padding: 0.5rem 0;
}

.nav-dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-dropdown-content a:hover {
    background: #1e293b;
    color: #94a3b8;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

/* Mobile: show dropdown items inline */
@media (max-width: 768px) {
    .nav-dropdown-content {
        position: static;
        display: flex;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        gap: 1rem;
        min-width: auto;
    }

    .nav-dropdown-content a {
        padding: 0;
    }

    .nav-dropdown > .nav-link {
        display: none;
    }
}
