/* =========================================================

   PORTFOLIO PAGE STYLES

   Shared variables and base styles are in css/style.css

   ========================================================= */

/* -------------------------

   HOMEPAGE

------------------------- */

.hero {

    min-height: calc(100vh - 80px);

    display: flex;

    align-items: center;

    position: relative;

    overflow: hidden;

    padding: 80px 7%;

}

.hero-watermark {

    position: absolute;

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);

    font-size: clamp(65px, 13vw, 190px);

    font-weight: 900;

    white-space: nowrap;

    color: rgba(255, 255, 255, 0.025);

    pointer-events: none;

    user-select: none;

}

.hero-content {

    position: relative;

    z-index: 2;

    max-width: 850px;

}

.hero-label {

    color: var(--orange);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 4px;

    margin-bottom: 25px;

}

.hero h1 {

    font-size: clamp(42px, 7vw, 88px);

    line-height: 1.08;

    font-weight: 900;

    letter-spacing: -3px;

}

.hero-description {

    max-width: 650px;

    color: var(--muted);

    font-size: 17px;

    margin: 30px 0;

}

.hero-actions {

    display: flex;

    gap: 18px;

    flex-wrap: wrap;

    margin-top: 35px;

}

.hero-bottom {

    display: flex;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 15px;

    margin-top: 100px;

    padding-top: 20px;

    border-top: 1px solid var(--border);

    color: var(--muted);

    font-size: 11px;

    letter-spacing: 2px;

}

/* Homepage typewriter */

.typing-heading {

    min-height: 2.16em;

}

.typing-cursor {

    display: inline-block;

    color: var(--orange);

    margin-left: 4px;

    animation: blinkCursor 0.7s infinite;

}

@keyframes blinkCursor {

    50% { opacity: 0; }

}

#typingText {

    white-space: pre-line;

    transition: color 0.4s ease;

}

#typingText.orange,

.typing-orange {

    color: var(--orange);

}

#typingText.green,

.typing-green {

    color: var(--green);

}

/* -------------------------

   SHARED INNER PAGE HERO

------------------------- */

.inner-hero {

    padding: 110px 0 90px;

    background: var(--bg-secondary);

    border-bottom: 1px solid var(--border);

}

.inner-hero .section-title {

    margin-top: 22px;

}

/* -------------------------

   ABOUT PAGE

------------------------- */

.about-layout {

    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 80px;

}

.about-text p {

    color: var(--muted);

    font-size: 16px;

    margin-bottom: 22px;

}

.about-typing {

    min-height: 2.4em;

}

#aboutLineOne,

#aboutLineOne .bounce-letter {

    color: var(--orange);

}

#aboutLineTwo,

#aboutLineTwo .bounce-letter {

    color: var(--green) !important;

}

.bounce-letter {

    display: inline-block;

    animation: letterBounce 0.45s ease both;

}

@keyframes letterBounce {

    0% {

        opacity: 0;

        transform: translateY(18px) scale(0.75);

    }

    60% {

        opacity: 1;

        transform: translateY(-7px) scale(1.12);

    }

    80% {

        transform: translateY(3px) scale(0.96);

    }

    100% {

        opacity: 1;

        transform: translateY(0) scale(1);

    }

}

.about-interests {

    background: var(--bg-secondary);

}

.interest-list {

    display: grid;

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

    gap: 20px;

    margin-top: 25px;

}

.interest-item {

    display: grid;

    grid-template-columns: 45px minmax(0, 1fr) 25px;

    align-items: center;

    gap: 15px;

    min-height: 115px;

    padding: 22px;

    background: var(--bg);

    border: 1px solid var(--border);

    border-left: 4px solid var(--orange);

    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;

}

.interest-item:nth-child(even) {

    border-left-color: var(--blue);

}

.interest-item:hover {

    border-color: var(--green);

    transform: translateY(-5px);

    background: #10243a;

}

