/* ======================
   Marick Joshua Portfolio
   Modern Dark Theme 2026
   ====================== */




:root {
    --accent: #38bdf8;
    --accent2: #818cf8;
    --bg: #0a0f1c;
    --card-bg: rgba(15, 23, 42, 0.85);
    --text: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
    font-weight: 500;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text);
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 15, 28, 0.98);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    font-size: 1.8rem;
    z-index: 1050;
}

.mobile-menu a {
    color: var(--text);
    text-decoration: none;
}

.mobile-menu a:hover {
    color: var(--accent);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a0f1c 0%, #1e2a44 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 40% 30%, rgba(56, 189, 248, 0.12), transparent 60%);
}

.hero-content {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    z-index: 2;
}

.tagline {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent);
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.8rem, 8vw, 4.2rem);
    line-height: 1.05;
    font-weight: 700;
    margin-bottom: 28px;
}

.hero h1 span {
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 48px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 16px 36px;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--accent);
    color: #0a0f1c;
}

.btn-secondary {
    background: transparent;
    border: 1.5px solid rgba(148, 163, 184, 0.6);
    color: var(--text);
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(56, 189, 248, 0.25);
}

/* Sections */
.section {
    padding: 120px 0;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 60px;
    text-align: center;
}

.section-title span {
    color: var(--accent);
}

/* Glass Card */
.glass-card {
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    backdrop-filter: blur(16px);
    padding: 40px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.3);
}

/* About */
.about-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 24px;
}

.highlight {
    border-left: 5px solid var(--accent);
    padding-left: 28px;
    color: #e2e8f0;
    font-size: 1.15rem;
}

/* Services & Tools Grid */
.services-grid,
.tools-grid,
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}

.card-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin-bottom: 24px;
}

/* Progress Bars */
.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.progress-bar {
    height: 7px;
    background: #1e2937;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 9999px;
}

/* Projects */
.project-card {
    height: 420px;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.project-card:hover {
    transform: scale(1.03);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(10, 15, 28, 0.92));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
}

/* Tech Tags */
.tech-stack,
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.tech-tag {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Contact */
.contact-box {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    padding: 64px 40px;
}

.contact-box h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
}

.social-links {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    gap: 28px;
    font-size: 1.8rem;
}

.social-links a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent);
}

/* Footer */
footer {
    text-align: center;
    padding: 60px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .section {
        padding: 80px 0;
    }
}

/* ==================== Tools Section - App Icons ==================== */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}

.app-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 24px;
    justify-content: center;
}

.app-icons img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 14px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.06);
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.app-icons img:hover {
    transform: translateY(-6px) scale(1.12);
    box-shadow: 0 12px 25px rgba(56, 189, 248, 0.25);
}

/* Tools Section - App Icons */
.app-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 24px;
    justify-content: center;
}

.app-icons img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 12px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.06);
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.app-icons img:hover {
    transform: translateY(-8px) scale(1.12);
    box-shadow: 0 15px 30px rgba(56, 189, 248, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .app-icons img {
        width: 48px;
        height: 48px;
    }
}

/* Resume Modal */
.resume-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    height: 90vh;
    background: #0f0f1a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.4rem;
}

.close-modal {
    background: none;
    border: none;
    color: #aaa;
    font-size: 28px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 8px;
}

.close-modal:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    height: calc(100% - 120px);
    padding: 0;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.modal-footer {
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 96%;
        height: 94vh;
    }
}