/* Import the Playfair Display font */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');


/* Reset some default styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Playfair Display', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #10002b; /* Base color for the body background */
}


/* Background Animation */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}



/* Navigation Bar Styling */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 500;
    background: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    transition: background 0.3s ease; /* Smooth transition on scroll */
}

nav.scrolled {
    background: rgba(0, 0, 0, 1); /* Solid background when scrolled */
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Spacing between nav items */
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px; /* Spacing between icon and text */
    transition: color 0.3s ease, text-shadow 0.3s ease; /* Smooth hover effect */
}

nav ul li a i {
    font-size: 1.2em; /* Icon size */
}

/* Active State Styling */
nav ul li a.active,
nav ul li a:hover {
    color: #ffcc00; /* Highlight active or hovered links */
    text-shadow: 0 0 10px #ffcc00, 0 0 20px #ffffff; /* Glow effect */
}

/* Underline Animation */
nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: #ffcc00; /* Underline color */
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%; /* Full underline on hover or active */
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    
    /* 🔹 Navigation Bar */
    nav ul {
        flex-direction: column; /* Stack items vertically */
        align-items: flex-start; /* Align text to the left */
        position: absolute;
        top: 60px;
        left: 0;
        background: rgba(0, 0, 0, 0.9); /* Dark background */
        width: 100%;
        padding: 10px;
        display: none; /* Hide menu by default */
    }

    nav ul.active {
        display: flex; /* Show menu when active */
    }

    nav ul li {
        width: 100%;
        padding: 10px;
    }

    nav ul li a {
        font-size: 1rem; /* Smaller font for better spacing */
        display: block;
        padding: 10px;
        width: 100%;
        text-align: left;
    }

/* 🔹 Hero Heading: Ensures Max Size Without Overflow */
.hero-content h1 {
    font-size: 1.7rem !important; /* Adjust based on screen */
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap; /* Prevents wrapping */
    white-space: nowrap; /* Ensures text stays on one line */
    overflow: hidden; /* Prevents text from breaking */
    line-height: 1.2;
}

/* 🔹 Typewriter Effect Text */
#typewriter {
    font-size: inherit !important; /* Match the heading */
    font-weight: bold;
    display: inline-block;
    letter-spacing: 0.5px; /* Ensure proper spacing */
    max-width: 100%;
}


    .hero-content h2 {
        font-size: 1.1rem !important; /* Slightly smaller subtitle */
    }

    /* 🔹 Fix Button Layout */
    .hero-content div {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .cta-button, .cta-button-secondary {
        width: 85%; /* Adjust button width for mobile */
        text-align: center;
        padding: 12px 18px; /* Better touch-friendly size */
        font-size: 1rem; /* Standardize button text */
    }
}




/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}


/* Hero Section Styling */
.hero-section {
    display: flex;
    justify-content: center; /* Center the content horizontally */
    align-items: center; /* Center the content vertically */
    padding: 60px 10%;
    background-image: url('background.webp'); /* Add the path to your image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    height: 100vh;
    position: relative;
    text-align: center; /* Center text alignment */
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Add overlay for better text readability */
    z-index: 0; /* Ensure it appears below content */
}

