@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&family=Montserrat:wght@400;700&display=swap');

body {
    background-color: #f0f0f0 !important;
    font-family: 'Poppins', sans-serif !important;
    overflow-x: hidden;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

/* Styling for section titles (h2) */
h2 {
    font-weight: 700; 
}

/* Style for paragraph text */
p {
    font-weight: 400;
}

.skill{
    font-weight: 400;
}
    
    section {
        min-height: 100vh; 
        display: grid;
        align-items: center; 
        justify-content: center; 
        padding: 60px 20px; 
    }

    .projects-container {
        display: flex;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }

    .project-link {
        text-decoration: none; /* Remove underline */
        color: inherit; /* Keep text color same */
    }

    .project-card {
        background: #021526;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        text-align: center;
        transition: transform 0.1s ease-in-out;
        width: 300px;
        cursor: pointer;
    }

    .project-card:hover {
        transform: scale(1.08) !important;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }

    .project-card img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-radius: 5px;
        color: #E2E2B6;
    }

    .project-card h3 {
        margin-top: 10px;
        font-size: 20px;
        color: #E2E2B6;
    }

    .project-card p {
        font-size: 14px;
        color: #E2E2B6;
    }

    .project-card a {
        display: inline-block;
        margin-top: 10px;
        color: #007bff;
        text-decoration: none;
        font-weight: bold;
    }

    .project-card a:hover {
        color: #03346E;
    }

    #about {
        text-align: center;
    }

    #education {
        background-color: #021526;
        color: #E2E2B6;
        padding: 60px 20px;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        display: flex;
        flex-direction: column;
        align-items: center; 
    }

    #education h2 {
        text-align: center;
        font-size: 2rem;
        font-weight: bold;
        margin-bottom: 50px; 
        width: 100%; 
    }
    

    .experience-container {
        max-width: 1200px;
        margin: auto;
        column-count: 2;
        column-gap: 20px;
    }
    
    
    .experience-box {
        background-color: rgba(255, 255, 255, 0.1); 
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        break-inside: avoid; /* Prevent column breaks */
        width: 100%; /* Important: Makes proper width */
        display: inline-block; /* Elements will respect width */
        margin-bottom: 20px; /* Space between boxes */ 
    }

    @media (max-width: 768px) {
        .experience-container {
            column-count: 1; /* Stack in a single column for mobile users */
        }
    }
    
    .experience-box h3 {
        font-size: 2rem;
        font-weight: bold;
        margin-bottom: 10px;
    }
    
    .experience-box .subtext {
        color: #6EACDA; 
        font-weight: bold;
        font-style: italic;
    }
    
    .experience-box p {
        color: #E2E2B6; 
    }

    #articles {
        text-align: center;
    }

    #projects {
        text-align: center;
    }

    .cv-content {
        display: flex;
        flex-direction: column;
        gap: 40px;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: wrap;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .cv-container {
        flex: 2;
        min-width: 500px;
        display: flex;
        padding: 20px;
        gap: 20px;
    }
    
    .cv-images {
        display: flex;
        gap: 40px;
        justify-content: center; 
        align-items: center;
        flex-wrap: wrap; 
        width: 100%;
    }
    
    .cv-image {
        width: 45%; 
        max-width: 600px; 
        height: auto;
        border-radius: 10px;
        box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.4);
        margin-right: 50px;
    }

    @media (max-width: 768px) {
        .cv-image {
            width: 90%;
        }
    }

    .cv-download {
        text-align: center;
        display: flex;
        justify-content: center; 
        align-items: center;
        width: 100%;
        margin-top: 20px;
    }    

    .about-container {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 40px;
        flex-wrap: wrap;
    }

    .about-section {
        padding: 80px 20px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-text {
        max-width: 90%;
        margin: 0 auto;
        text-align: justify;
        font-size: 18px;
    }

    .about-content {
        display: flex;
        width: 100%;
        max-width: 1200px;
        margin-top: 30px;
        align-items: center; /* Ensures alignment in about section */
        flex-wrap: wrap;
    }

    .about-image {
        flex: 2;
        display: flex;
        justify-content: flex-start; /* Aligns the image to the left */
        align-items: center;
        min-width: 400px;
        filter: drop-shadow(5px 5px 5px #222);
    }

    .about-image img {
        width: 100%;
        max-width: 450px; /* Setting the size of image */
        height: auto;
        border-radius: 10px;
        object-fit: contain;
    }

    .about-details {
        flex: 2;
        margin-left: 40px;
        text-align: left;
    }

    .education,
    .skills {
        margin-bottom: 20px;
    }

    .edu-header{
        margin-top: 20px;
    }

    .skills-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .skill {
        display: flex;
        align-items: center;
        font-size: 16px;
    }

    .skill img {
        width: 20px;
        margin-right: 10px;
    }
    
    .hidden {
        opacity: 0;
        transform: translateY(50px); /* Initially below the viewport */
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    /* When the element comes into view and is animated */
    .hidden.show {
        opacity: 1;
        transform: translateY(0); /* Move to normal position */
    }
    
    /* Stay visible after the animation is complete */
    .stay-visible {
        opacity: 1;
        transform: translateY(0); /* Final position after animation */
        filter: blur(0); /* Clear blur if any */
    }
    
    /* Optionally, for project cards, you can add delays if needed */
    .project-card:nth-child(2) {
        transition-delay: 200ms;
    }
    
    .project-card:nth-child(3) {
        transition-delay: 400ms;
    }

    /* Hide Navbar When on Home Section */
#home {
    position: relative;
}

#navbar {
    display: none;
    background-color: #021526 !important;
}

nav.navbar li a{
    color: #E2E2B6;
}

nav.navbar li a:hover {
    color: #6EACDA;
}

.navbar-nav .nav-item {
    margin: 0 15px; /* nav bar item spacing */
    font-family: 'Montserrat', sans-serif;
}

.nav-menu {
    display: none; /* Initially hidden */
    flex-direction: column;
    background: #021526;
    position: absolute;
    top: 60px;
    width: 100%;
    left: 0;
    text-align: center;
}

.nav-menu.active {
    display: flex; /* Show menu when active */
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex !important; /* Always show menu on desktop */
        position: static;
        flex-direction: row;
    }
}


