/* --- Color Variables: Inspired by abdallah-asfour.lovable.app --- */
:root {
  --main-bg: #181c23;
  --card-bg: #232a34;
  --primary: #1976d2;
  --accent: #6ec1e4;
  --text-main: #e3e6eb;
  --text-muted: #90caf9;
  --border-radius: 18px;
  --shadow: 0 4px 24px rgba(30, 60, 120, 0.10);
}

/* --- Reset & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', Arial, sans-serif;
  background: var(--main-bg) !important;
  color: var(--text-main) !important;
  line-height: 1.7;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--accent) !important;
  letter-spacing: 0.5px;
  font-family: 'Poppins', Arial, sans-serif;
}

section {
  padding: 70px 0 50px 0;
  background: var(--card-bg) !important;
  color: var(--text-main) !important;
  border-radius: var(--border-radius) !important;
  box-shadow: var(--shadow) !important;
  border: none !important;
}

/* --- Navbar --- */
.navbar, .navbar-light {
  background: rgba(24,28,35,0.95) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}
.navbar-brand {
  font-size: 2rem;
  color: var(--accent) !important;
  font-weight: bold;
  letter-spacing: 1px;
}
.navbar-nav .nav-link {
  color: var(--text-main) !important;
  font-weight: 500;
  margin-right: 18px;
  transition: color 0.2s;
}
.navbar-nav .nav-link:hover {
  color: var(--accent) !important;
}

/* --- Hero Section --- */
#home {
  background: linear-gradient(120deg, #232a34 0%, #6ec1e4 100%) !important;
  text-align: center;
  padding: 80px 10px 40px 10px;
  border-radius: var(--border-radius) !important;
  box-shadow: var(--shadow) !important;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
#home .row {
  width: 100%;
  align-items: center;
}
#home h1 {
  font-size: 2.7rem;
  color: var(--accent) !important;
  margin-bottom: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
#home p, #home span, #home .typed-text {
  font-size: 1.3rem;
  color: var(--text-main) !important;
}
#home .typed-text {
  color: var(--primary) !important;
}
#home .btn {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 25px;
  padding: 14px 38px;
  font-size: 1.18rem;
  margin: 10px 8px 0 0;
  border: none;
  box-shadow: 0 4px 18px rgba(30,60,120,0.13);
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
#home .btn:hover {
  background: var(--accent) !important;
  color: #232a34 !important;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 8px 32px rgba(110,193,228,0.18);
}
#home .btn-outline-secondary {
  background: #fff !important;
  color: var(--primary) !important;
  border: 2px solid var(--accent) !important;
}
#home .btn-outline-secondary:hover {
  background: var(--accent) !important;
  color: #232a34 !important;
  border-color: var(--accent) !important;
}
#home img {
  border-radius: 50%;
  border: 5px solid #fff;
  margin-top: 0;
  box-shadow: 0 8px 32px rgba(110,193,228,0.18);
  background: #fff;
  width: 220px;
  height: 220px;
  object-fit: cover;
}

/* --- Social/Contact Icons --- */
.social-icons {
  gap: 18px !important;
}
.social-icons a {
  color: var(--accent) !important;
  background: #222b36;
  border-radius: 50%;
  padding: 8px;
  margin: 0 8px;
  display: inline-block;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.social-icons a:hover {
  background: var(--accent);
  color: #232a34 !important;
  transform: scale(1.15);
}

/* --- About Section --- */
#about {
  background: var(--card-bg) !important;
  border-radius: var(--border-radius) !important;
  box-shadow: var(--shadow) !important;
  margin-bottom: 40px;
}
#about .img-fluid {
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 2px 12px rgba(37,99,235,0.07);
}
#about p {
  font-size: 1.1rem;
  color: var(--text-main) !important;
}

/* --- Skills Section --- */
#skills {
  background: var(--main-bg) !important;
}
#skills .card {
  border-radius: 16px;
  border: none;
  background: var(--card-bg) !important;
  box-shadow: var(--shadow) !important;
  margin-bottom: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
#skills .card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 24px rgba(37,99,235,0.13);
}
#skills .card h5 {
  color: var(--accent) !important;
  font-weight: 600;
  margin-bottom: 8px;
}
#skills .card p {
  color: var(--text-muted) !important;
}

/* --- Projects Section --- */
#projects {
  background: var(--card-bg) !important;
  border-radius: var(--border-radius) !important;
  box-shadow: var(--shadow) !important;
}
#projects .card {
  border-radius: 16px;
  border: none;
  background: var(--main-bg) !important;
  box-shadow: var(--shadow) !important;
  margin-bottom: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
