*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-decoration: none;
}

:root {
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --emerald-800: #2d6a4f;
    --emerald-600: #059669;
    --emerald-400: #34d399;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
}

h1, h2, h3 {
    color: var(--gray-900);
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
}

.boldtext {
    font-weight: 600;
}

/* general bages*/
.badge {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid var(--gray-300);
    background-color: rgba(255, 255, 255, 0.8);
}

/*general buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

/* ------ ------ ------  ------ */
/* ------ HERO SECTION ------ */ 
/* ------ ------ ------ ------ */

.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--white);
}

/* hero background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/hero-background.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.85;
}


/* hero container */
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* hero content */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 42rem;
    background-color: rgb(255, 255, 255, 0.4);
    backdrop-filter: blur(10px) contrast(1.8) opacity(75%);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 20px 20px -5px rgb(0, 0, 0, 0.4) ;
}

/* hero headers */
.hero h1 {
    margin-bottom: 0.75rem;
    font-size: 3rem;
}

.hero h2 {
    margin-bottom: 0.75rem;
    padding-bottom: 0;
    text-align: unset;
    color: var(--gray-700);
    font-size: 1.62rem;
}

/* hero paragraph */
.hero p {
    font-size: 1.125rem;
    color: var(--gray-700);
    margin-bottom: 1rem;
}

/* hero card badges */
.badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}


/* hero buttons */
.btn-group {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background-color: var(--gray-900);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--gray-700);
    color: var(--white);
}

.btn-outline {
    background-color: var(--gray-50);
    border: 1px solid var(--gray-600);
    color: var(--gray-700);
}

.btn-outline:hover {
    background: var(--emerald-400);
    color: var(--white);
    border: 1px solid var(--gray-300);
    font-weight: 600;
}


/* ------ ------ ------  ------ */
/* ------ ABOUT SECTION ------ */ 
/* ------ ------ ------ ------ */

.about {
    padding: 2.5rem 0;
    background-color: var(--gray-50);
}

.about-content {
    max-width: 48rem;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 1.85rem;
    font-weight: 700;
    margin: 0;
    padding: 0;
    text-align: start;
}

.about-content p {
    margin: 0.75rem 1rem;
  }

.contact-info {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-top: 1.5rem;
    margin-inline: 0.75rem;
}

.about-divider {
    display: block;
    width: 100px;
    height: 0.2rem;
    margin: 1.35rem 1rem 0 1rem;
    background-color: var(--emerald-600);
}


/* ------ ------ ------  ------ */
/* ------ SKILLS SECTION ------ */ 
/* ------ ------ ------ ------ */
.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.skills {
    padding: 2.5rem 0;
    position: relative;
}

.skills-category {
    margin-bottom: 1.5rem;
}

.skills-category h3 {
    font-size: 1rem;
    color: var(--emerald-600);
    margin-bottom: 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--emerald-600);
}


.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    max-width: 64rem;
    margin: 0 auto;
}

.skills-card {
    background-color: #fefefe;
    border: 1px solid var(--gray-100);
    border-radius: 0.5rem;
    padding: 1rem;
    transition: box-shadow 0.3s;
}

.skills-card:hover {
    box-shadow: 0 1px 4px -1px rgba(0, 0, 0, 0.1);
}

.skills-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.skills-card svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--emerald-600);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.skills-card h4 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-900);
    margin: 0.125rem;
}

.skills-card p {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-bottom: 0;
}

/* ------ ------ ------  ------ ------*/
/* ------ TECH & TOOLS SECTION ------ */ 
/* ------ ------ ------ ------ ------*/

.techtools {
    padding: 2.5rem 0;
    background-color: var(--white);
    border-bottom: 2px solid var(--gray-100);
}

.techtools-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.techtools-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 1.675rem;
    text-align: center;
}

.techtools-icons {
    width: 4.5rem; 
    display: flex;
    flex-direction: column;
    align-items: center;
    /* filter: invert(38%) sepia(90%) saturate(200%) hue-rotate(113deg) brightness(90%) contrast(130%);
    transition: all 0.2s ease-in-out; */
}

.techtools-icons img {
    width: 3rem;
    height: auto;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.techtools-icons p {
    text-align: center;
    font-weight: 600;
    color: var(--gray-900);
    filter: none;
    margin: 0;
    font-size: 0.875rem; 
    line-height: 1.25;
    word-wrap: break-word; 
}

/* .techtools-icons:hover {
    color: var(--emerald-600);
    transform: translateY(-1px);
    transition: 0.2s;
    filter: none;
} */


/* ------ ------ ------  ------ */
/* ------ PROJECTS SECTION ---- */ 
/* ------ ------ ------ ------ */

.projects {
    padding: 2.5rem 0;
    background-color: var(--gray-50);
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.project-card {
    background-color: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s, transform 0.3s;
    overflow: hidden;
    display: flex;flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px) translateX(1px);
}

.project-link {
    display: block;
    color: inherit;
}

.project-image {
    height: 10rem;
    background: linear-gradient(135deg, var(--emerald-400) 0%, var(--emerald-800) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 1rem;
    margin-bottom: auto;
}

.project-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}
.project-title h3 {
    font-size: 1rem;
}

.project-title svg {
    width: 1.4rem;
    height: 1.4rem;
    color: var(--emerald-600);
}

.project-content > p {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 0.75rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.85rem;
}

.project-url {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 1rem;
    margin-top: auto;
  }

.project-github, .project-livedemo {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-top: 0.5rem;
}

.project-github svg, .project-livedemo svg {
    width: 0.875rem;
    height: 0.875rem;
    color: var(--emerald-600);
}

.view-all {
    text-align: center;
    margin-top: 2rem;
}

/* ------ ------ ------  ------ ------ ------ */
/* ------ PUBLICATIONS SECTION ------ ------ */ 
/* ------ ------ ------ ------ ------ ------*/

.publications {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 0;
}

.article-card {
    padding: 0 1rem;
    margin-bottom: 4rem;
    transition: 0.8s;
}

.article-link {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    transition: 0.4s;
}

.article-link:hover {
    box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
    transition: 0.4s;
}

.publication-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-right: 1.3rem;
}

