* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f8fafc;
    color: #1f2937;
}


/* Navigation */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: white;
    border-bottom: 1px solid #e5e7eb;

    /* Sticky navigation */
    position: sticky;
    top: 0;
    z-index: 1000;
}


.logo {
    font-size: 24px;
    font-weight: bold;
}


.nav-links a {
    margin-left: 25px;
    text-decoration: none;
    color: #4b5563;
}


.nav-links a:hover {
    color: #2563eb;
}



/* Hero */

.hero {
    text-align: center;
    padding: 80px 20px 60px;
}


.hero h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 20px;
}


.hero p {
    font-size: 20px;
    color: #6b7280;
    max-width: 600px;
    margin: auto;
}



/* Tools */

#tools {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
}


#tools h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
}



.tool-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}



.tool-card {

    background: white;

    width: 330px;

    min-height: 390px;

    padding: 35px;

    border-radius: 20px;

    text-align: center;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);

    display: flex;

    flex-direction: column;

    transition: .25s;

}

.tool-card:hover{

    transform: translateY(-8px);

    box-shadow: 0 18px 40px rgba(0,0,0,.12);

}


.icon {

    font-size: 45px;

}



.tool-card h3 {

    font-size: 26px;

}



.tool-card p {

    color: #6b7280;

    line-height: 1.6;

    flex-grow: 1;
 
}



.tool-card a {

    display: inline-block;

    background: #2563eb;

    color: white;

    padding: 12px 25px;

    border-radius: 10px;

    text-decoration: none;

    margin-top: auto;

}



.tool-card a:hover {

    background: #1d4ed8;

}


/* Features */

.features{

    max-width:1100px;

    margin:70px auto;

    padding:0 40px;

}


.features h2{

    text-align:center;

    font-size:36px;

    margin-bottom:40px;

}


.feature-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:40px;

    max-width:900px;

    margin:0 auto;

}


.feature-grid div{

    background:white;

    padding:30px;

    border-radius:18px;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

}


.feature-grid h3{

    margin-bottom:15px;

    font-size:24px;

}


.feature-grid p{

    color:#6b7280;

    line-height:1.7;

}
/* Footer */

footer {

    text-align: center;

    padding: 40px;

    color: #6b7280;

}

/* =====================================
   Back To Top Button
====================================== */

#backToTop{

    position:fixed;

    bottom:30px;

    right:30px;

    width:52px;

    height:52px;

    border:none;

    border-radius:50%;

    background:#2563eb;

    color:white;

    font-size:24px;

    font-weight:bold;

    cursor:pointer;

    display:none;

    align-items:center;

    justify-content:center;

    box-shadow:0 6px 18px rgba(0,0,0,.18);

    transition:.2s;

    z-index:9999;

}


#backToTop:hover{

    background:#1d4ed8;

    transform:translateY(-3px);

}


#backToTop:active{

    transform:scale(.95);

}


@media(max-width:700px){

    #backToTop{

        width:46px;

        height:46px;

        right:20px;

        bottom:20px;

        font-size:21px;

    }

}

/* =====================================
   Share WebHustle Tools
====================================== */

.share-section {

    width: 100%;

    max-width: 700px;

    margin: 60px auto 40px auto;

    padding: 35px 25px;

    text-align: center;

    background: #f3f4f6;

    border-radius: 16px;

}


.share-section h2 {

    margin: 0 0 10px 0;

    text-align: center;

}


.share-section p {

    color: #6b7280;

    margin: 0 auto 20px auto;

    text-align: center;

}


#shareButton {

    display: block;

    margin: 0 auto;

    background: #2563eb;

    color: white;

    border: none;

    padding: 12px 24px;

    border-radius: 10px;

    font-size: 16px;

    cursor: pointer;

    transition: 0.2s;

}


#shareButton:hover {


    background: #1d4ed8;

}

/* =====================================
   Mobile Homepage Improvements
====================================== */

@media (max-width: 700px) {

    /* Navigation */

    nav {
        padding: 16px 20px;
    }

    .logo {
        font-size: 20px;
    }

    .nav-links a {
        margin-left: 15px;
        font-size: 14px;
    }


    /* Hero */

    .hero {
        padding: 55px 20px 45px;
    }

    .hero h1 {
        font-size: 40px;
        line-height: 1.15;
        margin-bottom: 18px;
    }

    .hero p {
        font-size: 17px;
        line-height: 1.5;
        max-width: 100%;
    }


    /* Tools */

    #tools {
        padding: 30px 15px;
    }

    #tools h2 {
        font-size: 30px;
        margin-bottom: 25px;
    }


    /* Two tool cards per row */

    .tool-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
        width: 100%;
    }


    .tool-card {
        width: 100%;
        min-height: 300px;
        padding: 20px 15px;
        border-radius: 15px;
    }


    .icon {
        font-size: 34px;
    }


    .tool-card h3 {
        font-size: 19px;
        line-height: 1.25;
        margin: 15px 0 10px;
    }


    .tool-card p {
        font-size: 14px;
        line-height: 1.45;
        margin: 0;
    }


    .tool-card a {
        padding: 10px 8px;
        font-size: 14px;
        margin-top: 15px;
    }


    /* Features */

    .features {
        margin: 50px auto;
        padding: 0 15px;
    }


    .features h2 {
        font-size: 30px;
        margin-bottom: 25px;
    }


    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        width: 100%;
    }


    .feature-grid div {
        padding: 18px 10px;
        border-radius: 14px;
        text-align: center;
    }


    .feature-grid h3 {
        font-size: 17px;
        margin-bottom: 8px;
        white-space: nowrap;
    }


    .feature-grid p {
        font-size: 13px;
        line-height: 1.45;
        margin: 0;
    }


    /* Share Section */

    .share-section {
        width: calc(100% - 30px);
        margin: 45px auto 30px;
        padding: 30px 20px;
    }


    .share-section h2 {
        font-size: 25px;
    }


    .share-section p {
        font-size: 15px;
        line-height: 1.5;
    }


    #shareButton {
        width: 100%;
        max-width: 300px;
        padding: 13px 20px;
    }


    /* Footer */

    footer {
        padding: 30px 20px;
        font-size: 14px;
    }

}

/* Homepage Navbar - Bold */
.nav-links > a,
.tools-dropdown-button {
    font-weight: 700;
}

/* =====================================
   Explore Tools Button
====================================== */

.explore-tools-btn {

    margin-top: 18px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding: 14px 24px;

    background: #2563eb;

    color: white;

    text-decoration: none;

    font-size: 17px;

    font-weight: 700;

    border-radius: 12px;

    transition: 0.2s;

}

.explore-tools-btn span {

    font-size: 20px;

    transition: 0.2s;

}


.explore-tools-btn:hover {

    background: #1d4ed8;

    transform: translateY(-2px);

}


.explore-tools-btn:hover span {

    transform: translateX(4px);

}