.hero-content {
    max-width: 60%;
    z-index: 1; /* Ensure content appears above overlay */
    text-align: center; /* Align text to the center */
    animation: fadeIn 1.5s ease-in-out; /* Add fade-in animation */
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #ffcc00;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-button {
    background-color: #ffcc00;
    color: #1e3c72;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 25px;
    text-decoration: none;
    margin-right: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.cta-button-secondary {
    background: none;
    color: #fff;
    padding: 10px 20px;
    border: 2px solid #ffcc00;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button-secondary:hover {
    background-color: #ffcc00;
    color: #1e3c72;
}

/* Keyframes for Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Hero Section */
@media (max-width: 768px) {

    /* Ensures hero section content is centered and readable */
    .hero-section {
        padding: 80px 5%;
        text-align: center;
        height: auto; /* Adjust height to fit content */
    }

    .hero-content {
        max-width: 95%; /* Allow more space for text */
        padding: 20px; /* Add padding to prevent text from touching edges */
    }

    .hero-content h1 {
        font-size: 2rem; /* Reduce font size for mobile */
        line-height: 1.3; /* Adjust spacing */
    }

    .hero-content h2 {
        font-size: 1.3rem; /* Make it slightly smaller */
    }

    .hero-content p {
        font-size: 0.95rem; /* Adjust readability */
        line-height: 1.5;
    }

    /* Ensure buttons are stacked properly */
    .hero-content div {
        display: flex;
        flex-direction: column;
        gap: 15px; /* Adds spacing between buttons */
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .cta-button, .cta-button-secondary {
        width: 90%; /* Ensures buttons are properly aligned */
        text-align: center;
        padding: 12px 15px; /* Adjust padding for better touch experience */
        font-size: 1rem; /* Slightly smaller buttons */
    }
}






/* Transition Section */
.transition-section {
    position: relative; /* Standard positioning */
    width: 100%;
    height: 100vh; /* Full viewport height */
    background: linear-gradient(to bottom, #ffffff, #f0f8ff); /* Subtle gradient */
    display: flex; /* Enables centering of content */
    flex-direction: column; /* Stack content vertically */
    justify-content: center; /* Centers content horizontally */
    align-items: center; /* Centers content vertically */
    overflow: hidden; /* Prevents overflow of child elements */
    z-index: 1; /* Keeps it above background but below sticky content */
}

/* Text Styling Inside Transition */
.transition-text h1 {
    font-size: 3.5rem; /* Large, readable font size */
    font-weight: bold; /* Makes the text stand out */
    background: linear-gradient(to right, #ff7eb3, #ff758c); /* Gradient text color */
    -webkit-background-clip: text; /* Clips background to text */
    -webkit-text-fill-color: transparent; /* Makes background visible in text */
    text-align: center; /* Centers the text */
    margin: 0; /* Removes unnecessary spacing */
    animation: fadeIn 1.5s ease-in-out; /* Subtle fade-in animation */
}

/* Subtext Styling */
.transition-text p {
    margin-top: 20px; /* Space below the heading */
    font-size: 1.5rem; /* Slightly smaller text */
    color: #666; /* Neutral gray color */
    text-align: center; /* Center the text */
    animation: bounce 1.5s infinite; /* Adds a playful bounce animation */
}

/* Keyframes for Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Keyframes for Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}



/* Particle Canvas Styling */
#particle-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Ensures it doesn't block interactions */
    z-index: 0; /* Below the text */
}


#scroll-text {
    font-size: 1rem; /* Initial size */
    text-align: center;
    color: gray;
    transition: font-size 0.1s ease; /* Smooth resizing */
}






/* Portfolio Section */
#portfolio {
    padding: 150px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('portfolio image.webp') no-repeat center center fixed;
    background-size: cover;
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Carousel Container */
.carousel-container {
    position: relative;
    width: 100%; /* Utilize the full width of the viewport */
    margin: auto;
    overflow: hidden;
}

/* Carousel */
.carousel {
    display: flex;
    gap: 40px; /* Space between cards */
    transition: transform 0.5s ease-in-out;
    padding: 0 5%; /* Add padding for edge spacing */
    box-sizing: border-box;
}

/* Carousel Item */
.carousel-item {
    flex: 0 0 60%; /* Slightly reduced size to fit more cards in view */
    max-width: 60%;
    height: 680px; /* Maintain enough height for both text and button */
    display: flex;
    flex-direction: column; /* Separate image and text */
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    background: rgba(255, 255, 255, 0.95); /* Background color for card */
    border-radius: 15px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease, opacity 0.5s ease;
    margin: 0 10px; /* Space between cards */
    overflow: hidden; /* Prevent overflow inside the card */
}

/* Image Section */
.carousel-item img {
    width: 100%;
    height: 60%; /* Occupies 60% of card height */
    object-fit: cover; /* Ensures image fits snugly without distortion */
    margin: 0;
    border-radius: 15px 15px 0 0; /* Rounded corners for the top of the card */
}

/* Text Section */
.project-details {
    padding: 20px;
    height: 40%; /* Increased bottom height for more text space */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.project-details h3 {
    font-size: 1.4rem; /* Larger font for titles */
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.project-details p {
    font-size: 1.1rem; /* Slightly larger for readability */
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

/* View Button Styling */
.view-button {
    display: inline-block;
    padding: 14px 35px; /* Slightly larger padding for prominence */
    font-size: 1.2rem; /* Slightly larger font size */
    font-weight: bold;
    text-align: center;
    color: #ffffff;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ff7a18, #ff3f81); /* Gradient background */
    border: none;
    border-radius: 30px; /* Softer rounded corners */
    box-shadow: 0px 6px 12px rgba(255, 63, 129, 0.4); /* Vibrant shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease; /* Smooth hover animations */
    text-decoration: none;
    cursor: pointer;
    margin-top: 20px; /* Ensure space above button */
}

/* Hover State */
.view-button:hover {
    background: linear-gradient(135deg, #ff3f81, #ff7a18); /* Reverse gradient for hover */
    transform: translateY(-4px); /* Slight lift on hover */
    box-shadow: 0px 10px 20px rgba(255, 63, 129, 0.6); /* Stronger shadow on hover */
}

/* Active State */
.view-button:active {
    transform: translateY(2px); /* Press-down effect */
    box-shadow: 0px 4px 8px rgba(255, 63, 129, 0.3); /* Reduced shadow when clicked */
}

/* Focus State */
.view-button:focus {
    outline: none; /* Remove default outline */
    box-shadow: 0px 0px 14px 4px rgba(255, 63, 129, 0.8); /* Glowing border for focus state */
}

/* Active Card Adjustment */
.carousel-item.active {
    transform: scale(1.1);
    opacity: 1;
    z-index: 3;
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.4);
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 30px;
    width: 100%;
    gap: 12px;
}

.carousel-dots .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-dots .dot.active {
    background: #ffcc00;
    transform: scale(1.2);
}



/* Responsive Design for Portfolio Section */
@media (max-width: 768px) {
    
    /* Fix portfolio background image */
    #portfolio {
        background-size: cover; /* Ensure it scales correctly */
        background-attachment: scroll; /* Prevent fixed background on mobile */
        background-position: center center; /* Center it properly */
        padding: 60px 5%; /* Reduce padding for better fit */
    }

    /* Adjust carousel layout */
    .carousel-container {
        width: 100%; /* Ensure it takes full width */
        padding: 0 5%; /* Increase padding slightly */
    }

    .carousel {
        display: flex;
        gap: 20px; /* Increase spacing between items */
        padding: 0; /* Ensure no extra spacing */
        justify-content: center; /* Center items properly */
    }

    /* Fix individual carousel items */
    .carousel-item {
        flex: 0 0 85%; /* Adjust width */
        max-width: 85%;
        height: auto; /* Auto height for better scaling */
        padding: 16px; /* Add padding */
        border-radius: 8px;
        margin: 0 auto 20px auto; /* Increase bottom margin to space out items */
    }

    /* Resize images inside carousel */
    .carousel-item img {
        height: 45%; /* Reduce image height */
        object-fit: cover; /* Ensure it fills the space */
        border-radius: 8px 8px 0 0; /* Round only the top corners */
    }

    /* Reduce text size for readability */
    .project-details {
        padding: 12px;
    }

    .project-details h3 {
        font-size: 1.2rem; /* Increase font size for better visibility */
    }

    .project-details p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 10px;
    }

    /* Fix View Button on mobile */
    .view-button {
        font-size: 1rem;
        padding: 10px 20px;
        margin-top: 10px;
    }

    /* Fix carousel dots */
    .carousel-dots {
        bottom: 15px;
    }
}





























/* Styles for the project page */
/* Full-page project section */
body {
    font-family: 'Playfair Display', serif; /* Elegant font */
    margin: 0;
    padding: 0;
    background: url('project.jpg') no-repeat center center fixed; /* Background image */
    background-size: cover; /* Ensures the image covers the entire background */
    color: #333; /* Default black text */
    line-height: 1.6;
}

/* Project header */
.project-header {
    background: rgba(255, 120, 179, 0.9); /* Semi-transparent pink */
    color: white;
    text-align: center;
    padding: 20px 20px;
    margin-bottom: 30px;
}

.project-header h1 {
    color: black; /* Keep the heading text white */
    font-size: 4rem; /* Increase font size for the main heading */
    font-weight: bold; /* Ensure the heading is bold */
    margin: 0;
}

.project-header p {
    color: white; /* Keep the subheading text white */
    font-size: 1.8rem; /* Increase font size for the subheading */
    margin-top: 10px;
}

/* Main content area */
.project-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 30px;
    padding: 20px;
    justify-content: space-between;
}

/* Text section */
.project-text {
    flex: 1 1 60%;
    padding: 20px;
    color: #000; /* Black text for content */
}

/* Subheadings (Project Overview, Key Outcomes, Tools Used) */
.project-text h2 {
    color: #000; /* Black text for subheadings */
    font-size: 1.8rem;
    font-weight: bold; /* Bold text */
    margin-bottom: 15px;
    border-bottom: 2px solid #ff758c; /* Decorative underline */
    padding-bottom: 5px;
}

/* Lists */
.project-text ul {
    list-style: disc;
    margin: 10px 0 20px 20px;
    color: #000; /* Black text for lists */
}

.project-text ul li {
    margin-bottom: 10px;
}

/* Download button */
.download-button {
    display: inline-block;
    background: linear-gradient(to right, #ff7eb3, #ff758c);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 117, 140, 0.3);
}

.download-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 117, 140, 0.6);
}

/* Image section */
.project-images {
    flex: 1 1 35%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-images img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #999;
    background: rgba(255, 255, 255, 0.7); /* Subtle transparency for footer */
}




















/* Skills Section */
#skills {
    background: #f8f9fa;
    padding: 50px 20px;
    text-align: center;
    overflow: hidden;
    margin-bottom: 0;
}

