/* Base Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    padding-top: 100px; /* Adjust the padding to match the height of your header */
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

header {
    background-color: #fff;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

nav ul li {
    display: inline-block;
    margin: 0 15px;
}

nav ul li button {
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    padding: 10px 20px;
    border-radius: 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    position: relative;
    box-shadow: 3px 3px 0 #000, 6px 6px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

nav ul li button:hover {
    top: -3px;
    left: -3px;
    box-shadow: 0 0 0 #000, 3px 3px 0 rgba(0, 0, 0, 0.1);
}

.night-mode-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.night-mode-btn i {
    font-size: 20px;
    pointer-events: none;
}

/* Section Styles */
section {
    padding: 50px;
    text-align: center;
    margin: 0;
    /* Removed invalid margin-bottom */
}

section#intro {
    background-color: #f4f4f4;
    padding-bottom: 0;
}

section h2 {
    display: inline-block;
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    padding: 20px 40px;
    border-radius: 0;
    font-size: 20px;
    font-weight: bold;
    position: relative;
    box-shadow: 3px 3px 0 #000, 6px 6px 0 rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

section h2 button {
    margin-top: 20px;
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    padding: 10px 20px;
    border-radius: 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    position: relative;
    box-shadow: 3px 3px 0 #000, 6px 6px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.dropdown-btn {
    display: none; /* Hide the dropdown button by default */
}

section h2 button:hover {
    top: -3px;
    left: -3px;
    box-shadow: 0 0 0 #000, 3px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Button Styles */
.button2-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.button2 {
    width: 50px;
    height: 50px;
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    border-radius: 0;
    cursor: pointer;
    font-size: 30px;
    font-weight: bold;
    position: relative;
    box-shadow: 3px 3px 0 #000, 6px 6px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.button2:hover {
    top: -3px;
    left: -3px;
    box-shadow: 0 0 0 #000, 3px 3px 0 rgba(0, 0, 0, 0.1);
}

.btn2 {
    margin-top: 20px;
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    padding: 10px 20px;
    border-radius: 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    position: relative;
    box-shadow: 3px 3px 0 #000, 6px 6px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn2:hover {
    top: -3px;
    left: -3px;
    box-shadow: 0 0 0 #000, 3px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Section Header */
.section-header {
    display: inline-block;
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    padding: 10px 20px;
    border-radius: 0;
    font-size: 16px;
    font-weight: bold;
    position: relative;
    box-shadow: 3px 3px 0 #000, 6px 6px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Experience Card */
.experience-card {
    display: flex;
    align-items: center; /* Align image and text vertically in the center */
    justify-content: center; /* Center the content horizontally */
    padding: 150px;
    margin: 10px 0; /* Add spacing between cards */
    background-color: #5fb7c7; /* Adjust background color */
    height: 250px; /* Fixed height for all experience cards */
    box-sizing: border-box; /* Ensure padding is included in height */
}

.experience-card .left-column {
    flex-shrink: 0; /* Prevent the image from shrinking */
    margin-right: 20px; /* Add space between the image and text */
    text-align: right;
}

.experience-card img {
    width: 200px; /* Adjust the size of the image */
    height: 200px; /* Keep the aspect ratio */
    border-radius: 5px;
}

.experience-card .right-column {
    flex: 1; /* Allow the text column to take up available space */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center the text */
    text-align: left; /* Align text to the left */
    max-width: 600px; /* Set max width for consistent text width */
}

.experience-card h3 {
    margin-top: 0;
    font-size: 30px; /* Adjust font size */
    color: #fff; /* Adjust color */
}

.experience-card p {
    margin: 10px 0;
    font-size: 14px;
}

.experience-card-links {
    margin-top: 10px;
}


.experience-card .btn {
    display: inline-block;
    margin-right: 10px;
    padding: 10px 15px;
    background-color: #F5F5F5;
    color: #002E5D;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 3px 3px 0 #000;
}

.experience-card .btn:hover {
    background-color: #D4D4D4;
}

/* Project Cards */
.project-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #002E5D;
    border-radius: 0;
    padding: 30px;
    width: calc(33% - 30px); /* Adjusted to fit three cards per row */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    text-align: center;
    color: #F5F5F5;
    box-sizing: border-box;
    min-height: 250px; /* Set a minimum height for consistent card size */
}

.project-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #002E5D;
    border-radius: 0;
    padding: 30px;
    width: 100%; /* Adjusted to fit three cards per row */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    text-align: center;
    color: #F5F5F5;
    box-sizing: border-box;
    min-height: 250px; /* Set a minimum height for consistent card size */
}

.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 10px;
    transform: rotateY(180deg);
    background-color: #2d2d2d;
    color: white;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.back-content {
    padding: 20px;
    text-align: center;
}



.project-card img {
    width: 150px;
    height: auto;
    border-radius: 5px;
}

.project-card h3 {
    font-size: 24px;
    color: #F5F5F5;
}

.project-card p {
    margin: 10px 0;
    color: #F5F5F5;
}

.project-card-links {
    margin-top: 10px;
}

.project-card .btn {
    display: inline-block;
    margin-right: 10px;
    padding: 10px 15px;
    background-color: #F5F5F5;
    color: #002E5D;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 3px 3px 0 #000;
}

.project-card .btn:hover {
    background-color: #D4D4D4;
}

/* CCA Cards */
.cca-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.cca-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #002E5D;
    border-radius: 0;
    padding: 20px;
    width: calc(33% - 40px); /* Adjusted to fit three cards per row */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #F5F5F5;
    box-sizing: border-box;
}

.cca-card img {
    width: 100px;
    height: auto;
    border-radius: 5px;
    margin-bottom: 20px;
}

.cca-card h3 {
    font-size: 24px;
    color: #F5F5F5;
}

.cca-card p {
    margin: 10px 0;
    color: #F5F5F5;
}

.cca-card-links {
    margin-top: 10px;
}

.cca-card .btn {
    display: inline-block;
    margin-right: 10px;
    padding: 10px 15px;
    background-color: #F5F5F5;
    color: #002E5D;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 3px 3px 0 #000;
}

.cca-card .btn:hover {
    background-color: #D4D4D4;
}

/* Skills Section */
.skills-section {
    width: 80%;
    margin: 0 auto;
}

.skills-category {
    margin-bottom: 30px;
}

.skills-category h2 {
    font-size: 24px;
    font-weight: bold;
}

.skills-category .skills-box {
    display: flex;
    align-items: center;
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    padding: 5px 10px;
    border-radius: 0;
    font-size: 16px;
    font-weight: bold;
    position: relative;
    box-shadow: 3px 3px 0 #000, 6px 6px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.skills-category .skills-box img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.skills-category .skills-box p {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.skills-category .skills-box div {
    display: flex;
    align-items: center;
}

/* Night Mode Styles */
body.night-mode {
    background-color: #222;
    color: #fff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.night-mode header {
    background-color: #333;
    border-bottom: 1px solid #555;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.night-mode footer {
    background-color: #333;
    transition: background-color 0.3s ease;
}

body.night-mode nav ul li button {
    background-color: #444;
    color: #fff;
    border-color: #fff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.night-mode nav ul li button:hover {
    background-color: #666;
}

body.night-mode .button2 {
    background-color: #444;
    color: #fff;
    border-color: #fff;
    box-shadow: 3px 3px 0px #111, 6px 6px 0px rgba(255, 255, 255, 0.1);
}

body.night-mode .button2:hover {
    background-color: #666;
}

body.night-mode section h2,
body.night-mode section h2 button {
    background-color: #444;
    color: #fff;
    border-color: #666;
    box-shadow: 3px 3px 0px #111, 6px 6px 0px rgba(255, 255, 255, 0.1);
}

body.night-mode .experience-card,
body.night-mode .cca-card,
body.night-mode .skills-category .skills-box {
    background-color: #444;
    color: #fff;
    border-color: #666;
    box-shadow: 3px 3px 0px #111, 6px 6px 0px rgba(255, 255, 255, 0.1);
}

body.night-mode .experience-card h3,
body.night-mode .cca-card h3,
body.night-mode .skills-category h2 {
    color: #ffa726;
}

body.night-mode .experience-card p,
body.night-mode .cca-card p,
body.night-mode .skills-category p {
    color: #ddd;
}

body.night-mode .btn,
body.night-mode .experience-card .btn,
body.night-mode .cca-card .btn,
body.night-mode .skills-category .skills-box .btn {
    background-color: #666;
    color: #fff;
    border-color: #fff;
}

body.night-mode .btn:hover,
body.night-mode .experience-card .btn:hover,
body.night-mode .cca-card .btn:hover,
body.night-mode .skills-category .skills-box .btn:hover {
    background-color: #888;
}

body.night-mode .night-mode-btn {
    background-color: #666;
    color: #fff;
    border-color: #fff;
}

body.night-mode .night-mode-btn:hover {
    background-color: #888;
}

/* Additional night mode styles for home page */
body.night-mode section#intro {
    background-color: #1a1a1a;
}

body.night-mode section#experience {
    background-color: #222;
}

