/**
 * Homepage Styles - Modern Healthcare Design
 * Super modern and innovative theme for Prestazione Sanitaria
 */

:root {
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    --gradient-accent: linear-gradient(135deg, #06beb6 0%, #48b1bf 100%);
    --text-gradient: linear-gradient(135deg, #667eea, #764ba2);
    --dark-bg: #0a0e27;
    --light-bg: #f8f9fa;
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Prevent horizontal scroll on mobile */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.text-gradient {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
#mainNav {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

#mainNav.navbar-scrolled {
    background: rgba(10, 14, 39, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
}

/* CRITICAL: Keep navbar content on same line */
#mainNav .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    min-width: 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff !important;
    transition: transform 0.3s ease;
    /* Prevent text from pushing hamburger down */
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 60px); /* Leave space for hamburger */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 1rem;
    position: relative;
    transition: color 0.3s ease;
}

/* Hamburger Button Styling */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
    padding: 4px 12px;
    /* Force hamburger to stay on same line */
    flex-shrink: 0;
    margin-left: 10px;
    position: relative;
    z-index: 1000;
}

.navbar-toggler:focus {
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 24px;
    height: 24px;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0e27 0%, #1a237e 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none; /* Prevent interaction with video */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.7);
    z-index: 1;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Floating Cards */
.hero-image {
    position: relative;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem 0;
}

.floating-card {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    width: 100%;
    max-width: 320px;
}

.floating-card:nth-child(1) {
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    animation-delay: 2s;
}

.floating-card:nth-child(3) {
    animation-delay: 4s;
}

.floating-card i {
    font-size: 2rem;
}

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

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

/* Wave Divider */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-wave {
        display: none;
    }
}

/* Services Section */
.services-section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 3rem;
}

.service-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
}

.service-features li {
    padding: 0.5rem 0;
    color: #6c757d;
}

.service-features i {
    color: #48b1bf;
    margin-right: 0.5rem;
}

/* Technology Section */
.technology-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 80px 0;
}

.tech-features {
    margin-top: 2rem;
}

.tech-feature-item {
    display: flex;
    align-items: start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.tech-feature-item:hover {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateX(10px);
}

.tech-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tech-content h5 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.tech-content p {
    margin: 0;
    color: #6c757d;
}

.tech-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.tech-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.tech-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 14, 39, 0.9), transparent);
    padding: 2rem;
}

.tech-stats {
    display: flex;
    gap: 2rem;
    color: #fff;
}

.tech-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.tech-stat i {
    font-size: 1.2rem;
}

/* Team Section */
.team-section {
    padding: 80px 0;
}

.team-card {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

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

.team-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
}

.team-role {
    color: #667eea;
    font-weight: 600;
    margin: 0.5rem 0;
}

.team-specialty {
    color: #6c757d;
    font-size: 0.9rem;
}

/* News Section */
.news-section {
    position: relative;
}

.news-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.news-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0.75rem 1.25rem;
    color: #fff;
}

.news-date {
    font-size: 0.85rem;
    font-weight: 500;
}

