/* General Styles */
body {
    font-family: Hubballi, sans-serif;
    /* using google fonts here*/
    font-size: large;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #121212;
    color: #f5f5f5;

    background-image: url('../images/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* blurred bg image*/
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: inherit;
    background-position: inherit;
    background-attachment: inherit;
    background-repeat: inherit;
    filter: blur(10px);
    z-index: -1;
}

header {
    background: linear-gradient(#ff2e2e, #000000);
    /*    background-color: rgba(26, 26, 26, 0.6); */
    color: white;
    padding: 20px;
    text-align: center;
    /* border-bottom: 2px solid #ff2e2e; */
    font-family: 'Rock Salt', fantasy;
}

footer {
    background-color: rgba(26, 26, 26, 0.6);
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
    border-top: 2px solid #ff2e2e;
    font-family: 'Rock Salt', fantasy;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
    margin: 20px;
    border: solid #ff2e2e 2px;
    border-radius: 5px;
    background-color: rgba(26, 26, 26, 0.9);
    position: sticky;
    top: 0;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-family: 'Rock Salt', fantasy;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ff2e2e;
    font-size: larger;
}

nav ul li a.active {
    color: #ff2e2e;
    font-weight: bold;
    text-decoration: underline;
}




main {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
}



/* Home Page Styles */
.intro,
.skills {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid #ff2e2e;
}

/* Skills Page Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #1a1a1a;
}

table th,
table td {
    padding: 10px;
    border: 1px solid #333;
    text-align: left;
}

table th {
    background-color: #ff2e2e;
    color: white;
}

table tr:nth-child(even) {
    background-color: #1e1e1e;
}


.flexbox {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.flexbox-item {
    background-color: #1a1a1a;
    border: 2px solid #ff2e2e;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    flex: 1 1 calc(33.33% - 40px);
    max-width: calc(33.33% - 40px);
    box-sizing: border-box;
}


.flexbox-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}



.flexbox-img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

h1,
h2,
h3 {
    text-align: center;
    font-family: 'Rock Salt', fantasy;
}

@media (max-width: 768px) {
    .flexbox-item {
        flex: 1 1 calc(50% - 40px);
        max-width: calc(50% - 40px);
    }
}

@media (max-width: 480px) {
    .flexbox-item {
        flex: 1 1 100%;
        /* 1 item per row */
        max-width: 100%;
    }
}