@font-face {
    font-family: 'JetBrains Mono';
    src: url('assets/fonts/JetBrainsMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('assets/fonts/JetBrainsMono-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('assets/fonts/JetBrainsMono-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('assets/fonts/JetBrainsMono-ExtraBold.ttf') format('truetype');
    font-weight: 900;
    /* Mapping ExtraBold (800) to 900 for our usage */
    font-style: normal;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('assets/fonts/JetBrainsMono-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('assets/fonts/JetBrainsMono-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}

:root {
    font-family: 'JetBrains Mono', monospace;
    font-variant-ligatures: none;
    line-height: 1.5;
    font-weight: 400;

    color-scheme: dark;
    color: rgba(255, 255, 255, 0.87);
    background-color: #2b2b2b;
    /* Black background to match design */

    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
}

.app-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* --- Header Styles --- */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: transparent;
    color: white;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1280px;
    box-sizing: border-box;
    z-index: 1000;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.header.scrolled {
    background-color: rgba(43, 43, 43, 0.95);
    backdrop-filter: blur(10px);
}

.header-logo img {
    height: 70px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav ul a {
    color: white;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.header-nav ul a:hover,
.header-nav ul a.active {
    color: #29922A;
    font-weight: 600;
}

.header-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.hire-me-btn {
    background-color: transparent;
    color: #29922A;
    border: 2px solid #29922A;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
    line-height: normal;
    font-size: 1rem;
}

.hire-me-btn:hover {
    background-color: #29922A;
    color: white;
}

/* Desktop: hide mobile button, show desktop button */
.hire-me-btn-mobile {
    display: none;
}

.hire-me-btn-desktop {
    display: block;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.bar.open:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.bar.open:nth-child(2) {
    opacity: 0;
}

.bar.open:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .header-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #2b2b2b;
        display: flex;
        flex-direction: column;
        /* Stack items vertically */
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        gap: 3rem;
        /* Space between ul and button */
    }

    .header-nav.open {
        transform: translateX(0);
    }

    .header-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .header-nav ul a {
        font-size: 1.5rem;
    }

    .hire-me-btn-mobile {
        display: block;
        /* Show mobile button */
        font-size: 1.2rem;
        padding: 0.8rem 2rem;
    }

    .hire-me-btn-desktop {
        display: none;
        /* Hide desktop button */
    }

    .header-buttons {
        display: none;
    }
}

/* --- Home Styles --- */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('assets/images/hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(43, 43, 43, 0.8);
    /* Dark overlay for better text readability */
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/images/ns.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    width: 100%;
    max-width: 1280px;
    padding: 0 2rem;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    z-index: 3;
}

.hero-content h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1;
}

.hero-content h1 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 4.7rem;
    font-weight: 900;
    margin: 0;
    color: white;
    line-height: 1;
}

.hero-content .role {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    font-style: italic;
    color: #29922A;
    margin: 0 0 3.5rem 0;
    line-height: 1;
    transform: skewX(-8deg);
}

.about-btn {
    background-color: transparent;
    color: white;
    border: 2px solid #29922A;
    border-radius: 50%;
    padding: 0.7rem 0.7rem;
    border-radius: 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
    line-height: normal;
    font-size: 1rem;
}

.about-btn:hover {
    background-color: #29922A;
    color: white;
}


.social-links {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 100;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: block;
}

.social-links a img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    /* Make SVG white */
    transition: filter 0.3s ease;
}

.social-links a:hover img {
    filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(95%) contrast(119%);
    /* Green color #29922A */
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content .role {
        font-size: 2rem;
        margin: 0 0 2rem 0;
    }

    .social-links {
        right: 1rem;
        bottom: 1rem;
        gap: 0.8rem;
    }

    .social-links a img {
        width: 20px;
        height: 20px;
    }
}

/* --- About Section Styles --- */

.about-section {
    width: 100%;
    padding: 5rem 2rem;
    box-sizing: border-box;
    background-color: #2b2b2b;
    display: flex;
    justify-content: center;
}

.about-wrapper {
    max-width: 1280px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-container {
    width: 100%;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* Left Column */
.about-left {
    flex: 0 0 250px;
    /* Fixed width for profile column */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-img-container {
    width: 140px;
    overflow: hidden;
    margin-bottom: 1rem;

    /* Optional border */
}

.profile-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    font-style: italic;
    line-height: 0.87;
    color: #29922A;
    margin: 0;

}

/* Right Column */
.about-right {
    flex: 1;
}

.section-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem;
    font-weight: 500;
    margin: 0 0 2rem 0;
    color: white;
    text-align: center;
}

.green-text {
    color: #29922A;
}

.green-text-bold {
    color: #29922A;
    font-weight: 900;
}

.small-text {
    font-size: 0.7em;
    /* Relative to parent font size */
}


.bio-text {
    margin-bottom: 3rem;
}

.bio-text p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Skills Grid */
.skills-grid {
    width: 100%;
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.skill-item {
    position: relative;
    overflow: hidden;
    background-color: #353535;
    padding: 0.8rem 1rem 0.8rem 1.5rem;
    border-radius: 6px 15px 15px 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: white;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
}

.skill-item:hover {
    background-color: #333333;
}

.green-bar {
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: #29922A;
}

/* Responsive */
@media (max-width: 900px) {
    .about-section {
        padding: 3rem 1rem;
    }

    .about-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .about-left {
        flex: initial;
        width: 100%;
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 2rem;
    }

    .profile-title {
        margin-top: 1rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.8rem;
    }

    .skill-item {
        font-size: 0.85rem;
        padding: 0.7rem 0.8rem 0.7rem 1.2rem;
    }
}

/* --- Resume Section Styles --- */

.resume-section {
    width: 100%;
    padding: 5rem 2rem;
    box-sizing: border-box;
    background-color: #2b2b2b;
    /* Same bg as about section */
    display: flex;
    justify-content: center;
}

.resume-wrapper {
    max-width: 1280px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.resume-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns for work experience */
    gap: 1.5rem;
}

.education-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns for education */
    width: 100%;
    /* Full width */
    gap: 1.5rem;
}

.education-grid .card-content {
    padding-left: 0;
}

.education-grid .resume-card h3 {
    font-size: 1.25rem;
    /* Larger title */
    margin-bottom: 0.3rem;
}

.education-grid .resume-card .date {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 1rem;
}

.education-grid .resume-card .company {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.education-grid .resume-card p {
    font-size: 0.9rem;
    color: #bbb;
}

.resume-card {
    background-color: #353535;
    border-radius: 14px;
    padding: 2rem 1.5rem 2rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resume-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.green-bar-card {
    position: absolute;
    left: -4px;
    /* Move slightly out of the card */
    top: 2rem;
    /* Align with the top text */
    height: 3.5rem;
    /* Height to cover Title and Date */
    width: 6px;
    background-color: #29922A;
    border-radius: 7px 0px 0px 7px;
    /* Fully rounded */

}

.card-content {
    padding-left: 1rem;
    /* Space from the green bar */
}

.resume-card h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.resume-card .date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #888;
    display: block;
    margin-bottom: 0.5rem;
}

.resume-card .company {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: #29922A;
    margin: 0 0 1rem 0;
}

.resume-card p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    /* Smaller font size */
    color: #fff;
    line-height: 1.5;
    /* Slightly tighter line height */
    margin: 0;
    text-align: justify;
    /* Justify text */
}

/* Responsive for Resume */
/* Responsive for Resume */
@media (max-width: 1024px) {
    .resume-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .resume-section {
        padding: 3rem 1rem;
    }

    .resume-grid,
    .education-grid {
        grid-template-columns: 1fr;
    }

    .resume-card {
        padding: 1.5rem 1rem 1.5rem 1.5rem;
    }
}

/* --- Services Section Styles --- */
.services-section {
    width: 100%;
    padding: 5rem 2rem;
    box-sizing: border-box;
    background-color: #2b2b2b;
    display: flex;
    justify-content: center;
}

.services-wrapper {
    max-width: 1280px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.services-header-content {
    width: 100%;
    margin-bottom: 3rem;
    text-align: left;
}

.section-title-left {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem;
    font-weight: 500;
    font-style: italic;
    margin: 0 0 1.5rem 0;
    color: white;
}

.services-description {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: #fff;
    line-height: 1.6;
    max-width: 100%;
    margin: 0;
    text-align: justify
}

.services-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.service-card {
    background-color: #353535;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-self: start;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.green-bar-service {
    position: absolute;
    left: -4px;
    /* Move slightly out of the card */
    top: 2rem;
    /* Align with the top text */
    height: 3.5rem;
    /* Height to cover Title and Date */
    width: 7px;
    background-color: #29922A;
    border-radius: 7px 0px 0px 7px;
    /* Fully rounded */

}

.service-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-left: 1rem;
    /* Space for green bar */
}

.service-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    /* Green filter */
}

.read-more {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: #29922A;
    border: 1px solid #29922A;
    border-radius: 1rem;
    padding: 0.4rem 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.read-more:hover {
    background-color: #29922A;
    color: white;
}

.service-card h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: #29922A;
    margin: 0;
    padding-left: 1rem;
}

.service-description {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #fff;
    line-height: 1.6;
    margin: 0;
    padding-left: 1rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

.service-card.active .service-description {
    max-height: 500px;
    opacity: 1;
    margin-top: 1rem;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 3rem 1rem;
    }

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

    .section-title-left {
        font-size: 1.8rem;
        text-align: center;
        /* Center title on mobile */
    }

    .services-description {
        text-align: left;
        /* Left align description for better readability */
        font-size: 0.95rem;
    }

    .services-header-content {
        text-align: center;
        /* Center header content container */
        margin-bottom: 2rem;
    }

    .service-card {
        padding: 1.2rem;
    }
}

/* --- Certifications Styles --- */
.certifications-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: #29922A;
    text-align: center;
    margin: 5rem 0 3rem 0;
}

