@font-face {
    font-family: "oswald";
    src: url(../Fonts/Oswald-VariableFont_wght.ttf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: oswald, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

*::selection {
    background-color: #1B1B1B;
}

body {
    background-color: #1B1B1B;
    overflow-x: hidden;
}

.toggle-icon {
    width: 320px;
    height: 185px;
    position: fixed;
    z-index: 55;
    right: 0%;
    top: 0%;
    display: none;
    align-items: center;
    justify-content: end;
    padding: 0 80px 0 0;
}

.toggle-icon img {
    width: 40px;
    z-index: 52;
    opacity: 100%;
    transition: .3s ease;
    cursor: pointer;
}

.toggle-container {
    width: 20%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.691);
    backdrop-filter: blur(5px);
    position: fixed;
    z-index: 50;
    right: -100%;
    transition: .2s ease-in-out;
    overflow: hidden;
}

.toggle-container ul {
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 15%;
    text-align: center;
}

.toggle-container ul li {
    margin: 50px 0px;
}

.toggle-container ul li:nth-child(1):before {
    content: "";
    width: 500px;
    height: 2px;
    background-color: #00aaff;
    position: absolute;
    left: -180%;
    top: 28%;
}

.toggle-container ul li:nth-child(2):before {
    content: "";
    width: 500px;
    height: 2px;
    background-color: #00aaff;
    position: absolute;
    left: -180%;
    top: 50%;
}

.toggle-container ul li:nth-child(3):before {
    content: "";
    width: 500px;
    height: 2px;
    background-color: #00aaff;
    position: absolute;
    left: -180%;
    top: 72%;
}

.toggle-container ul li:nth-child(4):before {
    content: "";
    width: 500px;
    height: 2px;
    background-color: #00aaff;
    position: absolute;
    left: -180%;
    top: 93%;
}

.toggle-container ul li a {
    text-decoration: none;
    color: white;
    font-size: 20px;
    transition: .3s ease;
}

.toggle-container ul li a:hover {
    color: rgb(193, 193, 193);
}

.cross-icon i {
    color: white;
    font-size: 30px;
    position: fixed;
    z-index: 52;
    right: 2%;
    top: 3%;
    opacity: 0%;
    display: none;
    cursor: pointer;
    transition: .3s ease;
}

#topbar {
    width: 100%;
    height: 40px;
    border-bottom: 1px solid rgb(87, 87, 87);
    display: flex;
    justify-content: space-between;
    padding: 0 60px;
    z-index: 58;
    position: fixed;
}

.left-section-of-topbar {
    width: 35%;
    height: 100%;
    display: flex;
    align-items: center;
}

.left-section-of-topbar i {
    color: #00aaff;
    font-size: 22px;
}

.left-section-of-topbar a {
    color: white;
    text-decoration: none;
    letter-spacing: 1px;
    margin: 0 10px;
    font-size: 15px;
    transition: .3s ease;
    cursor: pointer;
}

.left-section-of-topbar a:hover {
    color: #00aaff;
}

#navbar {
    width: 100%;
    height: 100px;
    border-bottom: 1px solid #00aaff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    z-index: 52;
    position: sticky;
    top: 5%;
}

.background {
    background-color: #1b1b1bb3;
    transition: all .5s ease;
    backdrop-filter: blur(5px);
}

.navbar-logo img {
    width: 90px;
}

#navbar ul {
    list-style: none;
}

#navbar ul li {
    display: inline-block;
    margin: 0 20px;
}

#navbar ul li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    letter-spacing: 1px;
}

#navbar ul li a::before {
    content: "";
    width: 0px;
    height: 2px;
    background-color: #00aaff;
    position: absolute;
    bottom: 28%;
    transition: .3s ease;
}

#navbar ul li:nth-child(1) a:hover::before {
    width: 85px;
}

#navbar ul li:nth-child(2) a:hover::before {
    width: 50px;
}

#navbar ul li:nth-child(3) a:hover::before {
    width: 75px;
}

#navbar ul li:nth-child(4) a:hover::before {
    width: 70px;
}

#herobox {
    width: 100%;
    height: 100vh;
    background: url(/Images/background\ image.jpg);
    margin-top: -140px;
    overflow: hidden;
    position: relative;
}

#herobox a {
    display: inline-block;
    width: 160px;
    height: 55px;
    position: absolute;
    top: 75%;
    left: 5%;
    text-decoration: none !important;
    background-color: transparent !important; 
    color: #00aaff !important; 
    border: 2px solid white;
    text-align: center;
    border-radius: 10px;
    font-size: 22px;
    font-weight: 600;
    padding-top: 10px;
    transition: .3s ease;
    z-index: 10;
}


#portfolio-section {
    width: 100%;
    height: 100vh;
    background-image: url('/Images/background\ image.jpg');
    background-size: cover;
    position: relative;
    overflow: hidden;
}

#portfolio-section::before {
    content: "";
    width: 100%;
    height: 100%;
    background-color: #1b1b1bf6;
    position: absolute;
    top: 0;
    left: 0;
}

