/* ==========================================
   BUTTONS
   ========================================== */

.hero-buttons,
.contact-buttons {
    display: flex;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 19px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    transition: .25s;
}

.button-primary {
    background: white;
    color: #08090d;
}

.button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255,255,255,.12);
}

.button-secondary {
    border: 1px solid var(--border);
    color: #e5e7eb;
}

.button-secondary:hover {
    border-color: #626878;
    transform: translateY(-3px);
}

/* ==========================================
   SECTIONS
   ========================================== */

.section {
    padding: 100px 0;
}

.section-label {
    color: #697080;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.section-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(42px, 5vw, 64px);
    line-height: .98;
    letter-spacing: -3px;
}

.section-title span {
    color: transparent;
    -webkit-text-stroke: 1px #777d8d;
}

/* ==========================================
   ABOUT
   ========================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.about-text {
    max-width: 550px;
    color: var(--text-muted);
}

.about-text p {
    margin-bottom: 20px;
}

.text-link {
    display: inline-block;
    margin-top: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #555b68;
    color: white;
    font-size: 14px;
}

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

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 55px;
}

.skill-card {
    min-height: 200px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255,255,255,.02);
    transition: .3s;
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139,92,246,.5);
    background: rgba(139,92,246,.05);
}

.skill-number {
    color: #565c6a;
    font-size: 11px;
}

.skill-card h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 21px;
    margin-top: 55px;
    margin-bottom: 8px;
}

.skill-card p {
    color: var(--text-muted);
    font-size: 12px;
}

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

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 55px;
}

.project-card {
    min-height: 340px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: .3s;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,.2);
}

.project-card.featured {
    background: linear-gradient(135deg, rgba(139,92,246,.14), var(--surface));
}

.project-top {
    display: flex;
    justify-content: space-between;
    color: #5f6574;
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.project-top span:last-child {
    color: var(--cyan);
}

.project-content {
    margin-top: auto;
}

.project-content h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 30px;
    margin-bottom: 10px;
}

.project-content p {
    color: var(--text-muted);
    font-size: 13px;
    max-width: 600px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 18px 0;
}

.tags span {
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: 5px;
    color: #b3b7c2;
    font-size: 10px;
}

.project-content > a {
    font-size: 13px;
    font-weight: 600;
}

/* ==========================================
   TIMELINE
   ========================================== */

.timeline {
    border-top: 1px solid var(--border);
}

.timeline-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
}

.timeline-item > span {
    color: #636a78;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.timeline-item h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 22px;
}

.timeline-item p {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 5px;
}

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

.contact-section {
    padding: 50px 0 100px;
}

.contact-card {
    padding: 90px 40px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: radial-gradient(circle at 50% 0%, rgba(139,92,246,.15), transparent 55%), var(--surface);
}

.contact-card .section-label {
    margin-bottom: 20px;
}

.contact-card h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(45px, 6vw, 75px);
    line-height: .98;
    letter-spacing: -4px;
    margin-bottom: 25px;
}

.contact-card h2 span {
    color: transparent;
    -webkit-text-stroke: 1px #777d8d;
}

.contact-card > p:not(.section-label) {
    max-width: 550px;
    margin: 0 auto 30px;
    color: var(--text-muted);
}

.contact-buttons {
    justify-content: center;
}

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

footer {
    border-top: 1px solid var(--border);
}

.footer-container {
    padding: 28px 0 40px;
    display: flex;
    justify-content: space-between;
    color: #626978;
    font-size: 11px;
}

/* ==========================================
   PROFILE IMAGE - NAVBAR
   ========================================== */

.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: transform .3s ease;
}

.logo-img {
    width: 42px;
    height: 42px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid var(--cyan);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.12);
    border-color: white;
    box-shadow: 0 0 18px rgba(34, 211, 238, .45);
}

.logo-link:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 4px;
}

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

.navbar.scrolled {
    background: rgba(8,9,13,.95);
}

/* ==========================================
   SCROLL REVEAL
   ========================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   PAGE LOAD
   ========================================== */

body.page-loaded {
    animation: pageFadeIn .6s ease;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==========================================
   CERTIFICATIONS
   ========================================== */

.certifications {
    position: relative;
}

.certifications .section-title span {
    color: var(--cyan);
    -webkit-text-stroke: 0;
}

.certification-card {
    display: grid;
    grid-template-columns: 44% 56%;
    align-items: center;
    gap: 0;
    margin-top: 45px;
    padding: 38px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease;
}

.certification-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34,211,238,.22);
}

.certification-image {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(34,211,238,.25);
    background: #fff;
}

.certification-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 390px;
    object-fit: contain;
    transition: transform .5s ease;
}

.certification-card:hover .certification-image img {
    transform: scale(1.015);
}

.certification-info {
    padding: 10px 35px 10px 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.certification-number {
    color: var(--cyan);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
    margin-bottom: 20px;
}

.certification-info h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
}

.certification-info h4 {
    color: #b8bdc9;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 22px;
}

.certification-info > p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.8;
    max-width: 500px;
}

.certification-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.certification-details div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.certification-details span {
    color: #626978;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.certification-details strong {
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 600;
}

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

@media (max-width: 900px) {
    .nav-menu.mobile-open {
        display: flex;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 15px 28px 25px;
        background: rgba(8,9,13,.97);
        border-bottom: 1px solid var(--border);
        z-index: 100;
    }

    .nav-menu.mobile-open a {
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
    }
}

/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

    .certification-card {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 28px;
    }

    .certification-image {
        max-width: 560px;
    }

    .certification-info {
        padding: 10px 10px 10px 10px;
    }
}

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

@media (max-width: 600px) {
    .logo-link {
        width: 44px;
        height: 44px;
    }

    .logo-img {
        width: 38px;
        height: 38px;
    }

    .section {
        padding: 75px 0;
    }

    .section-title {
        font-size: 43px;
    }

    .certification-card {
        padding: 18px;
    }

    .certification-image {
        max-width: 100%;
    }

    .certification-info {
        padding: 10px 2px;
    }

    .certification-info h3 {
        font-size: 32px;
    }

    .certification-details {
        grid-template-columns: 1fr;
        gap: 18px;
    }

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

    .projects-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-card {
        min-height: 320px;
    }

    .project-top {
        gap: 15px;
        flex-direction: column;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .contact-card {
        padding: 65px 20px;
    }

    .contact-card h2 {
        font-size: 44px;
        letter-spacing: -3px;
    }

    .contact-buttons {
        flex-wrap: wrap;
    }

    .footer-container {
        flex-direction: column;
        gap: 10px;
    }
}