.interest-number {

    color: var(--orange);

    font-size: 14px;

    font-weight: 800;

}

.interest-item h3 {

    font-size: 19px;

    margin-bottom: 5px;

}

.interest-item p {

    color: var(--muted);

    font-size: 14px;

}

.interest-arrow {

    color: var(--green);

    font-size: 20px;

}

.philosophy {

    text-align: center;

}

.philosophy h2 {

    max-width: 950px;

    margin: 30px auto;

    font-size: clamp(30px, 5vw, 58px);

    line-height: 1.25;

}

.philosophy h2 span {

    color: var(--green);

}

.philosophy .section-description {

    margin: auto;

}

.about-next {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

}

/* -------------------------

   ENGINEERING PAGE

------------------------- */

.engineering-hero {

    position: relative;

    overflow: hidden;

}

.engineering-typing {

    min-height: 2.4em;

}

#engineeringTyping {

    color: var(--orange);

}

/* The rotating letters alternate orange and green as they appear. */

#engineeringTyping .rotate-letter:nth-child(odd) {

    color: var(--orange);

}

#engineeringTyping .rotate-letter:nth-child(even) {

    color: var(--green);

}

.engineering-intro {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: start;

}

.engineering-intro-text p {

    color: var(--muted);

    margin-bottom: 20px;

    font-size: 16px;

}

.engineering-areas,

.engineering-future {

    background: var(--bg-secondary);

}

.engineering-grid {

    display: grid;

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

    gap: 20px;

    margin-top: 45px;

}

.engineering-card {

    position: relative;

    padding: 35px;

    min-height: 260px;

    background: var(--bg);

    border: 1px solid var(--border);

    border-left: 3px solid var(--orange);

    transition: transform 0.3s ease, border-color 0.3s ease;

}

.engineering-card:nth-child(even) {

    border-left-color: var(--blue);

}

.engineering-card:hover {

    transform: translateY(-5px);

    border-color: var(--green);

}

.engineering-number {

    color: var(--muted);

    font-size: 12px;

    letter-spacing: 2px;

}

.engineering-symbol {

    font-size: 32px;

    margin: 20px 0;

}

.engineering-card h3 {

    font-size: 23px;

    margin-bottom: 12px;

}

.engineering-card p {

    color: var(--muted);

    font-size: 14px;

}

.practical-section {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: center;

}

.engineering-link {

    margin-top: 30px;

}

.print-button {

    margin-top: 30px;

    cursor: pointer;

}

/* Engineering rotating-letter animation */

.rotate-letter {

    display: inline-block;

    animation: rotateIntoPlace 0.5s ease both;

    transform-origin: bottom center;

}

@keyframes rotateIntoPlace {

    0% {

        opacity: 0;

        transform: rotateX(90deg) translateY(15px);

    }

    70% {

        opacity: 1;

        transform: rotateX(-15deg) translateY(-3px);

    }

    100% {

        opacity: 1;

        transform: rotateX(0deg) translateY(0);

    }

}

/* -------------------------

   SOFTWARE PAGE

------------------------- */

.software-hero {

    position: relative;

    overflow: hidden;

}

.software-typing {

    min-height: 1.35em;

}

/* The software typing word can be given either class by its script. */

#softwareTyping {

    color: var(--orange);

    transition: color 0.35s ease;

}

#softwareTyping.orange,

#softwareTyping .typing-orange {

    color: var(--orange);

}

#softwareTyping.green,

#softwareTyping .typing-green {

    color: var(--green);

}

.software-intro {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: start;

}

.software-intro p {

    color: var(--muted);

    font-size: 16px;

    margin-bottom: 20px;

}

.software-areas {

    background: var(--bg-secondary);

}

.software-areas .software-grid {

    display: grid;

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

    gap: 22px;

    margin-top: 45px;

}

.software-areas .software-card {

    display: block;

    position: relative;

    min-height: 250px;

    padding: 32px;

    background: var(--bg);

    border: 1px solid var(--border);

    border-left: 4px solid var(--orange);

    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;

}

