/*==============================
  FEET TO INCHES TOOL
  STYLE.CSS
===============================*/

:root{

--primary:#4f46e5;
--primary-hover:#4338ca;

--bg:#0f172a;
--bg2:#111827;

--card:#1e293b;

--text:#ffffff;

--text2:#cbd5e1;

--border:rgba(255,255,255,.08);

--radius:22px;

--shadow:
0 20px 50px rgba(0,0,0,.35);

}

*{
margin:0;
padding:0;
box-sizing:border-box;
}

html{

scroll-behavior:smooth;

}

body{

font-family:'Inter',sans-serif;

background:linear-gradient(
180deg,
#020617,
#0f172a
);

color:var(--text);

line-height:1.7;

overflow-x:hidden;

}

/*----------------*/

.container{

width:min(1180px,92%);

margin:auto;

}

/*----------------*/

a{

text-decoration:none;

color:inherit;

}

img{

max-width:100%;

display:block;

}

button{

font-family:inherit;

cursor:pointer;

border:none;

}

/*=====================
HEADER
======================*/

header{

position:sticky;

top:0;

z-index:999;

backdrop-filter:blur(15px);

background:rgba(15,23,42,.75);

border-bottom:1px solid var(--border);

}

header .container{

display:flex;

align-items:center;

justify-content:space-between;

padding:18px 0;

}

.logo{

font-size:28px;

font-weight:800;

letter-spacing:.5px;

}

.logo span{

color:var(--primary);

}

nav{

display:flex;

gap:30px;

}

nav a{

font-weight:500;

transition:.3s;

color:var(--text2);

}

nav a:hover{

color:#fff;

}

/*=====================
HERO
======================*/

.hero{

padding:90px 0;

}

.hero-card{

background:rgba(30,41,59,.7);

border:1px solid var(--border);

backdrop-filter:blur(25px);

padding:50px;

border-radius:var(--radius);

box-shadow:var(--shadow);

}

.hero h1{

font-size:52px;

line-height:1.1;

font-weight:800;

margin-bottom:20px;

}

.hero p{

color:var(--text2);

font-size:18px;

max-width:700px;

margin-bottom:40px;

}

/*=====================
CALCULATOR
======================*/

.converter{

display:grid;

grid-template-columns:

1fr

80px

1fr;

gap:20px;

align-items:center;

margin-bottom:30px;

}

.input-box{

position:relative;

}

.input-box input{

width:100%;

height:72px;

border-radius:18px;

border:1px solid var(--border);

background:#0b1220;

padding:0 24px;

font-size:28px;

font-weight:700;

color:#fff;

outline:none;

transition:.3s;

}

.input-box input:focus{

border-color:var(--primary);

box-shadow:0 0 0 5px rgba(79,70,229,.2);

}

.input-box label{

position:absolute;

left:24px;

top:10px;

font-size:13px;

color:#94a3b8;

}

.equal{

font-size:40px;

font-weight:800;

text-align:center;

}

.result-box{

height:72px;

display:flex;

align-items:center;

justify-content:center;

background:#0b1220;

border-radius:18px;

border:1px solid var(--border);

font-size:30px;

font-weight:800;

color:#fff;

}

/*=====================
BUTTONS
======================*/

.buttons{

display:flex;

gap:18px;

flex-wrap:wrap;

margin-top:10px;

}

.buttons button{

padding:16px 28px;

border-radius:14px;

font-size:15px;

font-weight:700;

transition:.25s;

}

#copyBtn{

background:var(--primary);

color:#fff;

}

#copyBtn:hover{

background:var(--primary-hover);

transform:translateY(-2px);

}

#resetBtn{

background:#1f2937;

color:#fff;

}

#resetBtn:hover{

background:#374151;

}

/*=====================
QUICK BUTTONS
======================*/

.quick{

padding:80px 0;

}

.quick h2{

font-size:34px;

margin-bottom:35px;

}

.quick-grid{

display:grid;

grid-template-columns:

repeat(auto-fit,minmax(120px,1fr));

gap:18px;

}

.quick-btn{

height:70px;

border-radius:18px;

background:#111827;

color:#fff;

font-size:22px;

font-weight:700;

border:1px solid var(--border);

transition:.25s;

}

