html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
  text-align: start;
}


.float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: white;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
}

.my-float {
  margin-top: 16px;
}



.whatsapp-button {
  position: fixed;
  bottom: 15px;
  right: 15px;
  z-index: 99;
  background-color: #25d366;
  border-radius: 50px;
  color: #ffffff;
  text-decoration: none;
  width: 50px;
  height: 50px;
  font-size: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  -webkit-box-shadow: 0px 0px 25px -6px rgba(0, 0, 0, 1);
  -moz-box-shadow: 0px 0px 25px -6px rgba(0, 0, 0, 1);
  box-shadow: 0px 0px 25px -6px rgba(0, 0, 0, 1);
  animation: effect 5s infinite ease-in;
}

@keyframes effect {

  20%,
  100% {
    width: 50px;
    height: 50px;
    font-size: 30px;
  }

  0%,
  10% {
    width: 55px;
    height: 55px;
    font-size: 35px;
  }

  5% {
    width: 50px;
    height: 50px;
    font-size: 30px;
  }
}

/* --- Theatrical Portfolio Theme --- */

:root {
  --gold: #D4AF37;
  --dark-red: #8B0000;
  --stage-black: #1a1a1a;
  --glow-color: rgba(212, 175, 55, 0.5);
}

.theatrical-title {
  font-family: 'Times New Roman', Times, serif;
  /* Or a specific font if added later */
  color: var(--dark-red);
  text-shadow: 1px 1px 2px var(--gold);
  font-weight: bold;
}

.theatrical-subtitle {
  font-style: italic;
  color: #555;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
  padding-bottom: 10px;
}

.theatrical-font {
  font-family: 'Times New Roman', serif;
}

.text-gold {
  color: var(--gold) !important;
}

/* Portfolio Cards */
.portfolio-card {
  position: relative;
  background: #fff;
  border: none;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
  /* Gold glow shadow */
}

.card-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-image-wrapper:hover img {
  transform: scale(1.05);
}

.placeholder-image {
  width: 100%;
  height: 100%;
  background-color: var(--stage-black);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-family: serif;
  text-align: center;
}

/* Overlay & Explore Button */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover .overlay {
  opacity: 1;
}

.explore-btn {
  border-color: var(--gold);
  color: var(--gold);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.explore-btn:hover {
  background-color: var(--gold);
  color: #fff;
  box-shadow: 0 0 10px var(--glow-color);
}

.btn-outline-gold {
  border: 1px solid var(--gold);
  color: var(--gold);
}

.btn-outline-gold:hover {
  background-color: var(--gold);
  color: #fff;
}

/* Details Page */
.parallax-hero {
  height: 400px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  margin-top: -1.5rem;
  /* Adjust based on navbar height to sit flush if needed */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
}

.glow-text {
  text-shadow: 0 0 10px var(--glow-color);
}

.story-box {
  background: #fff;
  padding: 2rem;
  border-left: 5px solid var(--gold);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.text-story {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover img {
  transform: scale(1.02);
  filter: brightness(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Animations */
.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.fade-in-down {
  animation: fadeInDown 0.8s ease-out forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* تنسيقات النافذة المنبثقة */
    #lightbox-modal {
        display: none;
        position: fixed;
        z-index: 9999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    /* تنسيق الصورة داخل النافذة */
    #lightbox-image {
        max-width: 90%;
        max-height: 80vh;
        border: 2px solid #fff;
        box-shadow: 0 0 20px rgba(0,0,0,0.5);
        animation: zoomIn 0.3s ease;
    }

    /* أزرار التحكم (إغلاق - تالي - سابق) */
    .lightbox-btn {
        position: absolute;
        color: white;
        font-size: 40px;
        cursor: pointer;
        user-select: none;
        transition: 0.3s;
        background: none;
        border: none;
        padding: 10px;
    }

    .lightbox-btn:hover { color: #ffd700; /* لون ذهبي عند التحويم */ }

    #close-btn { top: 20px; right: 30px; font-size: 50px; }
    #prev-btn { left: 20px; top: 50%; transform: translateY(-50%); }
    #next-btn { right: 20px; top: 50%; transform: translateY(-50%); }

    /* النص التوضيحي أسفل الصورة */
    #caption {
        margin-top: 15px;
        color: #ccc;
        font-size: 1.2rem;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    /* تأثيرات حركية بسيطة */
    @keyframes zoomIn {
        from { transform: scale(0.9); opacity: 0; }
        to { transform: scale(1); opacity: 1; }
    }
.border-gold { border-color: var(--gold) !important; }

.card-teal {
    background-color: #17a2b8 !important; /* Standard Bootstrap Info Teal */
    color: white !important;
}

    .card-teal .card-body {
        background-color: #17a2b8 !important;
    }

body {
    font-family: 'Cairo', sans-serif;
}
/* Social links styling */
.social-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: .5rem;
}

    .social-links a {
        color: inherit;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        font-weight: 600;
    }

        .social-links a:hover {
            text-decoration: underline;
        }

    .social-links svg {
        width: 20px;
        height: 20px;
        display: inline-block;
    }

@media (max-width: 575.98px) {
    .navbar-collapse {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        z-index: 1050;
        background-color: white;
        padding: 1rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        max-height: calc(100vh - 56px);
        overflow-y: auto;
    }
}

/* Default: mobile - no top padding (navbar overlays content) */
body {
    padding-top: 70px;
}

/* Desktop and larger (>=576px): add offset for fixed navbar */
@media (min-width: 576px) {
    body {
        padding-top: 70px; /* Offset for fixed navbar */
    }
}