#skills h2 {
    color: #ff80ab; /* Soft pink color */
    font-size: 3.5em;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #ff80ab, #f48fb1); /* Soft pink gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGlow 2s ease-in-out infinite;
}






/* Horizontal Scroll Container */
.skills-scroll {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 20px;
    scroll-behavior: smooth;
}

.skills-scroll::-webkit-scrollbar {
    height: 8px;
}

.skills-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    border-radius: 10px;
}

.skills-scroll::-webkit-scrollbar-track {
    background: #e6e6e6;
    border-radius: 10px;
}

/* Skill Card Styling */
.skill-card {
    flex: 0 0 auto;
    background: linear-gradient(to bottom, #ffffff, #f4f4f4);
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 6px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-align: center;
    padding: 20px;
    width: 250px;
    position: relative;
    overflow: hidden;
}

/* Hover Effects */
.skill-card:hover {
    transform: translateY(-15px) scale(1.05); /* Lift and enlarge */
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2), 0 10px 15px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #e3f2fd, #ffffff); /* Slight hover gradient */
}

/* Icon Styling */
.skill-card i {
    font-size: 3.5em;
    color: #ffcc00;
    margin-bottom: 15px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.skill-card:hover i {
    transform: rotate(360deg) scale(1.2); /* Rotates and enlarges icon */
    color: #1e90ff; /* Changes the icon color */
}

/* Title Styling */
.skill-card h3 {
    font-size: 1.4em;
    font-weight: bold;
    color: #1e3c72;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Description Styling */
.skill-card p {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
}

/* Decorative Overlay */
.skill-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-50%) scale(0);
    transition: transform 0.5s ease;
    z-index: -1;
}

