body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #212121;
    color: #fff;
    scroll-behavior: smooth;
    /* Smooth scrolling */
}

/* #header {
    background-color: #121212;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #f8c102;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Arial', sans-serif;
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-size: 1.1rem;
    margin-right: 20px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #f8c102 !important;
} */

#home {
    background-color: #212121;
    color: #fff;
    padding: 80px 0;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
}

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

.typing {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #f8c102;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid #f8c102;
    width: 0;
    animation: typing 4s steps(30) 1s forwards, blink 0.75s step-end infinite;
}

@keyframes typing {
    0% {
        width: 0;
    }

    100% {
        width: 20ch;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.cta-button {
    background-color: #f8c102;
    color: #fff;
    padding: 10px 30px;
    border-radius: 30px;
    text-decoration: none;
}


#about,
#skills,
#portfolio,
#contact {
    padding: 50px 0;
}

footer {
    background-color: #121212;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.typing-container {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #f8c102;
    text-align: center;
    line-height: 1.5;
}

.hero-content .lead {
    font-size: 1.5rem;
    text-align: center;
}

/* <!-- Add the following updated CSS for a new style --> */

/* Navbar Base Styling */
#scroll-top {
    position: fixed;
    top: -140%;
    right: 2rem;
    padding: 1rem 1.5rem;
    font-size: 2rem;
    background: #ffae00;
    color: rgb(13, 0, 44);
    border-radius: 50%;
    transition: 1s linear;
    z-index: 1000;
}

#scroll-top.active {
    top: calc(100% - 12rem);
}

.navbar {
    background-color: #232323;
    /* Darker background */
    padding: 10px 0;
    /* Reduced padding for a sleek design */
    transition: background-color 0.3s ease;
    /* Smooth transition on hover */
}

.navbar:hover {
    background-color: #333;
    /* Slight darkening effect on hover */
}

/* Brand Name Styling */
.navbar-brand {
    font-size: 2rem;
    /* Bigger font for brand */
    font-weight: bold;
    /* Bold the brand text */
    color: #00bcd4;
    /* Accent color */
    text-transform: uppercase;
    letter-spacing: 1px;
    /* Spacing for a clean, modern feel */
    transition: color 0.3s ease;
    /* Transition for hover effect */
}

.navbar-brand:hover {
    color: #ff4081;
    /* Change color on hover */
}

/* Navbar Items Styling */
.nav-link {
    font-size: 1.1rem;
    /* Slightly bigger font for nav links */
    font-weight: 500;
    /* Semi-bold text */
    text-transform: uppercase;
    /* Uppercase text */
    margin: 0 15px;
    /* Horizontal spacing between items */
    color: #bbb;
    /* Lighter color */
    transition: color 0.3s ease, transform 0.3s ease;
    /* Smooth transition for hover */
}

.nav-link:hover {
    color: #00bcd4 !important;
    /* Change color on hover */
    text-decoration: none;
    /* Remove underline */
    transform: scale(1.05);
    /* Slight scaling effect */
}

/* Toggler Button Styling */
.navbar-toggler {
    border: none;
    /* Remove default border */
}

.navbar-toggler-icon {
    background-color: #00bcd4;
    /* Toggler icon color */
}

/* Media Query for Mobile */
@media (max-width: 991px) {
    .navbar-collapse {
        justify-content: flex-start;
        /* Align navbar items to the left on mobile */
    }

    .nav-link {
        font-size: 1rem;
        /* Slightly smaller font for mobile */
        margin: 10px 15px;
        /* Reduced space between items */
    }
}

/* Media Query for Large Screens */
@media (min-width: 992px) {
    .navbar-collapse {
        justify-content: center;
        /* Center navbar items on larger screens */
    }
}

/* <!-- CSS for Home Section --> */

/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #fff;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 50px 0;
}

/* Home Section */


/* <!-- Add the styles and script for the shatter effect --> */

/* Funny Comment Styling */
.funny-comment {
    position: relative;
    margin-top: 20px;
    color: #c6ff40;
    font-size: 36px;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    cursor: pointer;
    animation: bounce 1s ease-in-out infinite;
}

/* Bounce animation for the funny comment */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.image-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    width: 300px;
    /* Ensure container is sized */
    height: 300px;
    /* Ensure container is sized */
    margin: 0 auto;
}

