/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #1a1a1a;
    color: #fff;
    padding-top: 70px; /* Prevent content overlap with fixed navbar */
}

/* Header and Navigation */
header {
    background-color: #2a2a2a;
    color: #fff;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

nav .nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease-in-out;
}

nav .nav-links li a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    transition: color 0.3s;
}

nav .nav-links li a:hover {
    color: #00bcd4;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    background: linear-gradient(135deg, #27272f, #51525f);
    color: white;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-text h1 span {
    color: #ffcc00;
}

.hero-text p {
    font-size: 18px;
    color: #f0f0f0;
    margin-bottom: 20px;
    line-height: 1.6;
    max-width: 700px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-buttons .btn {
    background-color: #ffcc00;
    color: #333;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-buttons .btn:hover {
    background-color: #e6b800;
    transform: translateY(-3px);
}

.hero-buttons .btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.hero-buttons .btn-outline:hover {
    background-color: #fff;
    color: #333;
    transform: translateY(-3px);
}



.hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.stat-box {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-box h3 {
    font-size: 32px;
    color: #ffcc00;
    margin-bottom: 5px;
}

.stat-box p {
    font-size: 16px;
    color: #f0f0f0;
}

.stat-box i {
    font-size: 2rem;
    color: #ffcc00;
    margin-bottom: 10px;
    display: block;
}

/* Responsive Design for Hero Section */
@media (max-width: 768px) {
    .hero {
        padding: 40px 20px;
        text-align: center;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
        line-height: 1.4;
    }

    .hero-text p {
        font-size: 1rem;
        line-height: 1.5;
        max-width: 90%;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }


    .hero-stats {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }

    .stat-box {
        padding: 10px 15px;
        text-align: center;
    }

    .stat-box h3 {
        font-size: 1.2rem;
    }

    .stat-box p {
        font-size: 0.9rem;
    }

    .stat-box i {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
}

/* Modern Home Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, #00bcd4, #3f51b5);
    color: #fff;
    text-align: center;
    padding: 20px;
}

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

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-buttons .btn,
.hero-buttons .btn-outline {
    padding: 10px 25px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.hero-buttons .btn {
    background-color: #fff;
    color: #333;
}

.hero-buttons .btn:hover {
    background-color: #00bcd4;
    color: #fff;
}

.hero-buttons .btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.hero-buttons .btn-outline:hover {
    background-color: #fff;
    color: #333;
}

/* Modernized Hero Section */
.hero {
    padding: 100px 20px;
    background: linear-gradient(135deg, #27272f, #51525f);
    color: white;
    text-align: center;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-text h1 span {
    color: #ffcc00;
}

.hero-text p {
    font-size: 18px;
    color: #f0f0f0;
    margin-bottom: 20px;
    line-height: 1.6;
    max-width: 700px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    background-color: #ffcc00;
    color: #333;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: #e6b800;
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn-outline:hover {
    background-color: #fff;
    color: #333;
    transform: translateY(-3px);
}




.hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.stat-box {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-box h3 {
    font-size: 32px;
    color: #ffcc00;
    margin-bottom: 5px;
}

.stat-box p {
    font-size: 16px;
    color: #f0f0f0;
}

.stat-box i {
    font-size: 2rem;
    color: #ffcc00;
    margin-bottom: 10px;
    display: block;
}

/* Section Styles */
.section {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.underline {
    display: block;
    width: 50px;
    height: 3px;
    background-color: #00cc00;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
}

/* About Me Section */
.about-content {
    display: flex;
    justify-content: center;
}

.about-text {
    max-width: 600px;
}

.about-text h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.about-text p {
    text-align: justify;
    line-height: 1.6; /* Improves readability */
    color: #333; /* Optional: Adjust text color for better contrast */
    margin-bottom: 20px;
}

.about-text h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.tech-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.tech-grid div {
    flex: 1;
}

.tech-grid p {
    font-size: 16px;
    color: #fff;
    margin-bottom: 10px;
}

.tech-grid ul {
    list-style: none;
}

.tech-grid ul li {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 5px;
}

.btn {
    background-color: #00cc00;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #00b300;
}

/* About Me Section */
#about {
    padding: 50px 20px;
    background-color: #1a1a1a;
    color: #fff;
}

#about .about-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

#about .about-image {
    flex: 1;
    max-width: 400px;
}

#about .about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

#about .about-text {
    flex: 2;
    text-align: left;
}

#about .about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ffcc00;
}

#about .about-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 20px;
}

#about .tech-grid {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

#about .tech-grid div {
    flex: 1;
}

#about .tech-grid ul {
    list-style: none;
    padding: 0;
}

#about .tech-grid ul li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #fff;
}

#about .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #00bcd4;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#about .btn:hover {
    background-color: #3f51b5;
}

/* Responsive Design for About Me Section */
@media (max-width: 768px) {
    #about .about-content {
        flex-direction: column;
        text-align: center;
    }

    #about .about-image {
        max-width: 300px;
    }

    #about .about-text {
        text-align: center;
    }

    #about .tech-grid {
        flex-direction: column;
    }
}

