/* Custom Styles for AD CHRONICLE LLC */

/* Brand Colors - Modern Gradient Palette */
:root {
    --primary-color: #6366F1;
    --primary-dark: #4F46E5;
    --secondary-color: #8B5CF6;
    --accent-color: #f8f9fa;
    --text-color: #666;
    --dark-text: #1e1e1e;
}

/* Logo Styling */
.logo img {
    transition: all 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Modern Button Styles */
.border-first-button a {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.border-first-button a:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.main-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
    border: none;
    font-weight: 600;
}

.main-button:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* Enhanced Form Styling */
.fill-form input,
.fill-form textarea,
.contact-form-wrapper input,
.contact-form-wrapper textarea {
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.fill-form input:focus,
.fill-form textarea:focus,
.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    outline: none;
    transform: translateY(-2px);
}

/* Contact Form Modern Button Hover */
#form-submit:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4) !important;
}

/* Why Choose Us - Reason Box Hover Effects */
.reason-box {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reason-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
    border-color: #6366F1 !important;
}

.reason-box .icon {
    transition: all 0.4s ease;
}

.reason-box:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

/* Service Navigation Enhancement */
.naccs .menu .thumb {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.naccs .menu .thumb .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    transition: all 0.4s ease;
}

.naccs .menu .thumb .icon i {
    color: var(--primary-color);
    transition: all 0.4s ease;
}

.naccs .menu .thumb:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.naccs .menu .thumb:hover .icon i {
    color: white;
    transform: scale(1.1);
}

