/* ------------------------------
   General Page Styling
------------------------------ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background-color: #f7f8fa;

    color: #222;

    line-height: 1.7;
}


/* ------------------------------
   Navigation
------------------------------ */

nav {
    background-color: #111827;

    padding: 18px 0;

    position: sticky;

    top: 0;

    z-index: 1000;
}

.nav-container {
    max-width: 1100px;

    margin: 0 auto;

    padding: 0 30px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.logo {
    margin: 0;

    color: white;
}

.nav-links {
    list-style: none;

    display: flex;

    gap: 25px;

    margin: 0;

    padding: 0;
}

.nav-links a {
    color: #d1d5db;

    text-decoration: none;

    font-size: 0.95rem;
}

.nav-links a:hover {
    color: white;
}


/* ------------------------------
   Hero
------------------------------ */

.hero {
    min-height: 75vh;

    display: flex;

    align-items: center;

    background-color: #111827;

    color: white;
}

.hero-content {
    width: 100%;

    max-width: 1100px;

    margin: 0 auto;

    padding: 80px 30px;
}

.hero-label {
    font-size: 0.9rem;

    text-transform: uppercase;

    letter-spacing: 2px;

    color: #9ca3af;
}

.hero h1 {
    font-size: 4rem;

    margin: 10px 0 0;
}

.hero h2 {
    font-size: 1.8rem;

    margin-top: 5px;

    font-weight: normal;

    color: #d1d5db;
}

.hero-description {
    max-width: 720px;

    font-size: 1.15rem;

    margin-top: 30px;

    color: #d1d5db;
}

.hero-buttons {
    margin-top: 35px;

    display: flex;

    gap: 15px;

    flex-wrap: wrap;
}


/* ------------------------------
   Buttons
------------------------------ */

.button {
    display: inline-block;

    padding: 12px 22px;

    border-radius: 6px;

    text-decoration: none;

    font-weight: bold;

    transition: 0.2s ease;
}

.primary-button {
    background-color: white;

    color: #111827;
}

.primary-button:hover {
    opacity: 0.85;
}

.secondary-button {
    border: 1px solid #d1d5db;

    color: inherit;
}

.secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.08);
}


/* ------------------------------
   Sections
------------------------------ */

.section {
    max-width: 1100px;

    margin: 0 auto;

    padding: 80px 30px;
}

.section-heading {
    margin-bottom: 35px;
}

.section-label {
    text-transform: uppercase;

    letter-spacing: 2px;

    font-size: 0.8rem;

    color: #6b7280;

    margin-bottom: 5px;
}

.section-heading h2 {
    font-size: 2.2rem;

    margin: 0;
}

.about-content {
    max-width: 850px;
}


/* ------------------------------
   Cards
------------------------------ */

.card {
    background-color: white;

    padding: 30px;

    border-radius: 10px;

    border: 1px solid #e5e7eb;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.card h3 {
    margin-top: 0;

    font-size: 1.4rem;
}

.subheading {
    font-weight: bold;

    color: #4b5563;
}


/* ------------------------------
   Quick Highlights
------------------------------ */

.highlights-section {
    padding-top: 20px;
}

.highlight-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.highlight-card {
    background-color: white;

    padding: 25px;

    border-radius: 10px;

    border: 1px solid #e5e7eb;
}

.highlight-card h3 {
    font-size: 1.8rem;

    margin-top: 0;

    margin-bottom: 5px;
}

.highlight-card p {
    margin: 0;

    color: #6b7280;
}


/* ------------------------------
   Education
------------------------------ */

.detail-row {
    display: flex;

    flex-wrap: wrap;

    gap: 15px;

    margin-top: 20px;
}

.detail-row span {
    background-color: #f3f4f6;

    padding: 7px 12px;

    border-radius: 5px;

    font-size: 0.9rem;
}


/* ------------------------------
   Experience
------------------------------ */

.experience-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
}


/* ------------------------------
   Business
------------------------------ */

.business-card {
    max-width: 900px;
}

.business-card h4 {
    margin-top: 30px;

    font-size: 1.2rem;
}

.feature-list {
    padding-left: 22px;
}

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


/* ------------------------------
   Projects
------------------------------ */

.project-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
}

.project {
    background-color: white;

    padding: 30px;

    border-radius: 10px;

    border: 1px solid #e5e7eb;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);

    transition: transform 0.2s ease;
}

.project:hover {
    transform: translateY(-4px);
}

.project h3 {
    margin-top: 5px;

    margin-bottom: 15px;
}

.project-category {
    font-size: 0.8rem;

    text-transform: uppercase;

    letter-spacing: 1px;

    color: #6b7280;
}

.tags {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 20px;
}

.tags span {
    background-color: #f3f4f6;

    padding: 5px 9px;

    border-radius: 5px;

    font-size: 0.8rem;

    color: #4b5563;
}


/* ------------------------------
   Featured Projects
------------------------------ */

.featured-project {
    border: 1px solid #cbd5e1;

    border-left: 4px solid #111827;
}

.featured-project:hover {
    border-color: #9ca3af;

    border-left-color: #111827;
}


