/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Global Variable Start */
:root {
    --primary-color: #007ab9;
    --primary-color-hover: black;
    --main-bg-color: #f6f5f0;
}

/* Global Variable End */

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--main-bg-color);
}

/*! ------------------------- Navbar Section Start ------------------------- */
.navbar-container {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #f6f5f0;
    margin: auto;
    padding: 1rem 2rem;
    box-shadow: 0 1px 3px var(--primary-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    /* Adjusted width */
    margin: 0 auto;
    position: relative;
    max-width: 1240px;
    gap: 20px;
}

.logo>a {
    text-decoration: none;
    transition: all 0.3s;

}

.logo>a:visited {
    color: var(--primary-color);
}

.logo {
    white-space: nowrap;
    /* Prevent wrapping */
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    user-select: none;
}

.logo>a:hover {
    cursor: pointer;
    color: var(--primary-color-hover);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: black;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-links li a:hover {
    color: #007ab9;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    font-size: 1rem;
    transition: all 0.3s;
}

.social-icons a:hover {
    transform: scale(1.1);
}

.social-icons>a>img {
    height: 30px;
    width: 30px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: all .3s;
}

.hamburger:active {
    transform: scale(1.1);
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #000;
    border-radius: 3px;
    transition: all 0.3s;
}

@media (max-width: 768px) {

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #fff;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        padding: 1rem 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0.1rem 0;
    }

    .nav-links li a {
        text-align: center;
        padding: .1rem;
        width: 100%;
        display: block;
    }

    .hamburger {
        display: flex;
    }

    .social-icons {
        display: none;
    }

}

/*! -------------------------- Navbar Section End -------------------------- */

/*! --------------------------- Hero Section Start --------------------------- */
#hero-section {
    padding: 50px 0px;
    display: flex;
    width: 90%;
    margin: auto;
    align-items: center;
    justify-content: center;
    min-height: 77vh;
}

.hero-container {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    gap: 30px;
    text-align: center;
}

.hero-text {
    max-width: 600px;
}

.intro-text {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.intro-text span {
    font-weight: bold;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.5;
    color: #000;
    margin-bottom: 20px;
}

.view-btn {
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 1rem;
    font-weight: bold;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.view-btn:hover {
    background-color: var(--primary-color-hover);
    border: 2px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    animation: bounce 2s infinite cubic-bezier(.25, .1, .25, 1);
    animation-delay: 1.5s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-30px);
    }

    60% {
        transform: translateY(-15px);
    }
}

@media (min-width: 768px) {
    .hero-image img {
        width: 300px;
        height: 300px;
    }

    .hero-container {
        flex-direction: row;
        text-align: left;
    }

    .hero-text {
        text-align: left;
    }

    .hero-image img {
        width: 300px;
        height: 300px;
    }
}

/*! --------------------------- Hero Section End --------------------------- */

/*! --------------------------- Skills Section Start -------------------------- */
#skills {
    padding: 40px 20px;
    background-color: var(--primary-color);
    text-align: center;
}

.skills-content {
    max-width: 1200px;
    width: 90%;
    margin: auto;
}

#skills h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: white;
}

.my-skills {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.card {
    background-color: #fff;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px hsl(200, 100%, 95%);
    padding: 20px;
    margin: 10px;
    flex: 1 1 calc(33.333% - 40px);
    box-sizing: border-box;
    transition: all .4s;
}

.card:hover {
    /* transform: translateY(-10px); */
    box-shadow: 0 8px 16px #007bb947;
    cursor: pointer;

    &.card img {
        background-color: #30baff74;
    }

    background-color: hsl(200, 100%, 95%);
}

.card img {
    max-width: 100px;
    min-height: 100px;
    margin-bottom: 15px;
    background-color: #00aeff3a;
    padding: 10px;
    border-radius: 10px;
}

.card h3 {
    margin-top: 0;
    font-size: 1.5em;
    color: #333;
}

.card ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.card ul li {
    margin: 5px 0;
    font-size: 1em;
    background-color: var(--primary-color);
    padding: 5px 0;
    border-radius: 10px;
    color: white;
    transition: all .3s;
}

.card ul li:hover {
    background-color: black;
    transform: scale(1.03);

}

@media (max-width: 768px) {
    .card {
        flex: 1 1 calc(50% - 40px);
    }
}

@media (max-width: 480px) {
    .card {
        flex: 1 1 100%;
    }
}

/*! --------------------------- Skills Section End -------------------------- */

/*! -------------------------- Project Section Start ------------------------- */
#projects {
    padding: 60px 20px;
    text-align: center;
    background: #f8f9fa;
}