.naccs .menu .first-thumb.active .thumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.naccs .menu .first-thumb.active .thumb .icon i {
    color: white;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Footer Links */
footer a {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Header Enhancement */
.header-area {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.header-area.header-sticky.is-sticky {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Pre-header modern styling */
.pre-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.pre-header .info li a {
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pre-header .info li a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* About Section List Styles */
.about-list ul li {
    font-size: 16px;
    transition: all 0.3s ease;
}

.about-list ul li:hover {
    transform: translateX(5px);
}

.about-list ul li i {
    transition: all 0.3s ease;
}

.about-list ul li:hover i {
    transform: scale(1.2);
}

/* Section Headings */
.section-heading h4 {
    color: var(--dark-text);
    font-weight: 800;
}

.section-heading h4 em {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Line Decoration */
.line-dec {
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    width: 80px;
    border-radius: 10px;
}

/* ===== ENHANCED POWER DESIGN FEATURES ===== */

/* Animated Gradient Background */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero Section Power Enhancements */
.main-banner {
    position: relative;
    overflow: hidden;
}

.main-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* Card Hover Effects with Depth */
.services .naccs .menu .thumb,
.reason-box,
.contact-form-wrapper {
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.services .naccs .menu .thumb::before,
.reason-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
    z-index: -1;
}

.services .naccs .menu .thumb:hover::before,
.reason-box:hover::before {
    opacity: 1;
}

/* Text Gradient Effects */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Button with Ripple Effect */
.border-first-button a,
.main-button,
#form-submit {
    position: relative;
    overflow: hidden;
}

.border-first-button a::before,
.main-button::before,
#form-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.border-first-button a:hover::before,
.main-button:hover::before,
#form-submit:hover::before {
    width: 300px;
    height: 300px;
}

/* Parallax Effect for Images */
.right-image img,
.about-left-image img {
    transition: all 0.5s ease;
}

.right-image:hover img,
.about-left-image:hover img {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

/* Service Icon Animation */
.naccs .menu .thumb .icon {
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.naccs .menu .thumb:hover .icon {
    transform: scale(1.1);
}

.naccs .menu .thumb:hover .icon i {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Glowing Effect on Active Elements */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.5),
                    0 0 10px rgba(99, 102, 241, 0.4),
                    0 0 15px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 0 10px rgba(99, 102, 241, 0.8),
                    0 0 20px rgba(99, 102, 241, 0.6),
                    0 0 30px rgba(99, 102, 241, 0.4);
    }
}

.border-first-button a:hover,
#form-submit:hover {
    animation: glow 2s ease-in-out infinite;
}

/* Enhanced Check Icons */
.fa-check-circle,
.about-list ul li i {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Contact Form Enhanced Focus States */
.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus,
.contact-form-wrapper select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15),
                0 10px 25px rgba(99, 102, 241, 0.1) !important;
    outline: none;
    transform: translateY(-2px);
    background: white !important;
}

/* Ticks List Enhancement */
.ticks-list span {
    transition: all 0.3s ease;
    position: relative;
    padding-left: 5px;
}

.ticks-list span:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.ticks-list span i {
    transition: all 0.3s ease;
}

.ticks-list span:hover i {
    color: var(--secondary-color);
    transform: rotate(360deg) scale(1.2);
}

/* Footer Enhanced */
footer {
    background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
    animation: footerGlow 3s ease-in-out infinite;
}

@keyframes footerGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

footer h5 {
    position: relative;
}

footer a {
    transition: all 0.3s ease;
}

/* Footer Links Hover */
footer ul li a {
    position: relative;
    padding-left: 0;
    transition: all 0.3s ease;
}

footer ul li a:hover {
    padding-left: 5px;
}

/* Responsive Footer */
@media (max-width: 768px) {
    footer {
        padding: 60px 0 0 0 !important;
    }
    
    footer .col-md-6 {
        text-align: center !important;
    }
    
    footer .text-md-end {
        text-align: center !important;
    }
}

/* Loading Spinner Enhancement */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Responsive Enhancements */
@media (max-width: 992px) {
    .reason-box:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    .right-image:hover img,
    .about-left-image:hover img {
        transform: scale(1.03) translateY(-5px);
    }
}

/* Success/Error Message Styling */
#form-messages {
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#form-messages.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

#form-messages.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Preloader Enhancement */
#js-preloader {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.preloader-inner .dot {
    background: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

/* Navigation Menu Enhancement */
.main-nav ul li a {
    position: relative;
    transition: all 0.3s ease;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 80%;
}

/* Logo Pulse Effect */
@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo:hover img {
    animation: logoPulse 1s ease-in-out;
}

/* Contact Info Cards */
.contact-form-wrapper .col-md-6 > div {
    transition: all 0.3s ease;
}

.contact-form-wrapper .col-md-6 > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.contact-form-wrapper .col-md-6 > div i {
    transition: all 0.3s ease;
}

.contact-form-wrapper .col-md-6 > div:hover i {
    transform: scale(1.2) rotate(360deg);
}

/* Select Dropdown Enhancement */
.contact-form-wrapper select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236366F1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
}

.contact-form-wrapper select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238B5CF6' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

/* Smooth Page Transitions */
.wow {
    visibility: hidden;
}

.wow.animated {
    visibility: visible;
}

/* Performance Optimization */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Print Styles */
@media print {
    .header-area,
    .pre-header,
    footer,
    .border-first-button {
        display: none;
    }
}

/* Icons in text - modern style */
.fa {
    transition: all 0.3s ease;
}

/* Ticks list modern style */
.ticks-list span {
    background: rgba(99, 102, 241, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.ticks-list span:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.ticks-list span i {
    color: var(--primary-color);
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .right-image img {
        margin-top: 30px;
    }
    
    .about-left-image img {
        margin-bottom: 30px;
    }
    
    .reason-box {
        margin-bottom: 20px;
    }

    .pre-header .info {
        flex-direction: column;
        gap: 10px;
    }
}

/* Accessibility Improvements */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

/* Loading Animation Enhancement */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

/* Pulse Animation for CTA */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(99, 102, 241, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.border-first-button a {
    animation: pulse 2s infinite;
}

/* Contact Form Input Icons */
.contact-form-wrapper input:focus + i,
.contact-form-wrapper textarea:focus + i {
    color: var(--primary-color);
    transform: scale(1.2);
}

/* Performance Optimization */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Modern Card Shadows */
.service-item,
.portfolio-item,
.blog-post {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-item:hover,
.portfolio-item:hover,
.blog-post:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

/* Modern Gradient Overlays */
.gradient-overlay {
    position: relative;
}

.gradient-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(139, 92, 246, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.gradient-overlay:hover::before {
    opacity: 1;
}