body.night-mode section#projects {
    background-color: #1a1a1a;
}

body.night-mode section#skills {
    background-color: #222;
}

body.night-mode section#contact {
    background-color: #1a1a1a;
}

body.night-mode .project-card {
    background-color: #333;
    border-color: #444;
}

body.night-mode .card-front, 
body.night-mode .card-back {
    background-color: #333;
    color: #ddd;
}

body.night-mode .project-card h3 {
    color: #ffa726;
}

body.night-mode .project-card p {
    color: #bbb;
}

body.night-mode .proj-card {
    background-color: #333;
    border-color: #444;
    box-shadow: 3px 3px 0px #111, 6px 6px 0px rgba(255, 255, 255, 0.1);
}

body.night-mode .proj-side {
    background-color: #333;
}

body.night-mode .proj-card h3,
body.night-mode .proj-card h4 {
    color: #ffa726;
}

body.night-mode .proj-card p {
    color: #bbb;
}

body.night-mode .proj-btn {
    background-color: #666;
    color: #fff;
    border-color: #fff;
}

body.night-mode .proj-btn:hover {
    background-color: #888;
}

/* Add smooth transitions for all elements */
body, 
header, 
footer, 
button, 
.button2, 
section, 
.blog-post, 
.gallery-item, 
.experience-card, 
.cca-card, 
.project-card,
.night-mode-btn,
.proj-card {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Popup Styles */
.others-popup {
    display: none;
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    border: 1px solid #000;
    box-shadow: 3px 3px 0 #000, 6px 6px 0 rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 1001;
    width: 300px;
    text-align: center;
}

.popup-content {
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

.others-popup button {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px 0;
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.others-popup button:hover {
    background-color: #f0f0f0;
}

.others-popup button:last-child {
    margin-bottom: 0;
}

/* Project Section Styling */
#Projects {
    padding: 50px;
    text-align: center;
}

#Projects h2 {
    margin-bottom: 30px;
}

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

/* Card Styling */
.proj-card {
    width: 300px;
    height: 400px;
    perspective: 1000px;
    cursor: pointer;
    margin: 15px;
}

.proj-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

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

.proj-card.flipped .proj-inner {
    transform: rotateY(180deg);
}

/* Card Sides */
.proj-side {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    box-sizing: border-box;
}

.proj-front {
    background-color: #002E5D;
    color: #F5F5F5;
}

.proj-back {
    background-color: #2d2d2d;
    color: #ffffff;
    transform: rotateY(180deg);
}

/* Content Layout */
.proj-left-column {
    text-align: center;
    margin-bottom: 15px;
}

.proj-right-column {
    text-align: left;
}

/* Image Styling */
.proj-card img {
    width: 150px;
    height: auto;
    margin-bottom: 15px;
}

/* Text Styling */
.proj-card h3 {
    font-size: 20px;
    color: #ffa600;
    margin-bottom: 10px;
}

.proj-card h4 {
    font-size: 14px;
    color: #ffa600;
    margin-bottom: 15px;
}

.proj-card p {
    font-size: 14px;
    color: #ffa600;
    margin-bottom: 15px;
}

/* Button Styling */
.proj-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffa600;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
}