.software-areas .software-card:nth-child(2) {

    border-left-color: var(--blue);

}

.software-areas .software-card:nth-child(3) {

    border-left-color: var(--green);

}

.software-areas .software-card:nth-child(4) {

    border-left-color: var(--orange);

}

.software-areas .software-card:hover {

    transform: translateY(-6px);

    border-color: var(--green);

    background: #10243a;

}

.software-card h3 {

    color: var(--white);

    font-size: 22px;

    margin: 15px 0 10px;

}

.software-card p {

    color: var(--muted);

    font-size: 14px;

}

.software-number {

    color: var(--muted);

    font-size: 12px;

    letter-spacing: 2px;

}

.software-symbol {

    color: var(--green);

    font-size: 32px;

    margin: 20px 0;

}

.software-philosophy {

    text-align: center;

}

.software-philosophy h2 {

    max-width: 950px;

    margin: 25px auto;

    font-size: clamp(30px, 5vw, 56px);

    line-height: 1.2;

}

.software-philosophy h2 span {

    color: var(--green);

}

.software-philosophy .section-description {

    margin: auto;

}

/* -------------------------

   TECHNOLOGY LOGO INFINITE SLIDER

   HTML must contain two identical .technology-group elements

   inside .technology-track for a seamless loop.

------------------------- */

.technology-slider {

    width: 100%;

    overflow: hidden;

    position: relative;

    margin-top: 45px;

    padding: 25px 0;

}

.technology-track {

    display: flex;

    align-items: center;

    width: max-content;

    animation: technologyScroll 30s linear infinite;

    will-change: transform;

}

.technology-group {

    display: flex;

    flex: 0 0 auto;

    align-items: center;

    gap: 65px;

    padding-right: 65px;

}

.technology-logo {

    display: flex;

    flex: 0 0 100px;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 12px;

    text-align: center;

}

.technology-logo i {

    font-size: 48px;

}

.technology-logo span {

    color: var(--muted);

    font-size: 13px;

    font-weight: 600;

}

@keyframes technologyScroll {

    from { transform: translateX(0); }

    to { transform: translateX(-50%); }

}

.technology-slider:hover .technology-track {

    animation-play-state: paused;

}

/* -------------------------

   PRINT STYLES

------------------------- */

@media print {

    body {

        background: #fff !important;

        color: #000 !important;

    }

    .site-header,

    .site-footer,

    .print-button,

    .engineering-link,

    .software-link {

        display: none !important;

    }

    .page-section,

    .inner-hero {

        background: #fff !important;

        color: #000 !important;

        padding: 25px 0;

    }

    .section-title,

    .engineering-card h3,

    .software-card h3,

    .interest-item h3 {

        color: #000 !important;

    }

    .section-description,

    .engineering-card p,

    .engineering-intro-text p,

    .software-card p,

    .software-intro p,

    .about-text p {

        color: #333 !important;

    }

    .engineering-card,

    .software-card,

    .interest-item {

        background: #fff !important;

        border: 1px solid #aaa !important;

        break-inside: avoid;

    }

    .engineering-grid,

    .software-grid {

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

    }

    .technology-slider {

        display: none !important;

    }

    * {

        print-color-adjust: exact;

        -webkit-print-color-adjust: exact;

    }

}

/* -------------------------

   RESPONSIVE LAYOUTS

------------------------- */

@media (max-width: 750px) {

    .inner-hero {

        padding: 75px 0;

    }

    .about-layout,

    .engineering-intro,

    .practical-section,

    .software-intro {

        grid-template-columns: 1fr;

        gap: 25px;

    }

    .interest-item {

        grid-template-columns: 35px minmax(0, 1fr) 20px;

        gap: 10px;

        padding: 16px;

    }

    .interest-item h3 {

        font-size: 17px;

    }

    .about-next {

        align-items: flex-start;

        flex-direction: column;

    }

    .engineering-grid {

        grid-template-columns: 1fr;

    }

    .engineering-card {

        min-height: auto;

    }

}

