/* =========================================
   Tokens — matching the original DevFolio palette
========================================= */
:root {
  --accent: #0563bb;
  --accent-dark: #024a94;
  --heading: #37423b;
  --dark-bg: #040b14;
  --light-bg: #f6f9ff;
  --text-muted: #6f7a89;
  --font-display: 'Cairo', sans-serif;
  --font-body: 'Cairo', 'Raleway', sans-serif;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: #fff;
  color: #444;
}

a { text-decoration: none; }

.section { padding: 80px 0; }

.section-title { text-align: center; margin-bottom: 50px; }
.section-title .eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}
.section-title h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--heading);
}
.section-title h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin: 14px auto 0;
}

/* =========================================
   Header / Navbar (no JS — checkbox toggle)
========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.navbar { padding: 14px 0; position: relative; }

.navbar-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--heading);
}
.navbar-brand span { color: var(--accent); }

.nav-menu .nav-link {
  color: var(--heading);
  font-weight: 600;
  padding: 8px 16px;
  transition: color .2s ease;
}
.nav-menu .nav-link:hover,
.nav-menu .nav-link.active { color: var(--accent); }

.btn-contact {
  background: var(--accent);
  color: #fff !important;
  border-radius: 50px;
  padding: 8px 22px !important;
  font-weight: 700 !important;
}
.btn-contact:hover { background: var(--accent-dark); }

/* Dropdown (hover-based, no JS) */
.dropdown-hover { position: relative; }
.dropdown-hover-menu {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .25s ease;
  z-index: 10;
}
.dropdown-hover:hover .dropdown-hover-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-hover-menu li a {
  display: block;
  padding: 8px 20px;
  color: var(--heading);
}
.dropdown-hover-menu li a:hover { color: var(--accent); }

/* Mobile toggle via checkbox hack */
.nav-toggle-checkbox { display: none; }
.nav-toggle-label {
  font-size: 1.8rem;
  color: var(--heading);
  cursor: pointer;
}

@media (max-width: 991px) {
  .nav-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    width: 100%;
  }
  .nav-toggle-checkbox:checked ~ .nav-menu {
    max-height: 500px;
  }
  .nav-menu .navbar-nav { padding: 10px 0; }
  .dropdown-hover-menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; }
  .dropdown-hover:hover .dropdown-hover-menu { display: block; }
}

/* =========================================
   Hero — full background photo + dark overlay
========================================= */
.hero {
  min-height: 100vh;
  position: relative;
 
  padding-top: 70px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,.8), rgba(0,0,0,.85)),url(images/image.jfif);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
background-attachment: fixed;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 10px;
}
.hero h1 span { color: var(--accent); }
.hero-role {
  color: #cbd3dc;
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 20px;
}
.hero-text { color: #cbd3dc; max-width: 560px; margin-bottom: 30px; }

.btn-hero {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 12px 34px;
  border-radius: 50px;
  display: inline-block;
  transition: all .2s ease;
}
.btn-hero:hover { background: var(--accent-dark); }

/* =========================================
   About
========================================= */
.about-section { background: #fff; }
.about-name { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--heading); }
.about-role { color: var(--accent); font-weight: 600; margin-bottom: 16px; }
.about-info { color: var(--text-muted); }
.about-info i { color: var(--accent); margin-left: 6px; }

.skill-item { margin-bottom: 16px; }
.skill-label { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 6px; color: var(--heading); }
.progress { height: 8px; background: #e9edf2; border-radius: 10px; }
.progress-bar { background: var(--accent); border-radius: 10px; }

/* =========================================
   Services
========================================= */
.services-section { background: var(--light-bg); }
.service-card {
  background: #fff;
  border-radius: 10px;
  padding: 34px 26px;
  height: 100%;
  box-shadow: 0 5px 25px rgba(0,0,0,.06);
  transition: transform .25s ease;
}
.service-card:hover { transform: translateY(-6px); }
.service-card i { font-size: 2.1rem; color: var(--accent); margin-bottom: 16px; display: block; }
.service-card h4 { font-weight: 700; margin-bottom: 10px; font-size: 1.1rem; color: var(--heading); }
.service-card p { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* =========================================
   Stats
========================================= */
.stats-section {
  
  padding: 55px 0;
  color: #fff;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}
.stats-section .contaier{
  
background-color: #024a94;
  
  opacity: 0.7;


}

.stat-item i { font-size: 1.8rem; margin-bottom: 8px; display: block; }
.stat-item h3 { font-weight: 800; font-size: 2.1rem; margin-bottom: 0; }
.stat-item p { font-weight: 600; margin: 0; opacity: .9; }

/* =========================================
   Portfolio
========================================= */
.portfolio-section { background: #fff; }
.portfolio-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0,0,0,.08);
}
.portfolio-item img { width: 100%; height: 250px; object-fit: cover; display: block; transition: transform .35s ease; }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4,11,20,.9), transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px;
  opacity: 0; transition: opacity .3s ease;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-overlay h5 { font-weight: 700; margin: 0; color: #fff; }
.portfolio-overlay p { color: var(--accent); margin: 0; font-size: .9rem; }

/* =========================================
   Testimonials
========================================= */
.testimonials-section { background: var(--light-bg); }
.testimonial-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  height: 100%;
  box-shadow: 0 5px 25px rgba(0,0,0,.06);
}
.testimonial-card img {
  width: 70px; height: 70px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--accent); margin-bottom: 14px;
}
.testimonial-card h5 { font-weight: 700; margin-bottom: 8px; color: var(--heading); }
.testimonial-card p { color: var(--text-muted); font-style: italic; margin: 0; }

/* =========================================
   Blog
========================================= */
.blog-section { background: #fff; }
.blog-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 5px 25px rgba(0,0,0,.08);
}
.blog-card img { width: 100%; height: 190px; object-fit: cover; }
.blog-content { padding: 22px; }
.badge-category {
  background: rgba(5,99,187,.1);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
}
.blog-content h5 { font-weight: 700; margin: 12px 0 8px; color: var(--heading); }
.blog-content p { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* =========================================
   Contact
========================================= */
.contact-section { background: var(--light-bg); }
.contact-info-item {
  display: flex; align-items: center; gap: 16px;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 5px 25px rgba(0,0,0,.06);
}
.contact-info-item i { font-size: 1.5rem; color: var(--accent); }
.contact-info-item h6 { font-weight: 700; margin-bottom: 4px; color: var(--heading); }
.contact-info-item p { color: var(--text-muted); margin: 0; }

.contact-form .form-control {
  background: #fff;
  border: 1px solid #dde3ec;
  color: #444;
  border-radius: 6px;
  padding: 12px 16px;
}
.contact-form .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 .2rem rgba(5,99,187,.15);
}

.btn-send {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 12px 40px;
  border-radius: 50px;
  border: none;
}
.btn-send:hover { background: var(--accent-dark); }

/* =========================================
   Footer
========================================= */
.site-footer {
  background: var(--dark-bg);
  padding: 50px 0 30px;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: #fff;
}
.footer-brand span { color: var(--accent); }
.social-icons {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 20px 0;
  padding: 0;
}
.social-icons a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-radius: 50%;
  transition: all .2s ease;
}
.social-icons a:hover { background: var(--accent); }
.copyright { color: #9aa3ad; font-size: .9rem; margin: 0; }

/* Accessibility */
a:focus-visible, button:focus-visible, .form-control:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}