/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Clash Display', sans-serif;
    scroll-behavior: smooth;
    outline: none;
}

/* Custom Font Definitions */
@font-face {
    font-family: "Tusker Grotesk";
    src: url(./fonts/TuskerGrotesk-6700Bold.ttf);
}

@font-face {
    font-family: "Brittany Signature";
    src: url(./fonts/BrittanySignature.ttf);
}

/* Global CSS Variables */
:root {
    --main-color: #041F76;
    --primary-color: #1A77DD;
    --list-item-color: #2090FE;
    --gradient: linear-gradient(#041F76, #1A77DD, #2090FE);
    --swap-gradient: linear-gradient(#2090FE, #1A77DD, #041F76);
    --text-white: #fff;
    --text-black: #000;
    --primary-padding: 20px 80px;
}

/* Body Styles */
body {
    background-color: #eeeeee;
    position: relative;
}

/* Navigation Sidebar */
article {
    position: sticky;
    left: 0;
    top: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 40px;
    flex-direction: column;
    height: 100vh;
    width: 400px;
    padding: 40px 25px !important;
    border-right: 1px solid #ccc;
}

/* Logo Section */
article .logo h1 {
    font-size: 32px;
    font-weight: 600;
    position: relative;
}

article .logo h1::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: orange;
    border-radius: 50%;
    top: -1px;
    left: 1px;
}

article .logo h1::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: orange;
    border-radius: 50%;
    top: -1px;
    left: 20px;
}

article .logo h1 span:first-child {
    color: var(--primary-color);
}

article .logo h1 span:first-child b {
    font-size: 38px;
}

article .logo h1 span:last-child {
    color: orange;
}

/* Navigation Items */
article .nav-items ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex-wrap: wrap;
}

article .nav-items ul li a {
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 45px;
    background-color: var(--text-white);
    color: var(--text-black);
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 30px;
    box-shadow: 2px 3px 4px rgba(0, 0, 0, 0.04);
    transition: 0.5s;
}

article .nav-items ul li a:hover {
    color: var(--list-item-color);
}

article .nav-items ul li a.active {
    color: var(--list-item-color);
}

article .get-started button {
    cursor: pointer;
    background: linear-gradient(#eeeeee, #eeeeee) padding-box,
        linear-gradient(to top, #041F76, #2090FE) border-box;
    border: 2.5px solid transparent;
    color: var(--list-item-color);
    border-radius: 30px;
    padding: 10px 30px;
    font-weight: 500;
    font-size: 16px;
}

/* Main Content Container */
.main-container {
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: center;
}

.design-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -90%);
    background-color: white;
    filter: blur(12px);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    z-index: -1;
}

