/* ================================
   GLOBAL RESET & BASE
================================= */

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Poppins", system-ui, Arial, sans-serif;
    color: #111;
    position: relative;
    min-height: 100vh;

    /* Background image */
    background-image: url("backk-min.jpg"); /* make sure this exists */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Dark gradient overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.25));
    z-index: -1;
}

/* Mobile background fix */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
        background-size: cover;
    }
}

/* ================================
   NAVBAR
================================= */

.navbar {
    width: 100%;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 20;
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    color: #000;
}

.logo {
    font-size: 34px;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.03em;
}

.logo-link.active-logo .logo {
    color: #0077b5;
}

/* Main nav links */
.nav-links {
    display: flex;
    gap: 2.2rem;
    margin-left: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    position: relative;
    font-size: 0.98rem;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #0077b5;
    transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: #0077b5;
}

/* Contact nav button */
.contact-nav-btn {
    padding: 10px 20px;
    background: linear-gradient(90deg, #111, #0077b5, #111);
    background-size: 300% 100%;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease;
    margin-left: auto;
    animation: contactGradient 4s ease infinite;
}

.contact-nav-btn:hover {
    transform: translateY(-2px);
}

@keyframes contactGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Hamburger (mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 22px;
    height: 2px;
    background: #111;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hamburger active state */
.nav-toggle.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ================================
   SECTION LAYOUT
================================= */

.section {
    min-height: 100vh;
    padding: 110px 8vw 80px;
    max-width: 1200px;
    margin: auto;
    scroll-margin-top: 90px;
    color: #111;
}

.section h2 {
    margin-bottom: 24px;
}

/* HERO */
.hero {
    padding-top: 80px;
}

.hero-layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.hero-left-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.profile-pic {
    width: 230px;
    height: 230px;
    border-radius: 25px;
    object-fit: cover;
    border: 4px solid #111;
    margin-bottom: 12px;
}

/* HERO ICONS */
.hero-icons {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

.hero-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-icon-img {
    animation: floatLoop 3s ease-in-out infinite;
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 12px;
    padding: 4px;
    background: none;
    box-shadow: none;
    filter: brightness(0) invert(1);
    transition: transform 0.2s ease, filter 0.2s ease;
}

@keyframes floatLoop {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0);
    }
}

.hero-icon-link:hover .hero-icon-img {
    transform: translateY(-2px);
}

.hero-icon-resume:hover .hero-icon-img {
    filter: invert(36%) sepia(96%) saturate(2323%) hue-rotate(193deg);
}

.hero-icon-github:hover .hero-icon-img {
    filter: invert(36%) sepia(96%) saturate(2323%) hue-rotate(273deg);
}

.hero-icon-linkedin:hover .hero-icon-img {
    filter: invert(29%) sepia(94%) saturate(2083%) hue-rotate(191deg);
}

/* CARD */
.card {
    background: rgba(255, 255, 255, 0.65);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(6px);
}

/* ABOUT BOX */
.hero-about {
    flex: 1;
    transition: transform 0.5s ease, box-shadow 1.5s ease;
}

.hero-about:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.18);
}

.about-text {
    font-size: 1.02rem;
    line-height: 1.6;
    margin-bottom: 14px;
}

/* ================================
   TITLES
================================= */

.projects-title,
.skills-title,
.contact-title {
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    margin: 0 0 24px;
    color: #fff;
    text-transform: uppercase;
}

.edu-title {
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    margin: 0 0 24px;
    color: #fff;
    text-transform: uppercase;
}

.ethics-title {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    margin: 0 0 28px;
    color: #fff;
    text-transform: uppercase;
}

/* ================================
   SKILLS
================================= */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
}

.skill-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
    align-items: center;
    margin-top: 10px;
}

.skill-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.25s ease;
}

.skill-icon:hover {
    transform: scale(1.15);
}

.skill-card ul {
    padding-left: 18px;
    margin: 8px 0 0;
}

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

