html{
scroll-behavior:smooth;
}

body{
font-family:'Segoe UI',sans-serif;
margin:0;
background:linear-gradient(135deg,#667eea,#764ba2);
color:white;
}

/* NAVBAR */

.navbar{
display:flex;
justify-content:space-between;
align-items:center;
padding:20px 40px;
background:rgba(0,0,0,0.2);
position:sticky;
top:0;
z-index:100;
backdrop-filter:blur(6px);
}

.nav-links a{
margin-left:20px;
color:white;
text-decoration:none;
font-weight:500;
transition:0.2s;
}

.nav-links a:hover{
opacity:0.8;
}

/* HERO */

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

.hero h1{
font-size:48px;
margin-bottom:10px;
animation:fadeUp 0.7s ease;
}

.hero p{
font-size:18px;
margin-bottom:30px;
opacity:0.9;
}

.hero button{
background:linear-gradient(90deg,#ff7a18,#ffb347);
border:none;
padding:15px 30px;
font-size:18px;
border-radius:10px;
cursor:pointer;
color:white;
transition:0.3s;
}

.hero button:hover{
transform:translateY(-2px);
box-shadow:0 10px 25px rgba(0,0,0,0.25);
}

/* GENERATOR */

#generator{
padding:40px 20px;
display:flex;
flex-direction:column;
align-items:center;
}

/* Generator Card */

.card{
width:100%;
max-width:900px;
margin:40px auto;
padding:35px;
border-radius:16px;
background:rgba(255,255,255,0.12);
backdrop-filter:blur(12px);
box-shadow:0 10px 30px rgba(0,0,0,0.2);
border:1px solid rgba(255,255,255,0.2);
transition:0.3s;
}

.card:hover{
transform:translateY(-4px);
box-shadow:0 15px 40px rgba(0,0,0,0.25);
}

/* Input Row */

.row{
display:flex;
gap:20px;
flex-wrap:wrap;
}

/* Fields */

.field{
flex:1;
display:flex;
flex-direction:column;
}

.field label{
font-weight:600;
margin-bottom:8px;
color:#fff;
}

/* Inputs */

.field input,
.field select{
padding:14px;
border-radius:10px;
border:none;
outline:none;
background:rgba(255,255,255,0.9);
font-size:15px;
}

.field input:focus,
.field select:focus{
box-shadow:0 0 0 2px #ff9f43;
}

/* Generate Button */

.generate-btn{
margin-top:20px;
width:100%;
background:linear-gradient(90deg,#ff7a18,#ffb347);
border:none;
padding:14px;
border-radius:10px;
color:white;
font-size:17px;
font-weight:600;
cursor:pointer;
transition:0.3s;
}

.generate-btn:hover{
transform:translateY(-2px);
box-shadow:0 8px 20px rgba(0,0,0,0.25);
}

/* Result Card */

.result-card{
width:100%;
max-width:900px;
margin:30px auto;
padding:30px;
border-radius:16px;

background:rgba(255,255,255,0.12);
backdrop-filter:blur(12px);

position:relative;
overflow:hidden;

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

/* animated border layer */

.result-card::before{
content:"";
position:absolute;
inset:0;
padding:2px; /* border thickness */

border-radius:16px;

background:linear-gradient(
90deg,
#00f7ff,
#4facfe,
#a855f7,
#ff00c8,
#00f7ff
);

background-size:300% 300%;

animation:borderMove 4s linear infinite;

/* mask trick to show only border */

-webkit-mask:
linear-gradient(#000 0 0) content-box,
linear-gradient(#000 0 0);

-webkit-mask-composite:xor;
mask-composite:exclude;
}

@keyframes borderMove{

0%{
background-position:0% 50%;
}

100%{
background-position:200% 50%;
}

}
/* Result box */

#result-box{
margin-top:15px;
background:white;
border-radius:12px;
padding:20px;
min-height:160px;
color:#333;
box-shadow:inset 0 0 0 2px #f1f1f1;
}

pre{
white-space:pre-wrap;
word-wrap:break-word;
line-height:1.8;
}

#result::after{
content:"|";
animation:blink 1s infinite;
}

@keyframes blink{
0%{opacity:1}
50%{opacity:0}
100%{opacity:1}
}

/* Copy Button */

.copy-btn{
margin-top:15px;
float:right;
background:#222;
color:white;
border:none;
padding:10px 18px;
border-radius:8px;
cursor:pointer;
font-weight:500;
transition:0.2s;
}

.copy-btn:hover{
background:#444;
}

/* LOADING */

.ai-loading{
display:none;
margin-top:15px;
font-weight:600;
color:white;
display:flex;
align-items:center;
gap:10px;
}

.dots span{
width:6px;
height:6px;
background:white;
border-radius:50%;
display:inline-block;
animation:dotPulse 1.4s infinite;
}

.dots span:nth-child(2){
animation-delay:0.2s;
}

.dots span:nth-child(3){
animation-delay:0.4s;
}

@keyframes dotPulse{
0%{opacity:0.3;transform:translateY(0)}
50%{opacity:1;transform:translateY(-4px)}
100%{opacity:0.3;transform:translateY(0)}
}

/* STATS SECTION */

.stats-section{
text-align:center;
margin:60px auto 40px auto;
color:white;
}

.stats-box{
background:rgba(255,255,255,0.12);
display:inline-block;
padding:25px 50px;
border-radius:14px;
backdrop-filter:blur(6px);
box-shadow:0 10px 25px rgba(0,0,0,0.2);
animation:fadeUp 0.7s ease;
}

.stats-box h3{
margin-bottom:8px;
font-size:22px;
}

.stats-box p{
color:#eaeaea;
}

/* SEO SECTION */

.seo-content{
max-width:900px;
margin:80px auto;
padding:20px;
color:white;
line-height:1.7;
border-top:1px solid rgba(255,255,255,0.15);
}

.seo-content h2{
margin-top:40px;
margin-bottom:15px;
font-size:26px;
}

.seo-content p{
color:#eaeaea;
}

.seo-content li{
margin-bottom:8px;
}

/* FEATURE BOXES */

.about-features{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:20px;
margin-top:30px;
}

.feature-box{
background:rgba(255,255,255,0.1);
padding:20px;
border-radius:12px;
backdrop-filter:blur(5px);
transition:0.3s;
}

.feature-box:hover{
transform:translateY(-5px);
background:rgba(255,255,255,0.2);
}

/* FAQ */

.faq-container{
margin-top:30px;
max-width:800px;
}

.faq-item{
border-bottom:1px solid rgba(255,255,255,0.25);
padding:12px 0;
}

.faq-question{
width:100%;
background:none;
border:none;
color:white;
text-align:left;
font-size:18px;
font-weight:600;
cursor:pointer;
padding:15px 0;
transition:0.3s;
}

.faq-question:hover{
color:#ffcc70;
}

.faq-answer{
max-height:0;
overflow:hidden;
color:#eaeaea;
transition:max-height 0.35s ease;
padding-right:10px;
}

.faq-answer p{
margin:10px 0 15px;
}

/* EXAMPLES */

.examples-section{
max-width:1000px;
margin:80px auto;
padding:20px;
color:white;
text-align:center;
}

.examples-desc{
color:#e5e5e5;
margin-bottom:40px;
}

.examples-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
gap:25px;
}

.example-card{
background:rgba(255,255,255,0.1);
padding:25px;
border-radius:12px;
backdrop-filter:blur(5px);
transition:0.3s;
}

.example-card:hover{
transform:translateY(-5px);
background:rgba(255,255,255,0.2);
}

.example-card p{
margin-bottom:12px;
}

.example-card span{
color:#ffd27a;
font-size:14px;
}

.example-copy{
margin-top:10px;
padding:6px 14px;
border:none;
background:#ff9d2d;
color:white;
border-radius:6px;
cursor:pointer;
font-size:13px;
}

.example-copy:hover{
background:#ff8a00;
}

/* MORE TOOLS */

.tools-section{
max-width:1000px;
margin:80px auto;
text-align:center;
color:white;
}

.tools-desc{
margin-bottom:35px;
color:#eaeaea;
}

.tools-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:20px;
}

.tool-card{
background:rgba(255,255,255,0.12);
padding:18px;
border-radius:10px;
text-decoration:none;
color:white;
font-weight:600;
transition:0.3s;
}

.tool-card:hover{
background:rgba(255,255,255,0.25);
transform:translateY(-4px);
}

/* FOOTER */

footer{
text-align:center;
padding:40px;
opacity:0.8;
}

/* MOBILE */

@media (max-width:900px){

.row{
flex-direction:column;
}

.hero h1{
font-size:34px;
}

}

/* ANIMATION */

@keyframes fadeUp{
from{
opacity:0;
transform:translateY(20px);
}
to{
opacity:1;
transform:translateY(0);
}
}