/* =============================================================================
   Fatema Akter SEO Portfolio - Custom Styles
   ============================================================================= */

/* Root Variables */
:root {
    --primary-color: #007BFF;
    --secondary-color: #6C757D;
    --success-color: #28A745;
    --warning-color: #FFC107;
    --danger-color: #DC3545;
    --light-color: #F8F9FA;
    --dark-color: #343A40;
    --white-color: #FFFFFF;
    --gray-color: #F5F5F5;

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);

    --primary-color-rgb: 0, 123, 255; /* For RGBA usage in animations */
}

/* =============================================================================
   Base Styles
   ============================================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: #0056b3;
}

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

/* =============================================================================
   Navigation Styles
   ============================================================================= */

.navbar {
    background-color: var(--white-color) !important;
    border-bottom: 1px solid #e9ecef;
    z-index: 1030;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--dark-color) !important;
    padding: 0.75rem 1rem !important;
    transition: color var(--transition-fast);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    margin-top: 0.5rem;
}

.dropdown-item {
    font-family: var(--font-primary);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: background-color var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--gray-color);
    color: var(--primary-color);
}

/* Mobile Navigation */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

@media (max-width: 991.98px) {
    .navbar-nav {
        background-color: var(--white-color);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 1rem;
        box-shadow: var(--shadow-md);
    }

    .navbar-nav .nav-link.active::after {
        display: none;
    }
}

/* =============================================================================
   Hero Section
   ============================================================================= */

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.min-vh-75 {
    min-height: 75vh;
}

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

/* Flag badges for regions */
.us-flag-badge,
.uk-flag-badge,
.italy-flag-badge {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

/* =============================================================================
   Page Header
   ============================================================================= */

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    padding: 4rem 0;
    text-align: center;
}

/* =============================================================================
   Cards & Components
   ============================================================================= */

.card,
.service-card,
.testimonial-card,
.case-study-card,
.portfolio-item,
.package-card {
    border: none;
    border-radius: 12px;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    overflow: hidden;
}

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

