* {
    margin: 0;
    padding: 0;
    font-family: "DM Serif Text", serif;
    font-weight: 200;
    font-style: normal;
}
body {
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

/* ------- Navigation Part ------- */
.navbar {
    height: 80px;
    width: 100%;
    position: fixed;
    display: flex;
    z-index: 1000;
}
.name {
    font-size: 2rem;
    height: 80px;
    width: 35%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.logo {
    color: black;
    text-decoration: none;
}
.nav {
    height: 80px;
    width: 75%;
    padding-right: 9%;
    display: flex;
    justify-content: right;
    align-items: flex-end;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1.8rem;
}
nav ul li {
    margin: 0 1.6rem;
}
nav ul li a {
    color: black;
    text-decoration: none;
    font-size: 1.25rem;
}

/* ------- Header Part ----- */
.Header {
    height: 814px;
    width: 100%;
    background-image: url("imgs/header.jpg");
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: right;
}
.image-div {
    height: 814px;
    width: 60%;
    display: flex;
    align-items: end;
    justify-content: end;
}
.profile-image {
    height: 450px;
    border-radius: 50%;
    padding-bottom: 15%;
}
.matter {
    height: 525px;
    width: 50%;
    font-weight: 500;
    color: #35374B;
    align-items: flex-start;
    padding-top: 30%;
}
.matter-title {
    font-size: 40px;
    color: #35374B;
    display: inline-block;
}
.wave-image {
    height: 70px;
    width: 70px;
    transform: rotate(20deg);
    display: inline;
}
.khaja {
    font-size: 60px;
}
.matter-sub-title {
    font-size: 25px;
    color: #35374B;
}

/* Social Media */
.footer-icons ul {
    list-style: none;
    margin: 0;
    padding-top: 20px;
    display: flex;
    gap: 1.5rem;
}
.footer-icons ul li a {
    text-decoration: none;
    font-size: 0.5rem;
}

/* Download Button */
.download-btn {
    color: black;
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    margin-top: 20px;
    cursor: pointer;
    border: 2px solid #282a3a;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.download-btn:hover {
    background-color: #000000;
    color: white;
}
.download-btn a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

/* ------- About Part ------- */
.About {
    height: 815px;
    width: 100%;
    display: flex;
    background: linear-gradient(to bottom, #96a4c4, #EEF5FF);
}
.About-img {
    height: 715px;
    width: 50%;
    padding-top: 7%;
    display: flex;
    align-items: center;
}
.About-img img {
    height: 450px;
    border-radius: 50%;
    object-fit: contain;
    padding-left: 23%;
}
.About-content {
    height: 715px;
    width: 60%;
    padding-top: 5%;
}
.About-title {
    height: 100px;
    width: 100%;
    font-size: 30px;
    color: #35374B;
    padding-top: 20%;
}
.content {
    height: 600px;
    width: 100%;
    font-size: 20px;
    font-family: serif;
    font-style: normal;
    display: flex;
    align-items: flex-start;
    max-width: 800px;
}
.points {
    margin-right: 20px;
    padding-top: 10px;
}
.points .point-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}
.points .dot {
    width: 10px;
    height: 10px;
    background-color: black;
    border-radius: 50%;
    margin-bottom: 20px;
}
.points .line {
    width: 2px;
    height: 20px;
    padding-top: 30px;
    background-color: black;
}
.About-matter {
    height: 600px;
    width: 90%;
}

/* ------- Skills Part ------- */
#Skills {
    height: 815px;
    width: 100%;
    background-color: #EEF5FF;
    position: relative;
    overflow: hidden;
}

.skill-title {
    height: 250px;
    width: 100%;
    display: flex;
    font-size: 20px;
    align-items: end;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.skill-title h1 {
    font-size: 30px;
    color: #35374B;
    font-weight: 600;
    padding-bottom: 50px;
}

.skill-section {
    height: 500px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.Frontend, .other {
    height: 400px;
    width: 23%;
    border-style: solid;
    border-radius: 20px;
    /* background-color: white; */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.Ai{
    height: 500px;
    width: 30%;
    border-style: solid;
    border-radius: 20px;
    background-color: rgb(240, 245, 255);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.Frontend:hover, .Ai:hover, .other:hover {
    transform: translateY(-10px);
}

.Frontend-img, .other-img {
    height: 120px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #35374B;
    color: aliceblue;
    border-radius: 10px 10px 0 0;
}
.Ai-img{
    height: 150px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #35374B;
    color: aliceblue;
    border-radius: 10px 10px 0 0;
}
.tech-list {
    text-align: center;
    font-size: large;
    padding: 25px 10px;
}

.tech-list p {
    padding: 5px;
    color: #35374B;
}

/* ------- Floating Icons Styles ------- */
.floating-icons-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3; /* Above the cards and title */
}

.floating-icon {
    position: absolute;
    font-size: 3.7rem; /* Reduced size - was 6rem */
    color: rgba(53, 55, 75, 0.6); /* More visible */
    opacity: 0;
    transform: scale(0.3);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    animation-fill-mode: both;
    z-index: 0; /* Ensure icons appear above everything */
    pointer-events: none;
}

/* Icon states */
.floating-icon.show {
    opacity: 1;
    transform: scale(1);
}

.floating-icon.hide {
    opacity: 0;
    transform: scale(0.3);
}

/* Floating animation for visible icons */
.floating-icon.floating {
    animation: gentleFloat 6s ease-in-out infinite;
}

/* Smooth floating animation */
@keyframes gentleFloat {
    0%, 100% {
        transform: scale(1) translateY(0px) rotate(0deg);
    }
    25% {
        transform: scale(1.05) translateY(-10px) rotate(1deg);
    }
    50% {
        transform: scale(1) translateY(-5px) rotate(0deg);
    }
    75% {
        transform: scale(1.05) translateY(-15px) rotate(-1deg);
    }
}

/* Entrance animation */
@keyframes fadeScaleIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(20px);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Exit animation */
@keyframes fadeScaleOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8) translateY(-10px);
    }
    100% {
        opacity: 0;
        transform: scale(0.3) translateY(15px);
    }
}

/* Apply entrance animation */
.floating-icon.show {
    animation: fadeScaleIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Apply exit animation */
.floating-icon.hide {
    animation: fadeScaleOut 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .skill-section {
        gap: 40px;
    }
    
    .Frontend, .Ai, .other {
        width: 28%;
    }
    
    .floating-icon {
        font-size: 2.5rem; /* Reduced for tablets */
    }
}

@media (max-width: 768px) {
    #Skills {
        height: auto;
        padding-bottom: 50px;
    }
    
    .skill-section {
        flex-direction: column;
        height: auto;
        gap: 30px;
        padding: 0 20px;
    }
    
    .Frontend, .Ai, .other {
        width: 90%;
        max-width: 400px;
    }
    
    .floating-icon {
        font-size: 2rem; /* Reduced for mobile */
    }
    
    /* Adjust floating animation for mobile */
    @keyframes gentleFloat {
        0%, 100% {
            transform: scale(1) translateY(0px);
        }
        50% {
            transform: scale(1.02) translateY(-8px);
        }
    }
}

@media (max-width: 480px) {
    .skill-title h1 {
        font-size: 24px;
    }
    
    .Frontend, .Ai, .other {
        width: 95%;
    }
    
    .floating-icon {
        font-size: 1.5rem; /* Small for mobile */
    }
    
    .skill-section {
        gap: 20px;
    }
}

/* Additional icon visibility adjustments */
.floating-icon {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Ensure smooth performance */
.floating-icons-container {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Tech-specific color variations */
.floating-icon[data-tech*="HTML"],
.floating-icon[data-tech*="CSS"],
.floating-icon[data-tech*="JavaScript"] {
    color: rgba(255, 95, 109, 0.5); /* Reddish for frontend */
}

.floating-icon[data-tech*="Python"],
.floating-icon[data-tech*="ML"],
.floating-icon[data-tech*="Analytics"] {
    color: rgba(76, 175, 80, 0.5); /* Greenish for AI/Python */
}

.floating-icon[data-tech*="Docker"],
.floating-icon[data-tech*="AWS"],
.floating-icon[data-tech*="Git"],
.floating-icon[data-tech*="SQL"] {
    color: rgba(33, 150, 243, 0.5); /* Blueish for tools */
}

/* Ensure icons don't interfere with user interactions */
.floating-icons-container * {
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* ------- Projects Part ------- */
.Projects {
    height: 815px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    min-height: 100vh;
    background-color: #EEF5FF;
    padding-top: 1px; /* Added padding to push content down */
}
.projects-title {
    height: 120px;
    width: 100%;
    display: flex;
    font-size: 20px;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}
.projects-title h1 {
    font-size: 30px;
    color: #35374B;
    font-weight: 600;
}   

.card-wrapper {
    padding-top: 2%;
    width: 100%;
    display: flex;
    justify-content: center;
}
.card-list {
    display: flex;
    gap: 50px;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    padding-bottom: 60px; 
}
.card-list .card-item {
    list-style: none;
}
.card-list .card-item .card-link {
    width: 350px;
    height: 500px;
    display: block;
    padding: 18px;
    text-decoration: none;
    border-style: solid;
    border-radius: 30px;
    border: 2px solid transparent;
    box-shadow: 0 10px 10px rgb(0, 0, 0, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.card-list .card-item .card-link:hover {
    border-color: #282a3a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.card-list .card-link .card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
}
.card-list .card-link .badge {
    color: #0056b3;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 16px 0 18px;
    padding: 8px 16px;
    background: #DDE4FF;
    width: fit-content;
    border-radius: 50px;
    display: inline-block;
}
.card-list .card-link .card-title {
    font-size: 1.5rem;
    color: black;
    font-weight: 600;
}
.card-desc {
    color: black;
    font-family: "DM Serif Text", serif;
}
.card-list .card-link .card-button {
    height: 35px;
    width: 35px;
    color: #0056b3;
    border-radius: 50px;
    margin: 30px 0 5px;
    background: none;
    cursor: pointer;
    border: 2px solid;
    transform: rotate(-40deg);
    transition: 0.4s ease;
}
.card-list .card-link:hover .card-button {
    color: #fff;
    background: #282a3a;
}

/* Show only two cards centered at the bottom */
.card-list {
    justify-content: center;
    align-items: flex-end;
    gap: 50px;
}
.card-list .card-item {
    display: none;
}
.card-list .card-item:nth-child(1),
.card-list .card-item:nth-child(2) {
    display: block;
}



/* ------- Certificates Part ------- */
#Certificates {
    height: 815px;
    width: 100%;
    background: linear-gradient(to bottom, #EEF5FF, white);
    position: relative; 
    z-index: 1; 
}

.gallery {
    height: 615px;
    width: 100%;
    align-items: center;
    position: relative; 
}

.gallery-title {
    height: 200px;
    width: 100%;
    display: flex;
    font-size: 20px;
    align-items: end;
    justify-content: center;
}

.gallery-title h1 {
    font-size: 30px;
    color: #35374B;
    font-weight: 600;
}

.gallery-container {
    align-items: end;
    display: flex;
    height: 400px;
    margin: 0 auto;
    max-width: 1000px;
    position: relative;
}

.gallery-item {
    height: 300px;
    opacity: 0;
    position: absolute;
    transition: all 0.3s ease-in-out;
    width: 400px;
    z-index: 0;
    border-radius: 15px;
    background-size: contain;
}

.gallery-item-1 {
    left: 15%;
    opacity: .4;
    height: 250px;
    width: 380px;
    transform: translateX(-50%);
}

.gallery-item-2, .gallery-item-4 {
    height: 300px;
    opacity: 0.8;
    width: 400px;
    z-index: 1;
}

.gallery-item-2 {
    left: 30%;
    transform: translateX(-50%);
}

.gallery-item-3 {
    box-shadow: 2px 5px 33px 6px rgba(0, 0, 0, 0.35);
    opacity: 1;
    left: 50%;
    transform: translateX(-50%);
    height: 330px;
    width: 500px;
    z-index: 2;
    position: relative; 
    cursor: pointer; 
}

.gallery-item-4 {
    left: 70%;
    transform: translateX(-50%);
}

.gallery-item-5 {
    height: 250px;
    width: 380px;
    left: 85%;
    opacity: .4;
    transform: translateX(-50%);
}


.certificate-link-wrapper {
    position: absolute;
    top: 50%; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 500px;
    height: 330px; 
    z-index: 10;
    pointer-events: none;
    margin-top: -130px; 
}


.certificate-link-icon {
    position: absolute;
    bottom: 10px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 1;
    z-index: 15;
    border: 2px solid #35374B;
    pointer-events: auto;
}

.certificate-link-icon svg {
    width: 24px;
    height: 24px;
    fill: #35374B;
    transition: all 0.4s ease;
}


.certificate-link-wrapper:hover .certificate-link-icon {
    bottom: 10px; 
    left: 50%; 
    transform: translateX(-50%) scale(1.2) translateY(-3px); 
    background: linear-gradient(135deg, #35374B, #2c2e45);
    width: 80px; 
    height:80px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.certificate-link-wrapper:hover .certificate-link-icon svg {
    fill: white;
    width: 28px; 
    height: 28px;
}


.certificate-link-wrapper:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(53, 55, 75, 0.4) 0%, 
        rgba(53, 55, 75, 0.2) 50%, 
        rgba(53, 55, 75, 0.1) 100%);
    border-radius: 15px;
    transition: all 0.4s ease;
    z-index: 5;
}

@keyframes iconPulse {
    0%, 100% { 
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        transform: translateX(-50%) scale(1);
    }
    50% { 
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
        transform: translateX(-50%) scale(1.05);
    }
}

.certificate-link-icon {
    animation: iconPulse 2s infinite ease-in-out;
}

.certificate-link-wrapper:hover .certificate-link-icon {
    animation: none;
}

.gallery-controls {
    display: flex;
    justify-content: center;
    margin: 25px 0;
    height: 100px;
}

.gallery-controls button {
    background-color: transparent;
    border: 0;
    cursor: pointer;
    font-size: 30px;
    margin: 0 50px;
    padding: 0 12px;
    text-transform: capitalize;
}

.gallery-controls-button:focus {
    outline: none;
}

.gallery-controls-previous {
    position: relative;
}

.gallery-controls-previous::before {
    border: solid black;
    border-width: 0 5px 5px 0;
    content: '';
    display: inline-block;
    height: 5px;
    left: -30px;
    padding: 10px;
    position: absolute;
    top: 25%;
    transform: rotate(135deg) translateY(-50%);
    transition: left 0.15s ease-in-out;
    width: 5px;
}

.gallery-controls-previous:hover::before {
    left: -40px;
}

.gallery-controls-next {
    position: relative;
}

.gallery-controls-next::before {
    border: solid #000;
    border-width: 0 5px 5px 0;
    content: '';
    display: inline-block;
    height: 5px;
    padding: 10px;
    position: absolute;
    right: -30px;
    top: 45%;
    transform: rotate(-45deg) translateY(-50%);
    transition: right 0.15s ease-in-out;
    width: 5px;
}

.gallery-controls-next:hover::before {
    right: -40px;
}

.gallery-nav {
    bottom: -15px;
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    position: absolute;
    width: 100%;
}

.gallery-nav li {
    background: #ccc;
    border-radius: 50%;
    height: 10px;
    margin: 0 16px;
    width: 10px;
}

.gallery-nav li.gallery-item-selected {
    background: #555;
}

/* ------- Contact Part ------- */
#Contact {
    height: 615px;
    width: 100%;
    padding-top: 100px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
.contact-form {
    max-width: 450px;
    margin: 50px auto;
    padding: 20px;
    padding-bottom: 20px;
    border-radius: 15px;
    border: 5px solid transparent;
    box-shadow: 0 10px 10px rgb(0, 0, 0, 0.05);
}
.contact-form {
    border: 2px solid black;
}
.contact-form h2 {
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
    font-family: "DM Serif Text", serif;
    font-weight: 400;
    font-style: normal;
    color: #35374B;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}
.form-group textarea {
    height: 100px;
}
.form-group button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    color: rgb(255, 255, 255);
    background-color: rgb(0, 0, 0);
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    border-radius: 10px;
    cursor: pointer;
}

.form-group .button {
    margin-top: 5%;
}

/* --------Footer Section-------------- */
.footer-container {
    height: 50px;
    width: 100%;
    color: rgb(0, 0, 0);
    text-align: center;
}
.footer-icons p {
    padding-top: 10px;
    padding-bottom: 10px;
}
