/*
Theme Name: Rezaee Portfolio
Theme URI: https://rezaeerabbi.com
Author: Rezaee Rabbi
Author URI: https://rezaeerabbi.com
Description: A dark, conversion-focused portfolio theme built for Rezaee Rabbi — Digital Marketing Specialist & Sales Funnel Expert. The header, footer, and navigation are native to the theme; every page body is designed to be built and edited visually with Elementor.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rezaee-portfolio
*/

/* ==========================================================
   1. DESIGN TOKENS
   ========================================================== */
:root{
  --accent:#00d68f;
  --accent-dim:rgba(0,214,143,.12);
  --accent2:#1a8cff;
  --g1:linear-gradient(135deg,#00d68f,#1a8cff);
  --g2:linear-gradient(135deg,#6c3fff,#1a8cff);
  --bg:#07090f;
  --bg2:#0c0f1a;
  --bg3:#111528;
  --card:#0f1423;
  --border:rgba(255,255,255,.08);
  --border2:rgba(255,255,255,.14);
  --txt:#dce8ff;
  --txt2:#7a93c0;
  --txt3:#3d5580;
  --r:14px;
  --header-h:78px;
  --container:1240px;
}

/* ==========================================================
   2. RESET & BASE
   ========================================================== */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--txt);
  font-family:'Poppins',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  font-weight:400;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,h5,h6{ margin:0 0 .5em; font-weight:700; line-height:1.2; color:var(--txt); }
p{ margin:0 0 1em; color:var(--txt2); }
button{ font-family:inherit; cursor:pointer; }
.screen-reader-text{
  position:absolute !important;
  clip:rect(1px,1px,1px,1px);
  overflow:hidden;
  height:1px;width:1px;
  word-wrap:normal !important;
}

.container{ max-width:var(--container); margin:0 auto; padding:0 24px; }

/* ==========================================================
   3. UTILITY CLASSES (shared with Elementor content)
   ========================================================== */
.section-alt{ background:var(--bg2) !important; }

.gt, .gt *{
  background:var(--g1);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.gt2, .gt2 *{
  background:var(--g2);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

.tag-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:var(--accent-dim);
  border:1px solid rgba(0,214,143,.25);
  color:var(--accent);
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.1em;
  text-transform:uppercase;
  padding:5px 14px;
  border-radius:50px;
  margin-bottom:14px;
}

.grad-btn .elementor-button,
a.elementor-button.grad-btn,
.btn-pri{
  background:var(--g1) !important;
  color:#000 !important;
  border:none !important;
  font-weight:600 !important;
  border-radius:12px !important;
  transition:all .3s ease !important;
  display:inline-block;
  padding:14px 30px;
}
.grad-btn .elementor-button:hover,
a.elementor-button.grad-btn:hover,
.btn-pri:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 36px rgba(0,214,143,.3);
}

.outline-btn .elementor-button,
a.elementor-button.outline-btn,
.btn-out{
  background:transparent !important;
  border:1.5px solid var(--border2) !important;
  color:var(--txt) !important;
  border-radius:12px !important;
  transition:all .3s ease !important;
  display:inline-block;
  padding:13px 28px;
}
.outline-btn .elementor-button:hover,
a.elementor-button.outline-btn:hover,
.btn-out:hover{
  border-color:var(--accent) !important;
  color:var(--accent) !important;
  transform:translateY(-2px);
}

.card-dark{
  background:var(--card) !important;
  border:1px solid var(--border) !important;
  border-radius:var(--r) !important;
  transition:all .3s ease;
}
.card-dark:hover{
  transform:translateY(-6px);
  border-color:rgba(0,214,143,.25) !important;
  box-shadow:0 20px 50px rgba(0,0,0,.25);
}

.icon-accent .elementor-icon{
  background:var(--accent-dim) !important;
  color:var(--accent) !important;
  border-radius:14px !important;
}

.stat-number .elementor-counter-number,
.stat-number .elementor-counter-title{
  background:var(--g1);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.stat-number .elementor-counter-title{
  color:var(--txt2) !important;
  -webkit-text-fill-color:var(--txt2) !important;
  background:none !important;
}

.price-featured{
  border:1.5px solid var(--accent) !important;
  box-shadow:0 20px 60px rgba(0,214,143,.15) !important;
  transform:scale(1.03);
}

/* ==========================================================
   4. SITE HEADER / NAVIGATION
   ========================================================== */
.site-header{
  position:sticky;
  top:0;
  z-index:999;
  height:var(--header-h);
  display:flex;
  align-items:center;
  background:rgba(7,9,15,.75);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
  transition:box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled{
  background:rgba(7,9,15,.94);
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
}
.site-logo{
  font-size:1.35rem;
  font-weight:800;
  color:var(--txt);
  letter-spacing:-.02em;
}
.site-logo span{ color:var(--accent); }

.primary-nav{ display:flex; align-items:center; gap:8px; }
.primary-nav ul{ display:flex; align-items:center; gap:4px; }
.primary-nav a{
  display:inline-block;
  padding:10px 16px;
  font-size:.92rem;
  font-weight:500;
  color:var(--txt2);
  border-radius:8px;
  transition:color .2s ease, background .2s ease;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a{
  color:var(--txt);
  background:rgba(255,255,255,.05);
}
.header-actions{ display:flex; align-items:center; gap:16px; }
.header-cta{
  background:var(--g1);
  color:#000;
  font-weight:600;
  font-size:.88rem;
  padding:10px 22px;
  border-radius:10px;
  transition:transform .25s ease, box-shadow .25s ease;
}
.header-cta:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 26px rgba(0,214,143,.28);
}

.nav-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  width:26px;
  background:transparent;
  border:none;
  padding:6px;
}
.nav-toggle span{
  display:block;
  height:2px;
  width:100%;
  background:var(--txt);
  border-radius:2px;
  transition:transform .25s ease, opacity .25s ease;
}
body.nav-is-open .nav-toggle span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
body.nav-is-open .nav-toggle span:nth-child(2){ opacity:0; }
body.nav-is-open .nav-toggle span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ==========================================================
   5. SITE FOOTER
   ========================================================== */
.site-footer{
  background:var(--bg2);
  border-top:1px solid var(--border);
  padding:72px 0 0;
  margin-top:80px;
}
.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:40px;
  padding-bottom:48px;
}
.footer-brand .site-logo{ display:inline-block; margin-bottom:14px; }
.footer-brand p{ max-width:320px; color:var(--txt2); font-size:.92rem; }
.footer-social{ display:flex; gap:10px; margin-top:20px; }
.footer-social a{
  width:38px; height:38px;
  display:flex; align-items:center; justify-content:center;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:10px;
  color:var(--txt2);
  transition:all .25s ease;
  font-size:.95rem;
}
.footer-social a:hover{ color:var(--accent); border-color:var(--accent); transform:translateY(-3px); }

.footer-col h4{
  font-size:.85rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--txt);
  margin-bottom:18px;
}
.footer-col ul li{ margin-bottom:12px; }
.footer-col a{
  color:var(--txt2);
  font-size:.92rem;
  transition:color .2s ease;
}
.footer-col a:hover{ color:var(--accent); }
.footer-col .plain{ color:var(--txt2); font-size:.92rem; }

