


@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css");

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500&family=Luckiest+Guy&family=Merriweather:ital,wght@0,400;0,700;0,900;1,700;1,900&family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,800;0,900;1,400;1,500;1,600;1,800&family=Open+Sans:ital,wght@0,600;0,700;0,800;1,600;1,700&family=Poppins:ital,wght@0,400;0,500;0,700;0,800;0,900;1,500;1,600;1,700&family=Roboto:wght@700&family=Varela+Round&display=swap');


/* Add other existing styles from previous CSS */

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
    text-decoration: none;
    outline: none;
    font-family: 'Montserrat', sans-serif;
}

.navbar{
    width: 100%;
    position: fixed;
    z-index: 100;
    padding: 30px 0;
    background-color: #ffffff;
   
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fff; /* Keep background clean and simple */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease, visibility 0.5s ease; /* Smooth transition for fade-out */
}

#preloader img {
    width: 80px; /* Adjust size of the GIF */
    height: auto;
}

/* Preloader hidden state */
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}


/* .burger {
    display: none;
} */

.burger:hover{
    cursor: pointer;
}

section{
    padding-top: 10px;


}
.container {
    margin: 0 250px;
}
.navbar-inner{
    text-align: center;
    justify-content: space-between;
}

.navbar-item{
    list-style: none;
}

.navbar-item li{
    display: inline-block;
}

.navbar-item li a{

    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    color: black;
    margin: 8px 20px;
    padding: 8px 0;


}


.navbar-item li a.active,
.navbar-item li a:hover{
    border-bottom: 3px solid black;
    
}



.home{
    padding-top: 150px;
}

.home-inner{
    text-align: center;
    margin: 0 auto;

}

.profile {
    margin: 0 auto 30px;
    text-align: center;
}

.profile img {
    border-radius: 70%;
    border: 4px solid white;
    height: 300px; /* Reduced for better alignment */
    width: 300px;
    object-fit: cover;
}

.shadow-dark{
    -webkit-box-shadow: 0 0 20px rgba(48, 46, 77, 0.15);
    box-shadow: 0 0 20px rgba(48, 46, 77, 0.15);
}

.introduction h3 {
    font-size: 50px;
    font-weight: 600;
    text-decoration: none;
    color: black;
    margin-bottom: 30px;

}


.social-media{
    margin-bottom: 30px;
    text-align: center;
    justify-content: space-between;
    

}


.social{
    margin: 0 10px;
    padding: 5px;
    font-size: 30px;
    color: rgb(33, 33, 43);
}