.project-card + .project-card {
    margin-top: 16px;
}

.project-meta {
    margin-bottom: 8px;
}

.pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.06);
    margin-right: 6px;
}

.project-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 30px;
}

.project-link-wrapper:hover .project-card {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    transition: 0.25s ease;
}

/* ================================
   ATHLETICS / ACADEMICS
================================= */

.edu-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
}

.edu-column h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.edu-list {
    margin-top: 14px;
    padding-left: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.edu-text {
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* CAROUSEL */
.carousel {
    position: relative;
    width: 100%;
    padding-top: 62%;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
    background: #000;
}

.carousel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.carousel-img.active {
    opacity: 1;
}

/* ================================
   ETHICS
================================= */

.ethics-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    gap: 20px;
    align-items: flex-start;
}

.ethics-main h3,
.ethics-paper h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.ethics-main p,
.ethics-paper p {
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.ethics-scripture {
    margin-top: 16px;
    padding: 12px 14px;
    border-left: 4px solid #111;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
}

.ethics-verse {
    margin: 0;
    font-style: italic;
    font-size: 0.95rem;
}

.ethics-verse-ref {
    margin: 6px 0 0;
    font-size: 0.9rem;
    font-weight: 600;
}

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

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

.contact-intro {
    margin-bottom: 20px;
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.8);
}

.contact-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    color: #111;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.contact-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    background: #111;
    color: #fff;
}

.contact-icon {
    width: 22px;
    height: 22px;
    transition: 0.25s ease;
}

/* OUTLOOK – stay normal on hover */
.contact-chip:hover img.contact-icon.outlook {
    filter: none;
    opacity: 0.9;
}

/* LINKEDIN – LinkedIn blue on hover */
.contact-chip:hover img.contact-icon.linkedin {
    filter: brightness(0) saturate(100%) invert(29%) sepia(94%) saturate(2083%) hue-rotate(191deg);
}

/* ================================
   BUTTONS & ANIMATIONS
================================= */

.btn-rounded {
    display: inline-block;
    padding: 10px 22px;
    background: #111;
    color: #fff;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-rounded:hover {
    background: #222;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.fade-in {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.footer {
    background: rgba(255, 255, 255, 0.55);
    padding: 6px 0;
    font-size: 0.75rem;
    text-align: center;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 40px;
}

/* ================================
   MOBILE
================================= */

@media (max-width: 800px) {
    .navbar {
        padding: 12px 16px;
        gap: 10px;
    }

    .logo {
        font-size: 24px;
    }

    /* Show hamburger on mobile */
    .nav-toggle {
        display: flex;
        margin-left: auto;
    }

    /* Turn nav-links into dropdown */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        flex-direction: column;
        gap: 0.8rem;
        padding: 12px 16px;
        background: rgba(255, 255, 255, 0.97);
        border-bottom: 1px solid #eee;

        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }

    .nav-links.open {
        max-height: 260px;
    }

    .nav-links a {
        font-size: 0.95rem;
    }

    .section {
        padding: 90px 16px 60px;
        max-width: 100%;
        margin: 0 auto;
    }

    .hero {
        padding-top: 80px;
    }

    .hero-layout {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .hero-left-block {
        align-items: center;
    }

    .profile-pic {
        width: 200px;
        height: 200px;
    }

    .hero-icons {
        justify-content: center;
        gap: 14px;
    }

    .hero-about {
        width: 100%;
    }

    .ethics-layout,
    .edu-layout {
        grid-template-columns: 1fr;
    }

    .contact-methods {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-title {
        font-size: clamp(2.2rem, 8vw, 3.2rem);
    }
}

/* ================================
   EXTRA OVERRIDES FROM YOUR ORIGINAL
================================= */

/* Reduce padding for every section EXCEPT the hero */
.section {
    padding-top: 5px !important;
}

/* Hero keeps its big spacing */
#hero.section {
    padding-top: 100px !important;
}
