/* ================ Imports ==================== */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Major+Mono+Display&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bungee+Outline&display=swap');

/* ================ Variables ================= */
:root {
    --color-dark: #181918;
    --color-dark-gray: #5e5e5e;
    --color-skyblue: #3ca0d3;
    --color-green: #d6ff40;
    --color-orange: #fd6033;
    --color-red: #ff4d4d;
    --color-silver: #c7c7c7;
    --color-white: #fff;
    --primary-font-family: 'Space Mono', monospace;
    --heading-font-family: 'Major Mono Display', monospace;
}

/* ============== Reset styles ====================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    background-color: var(--color-dark);
    color: var(--color-silver);
    font-family: var(--primary-font-family);
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.1) 1px, transparent 1px),
        radial-gradient(circle, #000 3px, transparent 3px); /* Bigger dots */
    background-size: 150px 150px; /* Adjust the size of the squares */
    background-position: 
        0 0, 
        0 0, 
        75px 75px; /* Offset the dots to center within the squares */
}

/* ================ Utility Styles =============== */
/* ----- Layout ----- */
.container {
    width: 90%;
    position: relative;
    max-width: 90%;
    margin: 0 auto;
}

.nav .hamburger-menu {
    display: block;
    width: 50px;
    background-color: var(--color-silver);
    height: 1.5px;
    position: relative;
    cursor: pointer;
}

.hamburger-menu::after,
.hamburger-menu::before {
    display: table;
    content: ' ';
    height: 100%;
    background-color: inherit;
    position: absolute;
    right: 0;
    cursor: pointer;
}

.hamburger-menu::before {
    top: 10px;
    width: 80%;
}

.hamburger-menu::after {
    top: -10px;
    width: 60%;
}

img {
    max-width: 100%;
    width: 100%;
    object-fit: contain;
}

/*----------- Form styles -------------*/
.form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.form-group input,
textarea {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    border-bottom: 1px solid var(--color-dark-gray);
    padding-bottom: 15px;
    color: var(--color-white);
    font-family: var(--primary-font-family);
    font-size: 18px;
}

label {
    padding-bottom: 20px;
}

textarea {
    width: 100%;
    max-width: 100%;
    resize: none;
}

::placeholder {
    font-family: var(--primary-font-family);
    font-size: 18px;
}

/* ---------- Text utilities ----------- */
.heading {
    text-transform: capitalize;
    font-family: var(--heading-font-family);
}

.section-heading-sm {
    color: var(--color-green);
    font-size: 20px;
    font-family: var(--heading-font-family);
    padding-bottom: 15px;
}

.section-heading-lg {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.1;
    padding-bottom: 20px;
}

.error-message {
    padding-top: 10px;
    color: var(--color-red);
}

ul li {
    list-style: none;
}

a {
    color: var(--color-silver);
    text-decoration: none;
}

.u-text-red {
    color: var(--color-red);
}

.u-text-green {
    color: var(--color-green);
    text-decoration: line-through;
}

.u-text-white {
    color: var(--color-white);
}

/* ------------- Spacing utility ------------ */
.u-mb-sm {
    margin-bottom: 30px;
}

/* ------------- Button Styles -------------- */

button {
    background: transparent;
    font-size: 18px;
    font-family: var(--primary-font-family);
    border: none;
    cursor: pointer;
}

.rounded-btn-with-icon {
    display: inline-flex;
    padding: 5px 5px 5px 10px;
    align-items: center;
    border: 1px solid var(--color-silver);
    border-radius: 25px;
    color: var(--color-silver);
    transition: .5s;
}

.rounded-btn-with-icon:hover {
    border-color: var(--color-green);
    color: var(--color-green);
    animation: pulse;
    animation-duration: 1s;
}

.rounded-btn-with-icon:hover:disabled {
    animation: none;
    cursor: pointer;
    border-color: var(--color-silver);
    color: var(--color-silver);
}

.rounded-btn-with-icon:disabled {
    cursor: pointer;
    opacity: .4;
}

.rounded-btn-with-icon span:last-of-type {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-green);
    margin-left: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50px;
    color: var(--color-dark);
}

/* ============= Header ====================== */

/* ----------- NavBar -----------*/
.nav {
    border-bottom: 2px solid #3b3b3930;
    position: static;
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    top: 0;
    right: 0;
    background-color: var(--color-dark);
    z-index: 2;
}