.social:hover{
    -webkit-transition: all 0.1s ease;
    transition: all 0.1s ease;
    background-image: linear-gradient(to left, #171c1f, #26282e);
    color: #ffffff;
    border: none;
}

.resume {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 500;
    background-image: linear-gradient(to left, #171c1f, #26282e);
    padding: 12px 25px;
    border-radius: 25px;
    color: white;
    transition: all 0.2s ease;
    display: inline-block;
}

.resume:hover{
    -webkit-transition: all 0.2s ease;
    font-size: 17px;
    padding: 16px 31px;
    transition: all 0.2s ease;
}

.subtitle{

    margin-top: 130px;
    margin-bottom: 45px;
    text-align: center;
    font-size: 50px;
    font-weight: 700;


}
.about-inner {
    display: flex;
    justify-content: space-between;
   
}

.about-content{

    max-width: 50%;

}

.about-content p{
    padding: 0 50px;
    margin-bottom: 25px;
    font-size: 20px;
    line-height: 30px;
    text-align: justify;
}

.skills{
    width: 50%;
    padding: 0 50px;
}

.skills li{
    position: relative;
    list-style: none;
    margin: 60px 0;
    font-weight: 700;
    text-transform: uppercase;
}

.skills li::before{
    content: " ";
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    height: 15px;
    background-color: rgba(9, 21, 44, 0.5);
    border-radius: 100px;
}

.skills li::after{
    content: " ";
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    height: 15px;
    background-color: rgb(0, 0, 0);
    border-radius: 100px;
}

.skills li.html::after{
    width: 90%;
}
.skills li.css::after{
    width: 70%;
}
.skills li.JavaScript::after{
    width: 75%;
}
.skills li.C::after{
    width: 55%;
}
.skills li.Cplus::after{
    width: 89%;
}
.skills li.Java::after{
    width: 45%;
}
.skills li.Python::after{
    width: 69%;
}
.skills li.react::after{
    width: 74%;
}

.skills li.design::after{
    width: 89%;
}




.frame{

    float: left;
    width: 50%;
}

.gallery{
    margin: 30px;
}

.gallery:hover{
    -webkit-transition: all 0.3s ease;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.gallery img {
    width: 100%;
    height: 300px;
    object-position: center center;
    object-fit: cover;


}

.description {

    font-size: 20px;
    font-weight: 400;
    text-align: center;
    padding-bottom: 20px;
    color: black;
}

.project-inner::after{
    content: "";
    clear: both;
    display: block;
}

.frame a{
    text-decoration: none;
}

.portfolio-inner::after{
    content: "";
    clear: both;
    display: block;
}


.contact-form{
    margin: 0 10%;
    padding: 40px 40px;

}

.input-fields{
    display: flex;
    flex-direction: column;
    margin-right: 5%;
    padding: 8px 16px;
    
}
.input-fields,
.msg {
    width: 100%;
}

.input-fields  .input,
.msg , textarea{

    margin: 45px 0;
    background: transparent;
    border: 0;
    border-bottom: 2px solid rgba(54, 126, 223, 1);
    padding: 13px;
    color: black;
    width: 100%;
    font-size: 16px;
    font-weight: 500;


}

.msg textarea{

    height: 150px;
}

.btn{
    text-align: center;
    background: rgba(54, 126, 223, 1);
    padding: 15px;
    border-radius: 5px;
    color: white;
    text-transform: uppercase;
    width: 100%;
    border: none;
    cursor: pointer;

}

.btn:hover{

    background: rgb(35, 96, 175);
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* to make the webpage responsive use the mediaQuery */

@media (max-width: 1440px) {
    .container {
        margin: 0 75px;
    }

    .profile {
        margin: 5px;
        margin-bottom: 25px;
    }

    .profile img {
        height: 300px;
    }

    .introduction h3 {
        font-size: 40px;
    }

    .about-inner {
        display: block;
        width: 100%;
    }

    .about-content {
        max-width: 100%;
    }

    .about-content p {
        font-size: 20px;
        line-height: 30px;
    }

    .skills {
        width: 100%;
        padding: 0 auto;
        margin: 0 auto;
        height: 650px;
    }

    .skills ul {
        padding-top: 1px;
    }

    .skills li {
        margin: 40px 5px;
    }

    .gallery img {
        height: 300px;
    }

    .description {
        font-size: 14px;
    }
}

@media (max-width: 1200px) {
    .navbar {
        padding-bottom: 0;
    }

    .burger {
        display: block;
        font-size: 26px;
        line-height: 70px;
        text-align: right;
    }

    .menu-btn {
        cursor: pointer;
    }

    .navbar-item {
        width: 100%;
        text-align: center;
    }

    .close {
        display: none;
    }

    .navbar-item li a.active,
    .navbar-item li a:hover {
        border-bottom: none;
    }

    .navbar-item li {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid #eaeaeb;
        margin: 0;
        width: 100%;
        justify-content: center;
    }

    .frame {
        width: 100%;
    }

    .contact-form {
        margin: 0 2%;
        padding: 20px 20px;
    }
}

@media (max-width: 800px) {
    .container {
        margin: 0 10px;
    }

    .profile {
        margin: 0;
        margin-bottom: 20px;
    }

    .profile img {
        height: 200px;
    }

    .introduction h3 {
        font-size: 25px;
        margin-bottom: 30px;
    }

    .subtitle {
        font-size: 30px;
        margin-bottom: 30px;
    }

    .about-content p {
        font-size: 14px;
        line-height: 20px;
    }

    .skills li {
        font-size: 15px;
        font-weight: 400;
    }

    .gallery img {
        height: 300px;
    }

    .contact-form {
        margin: 0 10%;
    }

    .input-fields .input,
    .msg textarea {
        margin: 10px 0;
    }
}

@media (max-width: 400px) {
    .social {
        font-size: 20px;
    }

    .contact-form {
        margin: 0 2%;
        padding: 10% 10%;
    }
}

/* Responsive Cards */
@media (max-width: 1024px) {
    .card-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .card {
        width: 45%;
        max-width: 400px;
        margin: 10px;
    }
}

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

    .card {
        width: 72%;
        max-width: 600px;
    }
}

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

/* Hide navbar items by default in mobile view */
/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navbar Styling */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Navigation Items */
.navbar-item {
    display: flex;
    gap: 20px;
    list-style: none;
}

.navbar-item a {
    text-decoration: none;
    color: black;
    padding: 10px 15px;
    transition: color 0.3s ease-in-out;
}

.navbar-item a.active,
.navbar-item a:hover {
    color: #bd4747;
}

/* Underline Animation */
/* .navbar-item a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #ff5733;
    transition: width 0.3s ease-in-out, transform 0.3s ease-in-out;
    transform: translateX(-50%);
} */

.navbar-item a:hover::after,
.navbar-item a.active::after {
    width: 100%;
}

/* Burger Icon - Right Aligned */
.burger {
    display: none;
    font-size: 26px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

/* Mobile & Tablet Styles */
@media (max-width: 1024px) {
    .burger {
        display: block;
    }

    .navbar-item {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    }

    .navbar-item.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
}

/* Burger Icon Change */
.burger.open i::before {
    content: "\f00d"; /* FontAwesome 'X' icon */
}


/* icons css */

.card-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.icon-link {
    color: #333;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.icon-link:hover {
    color: #70ee4d;
    transform: translateY(-3px);
}

/* Card Styles */
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    object-fit: cover;
    gap: 20px;
}

.card {
    width: 350px;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden; /* Ensures images don't overflow */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background: #fff; /* Ensures consistent background */
}

.card:hover {
    transform: scale(1.05);
}

/* Image Styling */
.card img {
    width: 100%;
    /* height: 250px; */
    object-fit: cover; /* Ensures images cover the area without distortion */
    display: block; /* Removes extra spacing below images */
}

/* Card Content */
.card-content {
    /* flex-grow: 1; */
    padding: 15px;
    text-align: center;
}

.card-content h4 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
}

.card-content p {
    font-size: 14px;
    color: #666;
}

/* Links */
.card-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.icon-link {
    text-decoration: none;
    color: #000;
    font-size: 20px;
    transition: color 0.3s ease;
}

.icon-link:hover {
    color: #8cea12; /* Change color on hover */
}


.btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: #1290cb;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0652dd;
}

/* Responsive Design */


/* Contact page css */

:root {
    --primary-black: #000;
    --secondary-gray: #333;
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --success-green: #28a745;
}

#contact {
    margin: 50px auto;
    background-color: var(--light-gray);
    padding: 4rem 1rem;
    border-radius: 20px;
    max-width: 800px;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 15px;
    text-align: center;
}

.contact-title {
    margin-bottom: 2rem;
    color: var(--primary-black);
    font-size: 2rem;
}

.contact-form {
    background-color: var(--white);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-input, .message-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
    font-size: 1rem;
}

.form-input:focus, .message-input:focus {
    outline: none;
    border-color: var(--primary-black);
}

.message-input {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background-color: var(--primary-black);
    color: var(--white);
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background-color: var(--secondary-gray);
    transform: scale(1.05);
}

.success-message {
    color: var(--success-green);
    text-align: center;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    #contact {
        padding: 3rem 1rem;
    }
    .contact-form {
        padding: 1.5rem;
    }
    .contact-title {
        font-size: 1.75rem;
    }
}

/* Footer css Give me */


/* Footer Styles */
.footer {
    background: #121212;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    font-size: 1rem;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.2);
}

.footer p {
    margin: 0;
    letter-spacing: 1px;
    font-weight: 400;
}

/* Hover Effect for Better Interaction */
.footer p:hover {
    color: #ff9800;
    transition: color 0.3s ease-in-out;
}


