/* General Surgery Page Styles - Modern Design System */

:root {
    --primary-color: #e74c3c;
    --secondary-color: #c0392b;
    --dark-color: #a93226;
    --accent-color: #ec7063;
    --text-dark: #1a1a2e;
    --text-light: #666;
    --bg-light: #f8fafc;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 50%, #a93226 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    opacity: 0.1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.75), rgba(192, 57, 43, 0.75));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4em;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    animation: slide-down 1s ease-out;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.4em;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fade-in-up 1s ease-out 0.3s both;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 25px;
    padding: 30px 25px;
    text-align: center;
    min-width: 140px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.stat-item::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.6s ease;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-12px) scale(1.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.stat-icon-wrapper {
    width: 65px;
    height: 65px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: #ffb3b3;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon-wrapper {
    transform: scale(1.2) rotate(15deg);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 20px rgba(255, 179, 179, 0.3);
}

.stat-number {
    display: block;
    font-size: 2.2em;
    font-weight: 800;
    color: white;
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    font-size: 8rem;
    opacity: 0.08;
    animation: float 8s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 50%;
    right: 8%;
    font-size: 6rem;
    animation-delay: 2s;
}

.floating-icon:nth-child(3) {
    bottom: 10%;
    left: 10%;
    font-size: 7rem;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Overview Section */
.overview-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #FADDD1 0%, #F5CCC7 100%);
}

.overview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.overview-text h2 {
    font-size: 2.8rem;
    color: #1a1a2e;
    margin-bottom: 20px;
    font-weight: 700;
}

.overview-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.overview-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 30px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
    color: #333;
    transition: transform 0.3s ease;
}

.highlight-item:hover {
    transform: translateX(8px);
}

.highlight-item i {
    color: #e74c3c;
    font-size: 1.5rem;
    min-width: 24px;
}

.overview-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
}

.overview-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.2);
    transition: transform 0.3s ease;
    display: block;
    object-fit: cover;
}

.overview-image img:hover {
    transform: scale(1.05);
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: white;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: #1a1a2e;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 40px 25px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid #f0f0f0;
}

.service-card:hover {
    border-color: #e74c3c;
    box-shadow: 0 15px 50px rgba(231, 76, 60, 0.15);
    transform: translateY(-10px);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
}

.service-card h3 {
    font-size: 1.4rem;
    color: #1a1a2e;
    margin-bottom: 12px;
    font-weight: 700;
}

.service-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-features {
    text-align: left;
    font-size: 0.9rem;
    color: #666;
    list-style: none;
    padding: 0;
}

.service-features li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.service-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: bold;
}

/* Why Choose Section */
.why-choose-section {
    padding: 100px 0;
    background: white;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.why-card {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.3);
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.why-card:hover .why-icon {
    transform: scale(1.2) rotate(10deg);
}

.why-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.why-card p {
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Emergency Contact Section */
.emergency-contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.emergency-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.emergency-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.emergency-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.emergency-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.emergency-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.emergency-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.emergency-feature:hover {
    transform: translateX(10px);
}

.emergency-feature i {
    font-size: 2rem;
}

.emergency-contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    color: white;
}

.contact-card:hover .contact-icon {
    transform: scale(1.2) rotate(20deg);
}

.contact-card h3 {
    margin-bottom: 10px;
    font-weight: 700;
    color: white;
}

.contact-detail {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: white !important;
}

.contact-link {
    display: inline-block;
    background: white;
    color: #e74c3c;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #c0392b;
    transform: translateY(-3px);
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background: white;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-item {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: #e74c3c;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.15);
}

.faq-header {
    padding: 25px;
    background: linear-gradient(135deg, #f5f5f5, #ffffff);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-header:hover {
    background: linear-gradient(135deg, #faf5f0, #fff5f3);
}

.faq-item.active .faq-header {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.faq-header h3 {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-header h3 i {
    font-size: 1.3rem;
    color: #e74c3c;
}

.faq-item.active .faq-header h3 i {
    color: white;
}

.faq-header i:last-child {
    color: #999;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-header i:last-child {
    color: white;
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 25px;
}

.faq-item.active .faq-content {
    max-height: 300px;
    padding: 25px;
}

.faq-content p {
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* Advanced Technology Section */
.technology-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #FFF5F0 0%, #FFE8E0 100%);
}

.technology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tech-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid #f0f0f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tech-card:hover {
    border-color: #e74c3c;
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.15);
    transform: translateY(-8px);
}

.tech-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    transition: all 0.3s ease;
}

.tech-card:hover .tech-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
}

.tech-card h3 {
    font-size: 1.3rem;
    color: #1a1a2e;
    margin-bottom: 12px;
    font-weight: 700;
}

.tech-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    border-color: #e74c3c;
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.15);
    transform: translateY(-8px);
}

.stars {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.stars i {
    color: #ffc107;
    font-size: 1.2rem;
}

.testimonial-text {
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.author-info h4 {
    font-size: 1rem;
    color: #1a1a2e;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.author-info p {
    font-size: 0.9rem;
    color: #999;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .overview-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .emergency-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 60vh;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 15px;
    }

    .hero-stats .stat-item {
        min-width: 110px;
        padding: 20px 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .overview-section {
        padding: 60px 15px;
    }

    .services-section {
        padding: 60px 15px;
    }

    .why-choose-section {
        padding: 60px 15px;
    }

    .emergency-contact {
        padding: 60px 15px;
    }

    .technology-section {
        padding: 60px 15px;
    }

    .faq-section {
        padding: 60px 15px;
    }

    .testimonials-section {
        padding: 60px 15px;
    }

    .emergency-features {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .tech-card {
        padding: 25px 15px;
    }

    .testimonial-card {
        padding: 25px;
    }

    .faq-header {
        padding: 15px;
    }

    .faq-header h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .hero-stats {
        gap: 10px;
    }

    .hero-stats .stat-item {
        min-width: 100px;
        padding: 15px 10px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .service-card {
        padding: 25px 15px;
    }

    .why-card {
        padding: 25px;
    }

    .contact-card {
        padding: 20px 15px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .technology-grid {
        grid-template-columns: 1fr;
    }

    .tech-card {
        padding: 20px 15px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 20px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }
}