.nav>.container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);;
    align-items: center;
    padding: 20px 0;
}

.nav ul {
    display: flex;
}

.nav ul li:not(:last-of-type) {
    margin-right: 20px;
}

.nav .nav-links li {
    position: relative;
}

.nav .nav-links li::after {
    display: table;
    content: '';
    position: absolute;
    width: 0px;
    height: 2px;
    right: 0;
    background-color: var(--color-silver);
    transition: all .5s;
}

.nav .nav-links li:hover::after {
    width: 70px;
    background-color: var(--color-green);
}

.nav ul li a {
    font-size: 14px;
    font-weight: 200;
    cursor: pointer;
    transition: .5s;
    font-family: var(--heading-font-family);
}

.nav ul li a:hover {
    color: var(--color-green);
}

.nav .logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav .logo-container img {
    width: 30%;
}

.nav .social-icons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
}

.nav .social-icons li:not(:last-of-type) {
    margin-right: 2rem;
}

.nav .social-icons li a {
    font-size: 24px;
    transition: .5s;
}

.nav .social-icons li a:hover {
    color: var(--color-white);
}

.nav .hamburger-menu {
    display: none;
}

/* --------------- Hero section ----------- */
.hero-section {
    border-bottom: 1px solid #5e5e5e34;
}

.hero-section .container:first-of-type {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 150x 0;
}

.hero-section .heading:first-of-type {
    font-size: 3.5rem;
    padding-bottom: 20px;
    text-transform: capitalize;
}

.hero-section p.lead {
    font-size: 18px;
    font-weight: 100;
}

.hero-text-container .cta-link {
    display: inline-block;
    padding-top: 40px;
    font-size: 25px;
    color: var(--color-green);
    transition: .5s;
}

.hero-text-container .heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text-container .heading .line {
    width: 7rem;
    height: 1px;
    background-color: var(--color-silver);
}

.cta-link:hover {
    animation: headShake;
    animation-duration: 1s;
    color: var(--color-white);
}
.hero-text-container {
    width: 100%;
}

.hero-image-container {
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    height: 50%;
    width: 50%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform: scale(.8);
    border: 20px solid #ffffff16;
}

.image-container span {
    position: absolute;
}

span.role {
    display: block;
    padding: 10px 12px;
    border-radius: 25px;
    color: var(--color-dark);
}

.role-1 {
    bottom: 20%;
    right: -60%;
    background-color: var(--color-orange);
}

.role-2 {
    background-color: var(--color-skyblue);
    bottom: -5%;
    left: -50%;
}

.role-3 {
    background-color: var(--color-green);
    top: 0%;
    left: -30%;
}

.image-container::before,
.image-container::after {
    display: flex;
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 50%;
}

.image-container::before {
    background-color: rgba(255, 255, 255, 0.049);
    z-index: -1;
    transform: scale(1.4);
}

.image-container::after {
    background-color: rgba(255, 255, 255, 0.113);
    z-index: -2;
    transform: scale(1.6);
}

.image-container img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.header .x-container {
    position: absolute;
    top: -5px;
}


.scroll-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-green);
    font-size: 25px;
    color: var(--color-dark);
    position: absolute;
    animation-iteration-count: infinite;
    right: 0;
}

.header .scroll-btn {
    top: -30px;
}

footer .scroll-btn {
    top: -30px;
}

.scroll-btn::before,
.scroll-btn::after {
    display: flex;
    content: '';
    width: 60px;
    height: 60px;
    position: absolute;
    border-radius: 50%;
}

.scroll-btn::before {
    background-color: #d6ff4028;
    z-index: -1;
    transform: scale(1.3);
}

.scroll-btn::after {
    background-color: #d6ff401d;
    z-index: -2;
    transform: scale(1.6);
}

/* ======================== About me Section ======================== */

.about-me {
    padding: 120px 0;
    position: relative;
}

.about-section-text-con {
    width: 50%;
    right: 0;
    margin-top: 50px;
    margin-left: 50%;
}

.about-section-text-con p {
    font-size: 18px;
    padding-bottom: 20px;
}

.section-banners {
    padding-top: 70px;
}

.banner {
    background-color: var(--color-green);
    color: var(--color-dark);
    padding: 20px;
    font-size: 30px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
}

.banner-1 {
    rotate: 6deg;
    z-index: 2;
    filter: brightness(.6);
}

