/* Additional custom styles for Awrag Tayibah website */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
}

::-webkit-scrollbar-thumb {
    background: #00a0d6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0078c1;
}

/* Blue gradient text */
.gradient-text {
    background: linear-gradient(120deg, #00a0d6, #0078c1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Service card hover effect */
.service-card {
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out, border-color 0.4s ease-out;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 160, 214, 0.1);
}

/* Custom focus styles */
input:focus, textarea:focus {
    outline: none;
    border-color: #00a0d6;
    box-shadow: 0 0 0 3px rgba(0, 160, 214, 0.2);
}

/* Phone number hover effect */
.phone-link:hover {
    color: #00a0d6;
    font-weight: bold;
}

/* Mobile navigation adjustments */
@media (max-width: 768px) {
    .mobile-nav {
        background: linear-gradient(to bottom, #00a0d6, #0078c1);
        border-radius: 0 0 8px 8px;
        right: 0;
        top: 60px;
        z-index: 50;
        width: 100%;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }
    
    .mobile-nav a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 12px 16px;
        display: block;
        width: 100%;
    }
    
    .mobile-nav a:last-child {
        border-bottom: none;
    }
}

/* Improved animations */
.fade-in {
    animation: fadeInAnimation 1s ease forwards;
    opacity: 0;
}

.animate-slideUp {
    animation: slideUp 0.6s ease-out forwards;
    opacity: 0;
}

.animate-scaleIn {
    animation: scaleIn 0.5s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInAnimation {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Stagger animation delay for children */
.stagger-children > * {
    opacity: 0;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.7s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.9s; }

/* Button styles */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: all 0.5s ease;
}

.btn:hover::after {
    height: 300%;
}

/* Card hover effect with depth */
.depth-card {
    transition: all 0.3s ease;
}

.depth-card:hover {
    transform: translateY(-5px) scale(1.01);
}

/* Glassmorphism effect */
.glass-panel {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

/* Custom wave animation */
.wave-bg {
    position: absolute;
    width: 100%;
    height: 15%;
    bottom: 0;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25' fill='%2300a0d6'%3E%3C/path%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.5' fill='%2300a0d6'%3E%3C/path%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='%2300a0d6'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -1;
}

/* Scroll to top button */
#scroll-to-top {
    z-index: 99;
    transition: all 0.3s ease;
}

#scroll-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* Card shadow with subtle border */
.card-modern {
    border: 1px solid rgba(0, 160, 214, 0.05);
    box-shadow: 0 10px 20px rgba(0, 160, 214, 0.05);
    transition: all 0.3s ease;
}

.card-modern:hover {
    box-shadow: 0 15px 30px rgba(0, 160, 214, 0.1);
}

/* Hover effect for links */
.hover-link {
    position: relative;
}

.hover-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    right: 0;
    background-color: #00a0d6;
    transition: width 0.3s ease;
}

.hover-link:hover::after {
    width: 100%;
    left: 0;
    right: auto;
}

/* تحسين الخطوط الأساسية */
body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* توحيد أحجام الخطوط */
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4, h5, h6 { font-size: 1.2rem; }
p, li, a, span, div { font-size: 1rem; }
.small, .text-xs { font-size: 0.9rem; }

/* زيادة المساحات البيضاء */
section, .section {
  margin-top: 3rem;
  margin-bottom: 3rem;
}
.card, .glass-card, .service-card, .depth-card {
  padding: 2rem;
}

/* توحيد الحواف الدائرية */
.card, .glass-card, .service-card, .depth-card, .btn, .btn-neon, .service-icon, .floating-action-button {
  border-radius: 1rem !important;
}

/* توحيد الظلال */
.card, .glass-card, .service-card, .depth-card {
  box-shadow: 0 4px 16px rgba(0,160,214,0.10), 0 1.5px 4px rgba(0,160,214,0.05);
}

/* تحسين الأزرار */
.btn, .btn-neon {
  min-width: 120px;
  min-height: 44px;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0,160,214,0.15);
  border-radius: 1rem;
  transition: all 0.3s;
}
.btn:hover, .btn-neon:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0,160,214,0.18);
}

/* تحسين الروابط */
a {
  transition: color 0.2s, box-shadow 0.2s, font-weight 0.2s;
}
a:hover {
  color: #0078c1;
  font-weight: bold;
  text-decoration: underline;
}

/* تحسين المسافة بين عناصر الهيدر والقائمة */
header .container, nav, .mobile-nav {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* تحسين المسافة بين البطاقات في الشبكات */
.grid, .project-grid-mobile {
  gap: 2rem;
}

/* تحسين المسافة بين عناصر الفوتر */
footer .container {
  padding-top: 2rem;
  padding-bottom: 2rem;
} 