@media (max-width: 650px) {

    .software-areas .software-grid {

        grid-template-columns: 1fr;

    }

    .software-areas .software-card {

        min-height: auto;

    }

}

@media (max-width: 600px) {

    .hero {

        padding: 65px 7%;

    }

    .hero h1 {

        letter-spacing: -1.5px;

    }

    .hero-description {

        font-size: 15px;

    }

    .hero-bottom {

        margin-top: 65px;

    }

    .interest-list {

        grid-template-columns: 1fr;

    }

    .technology-group {

        gap: 40px;

        padding-right: 40px;

    }

    .technology-logo {

        flex-basis: 85px;

    }

    .technology-logo i {

        font-size: 40px;

    }

}

@media (prefers-reduced-motion: reduce) {

    .bounce-letter,

    .rotate-letter {

        animation: none !important;

    }

    .technology-track {

        animation: none !important;

    }

    .typing-cursor {

        animation: none !important;

    }

}

/* =================================

   EDUCATION PAGE

================================= */

.education-hero {

    position: relative;

    overflow: hidden;

}

.education-heading {

    min-height: 2.4em;

}

#educationTyping {

    color: var(--green);

}

.education-current,

.education-beyond {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: start;

}

.education-current-text h3 {

    font-size: 25px;

    color: var(--orange);

    margin-bottom: 20px;

}

.education-current-text p,

.education-beyond-text {

    color: var(--muted);

    margin-bottom: 20px;

}

.education-areas {

    background: var(--bg-secondary);

}

.education-grid {

    display: grid;

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

    gap: 22px;

    margin-top: 45px;

}

.education-card {

    min-height: 250px;

    padding: 32px;

    background: var(--bg);

    border: 1px solid var(--border);

    border-left: 4px solid var(--orange);

    transition: 0.3s ease;

}

.education-card:nth-child(2) {

    border-left-color: var(--blue);

}

.education-card:nth-child(3) {

    border-left-color: var(--green);

}

.education-card:nth-child(4) {

    border-left-color: var(--orange);

}

.education-card:hover {

    transform: translateY(-5px);

    border-color: var(--green);

    background: #10243a;

}

.education-number {

    color: var(--muted);

    font-size: 12px;

    letter-spacing: 2px;

}

.education-symbol {

    font-size: 34px;

    color: var(--green);

    margin: 20px 0;

}

.education-card h3 {

    font-size: 22px;

    margin-bottom: 12px;

}

.education-card p {

    color: var(--muted);

    font-size: 14px;

}

.education-ending {

    background: var(--bg-secondary);

    text-align: center;

}

.education-ending h2 {

    max-width: 950px;

    margin: 25px auto;

    font-size: clamp(30px, 5vw, 55px);

    line-height: 1.25;

}

.education-ending h2 span {

    color: var(--green);

}

/* EDUCATION RESPONSIVE */

@media (max-width: 750px) {

    .education-current,

    .education-beyond {

        grid-template-columns: 1fr;

        gap: 25px;

    }

    .education-grid {

        grid-template-columns: 1fr;

    }

    .education-card {

        min-height: auto;

    }

}

/* EDUCATION PRINT */

@media print {

    .education-card {

        background: white !important;

        color: black !important;

        border: 1px solid #aaa !important;

        break-inside: avoid;

    }

    .education-card p,

    .education-current-text p,

    .education-beyond-text {

        color: #333 !important;

    }

}

/* ==============================

   PROJECTS PAGE

============================== */

.projects-hero {

    min-height: 55vh;

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 100px 0 60px;

}

#projectsTyping {

    color: var(--orange);

    font-size: clamp(2.5rem, 6vw, 5rem);

    font-weight: 800;

    transition: color 0.3s ease;

}

#projectsTyping.orange {

    color: var(--orange);

}

