/**
 * Main Stylesheet
 * الملف الرئيسي للأنماط
 */

/* ============================================
   CSS Variables - DURUE PLUS Brand Colors
   ============================================ */
:root {
    /* Primary Brand Colors */
    --primary-color: #1a365d; /* Dark Blue - Main brand color */
    --primary-dark: #0f1f35; /* Darker blue for backgrounds */
    --primary-light: #2c5282; /* Lighter blue for hover states */
    --accent-color: #ff7849; /* Orange - Accent color */
    --accent-dark: #e55a2f; /* Darker orange for hover */
    --accent-light: #ff9d75; /* Lighter orange for highlights */
    --gold-color: #fbbf24; /* Gold/Yellow for highlights */
    --gold-dark: #f59e0b; /* Darker gold */
    --white-color: #ffffff;
    
    /* Semantic Colors */
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #1a365d; /* Match primary for consistency */
    
    /* Typography */
    --font-family-ar: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-family-en: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --transition: all 0.3s ease;
    --box-shadow: 0 2px 10px rgba(26, 54, 93, 0.1);
    --box-shadow-hover: 0 5px 20px rgba(26, 54, 93, 0.2);
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-ar);
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* ============================================
   Container & Layout
   ============================================ */
/* Bootstrap 5 Container widths - Match header/navbar */
/* Note: Bootstrap 5 RTL already defines container widths, but we ensure consistency */
.container {
    width: 100%;
    padding-right: var(--bs-gutter-x, 0.75rem);
    padding-left: var(--bs-gutter-x, 0.75rem);
    margin-right: auto;
    margin-left: auto;
}

/* Bootstrap 5 Container max-widths - Ensure all pages use same width */
/* Use !important to ensure Bootstrap RTL doesn't override */
@media (min-width: 576px) {
    .container {
        max-width: 540px !important;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px !important;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px !important;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px !important;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px !important;
    }
}

/* Ensure page sections use same container width as header/navbar */
/* All page containers inherit the same max-width defined globally above */

/* ============================================
   Search & Autocomplete Styles
   ============================================ */
#searchModal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#searchInput {
    border-radius: 10px 0 0 10px;
    border: 2px solid #e9ecef;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

#searchInput:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 54, 93, 0.25);
}

#searchModal .btn-primary {
    border-radius: 0 10px 10px 0;
    padding: 1rem 1.5rem;
}

.search-suggestions {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 10px;
    background: #f8f9fa;
    padding: 0.5rem;
}

#suggestionsList {
    border-radius: 8px;
    overflow: hidden;
}

#suggestionsList .list-group-item {
    border: none;
    border-bottom: 1px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

#suggestionsList .list-group-item:last-child {
    border-bottom: none;
}

#suggestionsList .list-group-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(-5px);
}

#suggestionsList .list-group-item:hover .text-dark,
#suggestionsList .list-group-item:hover .text-muted,
#suggestionsList .list-group-item:hover .badge {
    color: white !important;
    background: rgba(255, 255, 255, 0.2) !important;
}

#suggestionsList .list-group-item:hover mark {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

#suggestionsList mark {
    background: var(--accent-color);
    color: white;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    font-weight: 600;
}

#suggestionsList .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

#suggestionsList img {
    flex-shrink: 0;
}

/* Loading state */
#suggestionsList .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Scrollbar styling for suggestions */
.search-suggestions::-webkit-scrollbar {
    width: 8px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.section {
    padding: 80px 0;
}

/* Ensure all page sections use same container width as header/navbar */
/* Container width is already defined above using Bootstrap 5 standard widths */

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

/* Accent Button */
.btn-accent {
    background: var(--accent-color);
    color: #fff;
    border: none;
    transition: var(--transition);
}

.btn-accent:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 120, 73, 0.3);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 18px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 30px;
}

.card:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-5px);
}

.card-img-top {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.card-text {
    color: #666;
    margin-bottom: 20px;
}

/* ============================================
   Utilities
   ============================================ */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 1rem; }
.pt-4 { padding-top: 1.5rem; }
.pt-5 { padding-top: 3rem; }