/* Back Content Layout */
.proj-back-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


/* #experience {
    margin: 50px 0;
}

.experience-header {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.experience-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    background-color: #e0e0e0;
    color: #555;
    cursor: pointer;
    font-size: 24px;
    border: 1px solid #ccc;
}

.experience-tab + .experience-tab {
    border-left: none;
}

.experience-tab.active {
    background-color: #5fb7c7;
    color: #fff;
}

.experience-content {
}

.experience-card {
    display: flex;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
}

.experience-card .left-column {
    flex: 1;
    text-align: center;
}

.experience-card .right-column {
    flex: 2;
    padding-left: 20px;
}

.experience-card .experience-card-links {
    margin-top: 10px;
}

.experience-card .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
}

@media (max-width: 768px) {
    .experience-card {
        flex-direction: column;
    }
    .experience-card .right-column {
        padding-left: 0;
        margin-top: 20px;
    }
} */

/* Media Queries for Mobile Devices */
@media (max-width: 768px) {
    header {
        padding: 10px;
    }

    nav ul {
        display: none; /* Hide navigation items by default */
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .dropdown-btn {
        display: block;
        background-color: #fff;
        color: #000;
        border: 1px solid #000;
        padding: 10px;
        border-radius: 0;
        cursor: pointer;
        font-size: 16px;
        font-weight: bold;
        box-shadow: 3px 3px 0 #000, 6px 6px 0 rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
        margin-bottom: 10px;
    }

    nav.show ul {
        display: flex; /* Show navigation items when dropdown is toggled */
    }

    nav ul li {
        display: block;
        margin: 5px 0;
    }

    nav ul li button {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }

    .night-mode-btn {
        width: 35px;
        height: 35px;
    }

    section {
        padding: 20px;
    }

    section#intro {
        padding: 20px;
        margin-top: -30px;
        margin-bottom: 30px;
    }

    section h2 {
        font-size: 18px;
        padding: 15px 20px;
        margin-bottom: 20px;
        margin-top: -20px;
    }

    .button2-container {
        flex-direction: row;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .button2 {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }

/* Ensure proper behavior on smaller screens */
    .experience-card {
        flex-direction: column; /* Stack image and text on smaller screens */
        align-items: center; /* Center content horizontally */
        height: auto; /* Let height adjust naturally on small screens */
    }

    .experience-card .left-column {
        margin-right: 0; /* Remove margin when stacked */
        margin-bottom: 20px; /* Space between image and text */
    }

    .experience-card img {
        width: 200px; /* Adjust the size of the image */
        height: auto; /* Keep the aspect ratio */
        border-radius: 5px;
    }

    .experience-card .right-column {
        text-align: center; /* Center text on smaller screens */
    }

    .experience-card h3 {
        font-size: 24px; /* Adjust font size for smaller screens */
    }

    .experience-card p {
        font-size: 16px; /* Adjust paragraph font size */
    }
    .skills-category .skills-box {
        flex-direction: column;
        text-align: center;
    }

    .skills-category .skills-box img {
        margin-bottom: 10px;
    }

    /* Update for project and CCA cards to display in columns */
    .project-container,
    .cca-container {
        flex-direction: column;
        align-items: center;
    }

    .project-card,
    .cca-card {
        width: 100%;
        margin-bottom: 20px;
    }

    .project-card img,
    .cca-card img {
        width: 100px;
        margin-bottom: 20px;
    }

    .project-card h3,
    .cca-card h3 {
        font-size: 20px;
    }

    .project-card p,
    .cca-card p {
        font-size: 14px;
    }
}