#projects h2 {
    font-size: 3em;
    margin-bottom: 40px;
    color: #333;
    font-weight: bold;
}

.project-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

.card {
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    perspective: 1000px;
    flex: 1 1 calc(30% - 20px);
    min-width: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    /* transform: translateY(-10px); */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 300px;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 15px;
    box-sizing: border-box;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);

}

.card-front {
    background: #00aeff3a;
    text-align: center;
}

.card-front img {
    max-width: 300px;
    min-height: 200px;
    border-radius: 10px;
    margin-bottom: 15px;
    padding: 0;
}

.card-front h3 {
    margin-top: 10px;
    font-size: 1.4em;
    color: #333;
}

.card-back {
    background-color: #93dcff;
    color: black;
    transform: rotateY(180deg);
    text-align: center;
}

.card-back p {
    font-size: 1.1em;
    margin: 15px 0;
}

.card-back .btn {
    display: inline-block;
    background-color: #fff;
    color: var(--primary-color);
    padding: 10px 15px;
    margin: 5px;
    border: 2px solid var(--primary-color);
    font-size: 0.9em;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.card-back .btn:hover {
    background-color: black;
    color: #fff;
    border: 2px solid white;
}

@media (max-width: 1024px) {
    .card {
        flex: 1 1 calc(45% - 20px);
    }
}

@media (max-width: 768px) {
    .card {
        flex: 1 1 calc(100% - 20px);
    }

    #projects h2 {
        font-size: 2.5em;
    }
}

@media (max-width: 480px) {
    #projects h2 {
        font-size: 2em;
    }

    .card {
        height: auto;
    }
}


.more-projects {
    padding-top: 40px;
}

/* .more-projects button {
    padding: 15px 30px;
    cursor: pointer;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    transition: all .3s;
}

.more-projects button:hover {
    background-color: var(--primary-color-hover);
    transform: scale(1.1);
}

.more-projects button:active {
    background-color: var(--primary-color);
} */

/*! -------------------------- Project Section End ------------------------- */

/*! -------------------------- Contact Section Start ------------------------- */
/* Contact Section Styles */
#contact {
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.contact_us_2 {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.contactus-head {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #333;
}

.contactus-subhead {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #777;
}

.form-box {
    background: #fff;
    padding: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-title {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.input,
.textinput {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    color: #333;
}

.textinput {
    font-size: 1.2rem;
}

.input:focus,
.textinput:focus {
    border-color: #007bb9;
    outline: none;
}


/* Responsive Styles */
@media (max-width: 768px) {
    .contactus-head {
        font-size: 2em;
    }

    .contactus-subhead {
        font-size: 1em;
    }

    .form-box {
        padding: 20px;
    }

    .input,
    .textinput {
        font-size: 0.9em;
    }

    .submit-btn {
        padding: 10px 15px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .contactus-head {
        font-size: 1.5em;
    }

    .contactus-subhead {
        font-size: 0.9em;
    }

    .form-box {
        padding: 15px;
    }

    .input,
    .textinput {
        font-size: 0.8em;
    }

    .submit-btn {
        padding: 8px 10px;
        font-size: 0.8em;
    }
}

/*! -------------------------- Contact Section End ------------------------- */

/*! -------------------------- Footer Section Start -------------------------- */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    display: flex;
    flex-direction: column;
    margin: 10px;
    /* justify-content: center; */
}

.footer-section h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.footer-section p,
.footer-section ul {
    font-size: 1em;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-section ul {
    display: flex;
    gap: 20px;
    text-align: center;
    margin-top: 10px;
}

.footer-section ul li {
    margin: 5px 0;
    ;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #ddd;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.social-links a {
    margin: 0 10px;
    display: inline-block;
}

.link-img {
    width: 30px;
    height: 30px;
    background-color: white;
    border-radius: 50%;
    border: 1px solid white;
    transition: all .3s;
}

.link-img:hover {
    background-color: rgb(203, 203, 203);
    border: 1px solid rgb(203, 203, 203);
    transform: scale(1.1);
}

.footer-bottom {
    margin-top: 20px;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        flex: 1 1 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-section h3 {
        font-size: 1.2em;
    }

    .footer-section p,
    .footer-section ul {
        font-size: 0.9em;
    }

    .link-img {
        width: 25px;
        height: 25px;
    }

    .footer-section ul{
        flex-direction: column;
        gap: 3px;
    }
    
}

/*! -------------------------- Footer Section End------------------------*%