.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 1rem; }
.pb-4 { padding-bottom: 1.5rem; }
.pb-5 { padding-bottom: 3rem; }

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #fff;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-section {
    position: relative;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.05) 0%, rgba(15, 31, 53, 0.05) 100%);
    border-radius: 15px;
    margin: 40px 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(26,54,93,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    border-radius: 15px;
    z-index: 0;
}

.hero-section > * {
    position: relative;
    z-index: 1;
}

/* ============================================
   Services Grid
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.service-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: #666;
}

/* ============================================
   Projects Grid
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 30px;
    color: #fff;
    transform: translateY(100%);
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

/* ============================================
   Blog Cards
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.blog-card:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-5px);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-body {
    padding: 25px;
}

.blog-meta {
    font-size: 0.875rem;
    color: #999;
    margin-bottom: 10px;
}

.blog-card h3 {
    margin-bottom: 15px;
}

.blog-card p {
    color: #666;
    margin-bottom: 20px;
}

/* ============================================
   Gallery
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay a {
    color: #fff;
    font-size: 2rem;
}

/* ============================================
   Navbar Styles
   ============================================ */
/* Site Header - Full Width */
#site-header,
.site-header {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

#main-navbar {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border-bottom: 2px solid #e9ecef;
    padding: 0.75rem 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Navbar container - full width */
#main-navbar .container,
#main-navbar .container-fluid {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: var(--bs-gutter-x, 0.75rem);
    padding-right: var(--bs-gutter-x, 0.75rem);
}

#main-navbar .navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

#main-navbar .navbar-brand:hover {
    opacity: 0.9;
}

#main-navbar .navbar-brand img,
#main-navbar .navbar-logo {
    max-height: 70px;
    height: 70px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 5px;
}

#main-navbar .navbar-brand:hover img,
#main-navbar .navbar-brand:hover .navbar-logo {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25)) brightness(1.05);
    transform: scale(1.05);
}

#main-navbar .navbar-brand-text {
    color: var(--primary-color) !important;
    font-weight: 700;
}

#main-navbar .nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

#main-navbar .nav-link:hover {
    color: var(--accent-color) !important;
    background-color: rgba(255, 120, 73, 0.1);
}

#main-navbar .nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(26, 54, 93, 0.1);
    font-weight: 600;
}

#main-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 60%;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

#main-navbar .navbar-toggler {
    border: 2px solid #333;
    padding: 0.25rem 0.5rem;
}

#main-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 120, 73, 0.25);
}

/* Search Button */
#main-navbar .search-btn {
    transition: var(--transition);
}

#main-navbar .search-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
}

/* Search Modal */
#searchModal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#searchModal .modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: 15px 15px 0 0;
    padding: 1.5rem;
}

#searchModal .modal-title {
    color: #fff;
    font-weight: 600;
}

#searchModal .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

#searchModal .btn-close:hover {
    opacity: 1;
}

#searchModal .modal-body {
    padding: 1.5rem;
}

#searchModal .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px 0 0 10px;
    padding: 15px 20px;
    font-size: 16px;
    transition: var(--transition);
}

#searchModal .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
    outline: none;
}

#searchModal .btn-primary {
    border-radius: 0 10px 10px 0;
    padding: 15px 25px;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

#searchModal .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

#searchModal .search-suggestions {
    max-height: 300px;
    overflow-y: auto;
}

#searchModal .search-suggestions .list-group-item {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 15px;
    cursor: pointer;
    transition: var(--transition);
}

#searchModal .search-suggestions .list-group-item:hover {
    background: rgba(26, 54, 93, 0.05);
    padding-right: 20px;
}

#searchModal .search-suggestions .list-group-item:last-child {
    border-bottom: none;
}

#searchModal .search-suggestions .list-group-item i {
    color: var(--accent-color);
    margin-left: 10px;
}

/* Navbar Responsive - Tablets and Medium Screens */
@media (max-width: 1200px) {
    #main-navbar .navbar-brand {
        font-size: 1.3rem;
    }
    
    #main-navbar .navbar-brand img,
    #main-navbar .navbar-logo {
        max-height: 65px;
        height: 65px;
    }
    
    #main-navbar .nav-link {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.95rem;
    }
}