.quick-btn:hover{

background:var(--primary);

transform:translateY(-4px);

}

/*=====================
TABLE
======================*/

.table-section{

padding:80px 0;

}

table{

width:100%;

border-collapse:collapse;

overflow:hidden;

border-radius:20px;

}

thead{

background:#1e293b;

}

thead th{

padding:22px;

text-align:left;

}

tbody tr{

border-bottom:1px solid rgba(255,255,255,.05);

}

tbody td{

padding:18px 22px;

}

tbody tr:nth-child(even){

background:rgba(255,255,255,.02);

}
/*==================================
 FEATURES SECTION
===================================*/

.features{
    padding:90px 0;
}

.features-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.feature-card{
    background:#111827;
    border:1px solid rgba(255,255,255,.08);
    border-radius:20px;
    padding:35px;
    transition:.35s;
}

.feature-card:hover{
    transform:translateY(-8px);
    border-color:#4f46e5;
    box-shadow:0 25px 45px rgba(79,70,229,.18);
}

.feature-icon{
    width:70px;
    height:70px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:32px;
    border-radius:18px;
    background:linear-gradient(135deg,#4f46e5,#7c3aed);
    margin-bottom:22px;
}

.feature-card h3{
    font-size:22px;
    margin-bottom:12px;
}

.feature-card p{
    color:#94a3b8;
}

/*==================================
 CONTENT
===================================*/

.content{

padding:90px 0;

}

.content h2{

font-size:38px;

margin-bottom:22px;

margin-top:55px;

}

.content p{

color:#cbd5e1;

margin-bottom:22px;

font-size:17px;

}

.content ul{

margin:20px 0 20px 20px;

}

.content li{

margin-bottom:10px;

color:#cbd5e1;

}

/*==================================
 FORMULA BOX
===================================*/

.formula-box{

margin:45px 0;

padding:35px;

background:#111827;

border-radius:20px;

border:1px solid rgba(255,255,255,.08);

text-align:center;

}

.formula-box h3{

margin-bottom:20px;

font-size:26px;

}

.formula{

font-size:36px;

font-weight:700;

color:#60a5fa;

}

/*==================================
 FAQ
===================================*/

.faq{

padding:90px 0;

}

.faq-item{

background:#111827;

border:1px solid rgba(255,255,255,.06);

margin-bottom:18px;

border-radius:18px;

overflow:hidden;

transition:.3s;

}

.faq-item:hover{

border-color:#4f46e5;

}

.faq-question{

padding:24px;

cursor:pointer;

display:flex;

justify-content:space-between;

align-items:center;

font-weight:700;

font-size:18px;

}

.faq-answer{

display:none;

padding:0 24px 24px;

color:#cbd5e1;

line-height:1.8;

}

.faq-item.active .faq-answer{

display:block;

}

/*==================================
 RELATED LINKS
===================================*/

.related{

padding:90px 0;

}

.related-grid{

display:grid;

grid-template-columns:repeat(2,1fr);

gap:20px;

}

.related-grid a{

display:block;

padding:16px 18px;

background:#111827;

border-radius:14px;

border:1px solid rgba(255,255,255,.05);

transition:.3s;

color:#fff;

}

.related-grid a:hover{

background:#4f46e5;

transform:translateX(6px);

}

/*==================================
 FOOTER
===================================*/

footer{

margin-top:90px;

padding:50px 0;

border-top:1px solid rgba(255,255,255,.06);

background:#020617;

}

.footer-grid{

display:grid;

grid-template-columns:2fr 1fr 1fr;

gap:40px;

}

.footer-grid h4{

margin-bottom:18px;

}

.footer-grid a{

display:block;

margin-bottom:12px;

color:#94a3b8;

transition:.3s;

}

.footer-grid a:hover{

color:#fff;

}

.copyright{

margin-top:35px;

padding-top:25px;

border-top:1px solid rgba(255,255,255,.06);

text-align:center;

color:#64748b;

}

/*==================================
 SCROLLBAR
===================================*/

::-webkit-scrollbar{

width:10px;

}

::-webkit-scrollbar-track{

background:#020617;

}

::-webkit-scrollbar-thumb{

background:#4f46e5;

border-radius:50px;

}

/*==================================
 ANIMATION
===================================*/

.hero-card,
.feature-card,
table,
.formula-box,
.faq-item{

animation:fadeUp .8s ease;

}

@keyframes fadeUp{

0%{

opacity:0;

transform:translateY(40px);

}

100%{

opacity:1;

transform:translateY(0);

}

}

/*==================================
 MOBILE
===================================*/

@media(max-width:992px){

.hero h1{

font-size:42px;

}

.converter{

grid-template-columns:1fr;

}

.equal{

display:none;

}

.footer-grid{

grid-template-columns:1fr;

}

.related-grid{

grid-template-columns:1fr;

}

}

@media(max-width:768px){

nav{

display:none;

}

.hero{

padding:60px 0;

}

.hero-card{

padding:28px;

}

.hero h1{

font-size:34px;

}

.hero p{

font-size:16px;

}

.quick-grid{

grid-template-columns:repeat(2,1fr);

}

.buttons{

flex-direction:column;

}

.buttons button{

width:100%;

}

.feature-card{

padding:25px;

}

table{

font-size:15px;

}

.content h2{

font-size:30px;

}

}

@media(max-width:480px){

.logo{

font-size:22px;

}

.hero h1{

font-size:30px;

}

.input-box input{

font-size:22px;

}

.result-box{

font-size:22px;

}

.formula{

font-size:28px;

}

.quick-btn{

font-size:18px;

height:58px;

}
}
/* ==========================
   Google Related Searches
========================== */
/* ===== Related Searches ===== */

#relatedLinks{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:25px;
}

