/* Avukat Site - Custom Styles */
html { scroll-behavior: smooth; }

/* === Overflow & Responsive Protection === */
body {
    overflow-x: hidden;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

*, *::before, *::after {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

pre, code {
    white-space: pre-wrap;
    word-break: break-word;
}

/* Hero gradient overlay */
.hero-gradient {
    background: linear-gradient(135deg, rgba(26,39,68,0.95) 0%, rgba(15,26,46,0.85) 100%);
}

/* Gold underline animation */
.gold-underline {
    position: relative;
    display: inline-block;
}
.gold-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c9a84c;
    transition: width 0.3s ease;
}
.gold-underline:hover::after {
    width: 100%;
}

/* Card hover effects */
.service-card {
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-bottom-color: #c9a84c;
}

/* Stat counter animation */
.stat-item {
    transition: transform 0.3s ease;
}
.stat-item:hover {
    transform: scale(1.05);
}

/* Team card */
.team-card:hover .team-overlay {
    opacity: 1;
}
.team-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Testimonial card */
.testimonial-card {
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

/* Section divider */
.section-divider {
    width: 60px;
    height: 3px;
    background: #c9a84c;
    margin: 0 auto;
}

/* Fade in animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Blog card */
.blog-card {
    transition: all 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Form focus */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #c9a84c !important;
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #1a2744; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #c9a84c; }
