/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background: linear-gradient(to bottom,
            #e8f4fd 0%,
            #f5f9fc 40%,
            #fbfbfd 75%,
            #fbfbfd 100%);
    /*background-attachment: fixed; */
    min-height: 100vh;
}

/* Navigation */
.nav-bar {
    position: sticky;
    top: 0;
    background: rgba(251, 251, 253, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

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

.nav-logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1d1d1f;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 0.6;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 2rem 4rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.25rem;
    color: #6e6e73;
    max-width: 600px;
    margin: 0 auto;
}

/* Latest Project Section */
.latest-project {
    margin: 4rem 0;
}

.latest-project h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

/* Projects Header */
.projects-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
}

.projects-header h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.projects-header p {
    font-size: 1.1rem;
    color: #6e6e73;
}

/* Project Cards */
.project-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.project-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.project-card.featured {
    max-width: 800px;
    margin: 0 auto;
}

.project-image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.project-content p {
    color: #6e6e73;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.project-content .btn-primary,
.project-content .btn-secondary {
    align-self: flex-start;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #0071e3;
    color: #ffffff;
}

.btn-primary:hover {
    background: #0077ed;
}

.btn-secondary {
    background: #f5f5f7;
    color: #1d1d1f;
}

.btn-secondary:hover {
    background: #e8e8ed;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 2rem;
    color: #6e6e73;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 4rem;
}

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

    .nav-links {
        gap: 1rem;
    }

    .projects-header h1 {
        font-size: 2rem;
    }

    .project-image-placeholder {
        height: 200px;
    }

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

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .hero {
        padding: 3rem 1rem 2rem;
    }

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

    .subtitle {
        font-size: 1rem;
    }
}

.project-details {
    max-width: 1500px;
    margin: 0 auto;
    padding: 2rem;
}

.section-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.section-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1d1d1f;
    border-bottom: 2px solid #f5f5f7;
    padding-bottom: 0.5rem;
}

.section-card h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #0071e3;
}

.section-card ul {
    list-style: none;
    padding-left: 0;
}

.section-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.section-card li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #0071e3;
    font-weight: bold;
}

.highlight-box {
    background: #f5f5f7;
    border-left: 4px solid #0071e3;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.tech-tag {
    display: inline-block;
    background: #e8f4fd;
    color: #0071e3;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.next-button-container {
    text-align: center;
    margin: 3rem 0 2rem;
}

.btn-next {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #0071e3;
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
}

.btn-next:hover {
    background: #0077ed;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.3);
}

.btn-next:after {
    content: "→";
    font-size: 1.2rem;
}

/* Polaroid Gallery */
.polaroid-gallery {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 1rem;
    flex-wrap: wrap;
}

.polaroid {
    background: #ffffff;
    padding: 12px 12px 45px 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.polaroid:nth-child(odd) {
    transform: rotate(-2deg);
}

.polaroid:nth-child(even) {
    transform: rotate(2deg);
}

.polaroid img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Cert Pills */
.cert-list {
    text-align: center;
}

.desired-cert {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    background: transparent;
    color: #0071e3;
    border: 1px solid #0071e3;
}

.obtained-cert {
    background: #0071e3;
    color: #ffffff;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.cert-spacer {
    /* Set a specific horizontal margin for the space */
    margin-left: 0.4rem;
}