/* Mobile Responsive Navbar */
@media (max-width: 991px) {
    #main-navbar .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
    }
    
    #main-navbar .nav-link.active::after {
        display: none;
    }
    
    #main-navbar .navbar-brand {
        font-size: 1.25rem;
    }
    
    #main-navbar .navbar-brand img,
    #main-navbar .navbar-logo {
        max-height: 60px;
        height: 60px;
    }
    
    #main-navbar .search-btn span,
    #main-navbar .btn-sm span {
        display: none !important;
    }
    
    #main-navbar .d-flex.gap-2 {
        gap: 0.5rem !important;
    }
}

/* Mobile, Small Screen and Tablet - Full Width Header and Slider */
@media (max-width: 991px) {
    /* Header Full Width */
    .site-header {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    /* On mobile, container should be full width */
    .site-header .container,
    #main-navbar .container {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Navbar Full Width */
    #main-navbar {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Slider Full Width */
    #main-slider-wrapper {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    #main-slider {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    #main-slider .carousel-item {
        width: 100%;
    }
    
    #main-slider .slider-image-wrapper {
        width: 100%;
    }
}

/* Search Modal Responsive */
@media (max-width: 575px) {
    #searchModal .modal-dialog {
        margin: 10px;
    }
    
    #searchModal .modal-content {
        border-radius: 10px;
    }
    
    #searchModal .modal-header {
        padding: 1rem;
        border-radius: 10px 10px 0 0;
    }
    
    #searchModal .modal-body {
        padding: 1rem;
    }
    
    #searchModal .form-control {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    #searchModal .btn-primary {
        padding: 12px 20px;
    }
}

/* ============================================
   Footer Styles
   ============================================ */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

.footer {
    color: #e8e8e8 !important;
}

.footer h5 {
    color: #fff !important;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.footer p {
    color: #e0e0e0 !important;
}

.footer .text-muted {
    color: #d0d0d0 !important;
}

.footer ul {
    color: #e0e0e0;
}

.footer li {
    color: #e0e0e0;
}

.footer a {
    color: #d0d0d0 !important;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #fff !important;
    padding-right: 5px;
}

.footer span {
    color: #fff !important;
}

.footer small {
    color: #c0c0c0 !important;
}