.certifications-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.certification-item {
    background-color: #353535;
    border-radius: 0px 8px 8px 0px;
    padding: 0.7rem 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: #fff;
    /* overflow: hidden; Removed to allow bar outside */
}

.green-bar-cert {
    position: absolute;
    left: -4px;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: #29922A;
    border-radius: 8px 0 0 8px;
}

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

    .certifications-title {
        font-size: 2rem;
        margin: 3rem 0 2rem 0;
    }
}

/* --- Contact Section Styles --- */
.contact-section {
    width: 100%;
    padding: 5rem 2rem;
    box-sizing: border-box;
    background-color: #2b2b2b;
    display: flex;
    justify-content: center;
}

.contact-wrapper {
    max-width: 1000px;
    /* Slightly narrower for this section */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Stats Bar */
.stats-bar {
    width: 100%;
    background-color: #353535;
    border-radius: 12px;
    padding: 3rem 2rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 5rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
    object-fit: contain;
    /* Green filter */
}

.stat-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: #29922A;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: white;
}

/* Contact Content */
.contact-content {
    text-align: center;
}

.contact-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.contact-detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: #29922A;
    margin: 0 0 0.5rem 0;
    font-weight: 400;
}

.contact-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: white;
    margin: 0;
    text-decoration: none;
}

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

@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 1rem;
    }

    .stats-bar {
        flex-direction: column;
        gap: 2.5rem;
        padding: 2rem 1.5rem;
        margin-bottom: 3rem;
    }

    .stat-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 1.5rem;
    }

    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .contact-title {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .contact-details {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-detail-item {
        width: 100%;
    }
}