*, 
*:before, 
*:after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    color: #333;
    line-height: 1.6;
}

header {
    position: fixed;
    left: 0;
    top: 0;
    width: 30%;
    height: 100%;
    background-color: #4a4a4a;
    color: white;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
}

header .about {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

header .logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
}

header .avatar img {
    width: 100%;
    height: auto;
    border-radius: 50%;
}

header .menu {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

header .menu a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    margin: 0 1rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

header .menu a:hover {
    color: #cfcfcf;
}

header h1 {
    font-size: 2.25rem;
    font-weight: 600;
    color: white;
    margin-top: 30px;
    line-height: 1.3;
    text-align: center;
}

header .text1 {
    color: white;
    background: linear-gradient(-65deg, #fff, #7e7e7e, #fff, #515151);
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animated_text 10s ease-in-out infinite;
}

@keyframes animated_text {
    0% { background-position: 0px 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0px 50%; }
}

header .click-home {
    font-size: 1.4rem;
    font-weight: bold;
    cursor: pointer;
}

header span {
    margin-top: 1rem;
}

header span a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    margin-left: 1rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

header span a:hover {
    color: #cfcfcf;
}

main {
    margin-left: 30%; /* Matches the header width */
    padding: 2rem;
}

/* Project Section */
.project {
    background-color: #d9d9d9;
    height: 45.0rem;
    margin: 1.0rem auto;
    border: 1px solid #bfbfbf; 
    border-radius: 8px;
    font-size: 1.2rem;
}

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

.project-card {
    width: 100%; /* Allow cards to take the full width of their container */
    max-width: 18rem; /* Maximum width remains the same */
    height: 0;
    padding-bottom: 50%; /* This makes the height twice the width (2:1 ratio) */
    background-color: #e0e0e0;
    border: 1px solid #cfcfcf;
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Soft shadow for a lifted effect */
    font-weight: 500;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

/* Hover Effect */
.project-card:hover {
    transform: translateY(-5px);
    background-color: #d4d4d4;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Slightly more prominent shadow on hover */
}

.go-contact-me2 {
    display: none;
}

/* Specific Section Styles */
.go-project, .go-contact-me, .go-contact-me2, .go-skills {
    background-color: #f0f0f0;
    margin: 0 auto;
    height: 60rem;
    border: 1px solid #d3d3d3;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 400;
}

/* Main Section Styling */
main > section {
    width: 60.0rem;
    margin: 2.0rem auto;
    min-height: 20.0rem;
    padding: 2.0rem;
    font-size: 1.3rem;
    background-color: #ececec;
    border-radius: 8px;
    border: 1px solid #cfcfcf;
}

main > section h1 {
    font-size: 2rem;
    font-weight: 600; 
    margin-bottom: 1rem;
    color: #222;
}

.hideAll {
    display: none;
}


.yellow {
    background-color: yellow;
}

.desktop {
    display: block;
}

.mobile {
    display: none;
}
/* # Mobile
only screen and (min-width: 480px) */
@media (max-width:400px)  { 
    /* smartphones, portrait iPhone, portrait 480x320 phones (Android) */ 
    .desktop {
        display: none;
    }
    
    .mobile {
        display: block;
    }

    header.mobile {
        position: static;
        width: 100%;
    }

    main {
        margin-left: 0;
        padding: 0rem;
      }

      main > section {
        width: 100%;
        min-height: 20.0rem;
        padding: 0.0rem;
        background-color: #ececec;
        border-radius: 8px;
        border: 1px solid #cfcfcf;
      }


}

/* # Tablet
only screen and (min-width: 768px) 

# Desktop
only screen and (min-width: 992px)

# Huge
only screen and (min-width: 1280px)  */