.skill-card:hover::before {
    transform: translateX(-50%) scale(1);
}

/* Keyframe Animations */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(30, 60, 114, 0.4), 0 0 20px rgba(30, 60, 114, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(30, 60, 114, 0.6), 0 0 30px rgba(30, 60, 114, 0.4);
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .skills-scroll {
        gap: 15px;
    }

    .skill-card {
        min-width: 200px;
    }

    #skills h2 {
        font-size: 2.2em;
    }
}


/* Central Modal Popup for Skills */
.skill-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed position on the screen */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centers immediately */
    background: linear-gradient(135deg, #f8f9fa, #ffffff); /* Subtle gradient background */
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); /* Soft shadow for depth */
    padding: 30px;
    width: 80%;
    max-width: 600px;
    text-align: center;
    z-index: 1000; /* On top of everything */
    opacity: 0;
    transition: opacity 0.4s ease-in-out, transform 0.3s ease-in-out; /* Smooth fade-in effect */
}

.skill-modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1); /* Stay centered and scale normally */
}



/* Add active class styling */
.skill-modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Header */
.skill-modal h4 {
    font-size: 2.5rem;
    color: #ff80ab; /* Soft pink */
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    animation: textBounce 1.5s infinite ease-in-out;
}

.skill-modal h4::after {
    content: "";
    position: absolute;
    width: 50%;
    height: 3px;
    background: linear-gradient(135deg, #ff80ab, #f48fb1); /* Gradient matching heading */
    bottom: -5px;
    left: 25%;
    border-radius: 2px;
}

/* Graphics placeholder */
.skill-modal .graphics {
    width: 100px;
    height: 100px;
    margin: 10px auto;
    background: url('https://via.placeholder.com/100x100.png?text=🎉') no-repeat center center;
    background-size: contain;
    animation: spin 4s linear infinite; /* Fun spinning animation */
}

/* Description */
.skill-modal p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #333;
    margin: 15px 0;
}