.image-container img {
    display: block;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
}

.shattered-piece {
    position: absolute;
    width: 33.33%;
    height: 33.33%;
    background: url('img/img2.jpg') no-repeat;
    background-size: 300px 300px;
    opacity: 0;
    animation: shatter 2s forwards;
    transform-origin: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

@keyframes shatter {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: translate(var(--x), var(--y)) rotate(var(--rotate)) scale(1.2);
    }
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 100px 0;
    background-color: #222;
}

.falling-stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/black-linen.png') repeat;
    z-index: -1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.cta-button {
    padding: 10px 20px;
    background-color: #00bcd4;
    color: #fff;
    border: none;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
}

.cta-button:hover {
    background-color: #018b8d;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-icon {
    font-size: 2rem;
    color: #fff;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2);
}

.whatsapp:hover {
    color: #25D366;
}

.linkedin:hover {
    color: #0077B5;
}

.youtube:hover {
    color: #FF0000;
}

.instagram:hover {
    color: #E4405F;
}

.gmail:hover {
    color: #D44638;
}

/* .about-img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-top: 30px;
} */

/* Responsive styling */
@media (max-width: 768px) {
    .social-icons {
        gap: 15px;
    }

    .social-icon {
        font-size: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}


/* Create a dark background for the stars */
#home {
    background-color: #1a1a1a;
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Falling stars container */
.falling-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Style for individual stars */
.falling-stars .star {
    position: absolute;
    top: -50px;
    width: 3px;
    height: 3px;
    background-color: #c8dd09;
    border-radius: 50%;
    opacity: 0.8;
    animation: fall 10s infinite linear;
    box-shadow: 0 0 10px rgba(82, 7, 202, 0.836);
}

/* Keyframes for star animation (falling effect) */
@keyframes fall {
    0% {
        transform: translateY(-50px) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) scale(0.5);
        opacity: 0;
    }
}

/* Randomize star animation */
.falling-stars .star:nth-child(1) {
    left: 10%;
    animation-duration: 8s;
    animation-delay: 0s;
    animation-timing-function: ease-in-out;
}

.falling-stars .star:nth-child(2) {
    left: 25%;
    animation-duration: 9s;
    animation-delay: 1s;
    animation-timing-function: ease-in-out;
}

.falling-stars .star:nth-child(3) {
    left: 40%;
    animation-duration: 10s;
    animation-delay: 2s;
    animation-timing-function: ease-in-out;
}

.falling-stars .star:nth-child(4) {
    left: 60%;
    animation-duration: 7s;
    animation-delay: 0.5s;
    animation-timing-function: ease-in-out;
}

.falling-stars .star:nth-child(5) {
    left: 80%;
    animation-duration: 8.5s;
    animation-delay: 1.5s;
    animation-timing-function: ease-in-out;
}

/* Randomize star sizes and opacity for a more dynamic effect */
.falling-stars .star {
    width: 2px;
    height: 2px;
    background-color: #ffffff;
    animation: fall 8s infinite linear, twinkle 0.5s infinite alternate;
}

/* Create twinkling effect */
@keyframes twinkle {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Image styling */
#home img {
    position: relative;
    z-index: 2;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 250px;
    /* Set a fixed size for the image */
    height: 250px;
    object-fit: cover;
}

/* Hover effect for the image */
#home img:hover {
    transform: scale(1.2);
    /* Increase size */
    box-shadow: 0 0 20px 8px rgba(255, 255, 255, 0.7);
    /* Add a glowing effect */
}



/* Text Visibility Enhancement */
.section-title {
    font-size: 3rem;
    font-weight: bold;
    color: #00bcd4;
    /* Primary accent color */
    margin-bottom: 20px;
}

.skills-title {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 20px;
}

.skills-list {
    text-align: left;
    list-style-type: none;
    padding: 0;
    font-size: 1.1rem;
}

.skills-list li {
    margin: 10px 0;
    color: #ddd;
}

/* Image Styling */
.image-wrapper {
    position: relative;
}

.about-img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
}

/* Image Hover Effect */
.about-img:hover {
    transform: scale(1.05);
}