/* Qualification Section */
.qualification-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.qualification-box {
    flex: 1;
    min-width: 300px;
}

.qualification-box h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.qual-item {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.qual-item h4 {
    font-size: 20px;
    color: #00cc00;
    margin-bottom: 10px;
}

.qual-item p {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 5px;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skill-box {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 10px;

}

.skill-box h3 {
    font-size: 20px;
    margin-bottom: 15px;
}


.skill-box ul {
    list-style: none;
}

.skill-box ul li {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 10px;
}

/* Skills Section Icons */
.skill-box ul li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.skill-box ul li i {
    font-size: 1.2rem;
    color: #00bcd4;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures consistent spacing */
    align-items: center;
    background-color: #2A2A2A;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 100%; /* Ensures all cards have the same height */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.project-box img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.project-box h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #FFCC00;
}

.project-box p {
    font-size: 1rem;
    color: #f0f0f0;
    margin-bottom: 15px;
    line-height: 1.6;
    text-align: justify;
}

.project-buttons {
    margin-top: auto; /* Pushes the buttons to the bottom */
    display: flex;
    justify-content: center;
    gap: 15px;
}

.project-buttons .btn,
.project-buttons .btn-outline {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.project-buttons .btn {
    background-color: #00cc00;
    color: #fff;
}

.project-buttons .btn:hover {
    background-color: #00b300;
}

.project-buttons .btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.project-buttons .btn-outline:hover {
    background-color: #fff;
    color: #333;
}

/* Competitive Programming Section */
#competitive {
    padding: 50px 20px;
    background-color: #1a1a1a;
    color: #fff;
}

#competitive h2 {
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

#competitive .underline {
    display: block;
    width: 50px;
    height: 3px;
    background-color: #00cc00;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
}

.competitive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.comp-box {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comp-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.comp-box img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    object-fit: contain;
    border-radius: 50%;
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.comp-box h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #ffcc00;
}

.comp-box p {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 10px;
    line-height: 1.6;
}

.comp-box a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #00cc00;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.comp-box a:hover {
    background-color: #00b300;
    transform: translateY(-3px);
}

/* Responsive Design for Competitive Programming Section */
@media (max-width: 768px) {
    .competitive-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .comp-box img {
        width: 60px;
        height: 60px;
    }

    .comp-box h3 {
        font-size: 1.3rem;
    }

    .comp-box p {
        font-size: 0.9rem;
    }

    .comp-box a {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
}

/* Contact Section */
#contact {
    text-align: center;
}

#contact p {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 20px;
    max-width: 600px;
    margin: 0 auto 20px;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #00bcd4;
}

.contact-form button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #00bcd4;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #3f51b5;
}

/* Footer */
footer {
    background-color: #2a2a2a;
    padding: 50px 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.footer-section p {
    font-size: 16px;
    color: #ccc;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #fff;
    font-size: 20px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #00cc00;
}

footer p {
    font-size: 14px;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        clip-path: none;
        padding: 60px 20px;
    }

    .hero-content {
        gap: 20px;
    }

    .hero-media {
        flex-direction: column;
        gap: 20px;
    }

    .hero-image img,
    .hero-video video {
        width: 250px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-image img {
        width: 200px;
        height: 200px;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    .tech-grid {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    .nav-links {
        position: absolute;
        top: 60px;
        right: 0;
        background-color: #333;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hamburger {
        display: block;
    }
}

/* Responsive Design for Hero Section */
@media (max-width: 768px) {
    .hero {
        padding: 40px 20px;
        text-align: center;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
        line-height: 1.4;
    }

    .hero-text p {
        font-size: 1rem;
        line-height: 1.5;
        max-width: 90%;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 15px;
    }

    .hero-video video {
        width: 100%;
        max-width: 400px;
        border-radius: 10px;
    }

    .hero-stats {
        flex-direction: row;
        gap: 15px;
        margin-top: 20px;
    }

    .stat-box {
        padding: 10px 15px;
        text-align: center;
        font-size: 0.9rem;
    }

    .stat-box h3 {
        font-size: 1.1rem;
    }

    .stat-box p {
        font-size: 0.6rem;
    }

    .stat-box i {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }
}

/* Education Section */
#education {
    padding: 50px 20px;
    background-color: #1a1a1a;
    color: #fff;
}

#education h2 {
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

#education .underline {
    display: block;
    width: 50px;
    height: 3px;
    background-color: #00cc00;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
}

.education-timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #00cc00;
    z-index: -1;
}

.timeline-item:first-child::before {
    top: 50%;
}

.timeline-item:last-child::before {
    bottom: 50%;
}

.timeline-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: #00cc00;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.timeline-content {
    flex: 1;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #ffcc00;
}

.timeline-content p {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #ccc;
}

.timeline-date {
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
}

/* Highlighted GPA/CGPA */
.highlight {
    color: #ffcc00; /* Bright yellow to grab attention */
    font-weight: bold;
    font-size: 1.1rem;
    background-color: rgba(255, 204, 0, 0.2); /* Subtle background highlight */
    padding: 2px 5px;
    border-radius: 5px;
}