/* Key Points Styling */
.skill-modal .key-points {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 128, 171, 0.1); /* Light pink background */
    border-radius: 10px;
    border-left: 5px solid #ff80ab;
    font-size: 1rem;
    text-align: left;
}

/* Close Button */
.skill-modal button {
    background: linear-gradient(135deg, #ff80ab, #ff4081); /* Gradient pink button */
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.skill-modal button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 128, 171, 0.5);
}

/* Backdrop Overlay */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999; /* Just below the modal */
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-backdrop.active {
    display: block;
    opacity: 1;
}

/* Animations */
@keyframes popUp {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes textBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* For Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .skill-modal {
        width: 90%;
    }

    .skill-modal h4 {
        font-size: 2rem;
    }

    .skill-modal p {
        font-size: 1rem;
    }
}






/* About Me Section */
#about-me {
    background: #ffffff; /* Keep the About Me section content white */
    padding: 60px 20px;
    text-align: center;
    border-radius: 8px;
    margin: 10px 0; /* Space above and below the section */
}

.about-me-container {
    display: flex;
    flex-direction: column; /* Stack content vertically */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.about-me-text {
    max-width: 700px;
}

.about-me-text h2 {
    font-size: 2.5em;
    color: #ff729f; /* Match the transition page's text color */
    margin-bottom: 20px;
    text-transform: capitalize; /* Improve readability with consistent styling */
}

.about-me-text p {
    font-size: 1.2rem;
    line-height: 1.8; /* Slightly increased line spacing for readability */
    color: #555;
    margin-bottom: 15px;
}

.about-me-text a {
    color: #ffcc00;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.about-me-text a:hover {
    color: #ff729f; /* Match heading color */
    transform: scale(1.1); /* Subtle zoom effect on hover */
}



.photo-grid img {
    width: 400px; /* Box width */
    height: 500px; /* Box height */
    border-radius: 15px; /* Rounded corners for aesthetics */
    object-fit: cover; /* Ensures images fill the box without distortion */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); /* Add a shadow for depth */
}

/* Remove hover effect entirely */
.photo-grid img:hover {
    transform: none; /* No scaling */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); /* Keep the default shadow */
}



/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .photo-grid img {
        width: 250px; /* Adjust image size for smaller screens */
        height: 180px; /* Maintain proportions */
    }
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .about-me-images img {
        width: 300px; /* Smaller size for mobile */
        height: 200px;
    }
}




/* Highlighted "Click Here" */
.timeline-trigger {
    color: #ffcc00;
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 5px; /* Spacing between text and icon */
    transition: color 0.3s ease, transform 0.3s ease;
}

.timeline-trigger:hover {
    color: #ffa500; /* Brighter hover color */
    transform: scale(1.1); /* Slightly enlarge */
}

/* Timeline Modal Styling */
.timeline-modal {
    display: none; /* Initially hidden */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%; /* Full width of the viewport */
    height: 100%; /* Full height of the viewport */
    background-color: rgba(0, 0, 0, 0.8); /* Dark overlay */
    overflow: auto;
    padding: 50px 20px;
}

