/* ===============================
GLOBAL SETTINGS
=============================== */

html{
  scroll-behavior:smooth;
}

body{
  transition:background 0.4s ease,color 0.4s ease;
}

/* LIGHT MODE */

body.light-mode{
  background:#f4f6f8;
  color:#111;
}

body.light-mode nav{
  background:white;
  border-bottom:1px solid #e5e5e5;
}

body.light-mode section{
  background:#ffffff;
}

/* DARK MODE */

body.dark-mode{
  background:#000;
  color:#fff;
}

/* ===============================
NAVBAR
=============================== */

nav{
  backdrop-filter: blur(12px);
  position:sticky;
  top:0;
  z-index:1000;
}

/* NAV LINKS */

nav a{
  font-weight:500;
  transition:all .3s ease;
}

nav a:hover{
  color:#22c55e;
}

/* ===============================
DROPDOWN MENU
=============================== */

.dropdown{
  position:relative;
  display:inline-block;
}

.dropdown-menu{
  display:none;
  position:absolute;
  top:35px;
  right:0;
  background:#111;
  border:1px solid #222;
  border-radius:8px;
  min-width:140px;
  padding:10px 0;
}

.dropdown-menu a{
  display:block;
  padding:8px 15px;
  font-size:14px;
}

.dropdown-menu a:hover{
  background:#1a1a1a;
}

.dropdown:hover .dropdown-menu{
  display:block;
}

/* ===============================
BUTTONS
=============================== */

button,
a.bg-green-500{
  transition:all .3s ease;
}

button:hover,
a.bg-green-500:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 25px rgba(0,0,0,.4);
}

/* ===============================
HERO ANIMATIONS
=============================== */

section.relative h1{
  animation:fadeUp 1s ease forwards;
  opacity:0;
}

section.relative p{
  animation:fadeUp 1.4s ease forwards;
  opacity:0;
}

section.relative a{
  animation:fadeUp 1.8s ease forwards;
  opacity:0;
}

@keyframes fadeUp{
  0%{
    opacity:0;
    transform:translateY(30px);
  }

  100%{
    opacity:1;
    transform:translateY(0);
  }
}

/* ===============================
FORM + TRADINGVIEW LAYOUT
=============================== */

.market-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:start;
}

@media(max-width:900px){

.market-grid{
  grid-template-columns:1fr;
}

}

/* ===============================
INPUT STYLING
=============================== */

input{
  border:none;
  outline:none;
  font-size:14px;
}

input:focus{
  box-shadow:0 0 0 2px #22c55e;
}

/* ===============================
IMAGE EFFECTS
=============================== */

img.rounded-lg{
  box-shadow:0 15px 40px rgba(0,0,0,.5);
  transition:transform .4s ease;
}

img.rounded-lg:hover{
  transform:scale(1.03);
}

/* ===============================
BLOG SECTION
=============================== */

.blog-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:30px;
}

.blog-card{
  background:#111;
  border-radius:12px;
  overflow:hidden;
  transition:all .3s ease;
  border:1px solid #1f1f1f;
}

.blog-card:hover{
  transform:translateY(-8px);
  box-shadow:0 20px 40px rgba(0,0,0,.5);
}

.blog-card img{
  width:100%;
  height:180px;
  object-fit:cover;
}

.blog-card-content{
  padding:18px;
}

.blog-card h3{
  font-size:18px;
  margin-bottom:10px;
}

.blog-card p{
  font-size:14px;
  color:#aaa;
}

/* ===============================
WHATSAPP FLOAT BUTTON
=============================== */

a.fixed{
  animation:pulse 2s infinite;
}

@keyframes pulse{
  0%{
    box-shadow:0 0 0 0 rgba(34,197,94,0.6);
  }

  70%{
    box-shadow:0 0 0 15px rgba(34,197,94,0);
  }

  100%{
    box-shadow:0 0 0 0 rgba(34,197,94,0);
  }
}

/* ===============================
FOOTER
=============================== */

footer{
  background:#050505;
}

.footer-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:30px;
}

footer a{
  display:block;
  margin-bottom:8px;
  color:#999;
  font-size:14px;
}

footer a:hover{
  color:#22c55e;
}

/* ===============================
SOCIAL ICONS
=============================== */

.social-icons{
  display:flex;
  gap:15px;
  margin-top:10px;
}

.social-icons a{
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#111;
  border:1px solid #222;
  transition:all .3s ease;
  font-size:16px;
}

.social-icons a:hover{
  background:#22c55e;
  color:#000;
  transform:translateY(-3px);
}

/* ===============================
LANGUAGE SELECTOR
=============================== */

.lang-select{
  border:1px solid #333;
  background:#111;
  color:white;
  padding:4px 8px;
  border-radius:6px;
  font-size:13px;
}

/* ===============================
TOGGLE SWITCH
=============================== */

.theme-toggle{
  cursor:pointer;
  margin-left:10px;
  font-size:14px;
  padding:4px 10px;
  border-radius:6px;
  border:1px solid #333;
}