#projectsTyping.green {

    color: var(--green);

}

.projects-intro {

    max-width: 850px;

    margin: 0 auto 55px;

    color: var(--muted);

    line-height: 1.8;

}

.projects-grid {

    display: grid;

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

    gap: 25px;

    margin: 45px 0 80px;

}

.project-card {

    position: relative;

    padding: 30px;

    background: var(--bg-secondary);

    border: 1px solid var(--border);

    border-left: 3px solid var(--orange);

    transition: border-color 0.3s ease, transform 0.3s ease;

}

.project-card:hover {

    border-left-color: var(--green);

    transform: translateY(-5px);

}

.project-number {

    color: var(--green);

    font-size: 0.9rem;

    font-weight: 700;

    margin-bottom: 20px;

}

.project-card h3 {

    color: var(--white);

    font-size: 1.5rem;

    margin-bottom: 15px;

}

.project-card p {

    color: var(--muted);

    line-height: 1.7;

    margin-bottom: 20px;

}

.project-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin: 20px 0;

}

.project-tags span {

    color: var(--green);

    border: 1px solid rgba(41, 184, 121, 0.35);

    padding: 7px 12px;

    font-size: 0.8rem;

}

.project-card a {

    display: inline-block;

    color: var(--orange);

    margin-top: 12px;

    font-weight: 600;

}

.project-card a:hover {

    color: var(--green);

}

.projects-closing {

    padding: 60px 0;

    border-top: 1px solid var(--border);

}

.projects-closing h2 {

    color: var(--orange);

    margin-bottom: 20px;

}

.projects-closing p {

    color: var(--muted);

    max-width: 750px;

    line-height: 1.8;

}

/* Projects page responsive layout */

@media (max-width: 768px) {

    .projects-grid {

        grid-template-columns: 1fr;

    }

    .project-card {

        padding: 24px;

    }

    .projects-hero {

        min-height: 45vh;

    }

}

/* ==============================

   SKILLS PAGE

============================== */

#skillsTyping {

    color: var(--orange);

    font-size: clamp(2.5rem, 6vw, 5rem);

    font-weight: 800;

    transition: color 0.3s ease;

}

#skillsTyping.orange {

    color: var(--orange);

}

#skillsTyping.green {

    color: var(--green);

}

.skills-grid {

    display: grid;

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

    gap: 24px;

    margin-top: 40px;

}

.skill-card {

    padding: 30px;

    background: var(--bg-secondary);

    border: 1px solid var(--border);

    border-left: 3px solid var(--blue);

    transition: transform 0.3s ease, border-color 0.3s ease;

}

.skill-card:hover {

    transform: translateY(-5px);

    border-left-color: var(--green);

}

.skill-number {

    display: block;

    color: var(--orange);

    font-weight: 700;

    margin-bottom: 18px;

}

.skill-card h3 {

    color: var(--white);

    font-size: 1.35rem;

    margin-bottom: 14px;

}

.skill-card p {

    color: var(--muted);

    line-height: 1.8;

}

.skills-tools {

    display: flex;

    flex-wrap: wrap;

    gap: 14px;

    margin-top: 35px;

}

.skills-tools span {

    padding: 12px 18px;

    color: var(--green);

    border: 1px solid rgba(41, 184, 121, 0.4);

    background: var(--bg-secondary);

    transition: color 0.3s ease, border-color 0.3s ease;

}

.skills-tools span:hover {

    color: var(--orange);

    border-color: var(--orange);

}

@media (max-width: 768px) {

    .skills-grid {

        grid-template-columns: 1fr;

    }

    .skill-card {

        padding: 24px;

    }

}


/* SKILLS PAGE: TECHNOLOGY LOGO IMAGES */
.technology-logo img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.technology-logo img:hover {
    opacity: 1;
    transform: translateY(-4px);
}

@media (max-width: 768px) {
    .technology-logo img {
        width: 40px;
        height: 40px;
    }
}

