/* General Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #151925;
    font-family: 'Nunito', sans-serif;
}

/* Skills Section */
.skill-section {
    position: relative;
    margin: 60px 0; /* Reduced margin for better mobile fit */
    padding: 0 15px; /* Reduced padding for smaller screens */
}

.heading {
    text-align: center;
    font-size: 36px; /* Reduced font size for mobile */
    color: #0ef;
    text-transform: capitalize;
    font-weight: 300;
    margin-bottom: 50px; /* Reduced margin for smaller screens */
}
.mobile {
    text-align: center;
    font-size: 36px; /* Reduced font size for mobile */
    color: #ff0000;
    text-transform: capitalize;
    font-weight: 300;
    margin-bottom: 50px; /* Reduced margin for smaller screens */
}

.skills-container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* Default to one column for mobile */
    grid-gap: 50px; /* Reduced gap for better compact layout on mobile */
    color: #fff;
}

.skill-card {
    position: relative;
    background: #1e2a3a;
    padding: 15px; /* Reduced padding for mobile */
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
}

.skill-name {
    font-size: 24px; /* Reduced font size for mobile */
    font-weight: 300;
    text-align: center;
    text-transform: capitalize;
    margin: 20px 0 15px;
}

.skill-info {
    text-align: center;
    opacity: 0.9; /* Increased opacity for better readability */
    font-size: 16px; /* Adjusted font size for mobile */
    line-height: 24px; /* Reduced line height for a more compact view */
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: #1e2a3a;

}

.footer-text p {
    font-size: 1rem;
    color: #fff;
}
.footer-text b {
    font-size: 1rem;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}
.footer-text a {
    color: #0ef;
}


/* Larger Screens - Tablets and Up */
@media (min-width: 768px) {
    .heading {
        font-size: 48px; /* Increased font size for tablets */
        margin-bottom: 80px;
    }
    .mobile {
        font-size: 48px; /* Increased font size for tablets */
        margin-bottom: 80px;
        color: rgb(255, 0, 0);
    }

    .skills-container {
        grid-template-columns: repeat(1, 1fr); /* Two columns for tablets */
        grid-gap: 60px; /* Adjusted gap for tablet view */
    }

    .skill-card {
        padding: 20px; /* Increased padding for larger screens */
    }

    .skill-name {
        font-size: 28px; /* Larger font size for skill name on tablets */
    }

    .skill-info {
        font-size: 18px; /* Increased font size for readability */
    }
    iframe {
        height: 600; /* Adjust the height for smaller screens */
        width: 1200;
      }
}

/* Larger Screens - Desktops */
@media (min-width: 1024px) {
    .heading {
        font-size: 60px; /* Even larger heading for desktop view */
        margin-bottom: 100px;
    }

    .skills-container {
        grid-template-columns: repeat(1, 1fr); /* Three columns for desktops */
        grid-gap: 80px;
    }
    .mobile {
        font-size: 48px; /* Increased font size for tablets */
        margin-bottom: 80px;
        color: #151925;
    }
}


.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 5s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }