/*
════════════════════════════════════════
  Project:    ButtonCraft Generator
  Developer:  Mirza Hadi
  Brand:      HS3Dev
════════════════════════════════════════
*/

:root{

    --bg:#0f172a;
    --card:#1e293b;
    --card2:#334155;

    --primary:#22c55e;
    --secondary:#38bdf8;

    --text:#ffffff;
    --muted:#cbd5e1;

    --border:#475569;
}

/* =========================
   GLOBAL
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:Segoe UI,sans-serif;

    background:var(--bg);

    color:var(--text);

    line-height:1.7;
}

a{
    text-decoration:none;
}

section{
    padding:90px 0;
}

.section-title{

    text-align:center;

    margin-bottom:60px;
}

.section-title h2{

    font-size:2.5rem;

    font-weight:800;

    margin-bottom:15px;
}

.section-title p{
    color:var(--muted);
}

/* =========================
   NAVBAR
========================= */

.custom-navbar{

    background:#020617;

    border-bottom:1px solid rgba(255,255,255,.08);
}

.navbar-brand{

    color:var(--primary)!important;

    font-size:1.6rem;
}

.nav-link{

    color:white!important;

    margin-left:12px;

    font-weight:600;
}

.nav-link:hover{

    color:var(--primary)!important;
}

/* =========================
   HERO
========================= */

.hero-section{

    min-height:85vh;

    display:flex;
    align-items:center;

    background:
    radial-gradient(
    circle at top right,
    rgba(56,189,248,.15),
    transparent 35%
    ),

    radial-gradient(
    circle at bottom left,
    rgba(34,197,94,.15),
    transparent 35%
    );
}

.hero-section h1{

    font-size:4rem;

    font-weight:800;

    margin-bottom:25px;
}

.hero-section p{

    max-width:700px;

    margin:auto;

    margin-bottom:35px;

    color:var(--muted);
}

.hero-section .btn{

    padding:14px 32px;

    font-size:1.1rem;
}

/* =========================
   INFO CARDS
========================= */

.info-card{

    background:var(--card);

    border:1px solid var(--border);

    padding:25px;

    border-radius:18px;

    height:100%;

    transition:.3s;
}

.info-card:hover{

    transform:translateY(-8px);

    border-color:var(--primary);
}

.info-card h4{

    margin-bottom:12px;

    color:var(--primary);
}

.info-card p{

    color:var(--muted);
}

/* =========================
   SHOWCASE
========================= */

.showcase-section{

    background:#111827;
}

.showcase-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(220px,1fr));

    gap:25px;
}

.showcase-grid button{

    min-height:60px;

    cursor:pointer;
}

/* showcase buttons */

.btn-square{

    background:#2563eb;
    color:white;
    border:none;
    padding:15px 30px;
}

.btn-rounded{

    background:#16a34a;
    color:white;
    border:none;
    border-radius:15px;
    padding:15px 30px;
}

.btn-pill{

    background:#f97316;
    color:white;
    border:none;
    border-radius:999px;
    padding:15px 35px;
}

.btn-circle{

    width:70px;
    height:70px;
    border-radius:50%;
    border:none;
    background:#ec4899;
    color:white;
    font-size:24px;
}

.btn-gradient{

    border:none;

    color:white;

    padding:15px 30px;

    background:
    linear-gradient(
    135deg,
    #06b6d4,
    #3b82f6
    );
}

.btn-shadow{

    background:white;
    border:none;
    padding:15px 30px;

    box-shadow:
    0 10px 25px rgba(0,0,0,.35);
}

.btn-neon{

    background:transparent;

    border:2px solid #22c55e;

    color:#22c55e;

    padding:15px 30px;

    box-shadow:
    0 0 15px #22c55e;
}

.btn-glass{

    background:
    rgba(255,255,255,.1);

    backdrop-filter:blur(10px);

    border:1px solid rgba(255,255,255,.2);

    color:white;

    padding:15px 30px;
}

/* =========================
   GENERATOR
========================= */

.generator-section{

    background:#0b1220;
}

.generator-panel{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:20px;

    padding:25px;
}

.generator-panel h4{

    margin-bottom:25px;
}

.generator-panel label{

    display:block;

    margin-top:16px;

    margin-bottom:5px;

    font-weight:600;
}