/* Fade-In Animations for Columns */
.fade-in-left {
    animation: fadeInLeft 1s ease-out forwards;
}

.fade-in-right {
    animation: fadeInRight 1s ease-out forwards;
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .about-section {
        height: auto;
        /* Allow height to adjust on small screens */
    }

    .about-img {
        width: 200px;
        height: 200px;
    }

    .about-content {
        padding: 20px;
    }
}


/* <!-- Add this to style and animate the modal and navbar --> */

.custom-modal {
    background-color: #2c3e50;
    color: #ecf0f1;
}

.custom-card {
    border: 2px solid #588bbd;
    transition: transform 0.3s ease;
}

.custom-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(32, 250, 12, 0.719);
}

.project-nav-item a {
    font-size: 18px;
    transition: color 0.3s ease;
}

.project-nav-item a:hover {
    color: #3498db;
}

.d-flex a {
    margin-right: 10px;
}


/* General Section Styles */
.skills-section {
    background-color: #222;
    color: #fff;
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.skill-item {
    background-color: #333;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 255, 0.2);
    /* Blue Shadow */
    transition: all 0.3s ease-in-out;
}

.skill-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 255, 0.3);
    /* Darker Blue Shadow */
    transform: translateY(-5px);
}

.skill-category {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-list li {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.skill-logo {
    width: 35px;
    height: 35px;
    margin-right: 15px;
    border-radius: 5px;
    background: #fff;
    padding: 5px;
}

.skill-item {
    background-color: #333;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 40px;
    /* Add more space between items */
    box-shadow: 0 4px 20px rgba(0, 0, 255, 0.2);
    /* Blue Shadow */
    transition: all 0.3s ease-in-out;
}

.skill-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 255, 0.3);
    /* Darker Blue Shadow */
    transform: translateY(-5px);
}

.row {
    row-gap: 40px;
    /* Add vertical spacing between rows */
}


/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .skill-item {
        padding: 15px;
    }

    .skill-category {
        font-size: 1.3rem;
    }

    .skill-logo {
        width: 30px;
        height: 30px;
    }

    .skill-list li {
        font-size: 1rem;
    }
}

/* Card Hover Animation */
.animated-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    transform: translateY(0);
}

.animated-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.6);
    /* Blue shadow on hover */
}

/* Styling for Cards */
.card {
    background-color: #f8f9fa;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

/* Card Content Styling */
.card-body {
    padding: 20px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
}

.animated-title {
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

/* Add Text Animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-text {
    font-size: 1rem;
    color: #555;
    transition: color 0.3s ease-in-out;
}

.card-text:hover {
    color: #007bff;
}

/* Add space between columns on smaller screens */
@media (max-width: 767px) {
    .col-md-6 {
        margin-bottom: 20px;
    }
}

/* Additional Hover Effects on Cards */
.animated-card:hover .card-body {
    background-color: #e9ecef;
    transform: scale(1.05);
    box-shadow: 0px 12px 18px rgba(0, 123, 255, 0.4);
    /* Blue shadow when hovered */
}

/* Sliding animations */
.wow {
    visibility: hidden;
}

/* Sliding in from Left */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Sliding in from Right */
@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.wow.slideInLeft {
    animation: slideInLeft 1s forwards;
}

.wow.slideInRight {
    animation: slideInRight 1s forwards;
}


/* <!-- Add Styles for Animation Effects --> */

/* Smooth Fade In for the Form */
.wow {
    visibility: hidden;
}

/* Fade In Animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.wow.fadeInUp {
    animation: fadeInUp 1s forwards;
}

/* Sliding Animations */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.wow.slideInLeft {
    animation: slideInLeft 1s forwards;
}

.wow.slideInRight {
    animation: slideInRight 1s forwards;
}

/* Button Hover Animation */
.btn-primary {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* Input Field Hover Effect */
.animated-input {
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.animated-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Social Media Icons */
.social-links i {
    transition: transform 0.3s ease;
}

.social-links i:hover {
    transform: scale(1.2);
}

/* <!-- External Styles (CSS) --> */
.social-icon {
    margin: 0 15px;
    color: #ffffff;
    font-size: 24px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2);
    color: #00bcd4;
}

.footer-link {
    margin: 0 10px;
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #00bcd4;
}