/* Content inside the modal */
.timeline-modal-content {
    background-color: #fff;
    margin: 0 auto;
    padding: 20px 30px;
    border-radius: 15px;
    max-width: 90%; /* Limit the width to 90% of the screen */
    max-height: 90%; /* Limit the height to 90% of the screen */
    overflow-y: auto; /* Enable vertical scrolling for content if needed */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Close Button */
.timeline-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.timeline-close:hover {
    color: #000;
}

/* Timeline Structure */
.timeline {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Spacing between items */
    position: relative;
    gap: 40px; /* Add spacing between items */
    padding: 20px 0;
}

/* Timeline Bar */
.timeline::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 5%;
    width: 90%; /* Spans 90% of the width */
    height: 4px;
    background: linear-gradient(to right, #f39c12, #e74c3c, #8e44ad, #3498db); /* Gradient line */
    z-index: 1;
    transform: translateY(-50%);
    border-radius: 5px;
}

/* Individual Timeline Items */
.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    width: 150px; /* Ensure equal width for items */
}

/* Circle Styles */
.timeline-item .circle {
    background-color: var(--circle-color, #ffcc00); /* Dynamic color */
    color: #fff;
    border: 4px solid #fff;
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
}

/* Content Box Styling */
.timeline-item .content {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 180px; /* Slightly wider boxes */
    text-align: center;
    margin-top: 10px;
}

.timeline-item .content h3 {
    font-size: 1.2em;
    color: #1e3c72;
    margin-bottom: 5px;
}

.timeline-item .content p {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline {
        flex-direction: column;
        gap: 20px;
    }

    .timeline::before {
        height: 90%;
        width: 4px;
        left: 50%;
        top: 5%;
        transform: translateX(-50%);
        background: linear-gradient(to bottom, #f39c12, #e74c3c, #8e44ad, #3498db); /* Vertical gradient */
    }

    .timeline-item {
        align-items: flex-start; /* Align to left in vertical layout */
        width: auto; /* Adjust to content */
    }

    .timeline-item .circle {
        margin-bottom: 0;
        margin-right: 15px;
    }

    .timeline-item .content {
        text-align: left;
        width: 100%;
    }
}





/* Photo Grid Styling */
.photo-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 0; /* Ensure no extra margin at the bottom */
}

.photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}







/* Contact Section */
#contact {
    background: url('contact.webp') no-repeat center center; /* Use your actual image path */
    background-size: cover; /* Ensures the image covers the entire section */
    padding: 60px 20px;
    text-align: center;
    color: #ffffff; /* White text for better contrast */
}

#contact h2 {
    color: #ffcc00; /* Golden color for headings */
    font-size: 2.5em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Adds text shadow for better visibility */
}

#contact ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

#contact ul li {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #ffcc00; /* Matches the theme */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Adds text shadow */
}

#contact ul li a {
    color: #ffcc00; /* Golden links */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

#contact ul li a:hover {
    color: #ffffff; /* Highlight on hover */
    text-shadow: 2px 2px 5px rgba(255, 204, 0, 0.8); /* Subtle glow effect */
}

#contact form {
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent black background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Adds depth */
}

#contact label {
    display: block;
    font-size: 1.1em;
    margin-bottom: 5px;
    color: #ffffff;
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    background: #333; /* Dark input fields */
    color: #ffffff; /* White text */
}

#contact input::placeholder,
#contact textarea::placeholder {
    color: #aaa; /* Lighter placeholder text */
}

#contact input:focus,
#contact textarea:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(255, 204, 0, 0.8); /* Golden glow on focus */
}

#contact button {
    background: linear-gradient(to right, #ff8800, #ffcc00);
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(255, 136, 0, 0.4);
    transition: all 0.3s ease;
}

#contact button:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 136, 0, 0.6);
}

/* Responsive Design */

/* For tablets and smaller screens */
@media screen and (max-width: 768px) {
    #contact h2 {
        font-size: 2em;
    }

    #contact ul li {
        font-size: 1em;
    }

    #contact form {
        padding: 20px;
    }

    #contact input,
    #contact textarea {
        font-size: 0.9em;
    }

    #contact button {
        font-size: 1em;
    }
}

/* For mobile screens */
@media screen and (max-width: 480px) {
    #contact h2 {
        font-size: 1.8em;
    }

    #contact ul li {
        font-size: 0.9em;
    }

    #contact form {
        width: 100%;
        padding: 15px;
    }

    #contact input,
    #contact textarea {
        font-size: 0.8em;
    }

    #contact button {
        font-size: 0.9em;
    }
}



/* Fix horizontal scrolling issue */
html, body {
    overflow-x: hidden; /* Prevents horizontal scrolling */
    width: 100%; /* Ensures the width does not exceed the viewport */
}