.generator-panel input,
.generator-panel select{

    width:100%;

    padding:10px;

    border-radius:8px;

    border:1px solid var(--border);

    background:#0f172a;

    color:white;
}

.preview-area{

    position: sticky;

    top: 90px;

    background: #1E293B;

    padding: 30px;

    border-radius: 20px;

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

    border: 1px solid #e5e7eb;

    align-self: start;
}

.preview-box{

    min-height:500px;

    display:flex;

    justify-content:center;

    align-items:center;
}

#previewButton{

    padding:15px 35px;

    border:none;

    border-radius:10px;

    background:#2563eb;

    color:white;

    font-size:18px;

    cursor:pointer;
}

/* =========================
   CODE SECTION
========================= */

.code-section{

    background:#111827;
}

.code-section textarea{

    width:100%;

    background:#020617;

    color:#22c55e;

    border:1px solid var(--border);

    border-radius:12px;

    padding:15px;

    resize:none;

    font-family:Consolas,monospace;

    margin-bottom:15px;
}

/* =========================
   FOOTER
========================= */

.footer{

    background:#020617;

    text-align:center;

    padding:60px 20px;
}

.footer h3{

    color:var(--primary);

    margin-bottom:15px;
}

.footer p{

    color:var(--muted);
}

/* =========================
   COPYRIGHT
========================= */

.copyright{

    background:black;

    text-align:center;

    padding:35px 15px;

    color:#d1d5db;
}

.copyright strong{

    color:var(--primary);
}

/* =========================
   ANIMATIONS
========================= */

@keyframes pulse{

    0%{
        transform:scale(1);
    }

    50%{
        transform:scale(1.08);
    }

    100%{
        transform:scale(1);
    }
}

@keyframes bounce{

    0%,100%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-12px);
    }
}

@keyframes glow{

    0%,100%{

        box-shadow:
        0 0 10px #38bdf8;
    }

    50%{

        box-shadow:
        0 0 30px #38bdf8;
    }
}

@keyframes shake{

    0%,100%{
        transform:translateX(0);
    }

    25%{
        transform:translateX(-4px);
    }

    75%{
        transform:translateX(4px);
    }
}

@keyframes float{

    0%,100%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-10px);
    }
}

@keyframes heartbeat{

    0%,100%{
        transform:scale(1);
    }

    25%{
        transform:scale(1.1);
    }

    50%{
        transform:scale(1);
    }

    75%{
        transform:scale(1.15);
    }
}

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

@media(max-width:992px){

    .hero-section h1{

        font-size:3rem;
    }

    .preview-box{

        min-height:300px;
    }
}

@media(max-width:768px){

    section{

        padding:70px 0;
    }

    .hero-section h1{

        font-size:2.3rem;
    }

    .section-title h2{

        font-size:2rem;
    }

    .generator-panel{

        margin-bottom:30px;
    }
}

@media(max-width:576px){

    .hero-section h1{

        font-size:1.8rem;
    }

    .hero-section p{

        font-size:.95rem;
    }
}
.generator-note{

    color:#94a3b8;

    margin-bottom:10px;

    font-size:14px;
}

#currentPreset{

    color:#22c55e;

    margin-bottom:20px;

    font-weight:700;
}

/* =========================
   FOOTER
========================= */

.footer{

    background:#0f172a;

    color:#ffffff;

    text-align:center;

    padding:60px 20px;
}

.footer-description{

    max-width:750px;

    margin:15px auto 30px;

    color:#cbd5e1;

    line-height:1.8;
}

.footer-links{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:15px;

    margin-bottom:30px;
}

.footer-links a{

    color:#22c55e;

    text-decoration:none;

    font-weight:600;

    transition:.3s;
}

.footer-links a:hover{

    color:#4ade80;

    transform:translateY(-2px);
}

.developer-credit h5{

    margin-bottom:8px;
}

.developer-credit p{

    margin-bottom:5px;
}

.powered{

    color:#22c55e;

    font-weight:700;
}

.copyright-text{

    margin-top:15px;

    color:#94a3b8;

    font-size:14px;
}

.export-note{

    background:#f8fafc;

    border:1px solid #e2e8f0;

    border-left:4px solid #22c55e;

    padding:15px;

    border-radius:10px;
    margin-top: 20px;
    margin-bottom:10px;

    font-size:14px;

    line-height:1.7;

    color:#475569;
}

.export-note strong{

    color:#111827;
}