html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}
* {
    margin: 0;
    padding: 0;
    font-family: Poppins, sans-serif;
    box-sizing: border-box;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 40px;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(5px);
}

.navlogo img {
    height: 70px;
    width: auto;
}

/* Desktop menu */
.navlinks ul {
    list-style: none;
    display: flex;
    gap: 28px;
}

.navlinks ul li a {
    text-decoration: none;
    color: black;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
    transition: 0.3s ease;
}

.navlinks ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #007bff;
    transition: width 0.3s ease;
}

.navlinks ul li a:hover::after {
    width: 100%;
}

.navlinks ul li a:hover {
    color: #007bff;
}

.navbar i{
    display: none;
}

.navbar .fa-bars,.fa-xmark{
    display: none;
    color: black;
    font-size: 24px;
}

/* Dropdown Container */
.dropdown {
    position: fixed;
    top: 93px; /* below navbar */
    right: 0px;
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border-radius: 15px;
    padding: 15px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 998;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;

    transition: 
        opacity 0.4s ease,
        transform 0.4s ease,
        pointer-events 0s linear 0.4s;
}

/* Active dropdown (when menu icon clicked) */
.dropdown.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: 
        opacity 0.4s ease,
        transform 0.4s ease;
}

.dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.dropdown ul li {
    padding: 12px 20px;
}

.dropdown ul li a {
    text-decoration: none;
    color: black;
    font-size: 15px;
    font-weight: 500;
    display: inline-block;
    transition: 0.3s ease;
}

.dropdown ul li a:hover {
    color: #007bff;
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .navbar .fa-bars {
        display: block;
    }
    .navlinks{
        display: none;
    }
}


/* When navbar is hidden */
.navbar.hidden {
    transform: translateY(-100%);
    transition: transform 0.4s ease;
}

/* When navbar is visible */
.navbar.visible {
    transform: translateY(0);
    transition: transform 0.4s ease;
}

main{
    width: 100%;
    height: max-content;
    margin-bottom: 100px;
}

.container {
    position: relative;
    top: 100px;
    width: 85%;
    height: max-content;
    margin: auto;
    text-align: center;
}

.title {
    font-size: 32px;
    font-weight: 700;
}

.subtitle {
    margin-top: 8px;
    font-size: 14px;
    opacity: 0.7;
}

.calculator {
    width: 100%;
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 25px;
    padding: 40px;
    background: #f4f6ff;
    border-radius: 10px;
}

/* LEFT SIDE */
.left {
    text-align: left;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 25px 0 15px;
}

.section-title .number {
    background: #007bff;
    color: #fff;
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 600;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.grid-btn {
    padding: 18px;
    background: #f4f6ff;
    border: 1px solid #222;
    color: black;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: .3s;
}

.grid-btn:hover {
    border-color: #007bff;
}

.grid-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: black;
}

.hint {
    margin: 15px 0;
    font-size: 13px;
    opacity: 0.8;
}

/* Input Section */
.input-group {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.input-group input,
.input-group select {
    width: 50%;
    padding: 12px;
    background: #f4f6ff;
    border: 1px solid #222;
    color: black;
    border-radius: 6px;
}

.buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.back-btn {
    padding: 10px 25px;
    background: transparent;
    border: 1px solid #007bff;
    color: #007bff;
    border-radius: 5px;
    cursor: pointer;
}

.submit-btn {
    padding: 10px 25px;
    background: #007bff;
    border: none;
    color: black;
    border-radius: 5px;
    cursor: pointer;
}

/* RIGHT SIDE */
.right {
    background: #f4f6ff;
    padding: 25px;
    border-radius: 8px;
    text-align: left;
}

.placeholder {
    text-align: center;
    opacity: 0.7;
    margin: 40px 0;
}

.placeholder img {
    width: 60px;
    opacity: 0.7;
}

.note {
    font-size: 12px;
    opacity: 0.7;
    margin: 15px 0;
}

.bottom-buttons {
    margin: 25px 0;
    display: flex;
    gap: 12px;
}

.outline {
    background: transparent;
    border: 1px solid #007bff;
    padding: 10px 20px;
    border-radius: 6px;
    color: white;
}

.filled {
    background: #007bff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    color: black;
}

.thickness-info {
    font-size: 12px;
    opacity: 0.7;
}

.select-wrapper select {
    width: 140px;
    padding: 10px;
    margin-top: 12px;
    background: #f4f6ff;
    border: 1px solid #222;
    color: black;
    border-radius: 5px;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

/* Tablet & Mobile */
@media (max-width: 992px) {
    .calculator {
        grid-template-columns: 1fr; /* Stack left & right */
        padding: 20px;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr); /* 3 → 2 columns */
    }

    .input-group {
        flex-direction: column;
    }

    .input-group input,
    .input-group select {
        width: 100%;
    }

    .buttons {
        flex-direction: column;
    }

    .back-btn,
    .submit-btn {
        width: 100%;
        text-align: center;
    }

    .bottom-buttons {
        flex-direction: column;
    }

    .bottom-buttons .outline,
    .bottom-buttons .filled {
        width: 100%;
        text-align: center;
    }

    .select-wrapper select {
        width: 100%;
    }
}

/* Mobile Only */
@media (max-width: 600px) {
    .calculator {
        padding: 15px;
        gap: 20px;
    }

    .grid {
        grid-template-columns: 1fr; /* 1 column only */
    }

    .grid-btn {
        font-size: 14px;
        padding: 15px;
    }

    .section-title {
        margin: 20px 0 10px;
    }

    .section-title .number {
        padding: 4px 10px;
        font-size: 14px;
    }

    .right {
        padding: 20px;
    }

    .placeholder img {
        width: 50px;
    }
}




.footer {
    padding: 80px 6% 20px;
    backdrop-filter: blur(18px);
    background: transparent !important;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 50px;
}

.footer-logo {
    width: 150px;
    margin-bottom: 15px;
    animation: fadeInUp 1s;
}

.footer-section h3 {
    font-size: 22px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #007bff, #007bff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-section ul li{
    list-style: none;
}

.footer-section ul li a{
    text-decoration: none;
}

.footer-section ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #007bff;
    transition: width 0.3s ease;
}

.footer-section ul li a:hover {
    color: #007bff;
}

.footer-section p,
.footer-section ul li a {
    color: black;
}

.social-icons a {
    font-size: 20px;
    margin-right: 12px;
    color: black;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #007bff;
    transform: translateY(-4px) scale(1.1);
}

/* Newsletter */
.newsletter {
    margin-top: 18px;
    display: flex;
}

.newsletter input {
    width: 70%;
    padding: 10px;
    border: 1p solid black;
    border-radius: 8px 0 0 8px;
    outline: none;
}

.newsletter input:focus{
    border: 1px solid black;
    border-color: #007bff;
    background: white;
    box-shadow: 0 0 8px rgba(255,123,0,0.3);
    transition: all ease-in-out 1s;
}

.newsletter button {
    width: 30%;
    background: linear-gradient(135deg, #007bff, #007bff);
    border: none;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: #ccc;
}

/* ---- Scroll Reveal Animation ---- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0px);
}

/* ---- Keyframes ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Sticky Mini Footer (Mobile Only) ---- */
.mini-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #111;
    padding: 10px 0;
    display: none;
    z-index: 1000;
    justify-content: space-around;
    border-top: 2px solid #007bff;
}

.mini-footer a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
}

.mini-footer i {
    font-size: 18px;
    display: block;
    margin-bottom: 3px;
}

@media (max-width: 768px) {
    .mini-footer { display: flex; }
}