/* Main Heading Styles */
.main-container .main-heading {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.main-heading {
    margin: 30px 0;
}

.main-heading h1 {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.main-container .main-heading h1:first-child {
    font-family: "Tusker Grotesk";
    font-size: 55px;
    background: -webkit-linear-gradient(#2090FE, #1A77DD, #041F76);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.6px;
}

.main-container .main-heading h1:last-child {
    font-size: 40px;
    font-weight: 600;
    text-align: center;
    color: orange;
    margin: 8px 0 0 15px;
}

/* Right Container Styles */
.right-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-direction: column;
    width: 100%;
}

/* Unit Conversion Container */
.unit-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.container {
    text-align: center;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: 90%;
    z-index: 1;
}

/* Tab Navigation */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: -5px;
    z-index: 1;
    flex-wrap: wrap;
}

.tab {
    background-color: # destes;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-image 0.3s;
    font-weight: 500;
    box-shadow: inset 0 3.52px 3.52px rgba(0, 0, 0, 0.1);
}

.tab.active {
    background-image: linear-gradient(#2090FE, #1A77DD, #041F76);
    color: white;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.converter {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Input Groups */
.input-group {
    display: flex;
    width: 100%;
    flex-direction: column;
    margin: 0 20px;
}

.input-group label {
    margin-bottom: 5px;
    font-size: 24px;
    font-weight: 500;
    font-family: "poppins";
    text-align: left;
}

.input-group input,
textarea {
    padding: 10px;
    width: 100%;
    border: 1.25px solid rgba(0, 0, 0, 0.42);
    border-radius: 5px;
    font-size: 3em;
    font-weight: 500;
    height: 158px;
    background-color: #ECECEC;
    text-align: top;
}

.input-group select {
    margin-top: 5px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    border: 1.25px solid rgba(0, 0, 0, 0.42);
    font-size: 1em;
    background-color: #FAFAFA;
    border-radius: 10px;
    color: #1A77DD;
    font-size: 20px;
    font-weight: 500;
    margin-top: 10px;
}

.equals {
    font-size: 2.5em;
    font-weight: 500;
    margin: 0 10px;
}

.swap-btn {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--gradient);
    background-size: cover;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.note {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
}

/* Checker Box */
.checker-box {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    margin: 20px auto 0 auto;
    text-align: left;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #1A77DD;
    font-size: 2.4em;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Unit Rows */
.unit-rows {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    gap: 20px;
}

.unit-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 15px;
    width: 80%;
}

.unit-row label {
    font-weight: 500;
    font-size: 20px;
    margin-right: 10px;
}

.unit-row input {
    padding: 10px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 1.2em;
}

/* Feedback Styles */
.feedback {
    font-size: 0.9em;
    margin-top: 5px;
    font-weight: 400;
    margin-bottom: 10px;
}

.invalid {
    color: #d32f2f;
}

/* Conversions Section */
.conversions {
    margin-top: 20px;
}

.conversions h3 {
    font-weight: 500;
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #333;
}

.conversions ul {
    list-style: none;
    padding: 0;
}

.conversions li {
    margin-bottom: 5px;
    font-size: 1.2em;
    text-decoration: underline;
    color: #333;
}

/* Category Information */
.category-info {
    margin-top: 20px;
    font-size: 0.9em;
    color: #555;
}

.category-info h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600
}

.table {
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 40px 0;
}

.table img {
    width: 150px;
    height: 180px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.table img:hover {
    transform: scale(1.05);
}

/* Overlay for zoomed image */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.overlay.active {
    display: flex;
}

.overlay img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Close button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.close-btn:hover {
    color: #ff5555;
}

.welcome {
    width: 100%;
    background-color: #333;
    color: orange;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 0;
    font-size: 18px;
    font-weight: 500;
}

a {
    color: black;
}

.welcoming-message {
    font-size: 16px;
    text-align: center;
    letter-spacing: 0.6px;
    color: #666;
}
span{
    color: orange;
}
.main-welcome {
    font-size: 18px;
    color: orange;
    margin-top: -20px !important;
    margin-bottom: 20px;
}

.main-welcome b {
    font-weight: 500;
}

.mission {
    width: 90%;
    text-align: left;
    padding-bottom: 30px;
}

/* Hamburger Menu Icon */
.menu-icon {
    display: none;
    cursor: pointer;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 2000;
    width: 30px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
}

.menu-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

.menu-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-icon.active span:nth-child(2) {
    opacity: 0;
}

.menu-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    article {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: white;
        z-index: 1000;
        transition: left 0.3s ease;
        padding: 60px 25px 40px 25px !important;
        border-right: none;
        display: flex;
    }

    article.active {
        left: 0;
    }

    .menu-icon {
        display: flex;
    }

    .right-container {
        width: 100%;
    }

    .unit-rows {
        flex-direction: column;
    }

    .checker-box h2 {
        font-size: 1.8em;
    }

    .unit-row {
        width: 100%;
    }

    .design-container::after {
        display: none;
    }

    .converter {
        flex-direction: column;
    }

    .swap-btn {
        top: 50%;
        left: 85%;
        width: 40px;
        transform: rotate(90deg);
        height: 40px;
    }

    .swap-btn img {
        width: 20px;
    }

    .table {
        flex-wrap: wrap;
    }

    .main-heading {
        flex-direction: column;
    }

    .main-heading h1:first-child {
        font-size: 45px !important;
    }

    .main-heading h1:last-child {
        font-size: 30px !important;
    }
}

@media (min-width: 769px) {
    article {
        display: flex !important;
    }

    .menu-icon {
        display: none;
    }
}

@media (max-width: 600px) {
    .table {
        grid-template-columns: 1fr;
    }

    .overlay img {
        max-width: 95%;
        max-height: 70vh;
    }

    .welcome {
        text-align: center;
        font-size: 14px;
        font-weight: normal;
    }

    .main-welcome {
        padding: 0 20px;
        text-align: center;
    }
}