#portfolio-section h1 {
    position: absolute;
    top: 10%;
    left: 5%;
    color: transparent;
    -webkit-text-stroke: .75px white;
    font-size: 5vw;
    font-weight: 500;
    z-index: 2;
    border-bottom: 2px solid #00aaff;
}

#portfolio-section h1 span {
    color: #00aaff;
    -webkit-text-stroke: 0px;
}

#portfolio-section #fields {
    width: 220px;
    height: 500px;
    border: 2px solid white;
    border-right: none;
    position: absolute;
    right: 0%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

[class^="field-"] {
    width: 260px;
    height: 65px;
    border: 2px solid white;
    border-radius: 50px;
    position: absolute;
    left: -130px; 
    background-color: #1B1B1B;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    z-index: 5;
}

.field-1 { top: 10%; }
.field-2 { top: 35%; }
.field-3 { top: 60%; }
.field-4 { top: 85%; }

[class^="field-"]:hover {
    background-color: #1B1B1B;
    border-color: #00aaff;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.4);
}

[class^="field-"] h2 {
    color: white;
    font-weight: 400;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: .3s ease;
}

[class^="field-"]:hover h2 {
    color: #00aaff;
}

#herobox a:hover {
    background-color: #00aaff !important;
    color: white !important;
    border-color: #00aaff !important;
}

#herobox::before {
    content: "";
    width: 100%;
    height: 100%;
    background-color: #1b1b1bf6;
    position: absolute;
}

#herobox .circle {
    width: 600px;
    height: 600px;
    background-color: #00aaff;
    border: 2px solid white;
    position: absolute;
    border-radius: 50%;
    right: 3%;
    top: 55%;
}

#herobox img {
    position: absolute;
    width: 520px;
    right: 6%;
    top: 30%;
}

#herobox h1 {
    position: absolute;
    color: white;
    font-size: 7vw;
    width: 50%;
    top: 35%;
    left: 3%;
    line-height: 7vw;
}

#herobox p {
    position: absolute;
    color: white;
    font-size: 25px;
    font-weight: 300;
    top: 68%;
    left: 3%;
    letter-spacing: 2px;
}

#herobox .icons-group {
    width: auto;
    height: 50px;
    position: absolute;
    bottom: 3%;
    left: 3%;
    display: flex;
    align-items: center;
    gap: 15px; 
    z-index: 20;
}

#herobox .icons-group a {
    position: static !important;
    display: flex;
    width: 40px; 
    height: 40px;
    border: 2px solid white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: .3s ease;
    text-decoration: none;
    padding: 0;
}

#herobox .icons-group i {
    color: #00aaff;
    font-size: 18px;
    transition: .3s ease;
}

#herobox .icons-group a:hover {
    background-color: #00aaff !important;
    border: 2px solid #00aaff !important;
    transform: translateY(-3px);
}

#herobox .icons-group a:hover i {
    color: white !important;
}

#about-section {
    width: 100%;
    min-height: 25vw;
    background-color: #1B1B1B;
    position: relative;
    overflow: hidden;
    padding-bottom: 50px;
}

#about-section h1 {
    color: #00aaff;
    font-weight: 400;
    font-size: 48px;
    position: absolute;
    left: 3%;
    top: 3%;
    border-bottom: 2px solid white;
    margin: 0;
}

.about-container {
    margin-top: 10vw;
    padding: 0 5% 0 3%;
    max-width: 850px;
}

.about-text {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.8;
    font-family: 'Segoe UI', sans-serif;
    text-align: justify;
    opacity: 0.9;
}

.highlight {
    color: #00aaff;
    font-weight: 600;
}
@media (max-width: 768px) {
    #about-section {
        /* Allow the section to grow with the text content */
        height: auto; 
        min-height: 100vh; 
        padding-top: 50px;
    }

    #about-section h1 {
        /* Change from absolute to relative to stop the overlap */
        position: relative; 
        left: 5%;
        top: 0;
        display: inline-block;
        font-size: 32px;
        margin-bottom: 20px;
    }

    .about-container {
        /* Remove the large top margin needed for desktop absolute positioning */
        margin-top: 20px; 
        padding: 0 5%;
        width: 100%;
    }

    .about-text {
        font-size: 1rem;
        line-height: 1.6;
        text-align: left; /* Justified text can look messy on narrow screens */
    }
}

#experience-section {
    width: 100%;
    height: 200vh;
    background-color: #1B1B1B;
    position: relative;
}

#contact-details-section {
    width: 100%;
    background-color: #1B1B1B;
    padding: 80px 0;
    text-align: center;
    position: relative;
    border-top: 1px solid #333;
}

#contact-details-section h1 {
    color: #00aaff;
    font-weight: 400;
    font-size: 48px;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.contact-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-card {
    background: #242424;
    padding: 30px;
    border-radius: 15px;
    width: 300px;
    transition: transform 0.3s ease, border 0.3s ease;
    border: 1px solid transparent;
}

.contact-card:hover {
    transform: translateY(-10px);
    border: 1px solid #00aaff;
}

.contact-card i {
    font-size: 40px;
    color: #00aaff;
    margin-bottom: 20px;
}

