.typing-container {
    font-size: 3.5em;
    white-space: nowrap;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    padding-left: 1.5em;
    padding-bottom: 0.5em;
    padding-top: 0.5em;
}

body {
    background-color: #282c34; /* Set the desired background color */
    color: #ffffff; /* Set the text color */
    font-family: monospace;
}

.cursor {
    background-color: darkgray;
    width: 0.5em;
    height: 1em;
    margin-left: 0.18em; /* Small gap between text and cursor */
}


.header {
    padding: 5px; /* some padding */
    background: rgb(1, 2, 31); /* green background */
    color: #ffffff; /* white text color */
    font-size: 30px;
    border-radius: 14px;
}

/* Increase the font size of the <h1> element */
.h1 {
    font-family: "Verdana";
    text-align: left;
    font-size: 65px;
}
.h3{
    font-size: 35px;
    padding: 10px;
    text-underline: none;
    padding-top: 15px;
    color: #f1f1f1;
}
.projects{
    display: flex;
    flex-direction: row;
    padding: 0 1%;
}
.item{
    width: 150px;
    height: 400px;
    flex: 1;
    margin: 0 1%;
    padding-top: 13px;
    text-decoration: none;
}
/* Style the top navigation bar */
.navbar {
    width: 90%;
    font-size: 30px;
    display: flex;
    justify-content: space-between;
}

/* Style the navigation bar links */
.navbar a {
    float: left; /* Make sure that the links stay side-by-side */
    display: block; /* Change the display to block, for responsive reasons (see below) */
    color: white; /* White text color */
    text-align: center; /* Center the text */
    padding: 20px 30px; /* Add some padding */
    text-decoration: none; /* Remove underline */
    filter: grayscale(100%) brightness(100);
    font-size: 30px;
    border-radius: 10px;
}

/* Right-aligned link */
.navbar a.right {
    float: right; /* Float a link to the right */
}

/* Change color on hover/mouse-over */
.navbar a:hover {
    text-decoration: none;
    background-color: #ddd; /* Grey background color */
    color: black; /* Black text color */
    filter: none;
}
/* Ensure proper sizing */
* {
    box-sizing: border-box;
}

/* Column container */
.row {
    display: flex;
    flex-wrap: wrap;
}

/* Create two unequal columns that sits next to each other */
/* Sidebar/left column */
.side {
    flex: 30%; /* Set the width of the sidebar */
    background-color: #f1f1f1; /* Grey background color */
    padding: 20px; /* Some padding */
}

/* Main column */
.main {
    flex: 70%; /* Set the width of the main content */
    background-color: white; /* White background color */
    padding: 20px; /* Some padding */
}
.footer {
    padding: 25px; /* Some padding */
    font-size: 10px;
    color: #f1f1f1;
    text-align: center; /* Center text*/
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: dimgrey;
    min-width: 160px;
    font-size: 20px;
    box-shadow: 0px 8px 16px 0px rgb(1, 2, 31);
    z-index: 1;
    border-radius: 10px;
}
.section{
    display: flex;
    flex-direction: row;
    padding: 20px;
}
/* Links inside the dropdown */
.dropdown-content a {
    float: none;
    color: white;
    font-size: 20px;
    padding: 20px 20px;
    text-decoration: none;
    display: block;
    text-align: left;
}
/* Add a grey background color to dropdown links on hover */
.dropdown-content a:hover {
    background-color: #ddd;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-decoration-color: lightseagreen;
}
/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}
/* The dropdown container */
.dropdown {
    float: left;
    overflow: hidden;

}

