/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Montserrat', sans-serif;
}

:root {
    --bg-color: #1f242d;
    --second-bg-color: #323946;
    --text-color: #fff;
    --main-color: #2BAE66;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.header.sticky {
    border-bottom: 0.1rem solid rgba(0, 0, 0, 0.2);
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: default;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    transition: 0.3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}

/* Home Section */
.home {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content--canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content h3 span {
    color: var(--main-color);
}

.home-content p {
    font-size: 1.6rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--second-bg-color);
    font-weight: 600;
    letter-spacing: 0.1rem;
    transition: 0.5s;
}

.btn:hover {
    box-shadow: none;
}

/* About Section */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--second-bg-color);
}

.about-img img {
    width: 35vw;
}

.heading {
    text-align: center;
    font-size: 4.5rem;
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 2.6rem;
    margin: 1rem 0;
}

.about-content p {
    font-size: 1.6rem;
    word-spacing: 0.2rem;
    margin: 2rem 0 3rem;
}

/* Projects (Portfolio) Section */
.portfolio {
    padding-bottom: 7rem;
}

.portfolio-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.portfolio-box {
    position: relative;
    flex: 1 1 30rem;
    overflow: hidden;
    border-radius: 0.5rem;
}

.portfolio-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 174, 102, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    transition: 0.5s;
}

.portfolio-box:hover .portfolio-layer {
    opacity: 1;
}

.portfolio-layer h4 {
    font-size: 2rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.portfolio-layer p {
    font-size: 1.4rem;
    color: #fff;
}

.portfolio-layer a {
    margin-top: 1.5rem;
    font-size: 2rem;
    color: #fff;
}

/* Awards Section */
.award-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    gap: 2rem;
}

.award-card {
    background: var(--second-bg-color);
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
}

.award-card img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.award-card h3 {
    font-size: 2rem;
    margin: 0.5rem 0 1rem;
}

.award-card p {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* Publications Section */
.publication-item {
    margin: 2rem 0;
}

.publication-item h3 {
    font-size: 1.8rem;
    font-weight: 600;
}

.publication-item h3 span {
    font-size: 1.6rem;
    font-weight: 500;
}

.publication-item p {
    font-size: 1.6rem;
    margin: 0.5rem 0 0.5rem 1rem;
}

/* Media (News) Section */
.news-all {
    padding: 2rem 0;
}

.all-news {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.all-news-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--second-bg-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.all-news-card img {
    width: 12rem;
    height: 8rem;
    object-fit: cover;
    border-radius: 0.5rem;
}

.card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact {
    min-height: auto;
}

.input-box {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.field {
    flex: 1 1 40rem;
    position: relative;
}

.field input,
.field textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: var(--second-bg-color);
    color: var(--text-color);
    border-radius: 0.5rem;
    font-size: 1.4rem;
}

.field .error-txt {
    font-size: 1.2rem;
    color: #f00;
    position: absolute;
    bottom: -1.8rem;
    left: 0;
    display: none;
}

.textarea-field {
    flex: 1 1 100%;
}

/* Footer */
.footer {
    padding: 2rem 5%;
    background: var(--bg-color);
    text-align: center;
}

.footer-text p {
    font-size: 1.4rem;
    color: var(--text-color);
}

.footer-iconTop a {
    font-size: 3rem;
    color: var(--main-color);
}

/* Responsive */
@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .about {
        flex-direction: column;
        padding: 5rem 3%;
    }

    .about-img img {
        width: 100%;
        margin-bottom: 3rem;
    }

    .portfolio-container {
        flex-direction: column;
    }

    .all-news-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .all-news-card img {
        width: 100%;
        height: auto;
    }
        /* publications section */
        .publications {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: var(--second-bg-color);
        }
    
        .pub-links {
            display: flex;
            gap: 6rem;
            flex-wrap: wrap;
            margin-top: 4rem;
        }
        /* publications section */
.publications {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--second-bg-color);
}

.pub-links {
  width: 100%;
  display: flex;
  justify-content: space-evenly;   /* left & right */
  gap: 3rem;
  margin-top: 4rem;
  flex-wrap: wrap;                 /* stack on small screens */
}

.pub-item {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--main-color);
  border: .2rem solid var(--main-color);
  padding: 1.2rem 3rem;
  border-radius: 2rem;
  text-align: center;
  transition: background .3s, box-shadow .3s;
}

.pub-item:hover {
  background: var(--main-color);
  color: var(--second-bg-color);
  box-shadow: 0 0 1rem var(--main-color);
}

    
    
}