/* General Styles */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: #121212;
    color: #fff;
    line-height: 1.6;
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #121212;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s;
}
.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #FFD700;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Remove default anchor styling for project links */
a.project-link {
    color: inherit !important;
    text-decoration: none !important;
    font: inherit;
}

/* Remove color from footer contact info links */
.footer-contact a.no-color {
    color: inherit !important;
    text-decoration: none;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    margin: 0 auto;
}

nav .logo img {
    height: 45px;
    padding: 10px;
}

nav ul {
    margin: 0;
    padding: 1rem 0;
    list-style: none;
}

nav ul li {
    display: inline-block;
    margin: 0 1rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #FFD700;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1522252234503-e356532cafd5?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
}

.hero-container {
    max-width: 900px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons .btn {
    margin: 0 0.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #FFD700;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

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

.btn-secondary {
    background: transparent;
    border: 2px solid #FFD700;
    color: #fff;
}

.btn-secondary:hover {
    background: #FFD700;
    color: #000;
}

/* Main Content */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 15px;
}

/* About Section */
#about .about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

#about .about-text {
    flex: 1;
}
#about .about-text p{
    text-align: justify;
}
#about .about-image {
    flex: 1;
    text-align: center;
}

#about .about-image img {
    max-width: 100%;
    border-radius: 10px;
}

section:last-child {
    border-bottom: none;
}

.light-section {
    background: #f4f4f4;
    color: #333;
}

.light-section h2, .light-section h3, .light-section .skill i, .light-section .certification h3 {
    color: #333;
}

.light-section .skill, .light-section .certification {
    background: #fff;
}


h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Projects Section */
.filter-buttons {
    text-align: center;
    margin-bottom: 2rem;
}

.filter-buttons .btn {
    margin: 0 0.5rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.project {
    background: #1e1e1e;
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.project.hide {
    display: none;
}

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

.project img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.project h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #FFD700;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    text-align: center;
}

.skill {
    background: #1e1e1e;
    padding: 2rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.skill i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #FFD700;
}

.progress-bar-container {
    width: 100%;
    background-color: #333;
    border-radius: 5px;
    margin-top: 1rem;
}

.progress-bar {
    width: 0;
    height: 10px;
    background-color: #FFD700;
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

/* Certifications Section */
#certifications {
    overflow: hidden;
    padding: 2rem 0;
}

.certifications-slider {
    width: 100%;
    margin: 0 auto;
    padding: 2rem 0;
}

.swiper-slide {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: stretch;
}



.certification {
    background: #1e1e1e;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 340px;
    height: 100%;
    align-items: center;
}

.certification img {

    height: 120px; 
    margin-right: 1.5rem;
}

.certification h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #FFD700;
}

.swiper-pagination{
    background: #FFD700;
    display: none;
}



/* Contact Section */
.contact-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-card form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-card input, .contact-card textarea {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f4f4f4;
    border: 1px solid #ccc;
    color: #333;
    border-radius: 5px;
}

.contact-card textarea {
    min-height: 150px;
}

.contact-card .btn {
    background: #FFD700;
    color: #000;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    align-self: flex-end;
    margin-top: auto;
}

.contact-card .btn:hover {
    background: #E6C300;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 4rem 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.footer-about, .footer-links, .footer-social {
    padding: 1rem;
}

.footer-contact{
    padding: 1rem 0;
}
.footer-about h3, .footer-links h3, .footer-contact h3, .footer-social h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #FFD700;
}

.footer-social {
    text-align: center;
}

.footer-social .social-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* gap: 1rem; */
    justify-items: center;
}

.footer-social .social-links a {
    font-size: 2rem;
    color: #fff;
    transition: color 0.3s;
    text-decoration: none;
}

.footer-social .social-links a:hover {
    color: #FFD700;
}

.footer-social .social-links a:last-child {
    margin-right: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

/* Fixed Social Bar */
.social-bar {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem 0.5rem;
    border-radius: 0 10px 10px 0;
    z-index: 100;
}

.social-bar a {
    color: #fff;
    font-size: 1.5rem;
    margin: 0.5rem 0;
    transition: color 0.3s;
}

.social-bar a:hover {
    color: #FFD700;
}


.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

@media (max-width: 958px) {
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100px;
        left: 0;
        background: rgba(0, 0, 0, 0.9);
        padding: 1rem 0;
    }
    .nav-container{
        margin: 0;
    }
    nav ul.nav-active {
        display: flex;
    }

    nav ul li {
        margin: 1rem 0;
        text-align: center;
    }

    .hamburger {
        display: block;
    }
}

@media (max-width: 768px) {
    #about .about-container {
        flex-direction: column-reverse;
    }
}