.publication-content h3 {
    margin-bottom: 1rem;
}

.publication-content p {
    margin-bottom: 1.5rem;
}

.readmore {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-50);
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    background-color: var(--emerald-600);
    width: fit-content;
    padding: 0.25rem 0.25rem 0.25rem 0.75rem;
    border-radius: 0.25rem;
    border: 1px solid var(--emerald-800);
}

.article-link:hover .readmore {
    transform: translateX(4px);
    background-color: var(--emerald-400);
}

.readmore svg {
    transition: transform 0.2s ease;
    margin-left: 0.25rem;
    position: relative;
    top: 3px;
}

.article-link:hover .readmore svg {
    transform: translateX(2px);
}

.article-thumbnail {
    aspect-ratio: 16 / 9;
    width: 100%;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    background-image: url('https://miro.medium.com/v2/resize:fit:4800/format:webp/1*c2UsAfWmT5tkrZ_ZD_ehRg.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

}


/* ------ ------ ------  ------ */
/* ------ CONTACT SECTION ---- */ 
/* ------ ------ ------ ------ */

.contact {
    margin: 2rem;
    height: 40vh;
}

.contact-container {
    max-width: 33rem;
    margin: 0 auto;
    text-align: center;
}

.contact-divider {
    display: block;
    height: 0.15rem;
    background-color: var(--gray-300);
    width: 42%;
    margin: 2rem auto;
}


.contact-content h2 {
    margin-bottom: 0.75rem;
}

.contact-container > p {
    margin-bottom: 1.5rem;
    color: var(--gray-600);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.4rem;
}

.social-links a {
    color: var(--gray-600);
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--emerald-600);
}

.social-links svg {
    width: 1.6rem;
    height: 1.6rem;
}


/* ------ ------ ------  ------ */
/* ------ FOOTER ------ ------ */ 
/* ------ ------ ------ ------ */

footer {
    padding: 1.5rem 0;
    background-color: var(--gray-900);
    color: var(--gray-300);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 0.75rem;
}

.footer-content a {
    font-weight: 600;
}

footer nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    list-style: none;
}

footer nav a {
    transition: color 0.2s;
}

footer nav a:hover {
    color: var(--emerald-400);
}


/* ------  ------  ------  --------- */
/* ------  RESPONSIVE STYLE  ------ */ 
/* ------  ------  ------  ------  */

/* ------------------------ */
/* -------- hero -------- */

@media (max-width: 768px) {
    .hero-container {
        margin-bottom: 1rem;
    }
    .hero-bg {
        margin-bottom: -4rem;
    }
}

/* ------------------------- */
/* -------- about -------- */

@media (max-width: 799px) {
    .about-content h2 {
        margin: 0.75rem 1rem;
    }
}


/* ------------------------- */
/* -------- skills -------- */

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

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

/* --------------------------- */
/* -------- projects -------- */

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

@media (max-width: 570px) {
    .projects-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 2rem;
    }
}

/* ------------------------------- */
/* -------- publications -------- */

@media (max-width: 880px) {
    .article-card {
        transition: 1.8s;
        padding: 0 3.5rem;
    }
    .article-link {
        grid-template-columns: repeat(1, 1fr);
        order: -1
    }
    .article-thumbnail {
        order: -1;
        aspect-ratio: 2;
        width: 100%;
    }

    .publication-content {
        margin-right: 0;
    }
    

    .publication-content h3 {
        font-size: 1.1rem;
    }
    
    .publication-content p {
        font-size: 0.95rem;
    }
    
    .readmore {
        font-size: 0.95rem;
    }

}

@media (max-width: 570px) {
    .article-card {
        transition: 1.8s;
        padding: 0 2rem;
    }
    .article-link {
        padding: 1rem;
        gap: 0.75rem;
    }
    .publication-content h3 {
        font-size: 1rem;
    }
    .article-thumbnail {
        order: -1;
        aspect-ratio: 2;
        width: 100%;
    }

}


/* -------------------------- */
/* -------- contact -------- */
@media (max-width: 500px) {
    .contact-content > p {
        margin-inline: 2rem;
    }
}


/* ------------------------- */
/* -------- footer -------- */

@media (max-width: 680px) {
    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        text-align: center;
    }
  }