.footer-bottom{
  border-top:1px solid var(--border);
  padding:24px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
}
.footer-bottom p{ margin:0; color:var(--txt3); font-size:.85rem; }
.footer-bottom-links{ display:flex; gap:20px; }
.footer-bottom-links a{ color:var(--txt3); font-size:.85rem; transition:color .2s ease; }
.footer-bottom-links a:hover{ color:var(--accent); }

/* ==========================================================
   6. SCROLL-TO-TOP BUTTON
   ========================================================== */
.scroll-top-btn{
  position:fixed;
  right:24px;
  bottom:24px;
  width:46px;
  height:46px;
  border-radius:50%;
  background:var(--g1);
  color:#000;
  border:none;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.1rem;
  font-weight:700;
  opacity:0;
  visibility:hidden;
  transform:translateY(12px);
  transition:all .3s ease;
  z-index:998;
  box-shadow:0 10px 26px rgba(0,214,143,.3);
}
.scroll-top-btn.is-visible{ opacity:1; visibility:visible; transform:translateY(0); }

/* ==========================================================
   7. 404 PAGE
   ========================================================== */
.error-404-wrap{
  min-height:60vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:100px 24px;
}
.error-404-wrap .error-code{
  font-size:clamp(4rem,12vw,7rem);
  font-weight:800;
  margin-bottom:0;
}
.error-404-wrap p{ max-width:440px; margin:0 auto 28px; }

/* ==========================================================
   8. ELEMENTOR-MANAGED CONTENT AREA
   ========================================================== */
.site-content{ min-height:40vh; }
.site-content.non-elementor{ padding:60px 0; }
.site-content.non-elementor .container{ max-width:820px; }

/* ==========================================================
   9. RESPONSIVE
   ========================================================== */
@media (max-width:1024px){
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:860px){
  .primary-nav{
    position:fixed;
    inset:var(--header-h) 0 0 0;
    background:var(--bg);
    flex-direction:column;
    justify-content:flex-start;
    padding:32px 24px;
    transform:translateX(100%);
    transition:transform .3s ease;
    overflow-y:auto;
  }
  .primary-nav ul{ flex-direction:column; align-items:stretch; width:100%; gap:4px; }
  .primary-nav a{ padding:14px 12px; font-size:1.05rem; }
  body.nav-is-open .primary-nav{ transform:translateX(0); }
  .nav-toggle{ display:flex; }
  .header-cta{ display:none; }
}
@media (max-width:600px){
  .footer-grid{ grid-template-columns:1fr; }
  .footer-bottom{ flex-direction:column; text-align:center; }
}
