/* ========= GLOBAL ========= */
body {
    margin: 0;
    padding: 0;
    font-family: system-ui, sans-serif;
    background: white;
}

/* ========= NAVIGATION ========= */
.nav {
    display: flex;
    align-items: center;
    padding: 15px 40px;
    background: #ffffff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 14px rgba(0,0,0,0.08);
    justify-content: space-between;
}

/* Avatar */
.avatar {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.25s ease;
    object-fit: cover;
    box-shadow: 0 0 0 rgba(0, 181, 255, 0.0);
}

.avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 0 40px rgba(4, 214, 230, 0.8);
}

/* ========== NAV LINKS ========== */
.links {
    margin-left: 40px;
}

.links a {
    margin-right: 25px;
    text-decoration: none;
    color: #333;
    font-size: 1.05rem;
    font-weight: 600;
}

.links a:hover {
    color: black;
    text-decoration: underline;
}

/* ========= SOCIAL ICONS ========= */
.social-icons {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.social-icons img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    padding: 4px;
    background: white;
    object-fit: contain;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 0 6px rgba(0,0,0,0.15);
}

.social-icons img:hover {
    transform: scale(1.18);
    box-shadow: 0 0 10px rgba(0, 181, 255, 0.45);
}

/* ========= HOME HERO ========= */
.hero {
    text-align: center;
    margin-top: 60px;
}

.slider {
    position: relative;
    height: 40px;
    width: 100%;
    max-width: 720px;
    overflow: hidden;
    margin: 0 auto;
}

.slider span {
    position: absolute;
    width: 100%;
    text-align: center;
    opacity: 0;
    animation: slide 9s infinite;
    font-size: 1.3rem;
    font-weight: 600;
    left: 0;
    white-space: nowrap;
}

.slider span:nth-child(1) { animation-delay: 0s; }
.slider span:nth-child(2) { animation-delay: 3s; }
.slider span:nth-child(3) { animation-delay: 6s; }

@keyframes slide {
    0% { transform: translateY(20px); opacity: 0; }
    10% { transform: translateY(0); opacity: 1; }
    30% { opacity: 1; }
    40% { transform: translateY(-20px); opacity: 0; }
    100% { opacity: 0; }
}

.intro {
    max-width: 650px;
    margin: 20px auto;
    font-size: 1.15rem;
    color: #444;
    line-height: 1.6;
}

/* ========= CONTACT OVERLAY SECTION ========= */
.photo-contact-section {
    position: relative;
    margin: 35px auto;
    max-width: 1100px;
    aspect-ratio: 16 / 6;
    height: auto;
    background-image: url('/static/img/realphoto.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(0,0,0,0.25);
}

.photo-contact-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.25));
}

.photo-overlay {
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    color: white;
    max-width: 450px;
}

/* Yellow CTA Button */
.contact-btn-on-photo {
    background: #F6C230;
    color: #1b1b1b;
    padding: 12px 26px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: 0.25s ease;
}

.contact-btn-on-photo:hover {
    background: #FFD85A;
    transform: translateY(-2px);
}

/* ========= AWARDS PAGE ========= */
.awards-hero {
    text-align: left;
    max-width: 1100px;
    margin: 40px auto 20px;
    padding-left: 10px;
}

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

.awards-hero p {
    font-size: 1.15rem;
    color: #444;
}

.awards-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 25px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 10px 20px 10px;
    scroll-snap-type: x mandatory;
    white-space: nowrap;
}