#relatedLinks > *{
    display:inline-flex;
    align-items:center;
    padding:12px 18px;
    background:#1f2937;
    color:#fff !important;
    border:1px solid rgba(255,255,255,.08);
    border-radius:999px;
    text-decoration:none;
    font-size:15px;
    font-weight:500;
    transition:.25s;
    cursor:pointer;
}

#relatedLinks > *::before{
    content:"🔍";
    margin-right:8px;
}

#relatedLinks > *:hover{
    background:#2563eb;
    border-color:#2563eb;
    transform:translateY(-2px);
}
/* Bigger homepage converter */
.converter-form{
    display:flex;
    gap:16px;
    align-items:center;
    margin-top:24px;
    flex-wrap:wrap;
}

.converter-form input{
    flex:1;
    min-width:260px;
    height:64px;
    padding:0 20px;
    font-size:24px;
    font-weight:700;
    border-radius:16px;
    border:2px solid #2a4cff;
    background:#071224;
    color:#ffffff;
    outline:none;
}

.converter-form input::placeholder{
    color:#8ea3c7;
    font-size:18px;
    font-weight:500;
}

.converter-form button{
    height:64px;
    padding:0 34px;
    font-size:22px;
    font-weight:700;
    border:none;
    border-radius:16px;
    background:#2a4cff;
    color:#ffffff;
    cursor:pointer;
    transition:all .2s ease;
}

.converter-form button:hover{
    background:#3b5dff;
    transform:translateY(-1px);
}

@media(max-width:768px){
    .converter-form{
        flex-direction:column;
        align-items:stretch;
    }

    .converter-form input,
    .converter-form button{
        width:100%;
    }
}
/* Converter form */
.converter-form {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.converter-form input[type="number"] {
    flex: 1;
    min-width: 260px;
    height: 64px;
    padding: 0 20px;
    font-size: 1.125rem;
    color: #fff;
    background: #071226;
    border: 2px solid #2f55ff;
    border-radius: 18px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.converter-form input[type="number"]::placeholder {
    color: #94a3b8;
}

.converter-form input[type="number"]:focus {
    border-color: #4f74ff;
    box-shadow: 0 0 0 4px rgba(47,85,255,.18);
}

.converter-form button {
    height: 64px;
    padding: 0 32px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #2f55ff, #4f74ff);
    color: #fff;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, opacity .2s ease;
}

.converter-form button:hover {
    opacity: .95;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .converter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .converter-form button {
        width: 100%;
    }
}
.related-link.active {
    background: linear-gradient(135deg, #3b46f0, #5a4bff);
    border-color: #5a4bff;
    color: #fff;
}