.news-card-body {
    padding: 1.5rem 1.25rem;
    flex-grow: 1;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.news-card-footer {
    padding: 0 1.25rem 1.25rem;
    margin-top: auto;
}

.news-card-footer .btn {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
}

.contact-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2.5rem;
    border-radius: 20px;
    color: #fff;
    height: 100%;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.contact-item h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item p {
    margin: 0;
    opacity: 0.9;
}

.contact-form-wrapper {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 20px;
    height: 100%;
}

.contact-form .form-control {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Footer */
.footer-section {
    background: var(--dark-bg);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

.footer-subtitle {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.newsletter-form .input-group {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
}

.newsletter-form .form-control {
    background: transparent;
    border: none;
    color: #fff;
    padding: 0.75rem 1.5rem;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .btn {
    border-radius: 0;
    padding: 0.75rem 1.5rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 3rem 0 1.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #fff;
}

/* Desktop Layout for Floating Cards */
@media (min-width: 992px) {
    .hero-image {
        height: 500px;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 1fr);
        gap: 2rem;
        padding: 0;
        align-items: center;
    }
    
    .floating-card {
        position: absolute;
        width: auto;
        max-width: 280px;
    }
    
    .floating-card:nth-child(1) {
        top: 10%;
        left: 0;
        transform: translateX(-20%);
    }
    
    .floating-card:nth-child(2) {
        top: 40%;
        right: 0;
        transform: translateX(20%);
    }
    
    .floating-card:nth-child(3) {
        bottom: 10%;
        left: 0;
        transform: translateX(-10%);
    }
}

/* Responsive - Mobile First Approach */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
    
    /* Adjust floating cards for medium screens */
    .floating-card {
        max-width: 260px;
        font-size: 0.9rem;
        padding: 1.25rem 1.5rem;
    }
}

@media (max-width: 991px) {
    /* Navigation Mobile */
    #mainNav {
        padding: 0.75rem 0;
        text-align: center;
    }
    
    .navbar-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin: 0;
    }
    
    .navbar-collapse {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav {
        align-items: center;
    }
    
    .navbar-nav .nav-link {
        margin: 0.5rem 0;
        padding: 0.75rem 1rem;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .navbar-nav .btn {
        margin: 1rem 0 !important;
        display: inline-block;
        width: auto;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        padding: 80px 0 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .stat-item {
        flex: 0 0 calc(33.333% - 1rem);
        text-align: center;
    }
    
    /* Floating Cards Tablet */
    .hero-image {
        height: auto;
        padding: 1.5rem 0;
        gap: 1rem;
    }
    
    .floating-card {
        padding: 1.25rem 1.5rem;
        font-size: 0.95rem;
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    /* General Mobile Adjustments */
    body {
        overflow-x: hidden !important;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Navigation Mobile Enhanced */
    #mainNav {
        padding: 0.5rem 0;
    }
    
    #mainNav .container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
    }
    
    .navbar-toggler {
        display: inline-block !important;
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.3);
        background-color: rgba(255, 255, 255, 0.1);
        margin-left: auto;
        flex-shrink: 0;
        position: relative;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
        border-color: rgba(255, 255, 255, 0.5);
    }
    
    .navbar-brand {
        font-size: 1.25rem;
        padding-left: 0;
        text-align: left;
        justify-content: flex-start;
        flex: 0 1 auto;
        margin-right: 1rem;
        white-space: nowrap;
    }
    
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 39, 0.98);
        margin-top: 0.5rem;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    .navbar-collapse.show {
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Hero Section Mobile Enhanced */
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
        overflow: visible;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        padding: 0 1rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 !important;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 1rem;
        margin-top: 3rem;
    }
    
    .stat-item {
        flex: 0 0 100%;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border-radius: 10px;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .stat-item p {
        font-size: 0.9rem;
    }
    
    /* Floating Cards Mobile */
    .hero-image {
        height: auto;
        margin-top: 3rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .floating-card {
        position: static;
        margin-bottom: 1rem;
        animation: none;
        width: 100%;
        max-width: 300px;
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .floating-card i {
        font-size: 1.5rem;
    }
    
    /* Sections Mobile */
    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    /* Services Section Mobile */
    .service-card {
        margin-bottom: 1.5rem;
        padding: 2rem 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin: 0 auto 1rem;
    }
    
    .service-card h4 {
        font-size: 1.25rem;
    }
    
    /* Technology Section Mobile */
    .tech-feature-item {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }
    
    .tech-feature-item:hover {
        transform: none;
    }
    
    .tech-icon {
        margin: 0 auto 1rem;
    }
    
    .tech-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    /* Team Section Mobile */
    .team-card {
        margin-bottom: 1.5rem;
    }
    
    .team-placeholder {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    /* CTA Section Mobile */
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
    
    /* Contact Section Mobile */
    .contact-info, .contact-form-wrapper {
        margin-bottom: 2rem;
    }
    
    /* Footer Mobile */
    .footer-section {
        padding: 40px 0 20px;
        text-align: center;
    }
    
    .footer-title {
        font-size: 1.25rem;
    }
    
    .footer-desc {
        font-size: 0.9rem;
    }
    
    .social-links {
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    .footer-links {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .newsletter-form {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-bottom p {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    /* Extra Small Devices */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .tech-feature-item {
        padding: 1rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.625rem 1.25rem;
    }
}

@media (max-width: 400px) {
    /* Very Small Devices */
    .hero-title {
        font-size: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .hero-buttons .btn {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    .stat-item h3 {
        font-size: 1.75rem;
    }
    
    .floating-card {
        font-size: 0.875rem;
        padding: 0.875rem 1.25rem;
    }
}

/* Custom Button Styles */
.btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.btn-light {
    background: #fff;
    color: #667eea;
}

.btn-light:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Booking Modal Styles */
.booking-step {
    animation: fadeIn 0.3s ease;
}

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

.specialty-btn {
    padding: 12px 8px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: 100px;
}

.specialty-btn:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.specialty-btn i {
    font-size: 24px;
    color: #667eea;
}

.specialty-btn span {
    font-size: 12px;
    text-align: center;
    color: #333;
    font-weight: 500;
}

.booking-card {
    padding: 30px;
    border-radius: 15px;
    background: white;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.booking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon i {
    font-size: 28px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

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

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.feature-list li {
    padding: 8px 0;
    font-size: 14px;
    color: #555;
}

.selected-specialty {
    border-left: 4px solid #667eea;
}

.booking-summary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.summary-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.summary-item:last-child {
    border-bottom: none;
}

.btn-success {
    background: #25d366;
    border-color: #25d366;
}

.btn-success:hover {
    background: #22c55e;
    border-color: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}