html {
    font-size: 16px;
}
  
* {
    font-family: 'Ubuntu', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #121212;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    color: white;
    position: relative;
    background-color: #0e0e0e;
    margin-block-end: 0.5rem;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
}

.logo {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.brand-name {
    background: linear-gradient(
    90deg, 
    rgba(255, 255, 255, 0.15) 0%, 
    rgba(255, 255, 255, 0.05) 100%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.3em 0.3em;
    margin-right: 0.3em;
    border-radius: 3px;
    font-size: 1.5rem;
    font-weight: 600;
    margin-block-end: 5px;
}

.brand-name:hover {
    background: rgba(255, 255, 255, 0.15);
}

#mobile-icon {
    width: 2rem;
    height: 2rem;
    cursor: pointer;
}

#mobile-icon:hover + .top-nav,
.top-nav:hover {
    height: 100vh;
}

.top-nav {
    background-color: #0e0e0e;
    position: absolute;
    top: 80%;
    right: 0;
    padding-top: 0.1rem;
    z-index: 2;
    width: 55%;
    overflow-y: auto;
    height: 0;
    transition: height 0.5s ease;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.nav-menu li {
    border-radius: 0.5rem;
    padding: 0 0.2em;
}

.nav-menu li a,
button {
    text-decoration: none;
    display: block;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    padding: 0.9rem 1rem;
    color: #e0e0e0;
}

.nav-menu li button {
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.nav-menu li a:hover,
.nav-menu li button:hover {
    background-color: #1e1e1e;
}

#caret {
    width: 1rem;
    height: 1rem;
}

.nav-menu2 {
    width: 95%;
    margin-left: auto;
    overflow-y: auto;
    height: 0;
    transition: height 0.3s ease;
}

.nav-menu2 li {
    padding: 0 0.2em;
}

.nav-menu2 li a {
    font-size: 1.1rem;
}

.lang:hover + .nav-menu2,
.nav-menu2:hover {
    height: auto;
}

.nav-menu2-parent:hover .lang,
.nav-menu2:hover + .lang {
    background-color: #1e1e1e;
}

@media (min-width: 800px) {
    #mobile-icon {
        width: 0;
        height: 0;
    }

    .top-nav {
        position: relative;
        width: auto;
        height: auto;
        transition: none;
        padding-top: 0;
        overflow: visible;
    }

    .nav-menu {
        flex-direction: row;
        align-items: center;
    }

    .nav-menu2 {
        position: absolute;
        top: 100%;
        right: 0;
        width: 55%;
        min-width: 240px;
        background-color: #0e0e0e;
    }

    .lang:hover + .nav-menu2,
    .nav-menu2:hover {
        height: 80vh;
    }

    #mobile-icon:hover + .top-nav,
    .top-nav:hover {
        height: auto;
    }
}

footer {
    width: 100%;
    background-color: #0e0e0e;
    padding: 0.5em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin-block-start: 1rem;
    box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.3);
}
  
.footer-left {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem;
    margin-block-end: 1rem;
    border-radius: 0.5em;
}
  
.footer-left:hover {
    background-color: #1e1e1e;
}
    
footer nav {
    display: flex;
    align-items: center;
    padding: 0;
}
  
footer nav ul {
    list-style: none;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin: 0 0 0.5rem 0;
    padding: 0;
}
  
footer nav ul li a {
    text-decoration: none;
    color: #e0e0e0;
    font-size: 1.1rem;
    padding: 0.5em;
    margin-left: 0.2em;
    border-radius: 0.5em;
}
  
footer nav ul li a:hover {
    background-color: #1e1e1e;
}
  
@media (min-width: 500px) {
    footer {
        flex-direction: row;
    }

    .footer-left {
        margin-block-end: 0;
    }

    footer nav ul {
        margin-block-end: 0;
    }
}

main {
    position: relative;
    min-height: 75vh;
    margin-block: 2rem;
}

h1 {
    font-size: 2rem;
    line-height: 1.3;
    text-align: center;
    margin: 1rem auto 0.5rem auto;
    color: #e0e0e0;
}

.top-para {
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    padding: 0 0.5em;
    color: #cccccc;
}

@media (min-width: 600px) {
    h1, .top-para {
        width: 70%;
        margin: 0.5em auto 0.2em auto;
        text-align: center;
        margin-left: 0;
    }
}

@media (min-width: 900px) {
    h1, .top-para {
        width: 60%;
        margin: 0.5em auto 0.2em auto;
        text-align: center;
    }

    h1{
        font-size: 2.5rem;
        line-height: 1.3;
    }

    .top-para {
        font-size: 1.125rem;
        line-height: 1.7;
    }
}

.tools-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
    width: 95%;
}

.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.category-heading {
    font-size: 1.5rem;
    line-height: 1.4;
    margin: 2rem auto;
    text-align: center;
    padding-left: 0.5rem;
    color: #e0e0e0;
}

.tool-card {
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #2e2e2e;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    background-color: #2a2a2a;
    transform: translateY(-3px);
    border-color: #3a3a3a;
    box-shadow: 0 4px 8px rgba(67, 97, 238, 0.2);
    border-color: #e0e0e0;
}

.tool-icon {
    width: 48px;
    height: 48px;
    background-color: #0e0e0e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-block-end: 1rem;
}

.tool-icon svg {
    width: 24px;
    height: 24px;
}

.tool-heading {
    font-size: 1.3rem;
    line-height: 1.3;
    margin: 0 0 0.6rem 0;
    text-align: left;
    color: #e0e0e0;
}

.tool-card p {
    color: #cccccc;
    margin: 0;
    line-height: 1.5;
    font-size: 1rem;
}

@media (min-width: 500px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .tool-card {
        padding: 1.2rem;
    }
}

@media (min-width: 900px) {
    .category-heading{
        font-size: 2rem;
        line-height: 1.3;
    }
}