:root {
    --ice-cold: #a0d2eb;      /* light icy blue */
    --freeze-purple: #e5eaf5; /* pale lavender */
    --medium-purple: #d0bdf4; /* soft medium purple */
    --purple-pain: #8458b3;   /* vintage deep purple */
    --heavy-purple: #6a3f8f;  /* darker rich purple */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    outline: none;
    border: none;
    text-decoration: none;
    
    transition: .2s linear;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
    overflow-x: hidden;
}

section{
    padding: 2rem 9%;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--purple-pain);
    padding: 2rem 9%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,0.1);
}



header .logo {
    font-size: 3rem;
    color: var(--ice-cold);
    font-weight: bolder;
}

header .logo span {
    color: rgb(255, 255, 0);
}

header .navbar a {
    font-size: 2rem;
    padding: 0 1.5rem;
    color: var(--freeze-purple);
}

header .navbar a:hover {
    color: var(--heavy-purple);
    text-decoration: underline;
}

header #toggler {
    display: none;
}

header .fa-bars {
    font-size: 3rem;
    color: var(--heavy-purple);
    border-radius: .5rem;
    padding: .5rem 1.5rem;
    cursor: pointer;
    border: .1rem solid rgba(0,0,0,0.3);
    display: none;
}

.home{
    display: flex;
    align-items: center;
    min-height: 100vh;
}

/* Tablet view */
@media (max-width: 991px) {
    html {
        font-size: 55%;
    }
    header {
        padding: 2rem;
    }
}

/* Mobile view */
@media (max-width: 768px) {
    header .fa-bars {
        display: block;
    }

    header .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--freeze-purple);
        border-top: .1rem solid rgba(0,0,0,0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.3s ease;
    }

    #toggler:checked ~ .navbar {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    header .navbar a {
        margin: 1.5rem;
        padding: 1.5rem;
        background: var(--ice-cold);
        border: 0.1rem solid rgba(0,0,0,0.1);
        display: block;
    }
}

.site-footer {
    
    width: 100%;
    bottom: 0;    
    background-color: #5e3a78; /* deep retro purple */
    color: #eee;               /* light text for contrast */
    text-align: center;
    padding: 15px 10px;
    font-size: 0.9rem;          /* base size */
    margin-top: 30px;           /* space before footer */
    line-height: 1.5;
}

.site-footer a {
    color: #d6b3e0;             /* light lavender link */
    text-decoration: none;
}

.site-footer a:hover {
    color: #ffffff;             /* white hover for contrast */
    text-decoration: underline;
}





.main-container{
    margin-top: 100px;
}

.section2-main {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: stretch; /* ✅ make all grid items equal height */
    padding: 20px;
    background: var(--freeze-purple);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    max-width: 1200px;
    margin: 30px auto;
}


.section2-input-area,
.section2-output-area {
    
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: white;
    padding: 18px;
    border-radius: 8px;
    border: 2px solid var(--purple-pain);
    box-shadow: 0 2px 8px rgba(132,88,179,0.15);
    height: 100%; /* ✅ match height with grid cell */
}

.section2-main textarea {
    flex: 1; /* ✅ expand textarea to fill remaining height */
    font-size: 1.1rem;
    line-height: 1.5;
    padding: 12px;
    border-radius: 6px;
    border: 2px solid var(--medium-purple);
    background-color: #faf7fd;
    color: #3a0050;
    resize: vertical;
}

/* Buttons under each box */
.section2-main button {
    background-color: var(--purple-pain);
    color: var(--freeze-purple);
    border: none;
    padding: 10px 16px;
    font-size: 1.05rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
}

.section2-main button:hover {
    background-color: var(--heavy-purple);
    color: var(--ice-cold);
}

/* Convert Button Column */
.section2-convert {
    display: flex;
    align-items: center;
    justify-content: center;
}




.section-1 {
    max-width: 900px;
    margin: 50px auto;
    background: var(--freeze-purple); /* pale lavender background */
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(132, 88, 179, 0.2);
    text-align: center;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-1:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 22px rgba(106, 63, 143, 0.25);
}

/* Main heading */
.section-1 h1 {
    font-size: 2.5rem;
    color: var(--purple-pain);
    margin-bottom: 18px;
    text-shadow: 1px 1px 0 var(--medium-purple);
}

/* Paragraphs */
.section-1 p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #3a0050;
    margin-bottom: 20px;
}

/* Subheading */
.section-1 h2 {
    font-size: 1.5rem;
    margin-top: 25px;
    margin-bottom: 10px;
    color: var(--heavy-purple);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Example input/output highlights */
.section-1 em {
    color: var(--heavy-purple);
    font-style: normal;
    font-weight: 600;
}

.section-1 strong {
    color: var(--purple-pain);
}

/* ---------- Responsive Breakpoints ---------- */

/* Tablets */
@media (max-width: 992px) {
    .section-1 {
        max-width: 95%;
        padding: 25px;
        margin: 40px auto;
    }
    .section-1 h1 {
        font-size: 2.4rem;
    }
    .section-1 p {
        font-size: 1.3rem;
    }
}

/* Mobiles */
@media (max-width: 600px) {
    .section-1 {
        padding: 20px 15px; 
        margin: 30px;
    }
}

@media (max-width: 350px) {
    .section-1 h2 { font-size: 1.2rem; }
}


/* Stack on Mobile */
@media (max-width: 768px) {
    .section2-main {
        grid-template-columns: 1fr;
    }
    .section2-convert {
        align-items: flex-start;
    }
    .section2-main button {
        align-self: stretch;
    }
}

/*related tool link section*/
.related-tools {
    margin: 30px auto;
    padding: 15px;
    background: #f5f3ff; /* light lavender */
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    max-width: 900px; /* keeps it centered in large screens */
    text-align: center; /* center text content */
}

.related-tools h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
    color: #4a148c; /* deep purple */
    border-bottom: 2px solid #ffd54f; /* yellow-gold */
    padding-bottom: 8px;
    display: inline-block; /* so underline doesn't stretch full width */
}

.related-tools ul {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    justify-items: center; /* center each grid item */
}

.related-tools li {
    background: #fffbea; /* light gold */
    padding: 10px 12px;
    border-radius: 6px;
    transition: 0.2s ease;
    border: 1px solid #ffe082; /* pale yellow */
    width: 100%;
    max-width: 220px; /* prevents extra wide items */
}

.related-tools li:hover {
    background: #ffecb3; /* richer gold hover */
    border-color: #ffd54f; /* deep gold */
}

.related-tools a {
    text-decoration: none;
    color: #4a148c; /* deep purple */
    font-weight: bold;
    display: block;
    word-break: break-word;
}

.related-tools a:hover {
    color: #d5006d; /* pink-purple hover */
    text-decoration: underline;
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 768px) {
    .related-tools ul {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 8px;
    }
    .related-tools h3 {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .related-tools {
        padding: 10px;
    }
    .related-tools ul {
        grid-template-columns: 1fr; /* stack items */
    }
    .related-tools li {
        padding: 8px;
        max-width: 100%;
    }
}
