/* =================================================================
   DAVE DIRTY HOMEPAGE - PROFESSIONAL PORTFOLIO
   Modern, clean design with dark theme
   ================================================================= */

:root {
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --secondary: #8b5cf6;
    --bg-dark: #0a0a0b;
    --bg-elevated: #19191c;
    --bg-card: #1f1f23;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border: #2a2a2e;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* =================================================================
   NAVIGATION
   ================================================================= */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 18px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-link.nav-admin {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 8px 16px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
}

.nav-link.nav-admin:hover {
    opacity: 0.9;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
}

.mobile-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

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

.mobile-link.mobile-admin {
    background: var(--gradient);
    text-align: center;
    font-weight: 600;
}

/* =================================================================
   HERO SECTION
   ================================================================= */

.hero {
    padding: 120px 24px 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

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

.btn {
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

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

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

/* Code Window */
.code-window {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.code-header {
    background: var(--bg-elevated);
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red { background: #ef4444; }
.code-dot.yellow { background: #f59e0b; }
.code-dot.green { background: #10b981; }

.code-content {
    padding: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.8;
}

.code-line {
    color: var(--text-secondary);
}

.keyword { color: #c678dd; }
.property { color: #61afef; }
.string { color: #98c379; }

/* =================================================================
   PROJECTS SECTION
   ================================================================= */

.projects {
    padding: 80px 24px;
    background: var(--bg-elevated);
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
    position: relative;
}

.project-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.project-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.project-card.private-project {
    border-color: rgba(139, 92, 246, 0.3);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
}

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

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

.project-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.project-icon.secure {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.project-icon.weather {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.project-icon.ai {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.project-icon.video {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.project-badge {
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-badge.secure {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.project-badge.private {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.coming-soon .project-badge {
    background: var(--text-muted);
}

.project-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background: var(--bg-elevated);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.project-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.feature {
    color: var(--text-secondary);
    font-size: 14px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.2s;
}

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

.coming-soon {
    opacity: 0.7;
}

/* =================================================================
   ABOUT SECTION
   ================================================================= */

.about {
    padding: 80px 24px;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 64px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.skill-category h4 {
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 16px;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.skill-category li:last-child {
    border-bottom: none;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
}

/* =================================================================
   EXPERIENCE SECTION - FIXED TIMELINE
   ================================================================= */

.experience {
    padding: 80px 24px;
    background: var(--bg-dark);
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.timeline-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
}

.timeline-content {
    width: 100%;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.timeline-info {
    flex: 1;
    min-width: 200px;
}

.timeline-info h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.timeline-org {
    color: var(--primary);
    font-weight: 600;
    margin: 0;
}

.timeline-date {
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
    background: var(--bg-elevated);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border);
}

.timeline-desc {
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-list {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-left: 20px;
    list-style: disc;
}

.timeline-list li {
    margin-bottom: 8px;
}

/* Certifications */
.timeline-item.certs .timeline-content h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.cert-item svg {
    color: var(--success);
    flex-shrink: 0;
}

/* =================================================================
   CONTACT SECTION
   ================================================================= */

.contact {
    padding: 80px 24px;
    background: var(--bg-elevated);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
}

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

.contact-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
}

.contact-card h3 {
    margin-bottom: 8px;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 14px;
}

.contact-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

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

/* =================================================================
   FOOTER
   ================================================================= */

.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 48px 24px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

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

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

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

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

/* =================================================================
   RESPONSIVE DESIGN
   ================================================================= */

@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-title {
        font-size: 48px;
    }

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

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

    .project-card.featured {
        grid-column: span 1;
    }

    .timeline-header {
        flex-direction: column;
        gap: 12px;
    }

    .timeline-date {
        align-self: flex-start;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

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

    .hero {
        padding: 100px 24px 60px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

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

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

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

    .project-features {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }

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

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

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

    .code-content {
        font-size: 12px;
    }
}
