/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: lightskyblue;
    /* padding: 20px; */
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: lightskyblue;
    transition: 0.3s ease;
    display: flex;              /* FIXED */
    justify-content: space-between;
    align-items: center;
    padding: 15px 6%;
}

body {
    color: black;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

/* animation */
.animated-box {
  position: relative;
  opacity: 0;
  transform: translate(100px);
  animation: slideInBottom 1s ease-out forwards;
}
@keyframes slideInBottom {
  0% {
    opacity: 0;
    transform: translateY(500px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section */
section {
    padding: 30px 6%;
    margin: 0 auto;
    max-width: 1100px;
}

/* Navbar */
.navbar {
    display: flex;
    /* justify-content: left; */
    gap: 25px;
    /* padding: 10px 0; */
}

.navbar a {
    font-size: 18px; 
    color: black;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: 0.3s ease;
}

.navbar a:hover {
    background-color: royalblue;
    color: white;
}


/* Hamburger */
.menu-toggle {
    display: none;
    /* background-color: lightblue; */
    font-size: 24px;
    cursor: pointer;
}


/* About section */
.aboutme {
    padding: 40px 0;   /* Equal padding top-bottom & left-right */
}

.about-heading {
    text-align: center;
    margin-bottom: 10px;
}

/* Container */
.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    /* max-width: 1100px; */
    margin: 0 auto;
    flex-wrap: wrap;
}

/* Image */
.about-container img {
    width: 320px;
    height: auto;
    object-fit: cover;
    max-width: 380px;      /* responsive control */
    border-radius: 50%;
    flex: 0 0 auto;   /* prevent shrinking */
}

.about-container img:hover {
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(40, 90, 130, 0.35);
}

/* Text Wrapper */
.about-text {
    /* flex: 0 0 45%;    */
    max-width: 520px;
}

.about-text p {
    font-size: 18px;
    line-height: 1.7;
}

/* Skills & Services */
.skills h2,
.projects h2,
.internships h2 {
    text-align: center;
    margin-bottom: 25px;
}

.skills-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.skills-list li {
    background-color: #f0f0f0;
    padding: 12px 25px;
    border-radius: 25px;
    transition: 0.3s ease;
    cursor: pointer;
}

.skills-list li:hover {
    background-color: royalblue;
    color: white;
    transform: translateY(-5px);
}

/* Services */
.projects-container,
.cert-container {
    display: flex;
    /* justify-content: center; */
    gap: 25px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 15px 0;
    /* flex-wrap: wrap; */
}

/* Scrollbar Styling */
.cert-container::-webkit-scrollbar,
.projects-container::-webkit-scrollbar {
    height: 4px;
}

.cert-container::-webkit-scrollbar-thumb,
.projects-container::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.4);
    border-radius: 10px;
}

.project-cards h4,
.cert-cards h4 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #111;
}

.cert-cards:hover h4 {
    color: white;
}
.project-cards,
.cert-cards {
    background-color: #f4f4f4;
    color: black;
    padding: 25px;
    border-radius: 12px;
    width: 280px;
    flex: 0 0 auto;
    text-align: center;
    scroll-snap-align: start;
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.project-cards:hover {
    /* background-color: royalblue;
       color: white; */
    transform: translateY(-10px);
    box-shadow: 0 12px 15px rgba(0, 0, 0, 0.25);
}

.cert-cards:hover {
    background-color: royalblue;
    transform: translateY(-10px);
    box-shadow: 0 12px 15px rgba(0, 0, 0, 0.25);
}

.project-cards img{
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.cert-cards img{
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.project-button {
    display: inline-block;
    justify-content: center ;
    margin: 8px 5px;
    padding: 10px 18px;
    background: #0077ff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: background 0.3s ease, transform 0.2s ease;
}

/* Button hover */
.project-button:hover {
    background: #005edc;
    transform: scale(1.05);
}

/* Key Highlights Title */
.project-cards h4 {
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

/* Key Highlights List */
.project-cards ul {
    list-style: none;        /* Remove default bullets */
    padding-left: 0;
    margin-top: 5px;
}

/* Each Highlight Item */
.project-cards ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
}

/* Custom Bullet */
.project-cards ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 13px;
    color: royalblue;
    font-weight: bold;
}

/* Contact */
.contact {
    text-align: center;
}

.contact input,
.contact textarea {
    width: 70%;
    max-width: 500px;
    padding: 14px;
    margin: 15px auto;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    resize: none;
}

.contact button {
    padding: 12px 25px;
    border: none;
    background-color: white;
    color: black;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s ease;
}

.contact button:hover {
    background-color: royalblue;
    color: white;
}

/* Footer */
.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 6%;
    background-color: #f0f0f0;
}

/* Footer Text */
.footer-text {
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}

/* Social Icons */
.left,
.right {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 50%;
    background-color: white;
    font-size: 22px;
    color: #333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Social Hover Effects */
.left:hover {
    background-color: #0A66C2;
    color: white;
    transform: translateY(-5px);
}

.right:hover {
    background-color: #181717;
    color: white;
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    section {
        padding: 50px 6%;
    }

    /* Mobile View */
    .menu-toggle {
        display: block;
        z-index: 1100;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: lightblue;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
        display: none;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .navbar.active {
        display: flex;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .skills-list {
        flex-direction: column;
        align-items: center;
    }

    .projects-container,
    .cert-container {
        flex-direction: column;
        align-items: center;
    }

    .project-cards,
    .cert-cards {
        width: 90%;
    }

    .contact input,
    .contact textarea {
        width: 90%;
    }

    .footer {
        /* flex-direction: column; */
        gap: 15px;
    }
}

/* Read More Button */
.read-more-btn {
    background: none;
    border: none;
    color: royalblue;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;   /* IMPORTANT FIX */
    margin: 8px auto;
    text-align: center;
    position: relative;
    padding-bottom: 3px;
}

/* Animated underline */
.read-more-btn::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: royalblue;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.read-more-btn:hover::after {
    transform: scaleX(1);
}

#popup-container {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 119, 182, 0.35); 
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
}