.service-card {
    background-color: var(--white-color);
    padding: 2rem;
    height: 100%;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Service icon modern styling and animation */
.service-icon-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Center all service related icons */
.service-icon,
.region-icon,
.feature-icon,
.expertise-icon,
.contact-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.service-icon-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.testimonial-card {
    background-color: var(--white-color);
    padding: 2rem;
    height: 100%;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: serif;
}

.stars {
    margin-bottom: 1rem;
}

.stars i {
    margin-right: 2px;
}

/* =============================================================================
   Portfolio & Case Studies
   ============================================================================= */

.portfolio-item,
.case-study-card {
    background-color: var(--white-color);
    border: 1px solid #e9ecef;
    transition: all var(--transition-normal);
}

.portfolio-item:hover,
.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-metrics {
    background-color: var(--gray-color);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Portfolio Image Overlay Effects */
.portfolio-item .project-visual {
    position: relative;
    overflow: hidden;
}

.portfolio-item .project-visual .overlay {
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-item:hover .project-visual .overlay {
    opacity: 1;
}

.portfolio-item .project-visual img {
    transition: transform 0.3s ease;
}

.portfolio-item:hover .project-visual img {
    transform: scale(1.1);
}

/* =============================================================================
   Services & Packages
   ============================================================================= */

.pricing {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
}

.package-card {
    position: relative;
    background-color: var(--white-color);
    border: 2px solid #e9ecef;
    transition: all var(--transition-normal);
}

.package-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.package-card.bg-primary {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.popular-badge {
    top: -15px;
}

.package-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin: 1rem 0;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 600;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0.25rem;
}

.price-period {
    font-size: 1rem;
    opacity: 0.8;
}

/* =============================================================================
   Forms
   ============================================================================= */

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-family: var(--font-secondary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.contact-form-wrapper,
.contact-info-wrapper {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.contact-info-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.contact-info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.contact-icon {
    width: 60px;
    text-align: center;
}

/* =============================================================================
   Buttons
   ============================================================================= */

.btn {
    font-family: var(--font-primary);
    font-weight: 600;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

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

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

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    background-color: #1e7e34;
    border-color: #1e7e34;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* =============================================================================
   Badges & Labels
   ============================================================================= */

.badge {
    font-family: var(--font-primary);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.section-badge {
    margin-bottom: 1rem;
}

/* Region-specific badge colors */
.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

.badge.bg-success {
    background-color: var(--success-color) !important;
}

.badge.bg-warning {
    background-color: var(--warning-color) !important;
    color: var(--dark-color) !important;
}

/* =============================================================================
   WhatsApp Popup
   ============================================================================= */

.whatsapp-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    display: none;
    animation: slideIn var(--transition-normal) ease;
}

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

.whatsapp-content {
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 280px;
    overflow: hidden;
}

.whatsapp-header {
    background-color: #25D366;
    color: var(--white-color);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-primary);
    font-weight: 600;
}

.whatsapp-header i {
    font-size: 1.2rem;
}

.close-whatsapp {
    background: none;
    border: none;
    color: var(--white-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color var(--transition-fast);
}

.close-whatsapp:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.whatsapp-body {
    padding: 1rem;
    text-align: center;
}

.whatsapp-body p {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* =============================================================================
   Scroll to Top Button
   ============================================================================= */

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1050;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-to-top:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.scroll-to-top i {
    font-size: 1.2rem;
}

/* =============================================================================
   Skills & Progress Bars
   ============================================================================= */

.skill-item {
    margin-bottom: 1.5rem;
}

.progress {
    height: 10px;
    border-radius: 5px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

/* =============================================================================
   Methodology Steps
   ============================================================================= */

.methodology-step {
    text-align: center;
    padding: 1rem;
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

/* =============================================================================
   Stats & Metrics
   ============================================================================= */

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* =============================================================================
   Footer
   ============================================================================= */

.footer {
    background-color: var(--dark-color) !important;
    color: var(--white-color);
    margin-top: auto;
}

.footer h5,
.footer h6 {
    color: var(--white-color);
    margin-bottom: 1rem;
}

.footer .text-light {
    color: #dee2e6 !important;
}

.footer a {
    color: #dee2e6;
    transition: color var(--transition-fast);
}

.footer a:hover {
    color: var(--white-color);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white-color) !important;
    transform: translateY(-3px);
}

/* Newsletter form */
.newsletter-form .input-group {
    margin-bottom: 1rem;
}

.newsletter-form .form-control {
    border-radius: 6px 0 0 6px;
    border-right: none;
}

.newsletter-form .btn {
    border-radius: 0 6px 6px 0;
    font-weight: 600;
}

/* =============================================================================
   Accordion (FAQ)
   ============================================================================= */

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-button {
    font-family: var(--font-primary);
    font-weight: 600;
    background-color: var(--gray-color);
    border: none;
    padding: 1rem 1.5rem;
    color: var(--dark-color);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-body {
    padding: 1.5rem;
    background-color: var(--white-color);
    color: var(--secondary-color);
    line-height: 1.6;
}

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

/* Core Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-in forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 0.8s ease-out forwards;
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleIn 0.6s ease-out forwards;
}

.zoom-in {
    opacity: 0;
    transform: scale(0.8);
    animation: zoomIn 0.7s ease-out forwards;
}

.slide-right {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideRight 0.8s ease-out forwards;
}

.slide-left {
    opacity: 0;
    transform: translateX(50px);
    animation: slideLeft 0.8s ease-out forwards;
}

.bounce-in {
    opacity: 0;
    animation: bounceIn 1s ease-out forwards;
}

.rotate-in {
    opacity: 0;
    transform: rotate(-180deg) scale(0.8);
    animation: rotateIn 0.8s ease-out forwards;
}

/* Enhanced Service Card Animations */
.service-card {
    transform: translateY(20px);
    opacity: 0;
    animation: slideUpFade 0.6s ease-out forwards;
}

.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; }

/* Portfolio Item Animations */
.portfolio-item {
    transform: translateY(30px);
    opacity: 0;
    animation: portfolioSlideUp 0.8s ease-out forwards;
}

.portfolio-item:nth-child(odd) {
    animation-delay: 0.2s;
}

.portfolio-item:nth-child(even) {
    animation-delay: 0.4s;
}

/* Testimonial Card Animations */
.testimonial-card {
    transform: scale(0.95);
    opacity: 0;
    animation: testimonialScale 0.7s ease-out forwards;
}

/* Staggered Animation Delays */
.row .col-lg-4:nth-child(1) .fade-in,
.row .col-lg-4:nth-child(1) .slide-up { animation-delay: 0.1s; }
.row .col-lg-4:nth-child(2) .fade-in,
.row .col-lg-4:nth-child(2) .slide-up { animation-delay: 0.2s; }
.row .col-lg-4:nth-child(3) .fade-in,
.row .col-lg-4:nth-child(3) .slide-up { animation-delay: 0.3s; }
.row .col-lg-4:nth-child(4) .fade-in,
.row .col-lg-4:nth-child(4) .slide-up { animation-delay: 0.4s; }

/* Page LoadAnimations */
.navbar {
    transform: translateY(-100%);
    animation: navbarSlideDown 0.6s ease-out 0.2s forwards;
}

.hero-section .container {
    opacity: 0;
    transform: translateY(30px);
    animation: heroContentUp 1s ease-out 0.5s forwards;
}

/* Advanced Hover Effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.hover-scale {
    transition: transform 0.3s ease;
}

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

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.4);
}

/* Floating Elements */
.floating {
    animation: floating 3s ease-in-out infinite;
}

.floating-delayed {
    animation: floating 3s ease-in-out infinite;
    animation-delay: 1s;
}

/* Animated Counters */
.counter {
    animation: countUp 2s ease-out;
}

/* Button Animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

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

/* Text Animations */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

/* Enhanced Animation Definitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes portfolioSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes testimonialScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

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

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

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

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--primary-color);
    }
}

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

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Loading Animation */
.loading-dots {
    animation: loadingDots 1.4s infinite ease-in-out;
}

@keyframes loadingDots {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* =============================================================================
   Utilities
   ============================================================================= */

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Custom spacing */
.py-6 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.my-6 {
    margin-top: 4rem !important;
    margin-bottom: 4rem !important;
}

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

/* Tablet Styles */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .contact-form-wrapper,
    .contact-info-wrapper {
        margin-bottom: 2rem;
    }

    .methodology-step {
        margin-bottom: 2rem;
    }

    .package-card.bg-primary {
        transform: none;
        margin-bottom: 1rem;
    }
}

/* Mobile Styles */
@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
        min-height: 50vh;
    }

    .hero-section h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .page-header {
        padding: 2rem 0;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .whatsapp-popup {
        right: 10px;
        bottom: 10px;
    }

    .whatsapp-content {
        width: 260px;
    }

    .scroll-to-top {
        left: 10px;
        bottom: 70px;
        width: 45px;
        height: 45px;
    }

    .service-card,
    .testimonial-card,
    .case-study-card,
    .portfolio-item {
        margin-bottom: 1rem;
    }

    .contact-info-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin-bottom: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 2rem;
    }
}

/* =============================================================================
   Print Styles
   ============================================================================= */

@media print {
    .navbar,
    .whatsapp-popup,
    .scroll-to-top,
    .footer .social-links,
    .newsletter-form {
        display: none !important;
    }

    .hero-section,
    .page-header {
        background: var(--white-color) !important;
        color: var(--dark-color) !important;
    }

    a {
        color: var(--dark-color) !important;
        text-decoration: underline !important;
    }
}

/* =============================================================================
   Animation Classes
   ============================================================================= */

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.slide-up {
    animation: slideUp 0.6s ease forwards;
}

/* =============================================================================
   Focus and Accessibility
   ============================================================================= */

.btn:focus,
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

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

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
    color: var(--white-color);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0056b3;
        --secondary-color: #495057;
    }

    .btn-outline-primary {
        border-width: 3px;
    }

    .form-control:focus,
    .form-select:focus {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}