/* Hero Banner CSS - DichvuSEOTop SEO Company */
/* File: /static/css/hero.css */

/* Hero Section Styling */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    min-height: 70vh;
}

/* Hero Content */
.hero-section h1 {
    color: white !important;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.25rem;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Primary Button Styling */
.btn-primary,
.hero-section .btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 12px;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(16, 185, 129, 0.4),
        0 0 0 0 rgba(16, 185, 129, 0.5);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover,
.hero-section .btn-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(16, 185, 129, 0.6),
        0 0 0 3px rgba(16, 185, 129, 0.2);
    color: white !important;
}

.btn-primary:active,
.hero-section .btn-primary:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 12px rgba(16, 185, 129, 0.4),
        0 0 0 2px rgba(16, 185, 129, 0.3);
}

/* Secondary Button (Outline) Styling */
.btn-outline,
.hero-section .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    font-weight: 600;
    padding: 16px 32px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn-outline:hover,
.hero-section .btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(255, 255, 255, 0.2),
        0 0 0 3px rgba(255, 255, 255, 0.1);
    color: white !important;
}

.btn-outline:active,
.hero-section .btn-outline:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.15);
}

/* Button Ripple Effect */
.btn-primary::before,
.btn-outline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before,
.btn-outline:hover::before {
    width: 300px;
    height: 300px;
}

/* Button Icons Enhancement */
.btn-primary::after {
    content: '🚀';
    margin-left: 8px;
    font-size: 1.1em;
    animation: bounce 2s infinite;
}

.btn-outline::after {
    content: '📞';
    margin-left: 8px;
    font-size: 1.1em;
    animation: ring 2s infinite;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

@keyframes ring {
    0%, 50%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

/* Button Container */
.hero-section .flex {
    gap: 16px;
    margin-top: 32px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .btn-primary,
    .btn-outline {
        padding: 14px 28px;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
    }
    
    .hero-section .flex {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .btn-primary,
    .btn-outline {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* Special Effects for Hero */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

/* Floating Animation for Background Elements */
.hero-section::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 10%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Button Focus States for Accessibility */
.btn-primary:focus,
.btn-outline:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 3px;
}

/* Enhanced Text Styling */
.hero-section strong {
    color: #fbbf24 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Gradient Text Effect for Headlines */
.hero-section h1 strong {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

/* ==============================================
   HERO IMAGE ADJUSTMENTS (từ style tag cũ)
   ============================================== */

/* Hero Image Adjustments */
.hero-section {
    min-height: auto;
    position: relative;
}

.hero-section .container {
    padding-bottom: 0 !important;
}

.hero-section .grid {
    align-items: end;
    gap: 2rem;
}

.hero-image-container {
    transform: translateX(-40px);
    margin-bottom: -20px; /* Đẩy image xuống sát biên dưới */
    position: relative;
    z-index: 2;
}

.hero-image {
    max-height: 400px !important;
    width: auto !important;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* Đảm bảo text content có đủ space */
.hero-section .space-y-8 {
    padding-bottom: 2rem;
}

/* Responsive Adjustments cho Hero Image */
@media (max-width: 1024px) {
    .hero-section .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-image-container {
        transform: translateX(-20px);
        margin-bottom: -15px;
        text-align: center;
    }
    
    .hero-image {
        max-height: 350px !important;
        max-width: 90% !important;
    }
    
    .hero-image-container .absolute {
        width: 12rem !important;
        height: 12rem !important;
    }
    
    .hero-section .space-y-8 {
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section .container {
        padding-top: 3rem;
    }
    
    .hero-image-container {
        transform: translateX(0);
        margin-bottom: -10px;
    }
    
    .hero-image {
        max-height: 300px !important;
        max-width: 100% !important;
    }
    
    .hero-image-container .absolute {
        display: none;
    }
    
    .hero-section .space-y-8 {
        padding-bottom: 2rem;
    }
}

@media (max-width: 640px) {
    .hero-image {
        max-height: 250px !important;
    }
    
    .hero-image-container {
        margin-bottom: -5px;
    }
    
    .hero-section .space-y-8 {
        gap: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

/* Fine-tuning cho layout tổng thể */
@media (min-width: 1024px) {
    .hero-section .grid {
        grid-template-columns: 1.3fr 0.7fr;
    }
    
    .hero-image-container {
        margin-bottom: -30px; /* Đẩy sâu hơn trên desktop */
    }
}

/* Đảm bảo image không bị overflow */
.hero-section {
    overflow: hidden;
}