/* =========================
DEVELOPER SECTION
========================= */

.developer-section{
padding:80px 5%;
background:#fff;
overflow:hidden;
}

.developer-wrapper{
display:grid;
grid-template-columns:1fr 1fr;
gap:24px;
margin-top:40px;
align-items:start;
}

/* LEFT */

.developer-left{
background:#fff;
border:1px solid #dcfce7;
border-radius:24px;
padding:26px;
box-shadow:0 15px 40px rgba(34,197,94,.08);
}

.dev-badge{
display:inline-flex;
align-items:center;
gap:8px;
padding:9px 16px;
background:#f0fdf4;
border:1px solid #bbf7d0;
border-radius:40px;
font-size:12px;
font-weight:700;
color:#16a34a;
margin-bottom:18px;
}

.live-dot{
width:10px;
height:10px;
background:#22c55e;
border-radius:50%;
animation:pulseLive 1.5s infinite;
}

.developer-left h3{
font-size:28px;
margin-bottom:12px;
color:#111827;
}

.developer-left p{
font-size:14px;
line-height:1.8;
color:#64748b;
margin-bottom:20px;
}

.api-card{
margin-bottom:18px;
}

.api-label{
font-size:12px;
font-weight:800;
color:#16a34a;
margin-bottom:10px;
}

.api-url{
background:#0f172a;
padding:14px;
border-radius:14px;
color:#22c55e;
font-size:12px;
font-family:monospace;
overflow:auto;
}

.param-list{
display:flex;
flex-direction:column;
gap:10px;
}

.param-item{
display:flex;
justify-content:space-between;
align-items:center;
padding:13px 15px;
background:#f8fff9;
border:1px solid #dcfce7;
border-radius:14px;
font-size:13px;
font-weight:700;
}

.param-item span{
color:#111827;
}

/* RIGHT */

.terminal{
background:#0f172a;
border-radius:24px;
overflow:hidden;
box-shadow:0 20px 50px rgba(15,23,42,.22);
}

.terminal-header{
height:56px;
padding:0 18px;
display:flex;
align-items:center;
justify-content:space-between;
background:#111827;
border-bottom:1px solid rgba(255,255,255,.06);
}

.terminal-dots{
display:flex;
gap:7px;
}

.terminal-dots span{
width:11px;
height:11px;
border-radius:50%;
}

.terminal-dots span:nth-child(1){
background:#ef4444;
}

.terminal-dots span:nth-child(2){
background:#f59e0b;
}

.terminal-dots span:nth-child(3){
background:#22c55e;
}

.terminal-title{
font-size:12px;
font-weight:700;
color:#fff;
}

.terminal-body{
padding:18px;
min-height:340px;
}

/* COMMANDS */

.command-box{
display:flex;
flex-direction:column;
gap:8px;
}

.cmd{
font-size:11px;
font-family:monospace;
color:#22c55e;
white-space:nowrap;
overflow:hidden;
border-right:2px solid #22c55e;
width:0;
opacity:0;
}

/* SMOOTH TYPING */

.cmd1{
animation:type1 14s infinite;
}

.cmd2{
animation:type2 14s infinite;
}

.cmd3{
animation:type3 14s infinite;
}

.cmd4{
animation:type4 14s infinite;
}

.cmd5{
animation:type5 14s infinite;
}

/* LINE 1 */

@keyframes type1{

0%{
width:0;
opacity:1;
}

5%{
width:140px;
opacity:1;
}

100%{
width:140px;
opacity:1;
}

}

/* LINE 2 */

@keyframes type2{

0%,6%{
width:0;
opacity:0;
}

12%{
width:100%;
opacity:1;
}

100%{
width:100%;
opacity:1;
}

}

/* LINE 3 */

@keyframes type3{

0%,13%{
width:0;
opacity:0;
}

19%{
width:230px;
opacity:1;
}

100%{
width:230px;
opacity:1;
}

}

/* LINE 4 */

@keyframes type4{

0%,20%{
width:0;
opacity:0;
}

26%{
width:220px;
opacity:1;
}

100%{
width:220px;
opacity:1;
}

}

/* LINE 5 */

@keyframes type5{

0%,27%{
width:0;
opacity:0;
}

33%{
width:210px;
opacity:1;
}

100%{
width:210px;
opacity:1;
}

}

/* LOADER */

.loading-box{
display:flex;
align-items:center;
gap:10px;
margin-top:18px;
opacity:0;
animation:loaderLoop 14s infinite;
color:#38bdf8;
font-size:12px;
font-weight:700;
}

@keyframes loaderLoop{

0%,34%{
opacity:0;
}

40%,58%{
opacity:1;
}

65%,100%{
opacity:0;
}

}

.loader{
width:16px;
height:16px;
border-radius:50%;
border:2px solid rgba(255,255,255,.15);
border-top:2px solid #38bdf8;
animation:spin 1s linear infinite;
}

/* RESPONSE */

.response-area{
position:relative;
height:120px;
margin-top:20px;
}

.response{
position:absolute;
top:0;
left:0;
width:100%;
padding:14px;
border-radius:16px;
opacity:0;
transform:translateY(10px);
}

/* SUCCESS */

.success-response{
background:rgba(34,197,94,.08);
border:1px solid rgba(34,197,94,.25);
animation:successLoop 14s infinite;
}

/* FAILED */

.failed-response{
background:rgba(239,68,68,.08);
border:1px solid rgba(239,68,68,.22);
animation:failedLoop 14s infinite;
}

@keyframes successLoop{

0%,42%{
opacity:0;
transform:translateY(10px);
}

48%,67%{
opacity:1;
transform:translateY(0);
}

73%,100%{
opacity:0;
transform:translateY(-10px);
}

}

@keyframes failedLoop{

0%,74%{
opacity:0;
transform:translateY(10px);
}

80%,95%{
opacity:1;
transform:translateY(0);
}

100%{
opacity:0;
transform:translateY(-10px);
}

}

.response-title{
font-size:13px;
font-weight:800;
margin-bottom:8px;
}

.success-text{
color:#22c55e;
}

.failed-text{
color:#ef4444;
}

.response pre{
font-size:11px;
line-height:1.6;
color:#e2e8f0;
font-family:monospace;
overflow:auto;
}

/* ANIMATION */

@keyframes spin{

100%{
transform:rotate(360deg);
}

}

@keyframes pulseLive{

0%{
transform:scale(1);
opacity:1;
}

50%{
transform:scale(1.3);
opacity:.5;
}

100%{
transform:scale(1);
opacity:1;
}

}

/* MOBILE */

@media(max-width:991px){

.developer-wrapper{
grid-template-columns:1fr;
}

}

@media(max-width:600px){

.developer-section{
padding:60px 4%;
}

.developer-left{
padding:20px;
}

.developer-left h3{
font-size:24px;
}

.terminal-body{
padding:15px;
min-height:320px;
}

.cmd{
font-size:10px;
}

.response pre{
font-size:10px;
}

}