@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: rgb(37, 32, 32);
}


.navbar {
    background: linear-gradient(rgba(39, 39, 39, 0.6));
    z-index: 100;
    
}

.navbar-name {
    color: white;
    font-size: 25px;
    font-weight: 600;
}

.nav-link {
    color: #fff !important;
    font-weight: 500;
    padding-bottom: 15px;
    margin: 0 25px;
}

.nav-link:hover, .nav-link.active {
    border-bottom: 2px solid #fff;
}

.col-md-4, .col-md-8 {
    color: white;
}

#img1 {
    height: 300px;
    width: 300px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 50px rgb(241, 229, 229);
}

.container {
    flex-grow: 1;
    margin-top: 0px;
}

#row1 {
    margin-top: 50px;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#row1 .col-md-4 {
    animation: fadeInLeft 1s ease-out;
}

#row1 .col-md-8 {
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.im, .profession {
    font-size: 20px;
    font-weight: 500;
    color: #ccc;
    margin-bottom: 10px;
}

.name {
    font-size: 50px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

a i.bx {
    font-size: 24px;
    color: #fff;
    margin-right: 15px;
    transition: color 0.3s;
}

a i.bx:hover {
    color: #007bff;
}

p {
    color: white;
}

.disme {
    font-size: 18px;
    font-weight: 500;
    color: #a3b1a5;
    margin-bottom: 10px;
}
#spec {
    font-size: 20px;
    font-weight: 500;
    color: rgb(173, 233, 235);

}

h1, h3 {
    color: #ccc;
    margin-bottom: 10px;
    text-align: center;
}

#row2 {
    padding-top: 300px;
}

#img2 {
    height: 400px;
    width: 400px;
    margin-bottom: 50px;
}

#services {
    padding-top: 200px;
}

.card {
    background-color: #565656;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 250px;
    height: 150px;
    box-shadow: 0 0 10px rgb(241, 229, 229);
    transition: transform 0.6s;
}

.card:hover {
    transform: scale(1.2);
}

.card h2, .card2 h2 {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 10px;
}

#row3 {
    padding-top: 50px;
}

#simg {
    height: 50px;
    width: 50px;
}

.card2 {
    display: grid;
    place-items: center;
    position: relative;
    height: 200px;
    width: 250px;
    background: #222;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.6s;
    z-index: 2;
    overflow: hidden;
}

.card2::before {
    position: absolute;
    content: '';
    width: 50%;
    height: 180%;
    background: #fff;
    transform: rotate(45deg);
}

.card2:hover::before {
    animation: animate2 2s linear infinite;
}

@keyframes animate2 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.card2::after {
    position: absolute;
    content: '';
    inset: 4px;
    background: #565656;
    border-radius: 8px;
}

.card2:hover {
    transform: scale(1.2);
}

.card2 h4 {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 10px;
}

.card2 h2, .card2 h4, .card2 img {
    z-index: 2;
}

h6 {
    color: #ffffff;
}

#skills {
    padding-top: 100px;
}

.skill {
    width: 60%;
    margin: 30px auto;
    color: #fff;
}

.skill li {
    margin: 20px 0;
    padding: 5px;
}

.percentage {
    color: #cc7d7d;
    font-size: 14px;
    margin-left: 10px;
    font-weight: bolder;
}


.bar {
    background: #353b48;
    display: block;
    height: 7px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.22);
    transition: all 0.4s cubic-bezier(.25,.8,.25,1);
}

.bar:hover {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.bar span {
    height: 10px;
    float: left;
    background: linear-gradient(135deg, rgb(233, 213, 225), 0%, rgb(173, 233, 235)100%);
}

.skill .python {
    width: 90%;
    animation: python 3s;
}

@keyframes python {
    0% {
        width: 0%;
    }
    100% {
        width: 90%;
    }
}

.skill .java {
    width: 60%;
    animation: java 3s;
}

@keyframes java {
    0% {
        width: 0%;
    }
    100% {
        width: 60%;
    }
}

.skill .c {
    width: 75%;
    animation: c 3s;
}

@keyframes c {
    0% {
        width: 0%;
    }
    100% {
        width: 75%;
    }
}

.skill .html {
    width: 90%;
    animation: html 3s;
}

@keyframes html {
    0% {
        width: 0%;
    }
    100% {
        width: 90%;
    }
}

.skill .php {
    width: 60%;
    animation: php 3s;
}

@keyframes php {
    0% {
        width: 0%;
    }
    100% {
        width: 60%;
    }
}

.skill .boot {
    width: 70%;
    animation: boot 3s;
}

@keyframes boot {
    0% {
        width: 0%;
    }
    100% {
        width: 70%;
    }
}

.skill .react {
    width: 40%;
    animation: react 3s;
}

@keyframes react {
    0% {
        width: 0%;
    }
    100% {
        width: 40%;
    }
}

.skill .sql {
    width: 85%;
    animation: sql 3s;
}

@keyframes sql {
    0% {
        width: 0%;
    }
    100% {
        width: 85%;
    }
}

/* Container styles */
.slider-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}