#projects .card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 32px rgba(37,99,235,0.18);
}
#projects .card-title {
  color: var(--accent) !important;
  font-size: 1.2rem;
  font-weight: 600;
}
#projects .btn-sm {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 20px;
  padding: 7px 18px;
  font-size: 1rem;
  border: none;
  margin-top: 8px;
  transition: background 0.2s;
}
#projects .btn-sm:hover {
  background: var(--accent) !important;
  color: #232a34 !important;
}
.project-video {
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(37,99,235,0.07);
  margin-bottom: 12px;
  background: var(--card-bg) !important;
}
.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.image-grid img {
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(37,99,235,0.07);
}

/* --- Education & Experience --- */
#education, #experience {
  background: var(--main-bg) !important;
  border-radius: var(--border-radius) !important;
  box-shadow: var(--shadow) !important;
  margin-bottom: 40px;
  padding: 40px 30px;
}
#education h2, #experience h2 {
  color: var(--accent) !important;
  margin-bottom: 18px;
}
#education p, #experience p, #experience ul li {
  color: var(--text-main) !important;
  font-size: 1.08rem;
}
#experience ul {
  margin-left: 18px;
}

/* --- Contact Section --- */
#contact {
  background: var(--card-bg) !important;
  border-radius: var(--border-radius) !important;
  box-shadow: var(--shadow) !important;
  padding: 50px 30px;
}
#contact h2 {
  color: var(--accent) !important;
  margin-bottom: 18px;
}
#contact a {
  color: var(--accent) !important;
  transition: color 0.2s;
}
#contact a:hover {
  color: var(--primary) !important;
}

/* --- Footer --- */
.footer {
  background: var(--main-bg) !important;
  color: var(--text-muted) !important;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: none;
}
.footer-link {
  color: var(--accent) !important;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover {
  color: var(--primary) !important;
  text-decoration: underline;
}

/* --- Social/Contact Icons --- */
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: #1976d2 !important;
  font-size: 2.1rem;
  margin: 0 8px 0 0;
  background: #fff;
  box-shadow: 0 4px 18px rgba(30,60,120,0.13);
  transition: background 0.22s cubic-bezier(.4,2,.6,1), color 0.22s, box-shadow 0.22s, border-color 0.22s;
  text-decoration: none;
  border: 2.5px solid #e3e6eb;
  position: relative;
  z-index: 1;
}
.contact-icon i {
  color: inherit !important;
  transition: color 0.22s;
}
.contact-icon:hover, .contact-icon:focus, .contact-icon:active {
  color: #fff !important;
  box-shadow: 0 8px 32px rgba(110,193,228,0.18);
  border-color: currentColor;
  transform: scale(1.18) rotate(-6deg);
  z-index: 2;
}
.contact-icon[data-color="#0077b5"]:hover { background: #0077b5 !important; }
.contact-icon[data-color="#23272f"]:hover { background: #23272f !important; }
.contact-icon[data-color="#25d366"]:hover { background: #25d366 !important; }
.contact-icon[data-color="#229ed9"]:hover { background: #229ed9 !important; }
.contact-icon[data-color="#1877f3"]:hover { background: #1877f3 !important; }

@media (max-width: 991px) {
  #home {
    padding: 40px 5px 20px 5px;
    min-height: unset;
  }
  #home .row {
    flex-direction: column-reverse !important;
    text-align: center !important;
  }
  #home .col-md-7, #home .col-md-5 {
    width: 100%;
    max-width: 100%;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
  }
  #home img {
    margin: 0 auto 24px auto;
  }
  .social-icons {
    justify-content: center !important;
  }
}

/* --- Progress Bars --- */
.progress {
  background: #1a2027 !important;
  border-radius: 8px;
}
.progress-bar.bg-info, .progress-bar.bg-primary, .progress-bar.bg-success {
  background-color: var(--accent) !important;
}

/* --- Text Muted/Secondary --- */
.text-muted, .dark-mode .text-muted {
  color: var(--text-muted) !important;
}

/* --- Cards --- */
.card, .contact-card, .card.shadow-sm, .card-body {
  color: var(--text-main) !important;
  background: var(--card-bg) !important;
  border-radius: var(--border-radius) !important;
  border: none !important;
  box-shadow: var(--shadow) !important;
}
.card h2, .card h3, .card h4, .card h5 {
  color: var(--accent) !important;
}
.card .text-muted {
  color: var(--text-muted) !important;
}
.card p, .card ul, .card li, .card div, .card span, .card strong {
  color: var(--text-main) !important;
}

/* --- Hover Effects for Cards --- */
.card:hover, .contact-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 32px rgba(37,99,235,0.18) !important;
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .container-xl, .container, section {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  #projects .card, #skills .card {
    width: 100%;
    margin-bottom: 20px;
  }
  .image-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  section {
    padding: 28px 0 18px 0;
  }
  #home {
    padding: 40px 5px 20px 5px;
  }
  #about, #projects, #education, #experience, #contact {
    padding: 12px 3px;
  }
  .contact-card {
    padding: 0.7rem !important;
  }
  .btn, .btn-sm, .btn-primary, .btn-outline-primary, .btn-outline-secondary {
    font-size: 1.15rem !important;
    padding: 14px 28px !important;
    min-width: 120px;
  }
  .contact-icon {
    width: 56px !important;
    height: 56px !important;
    font-size: 1.7rem !important;
    margin: 0 6px 8px 0 !important;
  }
}
@media (max-width: 600px) {
  .contact-icon {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
    margin: 0 7px 10px 0;
  }
  .btn, .btn-sm, .btn-primary, .btn-outline-primary, .btn-outline-secondary {
    font-size: 1.08rem !important;
    padding: 12px 18px !important;
    min-width: 100px;
  }
}