.scrolled #navbar {
    top: -80px;
}

/* Home Section */
.home-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    height: 100vh;
    background-color: #021526;
    color: #E2E2B6;
    font-family: 'Poppins', sans-serif;
}

.name-highlight {
    color: #6EACDA;
}

.intro-txt{
    color: #E2E2B6;
}

.typing-text {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 10px;
}

#dynamic-text {
    color: #6EACDA;
}

/* Buttons */
.home-buttons {
    margin-top: 20px;
}

/* Home Section Buttons */
.custom-btn {
    margin: 0 10px;
    font-size: 1.2rem;
    padding: 10px 12px;
    border: 2px solid white !important;  
    color: white !important; 
    text-decoration: none;
    background: transparent !important; 
    transition: 0.3s ease-in-out;
    font-family: "New Caledonia", serif;
}

.custom-btn:hover {
    background-color: transparent !important;
    color: #6EACDA !important;
    border-color: #6EACDA !important;
}

#certifications {
    text-align: center;
    padding: 50px 20px;
    max-width: 800px;
    margin: auto;
}

.cert-p{
    font-size: 1.2rem;
    line-height: 1.6;
    color: #333; /* Better readability */
    max-width: 500px;
    margin: auto;
}

@media (max-width: 768px) {
    #certifications {
        padding: 40px 15px; /* Adjust padding */
    }

    #certifications .title {
        font-size: 1.8rem; /* Slightly smaller title */
    }

    #certifications p {
        font-size: 1rem; /* Adjust text size for better readability */
    }
}

@media (max-width: 768px) {
    .certification-container, .cv-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.cert-item {
    border-bottom: 1px solid #021526;
    padding: 10px 0;
    width: 800px;
    cursor: pointer;
}

.cert-item .arrow {
    display: inline-block;
    transition: transform 0.3s ease-in-out;
}

.cert-item.open .arrow {
    transform: rotate(180deg);
}

.cert-content {
    display: none;
}

.cert-toggle {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.cert-details {
    display: none;
    padding: 10px;
    font-size: 14px;
}

.view-credentials {
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}

.footer {
    background-color: #021526;
    color: #E2E2B6;
    width: 100%;
    padding: 40px 20px;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

/* Contact Info (Left) */
.contact-info {
    flex: 1;
    text-align: left;
    min-width: 300px;
}

.contact-header, .social-header {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.social-header {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.contact-item img {
    width: 20px;
    height: 20px;
}

/* Socials (Right) */
.socials {
    flex: 1;
    text-align: right;
    min-width: 300px;
}

.social-icons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 10px;
    padding-bottom: 50px;
}

.social-icons a img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.social-icons a img:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .contact-info, .socials {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

 