/* ------------------------------
   Project Buttons
------------------------------ */

.project-buttons {
    margin-top: 25px;

    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}

.project-button {
    background-color: #111827;

    color: white;

    font-size: 0.9rem;

    padding: 10px 18px;
}

.project-button:hover {
    background-color: #374151;

    color: white;
}

.business-card .project-button {
    margin-top: 15px;
}


/* ------------------------------
   Certifications
------------------------------ */

.certification-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
}

.status {
    display: inline-block;

    background-color: #f3f4f6;

    padding: 5px 10px;

    border-radius: 4px;

    font-size: 0.85rem;

    font-weight: bold;
}

.certification-grid .button {
    margin-top: 15px;
}


/* ------------------------------
   Contact
------------------------------ */

.contact-section {
    text-align: center;

    padding-bottom: 100px;
}

.contact-section .section-heading {
    margin-bottom: 15px;
}

.contact-links {
    margin-top: 30px;

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 15px;
}

.contact-section .secondary-button {
    color: #111827;

    border-color: #9ca3af;
}


/* ------------------------------
   Project Documentation
------------------------------ */

.project-intro {
    padding-bottom: 30px;
}

.project-intro-description {
    max-width: 850px;

    font-size: 1.1rem;

    color: #4b5563;
}

.documentation-section {
    padding-top: 35px;

    padding-bottom: 35px;
}

.documentation-section .card h3 {
    margin-top: 30px;

    margin-bottom: 10px;
}

.documentation-section .card h3:first-child {
    margin-top: 0;
}

.documentation-section .card ul {
    margin-top: 20px;

    margin-bottom: 20px;
}


/* ------------------------------
   Architecture Diagrams
------------------------------ */

.architecture-diagram {
    margin-top: 30px;

    padding: 20px;

    background-color: #f9fafb;

    border: 1px solid #e5e7eb;

    border-radius: 8px;

    text-align: center;
}

.architecture-diagram img {
    width: 100%;

    max-width: 850px;

    height: auto;

    border-radius: 6px;
}


/* ------------------------------
   Technical Code Blocks
------------------------------ */

.code-block {
    background-color: #111827;

    color: #e5e7eb;

    padding: 25px;

    border-radius: 8px;

    overflow-x: auto;

    margin-top: 20px;

    margin-bottom: 20px;
}

.code-block code {
    font-family:
        Consolas,
        Monaco,
        monospace;

    font-size: 0.9rem;

    line-height: 1.6;
}


/* ------------------------------
   Project Screenshots
------------------------------ */

.project-screenshot {
    margin-top: 25px;

    margin-bottom: 25px;
}

.project-screenshot img {
    width: 100%;

    max-width: 850px;

    height: auto;

    border-radius: 8px;

    border: 1px solid #e5e7eb;
}

.screenshot-caption {
    font-size: 0.9rem;

    color: #6b7280;

    margin-top: 10px;
}


/* ------------------------------
   Footer
------------------------------ */

footer {
    background-color: #111827;

    color: #9ca3af;

    text-align: center;

    padding: 30px;
}


/* ------------------------------
   Mobile / Smaller Screens
------------------------------ */

@media (max-width: 800px) {

    .nav-container {
        flex-direction: column;

        gap: 15px;
    }

    .nav-links {
        flex-wrap: wrap;

        justify-content: center;

        gap: 12px;
    }

    .hero {
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero h2 {
        font-size: 1.4rem;
    }

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

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

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

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

}


@media (max-width: 500px) {

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

    .hero h1 {
        font-size: 2.3rem;
    }

    .section {
        padding: 60px 20px;
    }

    .hero-content {
        padding: 60px 20px;
    }

    .documentation-section {
        padding-top: 25px;

        padding-bottom: 25px;
    }

    .architecture-diagram {
        padding: 10px;
    }

    .project-buttons {
        flex-direction: column;
    }

    .project-buttons .button {
        text-align: center;
    }

    .code-block {
        padding: 15px;
    }

}

/* ------------------------------
   Documentation Improvements
------------------------------ */

/* Improve code block readability */

.code-block {
    overflow-x: auto;
    max-width: 100%;
}

.code-block pre {
    margin: 0;
    white-space: pre;
    overflow-x: auto;
}

.code-block code {
    font-family: Consolas, Monaco, monospace;
    font-size: 0.9rem;
    line-height: 1.7;
}


/* Improve documentation spacing */

.documentation-section .card p {
    margin-bottom: 18px;
}

.documentation-section .card h3 {
    margin-top: 35px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.documentation-section .card h3:first-child {
    margin-top: 0;
}


/* Better mobile documentation layout */

@media (max-width: 500px) {

    .code-block {
        padding: 15px;
    }

    .code-block code {
        font-size: 0.8rem;
    }

}

/* ========================================
   BUSINESS WEBSITE LINKS
======================================== */

.business-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
    margin-bottom: 30px;
}

.business-links .button {
    text-align: center;
}

@media (max-width: 500px) {

    .business-links {
        flex-direction: column;
    }

    .business-links .button {
        width: 100%;
    }

}