.footer .social-links a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer .newsletter-form input {
    border-radius: 25px 0 0 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.footer .newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer .newsletter-form button {
    border-radius: 0 25px 25px 0;
}

/* Footer Logo */
.footer img {
    filter: brightness(1.1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    border-radius: 5px;
    transition: var(--transition);
}

.footer img:hover {
    filter: brightness(1.2) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transform: scale(1.05);
}

.footer h5 img {
    max-height: 50px;
    height: auto;
    width: auto;
    object-fit: contain;
    margin-bottom: 10px;
    display: block;
}

/* ============================================
   Scroll to Top Button
   ============================================ */
#scrollTop {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

#scrollTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#scrollTop.show {
    display: flex;
}

/* ============================================
   Floating Action Buttons
   ============================================ */
.floating-buttons {
    position: fixed;
    bottom: 100px;
    left: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    font-size: 24px;
    overflow: hidden;
}

.floating-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.floating-btn:hover::before {
    width: 300px;
    height: 300px;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.floating-btn i {
    position: relative;
    z-index: 1;
}

.floating-btn-call {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    animation: pulse-call 2s infinite;
}

.floating-btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    animation: pulse-whatsapp 2s infinite;
}

.floating-btn-text {
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-btn:hover .floating-btn-text {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

@keyframes pulse-call {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(26, 54, 93, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(26, 54, 93, 0.6);
    }
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6);
    }
}

/* Floating Buttons Responsive */
@media (max-width: 1200px) {
    .floating-buttons {
        bottom: 90px;
        left: 25px;
        gap: 13px;
    }
    
    .floating-btn {
        width: 58px;
        height: 58px;
        font-size: 23px;
    }
    
    .floating-btn-text {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    #scrollTop {
        bottom: 25px;
        left: 25px;
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 991px) {
    .floating-buttons {
        bottom: 85px;
        left: 22px;
        gap: 12px;
    }
    
    .floating-btn {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .floating-buttons {
        bottom: 80px;
        left: 20px;
        gap: 12px;
    }
    
    .floating-btn {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .floating-btn-text {
        display: none;
    }
    
    #scrollTop {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .floating-buttons {
        bottom: 70px;
        left: 15px;
        gap: 10px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* ============================================
   Contact Form
   ============================================ */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   Loading Animation
   ============================================ */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Responsive Design
   ============================================ */

/* Large Desktops (1400px and up) - Already defined above */
/* Desktops (992px to 1199px) - Already defined above */
@media (max-width: 1199px) {
    
    .hero-section {
        padding: 50px 15px !important;
    }
    
    .hero-section h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-section p {
        font-size: 1.15rem !important;
    }
    
    .hero-section .btn-lg {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

/* Tablets (768px to 991px) */
@media (max-width: 991px) {
    /* Container max-width already defined above */
    
    .section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2.25rem;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    h4 { font-size: 1.5rem; }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-section {
        padding: 50px 15px !important;
        margin: 30px 0 !important;
    }
    
    .hero-section h1 {
        font-size: 2.2rem !important;
    }
    
    .hero-section p {
        font-size: 1.1rem !important;
    }
    
    .hero-section .btn-lg {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .card {
        margin-bottom: 25px;
    }
    
    .service-card {
        padding: 30px 15px;
    }
    
    .service-icon {
        font-size: 3.5rem;
    }
    
    .footer .row > div {
        margin-bottom: 2rem;
    }
}

/* Mobile Landscape and Tablets Portrait (576px to 767px) */
@media (max-width: 767px) {
    /* Container max-width already defined above */
    .container {
        padding: 0 20px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.1rem; }
    h6 { font-size: 1rem; }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .service-card {
        padding: 25px 15px;
    }
    
    .service-icon {
        font-size: 3rem;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 15px;
    }
    
    .btn-lg {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    /* Footer Mobile Improvements */
    .footer {
        text-align: right;
        padding: 2rem 0 !important;
    }
    
    .footer .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .footer .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .footer .row > div {
        margin-bottom: 2.5rem;
        padding-left: 15px;
        padding-right: 15px;
        text-align: right;
    }
    
    .footer h5 {
        font-size: 1.1rem;
        text-align: right;
        margin-bottom: 1rem;
    }
    
    .footer h5 img {
        display: block;
        margin: 0 0 0.5rem 0;
    }
    
    .footer .social-links {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .footer .social-links a {
        margin: 0.25rem;
    }
    
    .footer ul.list-unstyled {
        text-align: right;
        padding: 0;
    }
    
    .footer ul.list-unstyled li {
        text-align: right;
        margin-bottom: 0.75rem;
    }
    
    .footer ul.list-unstyled li i {
        margin-left: 0.5rem;
    }
    
    .footer .newsletter-form {
        max-width: 100%;
    }
    
    .footer .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .footer .newsletter-form .form-control {
        border-radius: 25px;
        margin-bottom: 0.5rem;
        width: 100%;
        text-align: right;
    }
    
    .footer .newsletter-form button {
        border-radius: 25px;
        width: 100%;
    }
    
    .footer .newsletter-form small {
        display: block;
        text-align: right;
        margin-top: 0.5rem;
    }
    
    /* Copyright section mobile */
    .footer .row.align-items-center {
        flex-direction: column;
        text-align: right;
    }
    
    .footer .row.align-items-center > div {
        width: 100%;
        text-align: right !important;
        margin-bottom: 0.5rem;
    }
}

/* Small Mobile (up to 575px) */
@media (max-width: 575px) {
    /* Container max-width already defined above */
    .container {
        padding: 0 15px;
    }
    
    .section {
    padding: 40px 0;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.9rem; }
    
    body {
        font-size: 14px;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 0.95rem;
    margin-bottom: 20px;
}

    .services-grid,
    .projects-grid {
        gap: 15px;
        margin-top: 25px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .service-card {
        padding: 20px 15px;
    }
    
    .service-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .card {
        margin-bottom: 20px;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 14px;
        width: 100%;
        display: block;
        text-align: right;
    }
    
    .btn-lg {
        padding: 10px 25px;
        font-size: 15px;
    }
    
    .btn-sm {
        padding: 6px 15px;
        font-size: 13px;
    }
    
    /* Footer Extra Small Mobile */
    .footer {
        padding: 1.5rem 0 !important;
        text-align: right;
    }
    
    .footer .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .footer .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .footer .row > div {
        padding-left: 10px;
        padding-right: 10px;
        margin-bottom: 2rem;
        text-align: right;
    }
    
    .footer h5 {
        font-size: 1rem;
        margin-bottom: 1rem;
        text-align: right;
    }
    
    .footer h5 img {
        display: block;
        margin: 0 0 0.5rem 0;
    }
    
    .footer .social-links {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .footer .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
        margin: 0.25rem;
    }
    
    .footer ul.list-unstyled {
        text-align: right;
        padding: 0;
    }
    
    .footer ul.list-unstyled li {
        text-align: right;
        margin-bottom: 0.75rem;
    }
    
    .footer ul.list-unstyled li i {
        margin-left: 0.5rem;
    }
    
    .footer .newsletter-form {
        max-width: 100%;
    }
    
    .footer .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .footer .newsletter-form .form-control {
        font-size: 13px;
        padding: 8px 12px;
        border-radius: 25px;
        margin-bottom: 0.5rem;
        width: 100%;
        text-align: right;
    }
    
    .footer .newsletter-form button {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 25px;
        width: 100%;
    }
    
    .footer .newsletter-form small {
        display: block;
        text-align: right;
        margin-top: 0.5rem;
        font-size: 12px;
    }
    
    /* Copyright section extra small mobile */
    .footer .row.align-items-center {
        flex-direction: column;
        text-align: right;
    }
    
    .footer .row.align-items-center > div {
        width: 100%;
        text-align: right !important;
        margin-bottom: 0.5rem;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    #main-navbar .navbar-brand {
        font-size: 1.1rem;
    }
    
    #main-navbar .navbar-brand img,
    #main-navbar .navbar-logo {
        max-height: 60px;
        height: 60px;
    }
    
    #main-navbar .nav-link {
        font-size: 14px;
        padding: 0.5rem 0.75rem !important;
    }
}

/* Extra Small Mobile (up to 375px) */
@media (max-width: 375px) {
    /* Container max-width already defined above */
    .container {
        padding: 0 10px;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.1rem; }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .service-icon {
        font-size: 2rem;
    }
    
    .card-img-top {
        height: 150px;
    }
    
    .btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    /* Footer Extra Small Mobile */
    .footer {
        padding: 1.5rem 0 !important;
    }
    
    .footer .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .footer .row > div {
        padding-left: 10px;
        padding-right: 10px;
        margin-bottom: 2rem;
    }
    
    .footer h5 {
        font-size: 1rem;
    }
    
    .footer .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
    
    .footer .newsletter-form .form-control {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .footer .newsletter-form button {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 40px 0;
    }
}

/* ============================================
   Animations & Effects
   ============================================ */

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(10px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 120, 73, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 120, 73, 0.8), 0 0 30px rgba(255, 120, 73, 0.6);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes scale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-down {
    animation: fadeInDown 0.8s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

.animate-slide-in-up {
    animation: slideInUp 0.8s ease-out;
}

.animate-slide-in-down {
    animation: slideInDown 0.8s ease-out;
}

.animate-zoom-in {
    animation: zoomIn 0.6s ease-out;
}

.animate-bounce {
    animation: bounce 1s ease-in-out;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-rotate {
    animation: rotate 2s linear infinite;
}

.animate-scale {
    animation: scale 2s ease-in-out infinite;
}

/* Hover Effects */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.hover-grow {
    transition: var(--transition);
}

.hover-grow:hover {
    transform: scale(1.05);
}

.hover-shrink {
    transition: var(--transition);
}

.hover-shrink:hover {
    transform: scale(0.95);
}

.hover-rotate {
    transition: var(--transition);
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

.hover-glow {
    transition: var(--transition);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(255, 120, 73, 0.6);
}

.hover-brighten {
    transition: var(--transition);
    filter: brightness(1);
}

.hover-brighten:hover {
    filter: brightness(1.2);
}

/* Card Animations */
.card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

.service-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.project-card {
    animation: zoomIn 0.6s ease-out;
    animation-fill-mode: both;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }

/* Navbar Animation */
#main-navbar {
    animation: slideInDown 0.5s ease-out;
}

#main-navbar .nav-link {
    position: relative;
    overflow: hidden;
}

#main-navbar .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: right 0.5s;
}

#main-navbar .nav-link:hover::before {
    right: 100%;
}

/* Footer Animation */
.footer {
    animation: fadeInUp 0.8s ease-out;
}

.footer .row > div {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.footer .row > div:nth-child(1) { animation-delay: 0.1s; }
.footer .row > div:nth-child(2) { animation-delay: 0.2s; }
.footer .row > div:nth-child(3) { animation-delay: 0.3s; }
.footer .row > div:nth-child(4) { animation-delay: 0.4s; }

/* Button Animations */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::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;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(26, 54, 93, 0.5);
}

.btn-accent {
    box-shadow: 0 4px 15px rgba(255, 120, 73, 0.3);
}

.btn-accent:hover {
    box-shadow: 0 6px 20px rgba(255, 120, 73, 0.5);
}

/* Image Hover Effects */
img {
    transition: var(--transition);
}

.card-img-top:hover,
.gallery-item img:hover,
.service-card img:hover {
    transform: scale(1.1);
}

/* Loading Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Skeleton Loading */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* Text Animations */
.text-shimmer {
    background: linear-gradient(90deg, #fff 0%, #ff7849 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

/* Scroll Animations */
.fade-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Icon Animations */
.fas, .far, .fab {
    transition: var(--transition);
}

a:hover .fas,
a:hover .far,
a:hover .fab {
    transform: scale(1.2);
    color: var(--accent-color);
}

/* Section Title Animation */
.section-title {
    animation: fadeInDown 0.8s ease-out;
}

.section-title::after {
    animation: fadeInLeft 1s ease-out 0.3s both;
}

/* Hero Section Animations */
.hero h1 {
    animation: fadeInUp 1s ease-out;
}

.hero p {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero .btn {
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Form Input Focus Effects */
.form-control:focus {
    animation: pulse 0.3s ease-out;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 54, 93, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(26, 54, 93, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(26, 54, 93, 0);
    }
}

/* Badge Animations */
.badge {
    animation: zoomIn 0.3s ease-out;
}

/* Tooltip Animations */
.tooltip {
    animation: fadeIn 0.3s ease-out;
}

/* Modal Animations */
.modal.fade .modal-dialog {
    animation: zoomIn 0.3s ease-out;
}

/* Alert Animations */
.alert {
    animation: slideInDown 0.5s ease-out;
}

/* Progress Bar Animation */
.progress-bar {
    animation: slideInLeft 1s ease-out;
}

/* Stagger Animation for Lists */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

/* Smooth Page Transitions */
.page-transition {
    animation: fadeIn 0.5s ease-in-out;
}

/* Logo Animation */
.navbar-logo,
.footer-logo {
    animation: fadeInRight 0.8s ease-out;
}

/* Social Icons Animation */
.social-links a {
    animation: zoomIn 0.5s ease-out;
    animation-fill-mode: both;
}

.social-links a:nth-child(1) { animation-delay: 0.1s; }
.social-links a:nth-child(2) { animation-delay: 0.2s; }
.social-links a:nth-child(3) { animation-delay: 0.3s; }
.social-links a:nth-child(4) { animation-delay: 0.4s; }
.social-links a:nth-child(5) { animation-delay: 0.5s; }
.social-links a:nth-child(6) { animation-delay: 0.6s; }

/* Print Styles */
@media print {
    .navbar,
    .footer,
    #scrollTop,
    .floating-buttons,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .section {
        page-break-inside: avoid;
        padding: 20px 0;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    /* Disable animations for print */
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ============================================
   Accessibility
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    z-index: 9999;
}

/* Skip to main content link */
a[href="#main-content"] {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--primary-color);
    color: #fff;
    padding: 8px;
    z-index: 100;
    border-radius: 0 0 5px 5px;
}

a[href="#main-content"]:focus {
    top: 0;
}