/* Responsive Design for Education Section */
@media (max-width: 768px) {
    .education-timeline {
        gap: 20px;
    }

    .timeline-item {
        flex-direction: column;
        text-align: center;
    }

    .timeline-item::before {
        left: 50%;
        width: 2px;
        height: 100%;
        transform: translateX(-50%);
    }

    .timeline-icon {
        margin-bottom: 10px;
    }
}

/* Skills Section */
#skills {
    padding: 50px 20px;
    background-color: #1a1a1a;
    color: #fff;
}

#skills h2 {
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

#skills .underline {
    display: block;
    width: 50px;
    height: 3px;
    background-color: #00cc00;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-box {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.skill-box i {
    font-size: 3rem;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

/* Change logo colors */
.skill-box:nth-child(1) i {
    color: #e34c26; /* HTML - Orange */
}

.skill-box:nth-child(2) i {
    color: #2965f1; /* CSS - Blue */
}

.skill-box:nth-child(3) i {
    color: #f7df1e; /* JavaScript - Yellow */
}

.skill-box:nth-child(4) i {
    color: #61dafb; /* React - Light Blue */
}

.skill-box:nth-child(5) i {
    color: #68a063; /* Node.js - Green */
}

.skill-box:nth-child(6) i {
    color: #f29111; /* Database - Orange */
}

.skill-box h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #ffcc00;
}

.skill-box p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.6;
}

/* Responsive Design for Skills Section */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .skill-box i {
        font-size: 2.5rem;
    }

    .skill-box h3 {
        font-size: 1.3rem;
    }

    .skill-box p {
        font-size: 0.9rem;
    }
}

/* Projects Section */
#projects {
    padding: 50px 20px;
    background-color: #1a1a1a;
    color: #fff;
}

#projects h2 {
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

#projects .underline {
    display: block;
    width: 50px;
    height: 3px;
    background-color: #00cc00;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures consistent spacing */
    align-items: center;
    background-color: #2A2A2A;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 100%; /* Ensures all cards have the same height */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.project-box img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.project-box h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #FFCC00;
}

.project-box p {
    font-size: 1rem;
    color: #f0f0f0;
    margin-bottom: 15px;
    line-height: 1.6;
}

.project-buttons {
    margin-top: auto; /* Pushes the buttons to the bottom */
    display: flex;
    justify-content: center;
    gap: 15px;
}

.project-buttons .btn,
.project-buttons .btn-outline {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.project-buttons .btn {
    background-color: #00cc00;
    color: #fff;
}

.project-buttons .btn:hover {
    background-color: #00b300;
}

.project-buttons .btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.project-buttons .btn-outline:hover {
    background-color: #fff;
    color: #333;
}

/* Responsive Design for Projects Section */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr; /* Single column layout for small screens */
        gap: 15px; /* Reduce gap between items */
    }

    .project-box {
        padding: 15px; /* Reduce padding for smaller screens */
    }

    .project-box img {
        height: 120px; /* Reduce image height for smaller screens */
    }

    .project-box h3 {
        font-size: 1.2rem; /* Adjust font size for headings */
    }

    .project-box p {
        font-size: 0.9rem; /* Adjust font size for descriptions */
    }

    .project-buttons .btn,
    .project-buttons .btn-outline {
        font-size: 0.9rem; /* Adjust button font size */
        padding: 8px 15px; /* Reduce button padding */
    }
}

.icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

/* Certifications Section */
#certifications {
    padding: 40px 20px;
    background-color: #191919;
    text-align: center;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.certification-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures consistent spacing */
    align-items: center;
    background-color: #2A2A2A;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 100%; /* Ensures all cards have the same height */
}

.certification-box h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #FFCC00;
}

.certification-box p {
    font-size: .8rem;
    color: #f0f0f0;
    margin-bottom: 15px;
}

.certification-box .btn {
    background-color: #00bcd4;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: auto; /* Pushes the button to the bottom */
}

.certification-box .btn:hover {
    background-color: #008c9e;
}

.pdf-preview {
    width: 100%;
    height: 300px;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.certificate-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive Design for Certifications Section */
@media (max-width: 768px) {
    .certifications-grid {
        grid-template-columns: 1fr; /* Single column layout for small screens */
        gap: 15px; /* Reduce gap between items */
    }

    .certification-box {
        padding: 15px; /* Reduce padding for smaller screens */
    }

    .certification-box h3 {
        font-size: 1.2rem; /* Adjust font size for headings */
    }

    .certification-box p {
        font-size: 0.9rem; /* Adjust font size for descriptions */
    }

    .pdf-preview {
        height: 200px; /* Reduce height of PDF previews */
    }

    .certificate-image {
        max-width: 100%; /* Ensure images scale properly */
        height: auto; /* Maintain aspect ratio */
    }

    .certification-box .btn {
        font-size: 0.9rem; /* Adjust button font size */
        padding: 8px 15px; /* Reduce button padding */
    }
}