.container1 {
    display: flex;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    width: 80%;
    padding: 20px;
}

.container1::-webkit-scrollbar {
    display: none;
}

/* Card styles */
.card {
    flex: 0 0 320px;  /* Width of the card */
    height: 300px;    /* Height of the card */
    margin: 0 20px;
    background-color: #2a2a2a;  /* Modern dark background */
    border: 1px solid #444;
    border-radius: 16px;  /* More rounded corners */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);  /* Softer and larger shadow */
    scroll-snap-align: start;
    transition: transform 0.6s, background-color 0.3s;  /* Smooth transition */
    overflow: hidden;  /* Ensure children are contained within the card */
}

.card a {
    display: block;
    height: 100%;
    width: 100%;
    color: inherit;  /* Inherit color from the card */
    text-decoration: none;  /* Remove default link underline */
}

.card:hover {
    transform: scale(1.05);  /* Slightly increased scale on hover */
    background-color: #3a3a3a;  /* Change background on hover */
}

.card .image img {
    width: 100%;
    height: 120px;    /* Adjusted height for images */
    border-radius: 8px;
    object-fit: cover;  /* Ensure image covers the area */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);  /* Image shadow */
}

.card h2 {
    font-size: 24px;  /* Larger font size */
    color: #ffffff;
    margin-top: 10px;
}

.card p {
    color: #dcdcdc;
    font-size: 16px;
    margin-top: 10px;
}

/* Button styles */
.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);  /* Light background for contrast */
    border: none;
    color: #333;  /* Dark color for text */
    font-size: 24px;
    cursor: pointer;
    padding: 15px;
    z-index: 10;
    border-radius: 50%;  /* Rounded buttons */
    transition: background-color 0.3s, transform 0.3s;  /* Smooth transitions */
}

.left-button {
    left: 50px;
}

.right-button {
    right: 50px;
}

.slider-button:hover {
    background-color: #fff;  /* Slightly brighter on hover */
}

/* For better touch experience on mobile */
@media (max-width: 768px) {
    .container1 {
        padding: 10px;
    }
    .card {
        flex: 0 0 80%;
        margin: 0 10px;
        height: 250px;  /* Adjusted height for smaller screens */
    }
}

.contact {
    background-color: rgb(37, 32, 32);
    padding: 50px;
    text-align: center;
}

.container2 {
    max-width: 800px;
    margin: 0 auto;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form {
    text-align: left;
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
}

.form-group {
    margin-bottom: 20px;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background-color: #f8f9fa;
    color: #333;
}

input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 8px #bbb;
}

button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #4caf50;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: 0.3s ease;
}

button:hover {
    background-color: #45a049;
}

.contact-info {
    text-align: left;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
}

.contact-info p {
    margin-bottom: 10px;
    color: #fff;
}

.contact-info i {
    color: #4caf50;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .container2 {
        padding: 20px;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}


.hidden{
    opacity: 0;
    filter: blur(5px);
    transform: translateX(-100%);
    transition: all 1.5s;
}

.show{
    opacity: 100;
    filter: blur(0);
    transform: translateX(0);
    transition: all 0.8s;
}

.buttondownload {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    outline: none;
    color: #fff;
    background-color: #4CAF50;
    border: none;
}

.buttondownload:hover {background-color: #3e8e41}

.buttondownload:active {
    background-color: #3e8e41;
    box-shadow: 0 5px #666;
    transform: translateY(4px);
}

.buttondownload:link,
        .buttondownload:visited {
            color: #fff; /* Ensure link color stays white */
            text-decoration: none; /* Remove underline */
        }


        footer {
            background-color: #333; /* Dark background color for the footer */
            padding: 20px 0;
            text-align: center;
            position: relative;
            width: 100%;
            bottom: 0;
        }
        
        footer p {
            color: #fff; /* White text color */
            font-size: 16px;
            margin: 0;
        }
