/* General Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

/* Body and Section Styling */
body {
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
}

/* Section Styling */
section {
    padding: 60px 20px;
    text-align: center;
    background-color: #1c1c1c;
    margin: 20px auto;
    border-radius: 15px;
    max-width: 1200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #ffffff;
}

/* Header Styling */
header {
    background: #1f1f1f;
    padding: 20px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styling */
.logo h1 {
    font-size: 24px;
    color: #ffffff;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 15px;
    transition: color 0.3s, background 0.3s;
    border-radius: 5px;
}

.nav-links li a:hover {
    color: #2575fc;
    background: rgba(255, 255, 255, 0.1);
}


/* Unified Card Styling for Skills, Projects, and Certifications */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: #333333;
    color: #e0e0e0;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
    background: #2b2b2b; /* Darken background on hover */
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s;
}

.card:hover img {
    transform: scale(1.05); /* Slight zoom-in effect on hover */
}

.card h3 {
    margin: 20px 0;
    font-size: 22px;
    color: #ffffff;
}

.card p {
    font-size: 16px;
    color: #bbbbbb;
    padding: 0 20px 20px 20px;
}

/* Icon Styling */
.skill-icon {
    font-size: 50px;
    color: #2575fc;
    margin: 20px 0;
    transition: color 0.3s, transform 0.3s;
}

.card:hover .skill-icon {
    color: #ffffff; /* Change icon color on hover */
    transform: rotate(10deg); /* Slight rotation effect */
}

/* About Section */
#about .about-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Additional Hover Effects */
section:hover {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
/* Styling for GitHub Project Links */
.project-link {
    display: inline-block;
    margin: 10px 0;
    padding: 10px 20px;
    background: #2575fc;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.project-link:hover {
    background: #1a5dbb;
}
/* Responsive Design for Header */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        position: absolute;
        right: 0;
        top: 60px;
        background: #1f1f1f;
        width: 200px;
        padding: 20px;
        border-radius: 5px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
        display: none; /* Hide by default */
    }

    .nav-links.active {
        display: flex; /* Show on toggle */
    }
    
    /* Placeholder for a future menu toggle button */
}
/* Button Styling */
.view-cert-btn {
    margin: 10px 0;
    padding: 10px 20px;
    background: #2575fc;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 16px;
}

.view-cert-btn:hover {
    background: #1a5dbb;
}

/* Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Start with 0 opacity */
    transform: scale(0.9); /* Slightly shrink for scale effect */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Add transitions */
}

.modal.show {
    display: flex; /* Use flex to center content */
    opacity: 1; /* Fade in */
    transform: scale(1); /* Scale to normal size */
}

.modal-content {
    position: relative;
    width: 80%;
    max-width: 900px;
    background: #1c1c1c;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
}

iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 5px;
}

.glow-white {
    filter: drop-shadow(0 0 10px #fff)
}

.socials {
    position: relative;
    margin: 0 0 20px 0;
    text-align: center;
}

.socials a {
    margin: 0 6px;
    position: relative;
    display: inline-block;
    vertical-align: top;
    overflow: hidden;
    width: 42px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    border: 1px solid #ccc;
    transition: all 0.4s ease 0s;
    -moz-transition: all 0.4s ease 0s;
    -webkit-transition: all 0.4s ease 0s;
    -o-transition: all 0.4s ease 0s;
    border-radius: 42px;
    -moz-border-radius: 42px;
    -webkit-border-radius: 42px;
    -khtml-border-radius: 42px;
}

.socials a .icon {
    font-size: 18px;
    color: #292929;
    transition: all 0.4s ease 0s;
    -moz-transition: all 0.4s ease 0s;
    -webkit-transition: all 0.4s ease 0s;
    -o-transition: all 0.4s ease 0s;
}

.socials a:hover {
    border: 1px solid #292929;
}

.socials a:hover .icon {
    color: #292929;
}

.socials a {
    color: white;
  }