.banner-2 {
    rotate: -5deg;
    filter: brightness(.9);
}
/* ======================= Experience Section ===================== */
.experience {
    padding: 70px 0;
}

.experience-items-con {
    padding-top: 60px;
}

.experience-item {
    display: grid;
    grid-template-columns: 1fr 2fr 3fr;
    padding: 50px;
    border-bottom: 2px solid #3b3b3968;
}

.experience-item .number {
    font-size: 25px;
    font-weight: 500;
    display: flex;
}

.experience-item .job-role {
    font-size: 19px;
    font-weight: 600;
}

.company {
    font-style: italic;
    font-size: 22px;
}

.date {
    color: var(--color-green);
    font-size: 20px;
}

.job-descriptions {
    font-size: 18px;
}

/* =================== Certifications setion  ================== */
.certifications-section {
    padding: 80px 0;
}

.certifications-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 30px;
    row-gap: 30px;
    padding: 40px 0 20px 0;
}

.certification-item {
    background-color: rgba(199, 199, 199, 0.05);
    padding: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: .5s;
}

.certification-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.certification-item .x-container {
    position: absolute;
    bottom: 0px;
    right: 10px;
}

.certification-badge {
    width: 60%;
}

/* =================================== Contact Me section ================ */
.contact-me {
    padding: 100px 0 120px 0;
}

.contact-me-content {
    background-color: #c7c7c713;
    width: 100%;
    /* height: 30rem; */
    padding: 20px;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
}

.contact-info-container {
    background-color: var(--color-green);
    color: var(--color-dark);
    padding: 20px;
}

.contact-info-container p.info-heading {
    font-size: 23px;
    font-weight: 700;
    padding-bottom: 10px;
}

.info-con {
    padding-top: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.info-item .icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-dark);
    border: 2px solid var(--color-dark);
    margin-right: 20px;
}

.contact-form {
    padding: 20px 50px;
}

.contact-form .form-button {
    margin-top: 40px;
    display: flex;
    justify-content: flex-end;
}

/* ====================== Footer styles ======================*/

footer {
    background-color: #c7c7c713;
    margin-top: 40px;
}

footer .container {
    padding: 70px 0;
    position: relative;
}

footer p:first-of-type {
    color: var(--color-green);
    line-height: .9;
    font-size: 20px;
}

footer .x-container {
    position: absolute;
    top: -5px;
}

/* Flex container for X shapes */
.x-container {
    display: flex;
    justify-content: flex-start; /* Align items to the start (left) */
    gap: 20px; /* Adjust spacing between X shapes */
    margin-top: 20px; /* Add some margin for visibility */
    padding-left: 20px; /* Optional: Add some padding for spacing from the edge */
  }
  
  /* X shape styling */
  .x-shape {
    position: relative;
    width: 50px; /* Adjust size as needed */
    height: 50px; /* Adjust size as needed */
  }
  
  .x-shape::before,
  .x-shape::after {
    content: '';
    position: absolute;
    width: 100%; /* Adjust size as needed */
    height: 5px; /* Adjust thickness as needed */
    background-color: inherit; /* Inherit background color from the parent span */
    top: 50%;
    left: 0;
    transform-origin: center;
  }
  
  .x-shape::before {
    transform: rotate(45deg);
  }
  
  .x-shape::after {
    transform: rotate(-45deg);
  }
  
  /* Color classes */
  .orange .x-shape::before,
  .orange .x-shape::after {
    background-color: var(--color-orange);
  }
  
  .green .x-shape::before,
  .green .x-shape::after {
    background-color: var(--color-green);
  }
  
  .blue .x-shape::before,
  .blue .x-shape::after {
    background-color: var(--color-skyblue);
  }

.footer-email-link {
    font-size: 60px;
    transition: .5s;
    margin-bottom: 30px;
}

.footer-email-link:hover {
    color: var(--color-white);
}

.footer-links {
    display: flex;
    margin-top: 30px;
}

.footer-links li {
    font-size: 25px;
}

.footer-links li:not(:last-of-type) {
    padding-right: 30px;
}

.footer-links li a:hover {
    color: var(--color-green);
}

.mobile-menu {
    background-color: #333333;
    width: 100%;
    left: 0;
    position: fixed;
    bottom: -100vh;
    z-index: 4;
    padding: 50px 0 20px 0;
    border-radius: 30px 30px 0 0;
    transition: .15s;
}

.mobile-menu .nav-links {
    margin-bottom: 50px;
}

.mobile-menu .nav-links li {
    font-size: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.mobile-menu .social-icons {
    padding: 20px 25px;
    background-color: rgba(199, 199, 199, 0.1);
    width: 95%;
    margin: 0 auto;
    border-radius: 15px;
}

.mobile-menu .social-icons ul {
    display: flex;
    justify-content: space-between;
    font-size: 30px;
}

.mobile-menu {
    display: none;
}

.show-menu {
    bottom: 0;
}

/* ================= Tablet Design ===================== */
@media screen and (min-width: 768px) and (max-width: 1124px) {

    /* nav styles */
    .nav>.container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 0;
    }

    .nav ul,
    .hero-image-container,
    .article-description {
        display: none;
    }

    .nav .hamburger-menu {
        display: block;
    }

    .nav .logo-container {
        display: flex;
        justify-content: flex-start;
    }

    .nav .logo-container img {
        width: 30%;
    }

    /* Mobile Menu */
    .mobile-menu {
        display: block;
    }

    /* Hero section styles */
    .hero-section .container:first-of-type {
        grid-template-columns: 1fr;
        padding: 80px 0;
    }

    /* about me section */
    .about-section-text-con {
        width: 100%;
        margin-left: 0%;
    }

    .banner {
        font-size: 18px;
    }

    .banner-1 {
        rotate: 4deg;
    }

    /* Experience Section */
    .experience-item {
        grid-template-columns: 1fr 3fr;
        border-bottom: 2px solid #3b3b3968;
        padding: 20px 0 50px 0;
    }

    .experience-item .job-descriptions {
        grid-column: 2;
        margin-top: 20px;
    }

    /* Certifications */

    .certifications-container {
        grid-template-columns: 1fr 1fr;
    }

    /* Footer */
    .footer-email-link {
        font-size: 45px;
    }
} 
/* ================= Mobile Design =================== */
@media screen and (max-width: 767px) {
    body {
        font-size: 16px;
    }

    /* Utility styles */
    .section-heading-sm {
        text-align: center;
        font-size: 18px;
        font-family: var(--heading-font-family);
    }

    .section-heading-lg {
        font-size: 25px;
        text-align: center;
    }

    /* nav styles */
    .nav>.container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 0;
    }

    .nav ul,
    .hero-image-container,
    .article-description {
        display: none;
    }

    .nav .hamburger-menu {
        display: block;
    }

    .nav .logo-container {
        display: flex;
        justify-content: flex-start;
    }

    .nav .logo-container img {
        width: 30%;
    }

    /* Mobile Menu */
    .mobile-menu {
        display: block;
    }


    /* Hero section styles  */
    .hero-section .container:first-of-type {
        grid-template-columns: 1fr;
        padding: 60px 0;
    }

    .hero-section .heading:first-of-type {
        font-size: 35px;
    }

    .hero-text-container .heading .line {
        width: 2rem;
        height: 1px;
        background-color: transparent;
        /* margin-left: 1rem; */
    }

    .hero-text-container .heading span:first-of-type::after {
        display: none;
    }

    .hero-text-container,
    .section-heading-con {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    /* about me section */
    .about-section-text-con {
        width: 100%;
        text-align: center;
        margin-left: 0%;
    }

    .section-banners {
        display: none;
    }

    /* Experience section */
    .experience {
        padding: 70px 0;
    }

    .experience-items-con {
        padding-top: 40px;
    }

    .experience-item {
        grid-template-columns: 1fr;
        padding: 30px 0;
    }

    .experience-item .highlight {
        padding: 15px 0;
    }

    /* Certifications */
    .certifications-container {
        grid-template-columns: 1fr;
    }

    /* Contact Me Section */
    .contact-me {
        padding: 70px 0 120px 0;
    }

    .contact-me-content {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .info-heading,
    .info-description {
        text-align: center;
    }

    .contact-form {
        padding: 20px 0;
    }

    .contact-form .form-button {
        display: flex;
        justify-content: center;
    }

    footer p:first-of-type {
        color: var(--color-green);
        line-height: .9;
        font-size: 12px;
    }

    .footer-email-link {
        font-size: 25px;
    }

    .footer-links {
        display: flex;
        margin-top: 25px;
        justify-content: space-between;
    }

    .footer-links li {
        font-size: 20px;
    }

    footer .container {
        padding: 70px 0 40px 0;
    }
}