.contact-card h3 {
    color: white;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 300;
}

.contact-card a {
    color: #ccc;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: white;
}

@media (max-width: 768px) {
    #contact-details-section h1 {
        font-size: 32px;
    }
    .contact-container {
        gap: 20px;
        padding: 0 20px;
    }
}

#experience-section h1 {
    color: white;
    font-size: 72px;
    position: absolute;
    left: 5%;
    top: 2%;
}

.fields-container {
    width: 90%;
    height: 85%;
    position: absolute;
    bottom: 0%;
    left: 5%;
    display: flex;
}

.line-circle-group {
    width: 5px;
    height: 95%;
    background-color: white;
    border-radius: 50px;
    position: relative;
}

.circle-1, .circle-2, .circle-3, .circle-4 {
    width: 20px;
    height: 20px;
    background-color: #00aaff;
    border-radius: 50%;
    position: absolute;
    left: -180%;
}

.circle-1 { top: 10%; }
.circle-2 { top: 36%; }
.circle-3 { top: 63%; }
.circle-4 { top: 90%; }

.graphic-expereince, .video-expereince, .ui-ux-expereince, .development-expereince {
    width: 95%;
    height: 22%;
    border: 3px solid #00aaff;
    position: absolute;
    left: 2.5%;
}

.graphic-expereince { top: 0%; }
.video-expereince { top: 25%; }
.ui-ux-expereince { top: 50%; }
.development-expereince { top: 75%; }

.graphic-expereince p:nth-child(1),
.video-expereince p:nth-child(1),
.ui-ux-expereince p:nth-child(1),
.development-expereince p:nth-child(1) {
    color: white;
    position: absolute;
    top: 15%;
    left: 3%;
    font-size: 18px;
    letter-spacing: 2px;
}

.graphic-expereince h2,
.video-expereince h2,
.ui-ux-expereince h2,
.development-expereince h2 {
    color: white;
    font-size: 4vw;
    position: absolute;
    top: 22%;
    left: 3%;
}

.graphic-expereince p:nth-child(3),
.video-expereince p:nth-child(3),
.ui-ux-expereince p:nth-child(3),
.development-expereince p:nth-child(3) {
    color: white;
    position: absolute;
    left: 3%;
    bottom: 15%;
    width: 80%;
    text-align: justify;
    font-size: 15px;
}

#expert-section {
    width: 100%;
    height: 125vh;
    background-color: #1B1B1B;
    position: relative;
    border-bottom: 1px solid white;
    border-bottom-style: dashed;
}

#expert-section h1 {
    color: white;
    font-size: 72px;
    position: absolute;
    left: 5%;
    top: 5%;
    text-transform: uppercase;
    border-bottom: 2px solid #00aaff;
}

#expert-section h1 span {
    color: #00aaff;
}

#expert-section h2 {
    color: white;
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 2px;
    font-size: 30px;
    z-index: 2;
}

.cross-line {
    width: 22%;
    height: 2px;
    background-color: #00aaff;
    position: absolute;
    bottom: 7%;
    left: 50%;
    transform: translateX(-50%);
}

.left-circle, .right-circle {
    width: 20px;
    height: 20px;
    border: 1px solid #00aaff;
    border-radius: 50%;
    position: absolute;
    bottom: 6%;
    background-color: #1B1B1B;
}

.left-circle { left: 38%; }
.right-circle { right: 38%; }

.container {
    width: 87.5%;
    height: 70%;
    position: absolute;
    bottom: 10%;
    left: 5%;
    display: flex;
    flex-direction: column;
}

.row {
    width: 100%;
    height: 55px;
    margin: 6px 0;
    display: flex;
    align-items: center;
    position: relative;
}

.row h3 {
    font-size: 28px;
    text-transform: uppercase;
    color: white;
    font-weight: 400;
}

.row p {
    color: white;
    position: absolute;
    right: 0%;
    font-size: 20px;
    bottom: 38%;
}

.progress-bar {
    width: 88%;
    height: 4px;
    background-color: white;
    border-radius: 50px;
    position: absolute;
    bottom: 20%;
    right: 0%;
    z-index: 2;
}

.complete-bar {
    width: 95%;
    background-color: #00aaff;
    height: 100%;
}

.container .row:nth-child(2) .complete-bar { width: 90%; }
.container .row:nth-child(3) .complete-bar { width: 60%; }
.container .row:nth-child(4) .complete-bar { width: 60%; }
.container .row:nth-child(5) .complete-bar { width: 65%; }
.container .row:nth-child(6) .complete-bar { width: 90%; }
.container .row:nth-child(7) .complete-bar { width: 80%; }
.container .row:nth-child(8) .complete-bar { width: 90%; }
.container .row:nth-child(9) .complete-bar { width: 85%; }

#footer-section {
    width: 100%;
    height: 10vh;
    background-color: #1B1B1B;
    border-top: 2px solid white;
    position: relative;
}

#footer-section p {
    color: white;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    letter-spacing: 2px;
    width: 100%;
    text-align: center;
}