/* =================================
   SKILLS PAGE FIXES
   Navigation and technology logos
================================= */

/* Match the navigation used on the other portfolio pages. */
.site-header nav {
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--orange);
}

/* Keep the skills cards in a consistent two-column layout. */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.skill-card {
    min-width: 0;
    padding: 30px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-left: 3px solid var(--blue);
}

/* Technology logo slider: images are direct children of each group. */
.technology-slider {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 40px;
    padding: 22px 0;
}

.technology-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 0;
    animation: technologyScroll 32s linear infinite;
    will-change: transform;
}

.technology-group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-start;
    gap: 48px;
    padding: 0 48px 0 0;
}

.tool-item {
    display: flex;
    flex: 0 0 92px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.tool-item img {
    display: block;
    width: 38px !important;
    height: 38px !important;
    max-width: 38px;
    max-height: 38px;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.tool-item span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.25;
    font-weight: 600;
    white-space: nowrap;
}

.tool-item:hover img {
    opacity: 1;
    transform: translateY(-3px);
}

.technology-group img {
    display: block;
    flex: 0 0 44px;
    width: 44px !important;
    min-width: 44px;
    max-width: 44px;
    height: 44px !important;
    min-height: 44px;
    max-height: 44px;
    object-fit: contain;
    opacity: 0.88;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.technology-group img:hover {
    opacity: 1;
    transform: translateY(-4px);
}

.technology-slider:hover .technology-track {
    animation-play-state: paused;
}

@media (max-width: 900px) {
    .site-header {
        position: relative;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 22px 7%;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        z-index: 200;
    }

    .nav-links.open {
        display: flex;
    }
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-card {
        padding: 24px;
    }

    .technology-group {
        gap: 34px;
        padding-right: 34px;
    }

    .tool-item {
        flex-basis: 82px;
    }

    .tool-item img {
        width: 34px !important;
        height: 34px !important;
        max-width: 34px;
        max-height: 34px;
    }

    .tool-item span {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .technology-track {
        animation: none;
    }
}

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

.contact-hero {
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 0 60px;
}

.contact-hero h1 {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 900;
    color: var(--orange);
}

.contact-hero h1 span {
    color: var(--green);
}

.contact-email-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 35px;
}

.contact-email,
.contact-social-card {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-left: 3px solid var(--orange);
    text-decoration: none;
    transition: 0.3s ease;
}

.contact-email:hover,
.contact-social-card:hover {
    transform: translateY(-5px);
    border-color: var(--green);
}

.contact-email img,
.contact-social-card img {
    display: block;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    object-fit: contain;
}

.contact-email div,
.contact-social-card div {
    min-width: 0;
    flex: 1;
}

.contact-email h3,
.contact-social-card h3 {
    color: var(--white);
    font-size: 17px;
    margin-bottom: 5px;
}

.contact-email p,
.contact-social-card p {
    color: var(--muted);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.contact-email > span,
.contact-social-card > span {
    color: var(--green);
    font-size: 22px;
}

.contact-social-section {
    background: var(--bg-secondary);
}

.contact-social-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 40px;
}

.contact-social-card:nth-child(even) {
    border-left-color: var(--blue);
}

.contact-ending {
    text-align: center;
}

.contact-ending h2 {
    max-width: 850px;
    margin: 25px auto;
    font-size: clamp(30px, 5vw, 55px);
    line-height: 1.2;
}

.contact-ending h2 span {
    color: var(--green);
}

.contact-ending .section-description {
    margin: 0 auto 30px;
}

@media (max-width: 650px) {
    .contact-email-list,
    .contact-social-grid {
        grid-template-columns: 1fr;
    }

    .contact-email,
    .contact-social-card {
        padding: 20px;
    }
}
.contact-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* =====================================
   RESUME & CV PAGE
===================================== */

.resume-page {
    padding-bottom: 70px;
}

.resume-hero {
    padding: 100px 0 85px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.resume-hero h1 {
    font-size: clamp(42px, 7vw, 76px);
    font-weight: 900;
    margin: 20px 0;
}

.resume-hero h1 span {
    color: var(--orange);
}

.resume-hero p:not(.section-label) {
    max-width: 650px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 28px;
}

.resume-document {
    max-width: 950px;
    padding-top: 55px;
}

.resume-section {
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
    break-inside: avoid;
}

.resume-section h2 {
    color: var(--orange);
    font-size: 22px;
    margin-bottom: 22px;
}

.resume-section h3 {
    color: var(--white);
    font-size: 17px;
    margin-bottom: 8px;
}

.resume-section p,
.resume-section li {
    color: var(--muted);
    line-height: 1.8;
    font-size: 15px;
}

.resume-section p {
    margin-bottom: 12px;
}

.resume-subtitle {
    color: var(--green) !important;
    font-weight: 600;
}

.resume-entry {
    margin-bottom: 28px;
}

.resume-entry:last-child {
    margin-bottom: 0;
}

.resume-entry a,
.resume-contact a {
    color: var(--blue);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.resume-entry a:hover,
.resume-contact a:hover {
    color: var(--orange);
}

.resume-skills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;
}

.resume-skills ul {
    padding-left: 20px;
}

.resume-skills li {
    margin-bottom: 7px;
}

.resume-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.resume-tools span {
    padding: 10px 15px;
    color: var(--green);
    border: 1px solid rgba(41, 184, 121, 0.4);
    background: var(--bg-secondary);
    font-size: 14px;
}

.resume-contact p {
    margin-bottom: 10px;
}

@media (max-width: 650px) {
    .resume-hero {
        padding: 75px 0 60px;
    }

    .resume-skills {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .resume-section {
        padding: 25px 0;
    }
}

/* =====================================
   RESUME PRINT STYLES
===================================== */

@media print {

    @page {
        size: A4;
        margin: 15mm;
    }

    body {
        background: #ffffff !important;
        color: #222222 !important;
        font-family: Arial, sans-serif !important;
        font-size: 10.5pt;
    }

    .site-header,
    .site-footer,
    .resume-hero .section-label,
    .resume-hero button,
    .menu-toggle {
        display: none !important;
    }

    .resume-page {
        padding: 0 !important;
    }

    .resume-hero {
        background: #ffffff !important;
        border: none !important;
        padding: 0 0 18px !important;
    }

    .resume-hero h1 {
        color: #111111 !important;
        font-size: 27pt !important;
        margin: 0 0 8px !important;
    }

    .resume-hero h1 span {
        color: #111111 !important;
    }

    .resume-hero p:not(.section-label) {
        color: #333333 !important;
        font-size: 10pt;
        margin: 0 !important;
    }

    .resume-document {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .resume-section {
        padding: 13px 0 !important;
        border-bottom: 1px solid #cccccc !important;
        break-inside: auto;
    }

    .resume-section h2 {
        color: #111111 !important;
        font-size: 13pt !important;
        margin-bottom: 9px !important;
        border-bottom: 2px solid #333333;
        padding-bottom: 4px;
    }

    .resume-section h3 {
        color: #222222 !important;
        font-size: 10.5pt !important;
    }

    .resume-section p,
    .resume-section li {
        color: #333333 !important;
        font-size: 9.5pt !important;
        line-height: 1.45 !important;
    }

    .resume-subtitle {
        color: #333333 !important;
    }

    .resume-entry {
        margin-bottom: 13px !important;
        break-inside: avoid;
    }

    .resume-tools {
        gap: 6px;
    }

    .resume-tools span {
        background: #ffffff !important;
        color: #222222 !important;
        border: 1px solid #aaaaaa !important;
        padding: 5px 8px !important;
        font-size: 9pt !important;
    }

    .resume-entry a,
    .resume-contact a {
        color: #222222 !important;
        text-decoration: none !important;
    }

    .resume-section,
    .resume-entry,
    .resume-skills,
    .resume-contact {
        break-inside: avoid;
    }

    a {
        color: #222222 !important;
    }

}
/* Hide project links when printing resume */
@media print {
    .resume-page .view-project,
    .resume-page .project-link,
    .resume-page a[href*="project"] {
        display: none !important;
    }
}
/* =========================================
   RESUME PRINT STYLING
========================================= */

@media print {

    /* Hide project links only within resume entries */
    .resume-entry > a {
        display: none !important;
    }

}
/* =========================================
   RESUME PRINT CUSTOMIZATION
========================================= */

.resume-print-header {
    display: none;
}

@media print {

    /* Hide webpage resume title and print button */
    .resume-hero {
        display: none !important;
    }

    /* Show name and contacts in printed resume */
    .resume-print-header {
        display: block !important;
        margin-bottom: 25px;
        text-align: center;
    }

    .resume-print-header h1 {
        font-size: 26px;
        margin-bottom: 8px;
        color: #000 !important;
    }

    .resume-print-contacts {
        font-size: 10px;
        line-height: 1.7;
    }

    .resume-print-contacts a {
        color: #000 !important;
        text-decoration: none !important;
    }

    /* Hide View Project links */
    .resume-entry > a {
        display: none !important;
    }

    /* Clean print appearance */
    .resume-page,
    .resume-document,
    .resume-section,
    .resume-entry {
        color: #000 !important;
        background: #fff !important;
    }

    .resume-section h2,
    .resume-entry h3,
    .resume-subtitle,
    .resume-section p,
    .resume-section li,
    .resume-tools span {
        color: #000 !important;
    }

    .resume-section {
        border-color: #ccc !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
    }
}
@media print {
    body .print-hide {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}
@media print {
    #high-school-entry {
        display: none !important;
    }
}
/* Resume tool icons */
.resume-tool {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.tool-icon {
    font-size: 22px;
}

/* Print: names only */
@media print {

    .tool-icon {
        display: none !important;
    }

    .resume-tool {
        display: inline-block !important;
        margin-right: 12px;
    }
}
/* ==============================
   RESUME TECHNOLOGY ICON LOOP
============================== */

.resume-tools-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.resume-tools-track {
    display: flex;
    width: max-content;
    animation: resume-tools-scroll 25s linear infinite;
}

.resume-tools-group {
    display: flex;
    align-items: center;
    gap: 55px;
    padding-right: 55px;
    flex-shrink: 0;
}

.resume-tools-group i {
    font-size: 42px;
    cursor: default;
    transition: transform 0.3s ease;
}

.resume-tools-group i:hover {
    transform: scale(1.2);
}

/* Infinite horizontal animation */
@keyframes resume-tools-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Print names instead of icons */
.resume-tools-print {
    display: none;
}

/* Pause animation when hovered */
.resume-tools-slider:hover .resume-tools-track {
    animation-play-state: paused;
}

/* PRINT */
@media print {

    #high-school-entry {
        display: none !important;
    }

    .resume-tools-slider {
        display: none !important;
    }

    .resume-tools-print {
        display: flex !important;
        flex-wrap: wrap;
        gap: 8px 15px;
    }

    .resume-tools-print span {
        display: inline-block;
        color: #000 !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
    }

    .resume-print-header {
        display: block !important;
    }

    .resume-hero {
        display: none !important;
    }

    .resume-entry > a {
        display: none !important;
    }

}
@media print {

    /* Contacts at the top */
    .resume-print-header {
        display: block !important;
        text-align: center;
        margin-bottom: 20px;
    }

    .resume-print-contacts {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px 18px;
        font-size: 10pt;
    }

    .resume-print-contacts a {
        color: black !important;
        text-decoration: none !important;
    }

    /* Hide bottom contact section */
    .resume-section:has(.resume-contact) {
        display: none !important;
    }

}