/* Dropdown button */
.dropdown .dropbtn {
    font-size: 16px;
    border: none;
    outline: none;
    color: white;
    padding: 20px 30px; /* Add some padding */
    background-color: inherit;
    font-size: 30px;
    font-family: inherit; /* Important for vertical align on mobile phones */
    margin: 0; /* Important for vertical align on mobile phones */
}
/* Responsive layout - when the screen is less than 800px wide */
@media screen and (max-width: 800px) {
    .typing-container {
        font-size: 2.5em;
        padding: 0.5em;
    }

    .section {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .section img {
        width: 250px !important;
        height: auto !important;
        margin-bottom: 20px;
    }

    .section p {
        font-size: 20px !important;
        line-height: 32px !important;
        padding: 20px !important;
    }

    .projects {
        display: flex;
        flex-direction: column;
        padding: 0 10px;
    }

    .item {
        width: 100%;
        height: auto;
        margin: 10px 0;
        padding: 10px;
    }

    .navbar {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .navbar a {
        width: 100%;
        text-align: center;
        padding: 15px;
        font-size: 24px;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown .dropbtn {
        width: 100%;
        text-align: center;
    }

    .dropdown-content {
        position: relative;
        width: 100%;
    }

    .h1 {
        font-size: 40px;
    }

    .h3 {
        font-size: 28px;
    }
}

/* Responsive layout - when the screen is less than 400px wide */
@media screen and (max-width: 400px) {
    .typing-container {
        font-size: 2em;
    }

    .section img {
        width: 200px !important;
    }

    .section p {
        font-size: 18px !important;
        line-height: 28px !important;
        padding: 15px !important;
    }

    .navbar a {
        font-size: 20px;
        padding: 12px;
    }

    .h1 {
        font-size: 32px;
    }

    .h3 {
        font-size: 24px;
    }
}

.fade-in {
    opacity: 0;
    animation-name: fadeIn;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Projects Page Styles */
.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.projects-container h1 {
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
    color: #333;
}

.project-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-card h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.project-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-link {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #2980b9;
}

/* Active link in navbar */
.navbar a.active {
    color: #3498db;
    font-weight: bold;
}

/* Design Page Styles */
.design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.design-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #333;
}

.design-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: #444;
}

.design-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.9);
}

.design-card:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

.design-card h2 {
    color: #ffffff;
    margin: 20px 20px 10px;
    font-size: 1.5em;
}

.design-card p {
    color: #b0b0b0;
    margin: 0 20px 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.design-card .project-link {
    margin: 0 20px 20px;
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border: 2px solid #3498db;
    border-radius: 6px;
    background: rgba(52, 152, 219, 0.1);
}

.design-card .project-link:hover {
    background: #3498db;
    color: white;
}

.all-projects-link {
    text-align: center;
    margin: 40px 0;
}

.all-projects-link .project-link {
    font-size: 1.2em;
    padding: 10px 20px;
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border: 2px solid #3498db;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.all-projects-link .project-link:hover {
    background: #3498db;
    color: white;
}

@media screen and (max-width: 768px) {
    .design-grid {
        grid-template-columns: 1fr;
        padding: 10px;
    }
    
    .design-card img {
        height: 200px;
    }
}

/* Enhanced Project Page Styles */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #333;
}

.project-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: #444;
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.9);
}

.project-card:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

.project-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card h2 {
    color: #ffffff;
    margin: 0 0 15px;
    font-size: 1.5em;
}

.project-card p {
    color: #b0b0b0;
    margin: 0 0 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.tech-stack {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tech-stack i {
    font-size: 2em;
    transition: transform 0.3s ease;
    color: #3498db;
}

.tech-stack i:hover {
    transform: scale(1.2);
    color: #2980b9;
}

.project-link {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    align-self: flex-start;
    padding: 8px 16px;
    border: 2px solid #3498db;
    border-radius: 6px;
    background: rgba(52, 152, 219, 0.1);
}

.project-link:hover {
    background: #3498db;
    color: white;
}

@media screen and (max-width: 768px) {
    .project-card.featured {
        grid-template-columns: 1fr;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        padding: 10px;
    }
    
    .project-card img {
        height: 200px;
    }
    
    .tech-stack i {
        font-size: 1.5em;
    }
}

.design-doc-card {
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 20px;
    margin: 40px auto;
    max-width: 800px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #333;
}

.design-doc-card h2 {
    color: #4CAF50;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.design-doc-card p {
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.6;
}

.design-link {
    display: inline-block;
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.design-link:hover {
    color: #45a049;
}