.award-dark-card {
    background: linear-gradient(135deg, #0b1224, #151d33);
    border-radius: 14px;
    padding: 26px 30px;
    color: white;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.08);
    min-width: 520px;
    max-width: 520px;
    display: inline-block;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ========= BUY ME A COFFEE ========= */
.coffee-small-section {
    background: #0C1020;
    text-align: center;
    padding: 25px 0;
}

.coffee-small-btn {
    background: #F6C230;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 700;
    color: #1b1b1b;
    text-decoration: none;
}

/* ========= FOOTER ========= */
.footer {
    background: #0C1020;
    color: #D7D7D7;
    text-align: center;
    padding: 20px;
    font-size: 0.95rem;
}

/* ========= CONTACT PAGE ========= */
/* ========= CONTACT PAGE (Modern Full-Width Layout) ========= */

.contact-page {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 25px;
}

.contact-page h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-align: left;
}

.contact-subtitle {
    text-align: left;
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 35px;
}

/* Success message */
.contact-success {
    width: 100%;
    background: #e7f7ec;
    border: 1px solid #b2e0c0;
    color: #155724;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 25px;
}

/* Full-width modern card */
.contact-card {
    width: 100%;
    padding: 40px 32px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);

    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Mobile responsive */
@media (max-width: 900px) {
    .contact-card {
        grid-template-columns: 1fr;
        padding: 30px 22px;
    }
}

/* Form layout */
.form-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.form-row label {
    font-weight: 600;
    margin-bottom: 6px;
}

.form-row input,
.form-row textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #ccc;
    padding: 14px 16px;
    font-size: 1rem;
    background: white;
}

.contact-submit {
    padding: 14px 24px;
    border-radius: 12px;
    background: #2A5CFF;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 8px;
}

.contact-submit:hover {
    background: #3B6BFF;
}

/* Right-side block (email) */
.contact-side-note {
    font-size: 1rem;
    font-weight: 600;
    color: #444;
    padding-top: 10px;
}

.contact-email-link {
    color: #2A5CFF;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    margin-top: 8px;
}

.contact-email-link:hover {
    text-decoration: underline;
}


/* ========= BLOG PAGE ========= */
/* ====================== BLOG PAGE FIX ======================= */

/* Blog hero */
.blog-hero {
    max-width: 1100px;
    margin: 40px auto 20px;
    padding: 0 12px;
    text-align: left;
}

.blog-hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.blog-hero p {
    font-size: 1.15rem;
    color: #555;
}

/* Blog list */
.blog-list {
    max-width: 1100px;
    margin: 0 auto 300px !important;  /* removes big white space */
    padding: 0 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

/* Tablet — 2 cards */
@media (max-width: 900px) {
    .blog-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile — 1 card */
@media (max-width: 600px) {
    .blog-list {
        grid-template-columns: 1fr;
    }
}

/* Blog card */
.blog-card {
    background: #ffffff;
    padding: 24px 28px;
    border-radius: 16px;
    border: 1px solid #eee;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: 0.25s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    background: #fafaff;
}

.blog-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.blog-card h3 a {
    text-decoration: none;
    color: #0B1020;
}

.blog-card .date {
    margin-top: 4px;
    color: #777;
    font-size: 0.9rem;
}

.blog-card .read-link {
    margin-top: auto;
    font-weight: 700;
    color: #2A5CFF;
    text-decoration: none;
}

.blog-card .read-link:hover {
    text-decoration: underline;
}


/* ========= PORTFOLIO PAGE ========= */
.project-grid {
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

/* ========= FINAL CERTIFICATIONS GRID (NEW) ========= */
/* ================= CERTIFICATIONS ================= */
.cert-section {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 15px;
}

.cert-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #0B1020;
}

/* FINAL GRID — Desktop 3 columns, Tablet 2, Mobile 1 */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);   /* Desktop */
    gap: 25px;
}

/* Tablet */
@media (max-width: 900px) {
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .cert-grid {
        grid-template-columns: 1fr;
    }
}

/* Card */
.cert-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    transition: 0.25s ease;
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.cert-card h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.cert-card p {
    color: #555;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.cert-btn {
    display: inline-block;
    background: #0B5CFF;
    color: white;
    padding: 8px 14px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.cert-btn:hover {
    background: #467fff;
}