/* --- Stronger Card Hover Effects --- */
#projects .card:hover, #skills .card:hover, #journey .card:hover, .card.shadow-sm:hover, .contact-card:hover {
  transform: translateY(-10px) scale(1.045) rotate(-1deg);
  box-shadow: 0 12px 40px 0 rgba(110,193,228,0.22), 0 2px 12px rgba(37,99,235,0.13);
  z-index: 2;
}

/* --- Skill Percent --- */
.skill-percent {
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent) !important;
}

/* --- AOS Animations (if needed for custom) --- */
[data-aos] {
  will-change: transform, opacity;
}

/* --- Hero Section Customizations --- */
.hero-img-large .hero-img {
  width: 300px !important;
  height: 300px !important;
  border-radius: 50%;
  border: 7px solid #fff;
  box-shadow: 0 12px 40px 0 rgba(110,193,228,0.22);
  object-fit: cover;
}

.main-title-animated {
  font-size: 45px !important;
  font-weight: 800;
  letter-spacing: 1.5px;
  background: linear-gradient(90deg, #1976d2 30%, #6ec1e4 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInDown 1.2s cubic-bezier(.4,2,.6,1);
  margin-bottom: 10px;
  text-align: right;
}
@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-40px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-desc-small {
  font-size: 1.08rem !important;
  color: #b0b3b8 !important;
  margin-bottom: 18px;
  font-weight: 400;
}

.hero-tags .tag {
  display: inline-block;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 12px;
  margin: 0 6px 6px 0;
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.07);
  letter-spacing: 0.5px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.tag-blue { background: #1976d2; }
.tag-purple { background: #6c63ff; }
.tag-pink { background: #e040fb; }
.tag-green { background: #43b581; }
.hero-tags .tag:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 18px rgba(110,193,228,0.18);
}

/* --- Social/Contact Icons Custom --- */
.social-icons .contact-icon {
  background: transparent !important;
  color: #b0b3b8 !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 2.2rem !important;
  width: 54px !important;
  height: 54px !important;
  margin: 0 4px !important;
  transition: color 0.22s, background 0.22s, transform 0.22s;
}
.social-icons .contact-icon:hover {
  color: #fff !important;
  background: var(--accent) !important;
  transform: scale(1.18) rotate(-6deg);
}
.social-icons .contact-icon[data-color="#00aaff"]:hover { background: #00aaff !important; }
.social-icons .contact-icon[data-color="#23272f"]:hover { background: #23272f !important; }
.social-icons .contact-icon[data-color="#25d366"]:hover { background: #25d366 !important; }
.social-icons .contact-icon[data-color="#229ed9"]:hover { background: #229ed9 !important; }
.social-icons .contact-icon[data-color="#1877f3"]:hover { background: #1877f3 !important; }

.social-icons .contact-icon i {
  color: inherit !important;
  transition: color 0.22s;
}

/* --- Download CV Button --- */
.btn-gradient {
  background: linear-gradient(90deg, #1976d2 0%, #6ec1e4 100%) !important;
  color: #fff !important;
  border-radius: 25px;
  padding: 14px 38px;
  font-size: 1.18rem;
  border: none;
  box-shadow: 0 4px 18px rgba(30,60,120,0.13);
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-gradient:hover {
  background: linear-gradient(90deg, #6ec1e4 0%, #1976d2 100%) !important;
  color: #232a34 !important;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 8px 32px rgba(110,193,228,0.18);
}

@media (max-width: 768px) {
  .main-title-animated {
    font-size: 2.1rem !important;
    text-align: center;
  }
}

.hero-title-big {
  font-size: 3.5rem !important;
  line-height: 1.1;
}
.hero-desc-big {
  font-size: 1.7rem !important;
  font-weight: 500;
}
@media (max-width: 991px) {
  .hero-title-big {
    font-size: 2.2rem !important;
  }
  .hero-desc-big {
    font-size: 1.08rem !important;
  }
}
@media (max-width: 600px) {
  .hero-title-big {
    font-size: 1.3rem !important;
  }
  .hero-desc-big {
    font-size: 0.98rem !important;
  }
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
@media (max-width: 991px) {
  .hero-tags {
    justify-content: center !important;
    gap: 8px;
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  .hero-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: center !important;
    gap: 6px;
  }
  .hero-tags .tag {
    min-width: 90px;
    font-size: 0.98rem;
    padding: 7px 12px;
  }
}

/* --- Contact Modern Section --- */
.contact-modern {
  background: var(--card-bg) !important;
  border-radius: 22px !important;
  box-shadow: 0 8px 32px rgba(30,60,120,0.13);
  padding: 2.5rem 2rem 2.2rem 2rem !important;
  max-width: 650px;
  margin: 0 auto;
}
.social-modern {
  gap: 32px !important;
  margin-bottom: 18px !important;
}
.contact-icon-modern {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  color: var(--accent);
  background: var(--card-bg);
  box-shadow: 0 2px 12px rgba(37,99,235,0.07);
  transition: background 0.18s, color 0.18s, transform 0.18s, border-color 0.18s;
  margin: 0 8px;
  border: 2px solid var(--accent);
}
.contact-icon-modern.linkedin:hover {
  background: #1976d2;
  color: #fff;
  border-color: #1976d2;
}
.contact-icon-modern.github:hover {
  background: #23272f;
  color: #fff;
  border-color: #23272f;
}
.contact-icon-modern.whatsapp:hover {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}
.contact-icon-modern.instagram:hover {
  background: #e040fb;
  color: #fff;
  border-color: #e040fb;
}
.contact-icon-modern.facebook:hover {
  background: #1877f3;
  color: #fff;
  border-color: #1877f3;
}
.contact-icon-modern i {
  color: inherit !important;
  transition: color 0.18s;
}
.btn-email {
  background: linear-gradient(90deg, #1976d2 0%, #6ec1e4 100%) !important;
  color: #fff !important;
  border-radius: 25px !important;
  padding: 14px 38px !important;
  font-size: 1.18rem !important;
  border: none !important;
  box-shadow: 0 4px 18px rgba(30,60,120,0.13);
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
}
.btn-email i {
  color: #fff !important;
  margin-right: 7px;
}
.btn-email:hover {
  background: linear-gradient(90deg, #6ec1e4 0%, #1976d2 100%) !important;
  color: #232a34 !important;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 8px 32px rgba(110,193,228,0.18);
}

.btn-whatsapp {
  background: var(--card-bg) !important;
  color: #25d366 !important;
  font-weight: 700 !important;
  border: 2px solid #25d366 !important;
  border-radius: 8px !important;
  font-size: 1.13rem !important;
  padding: 12px 38px !important;
  margin: 0 0 0 8px;
  display: inline-flex;
  align-items: center;
  transition: background 0.18s, border-color 0.18s;
}
.btn-whatsapp i {
  color: #25d366 !important;
  margin-right: 7px;
}
.btn-whatsapp:hover {
  background: #232a34 !important;
  border-color: #25d366 !important;
  color: #25d366 !important;
}
.contact-project-box {
  background: var(--card-bg) !important;
  color: #b0b3b8 !important;
  border-radius: 14px !important;
  margin-top: 18px;
  box-shadow: 0 2px 12px rgba(37,99,235,0.07);
  font-size: 1.13rem;
  padding: 1.2rem 0.7rem 1rem 0.7rem;
}
.contact-project-box strong {
  color: #fff !important;
  font-size: 1.18rem;
  font-weight: 700;
}
@media (max-width: 600px) {
  .contact-modern {
    padding: 1.1rem 0.3rem 1.1rem 0.3rem !important;
  }
  .contact-icon-modern {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    margin: 0 4px;
  }
  .btn-email, .btn-whatsapp {
    font-size: 0.98rem !important;
    padding: 10px 12px !important;
  }
  .contact-project-box {
    font-size: 0.98rem;
    padding: 0.7rem 0.2rem 0.7rem 0.2rem;
  }
}

.btn-email, .btn-email * {
  color: #fff !important;
}
