/* Magazine Style Medical Clinic - Custom Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* Global Styles */
* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}

html, body {
    overflow-x: clip;
}

/* Custom CSS Variables */
:root {
    --primary: #ff6b6b;
    --secondary: #4ecdc4;
    --accent: #45b7d1;
    --vibrant: #96ceb4;
    --coral: #ff9ff3;
    --sunset: #feca57;
    --electric: #5f27cd;
}

/* Typography */
.font-heading {
    font-family: 'Montserrat', ui-sans-serif, system-ui;
}

/* Navigation Styles */
.nav-link-magazine {
    position: relative;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-link-magazine::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

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

/* Geometric Shapes Background */
.geometric-shape {
    position: absolute;
    border-radius: 20px;
    opacity: 0.1;
    animation: float-geometric 20s ease-in-out infinite;
}

.shape-1 {
    top: 10%;
    left: 5%;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--coral));
    transform: rotate(45deg);
    animation-delay: 0s;
}

.shape-2 {
    top: 60%;
    right: 10%;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--secondary), var(--vibrant));
    transform: rotate(-30deg);
    animation-delay: 5s;
}

.shape-3 {
    bottom: 20%;
    left: 15%;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent), var(--electric));
    transform: rotate(60deg);
    animation-delay: 10s;
}

.shape-4 {
    top: 30%;
    left: 70%;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--sunset), var(--primary));
    transform: rotate(-45deg);
    animation-delay: 15s;
}

@keyframes float-geometric {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg);
    }
    50% {
        transform: translate(-20px, 20px) rotate(180deg);
    }
    75% {
        transform: translate(20px, 30px) rotate(270deg);
    }
}

/* Magazine Badge */
.magazine-badge {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: badge-pulse 3s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Magazine Buttons */
.magazine-button-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

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

.magazine-button-primary:hover::before {
    left: 100%;
}

.magazine-button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
}

.magazine-button-secondary {
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
}

.magazine-button-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

/* Hero Card */
.magazine-hero-card {
    transition: all 0.3s ease;
    animation: hero-float 6s ease-in-out infinite;
}

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

/* Magazine Pattern */
.magazine-pattern {
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255, 107, 107, 0.05) 20px, rgba(255, 107, 107, 0.05) 40px),
        repeating-linear-gradient(-45deg, transparent, transparent 20px, rgba(78, 205, 196, 0.05) 20px, rgba(78, 205, 196, 0.05) 40px);
}

/* Service Cards */
.magazine-service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.magazine-service-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.magazine-service-card:hover .absolute {
    transform: translate(4px, -4px) scale(1.2);
}

/* Stat Cards */
.magazine-stat-card {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, white, #f8f9fa);
}

.magazine-stat-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Expert Cards */
.magazine-expert-card {
    transition: all 0.4s ease;
    background: linear-gradient(135deg, white, #fafafa);
}

.magazine-expert-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.magazine-expert-card img {
    transition: transform 0.4s ease;
}

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

/* Story Cards */
.magazine-story-card {
    transition: all 0.4s ease;
    background: linear-gradient(135deg, white, #f8fafc);
}

.magazine-story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Testimonials Swiper Magazine */
.magazine-testimonials-swiper {
    padding: 40px 0 80px 0;
}

.magazine-testimonials-swiper .swiper-pagination {
    bottom: 30px;
}

.magazine-testimonials-swiper .swiper-pagination-bullet {
    background: var(--primary);
    width: 15px;
    height: 15px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.magazine-testimonials-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.4);
    box-shadow: 0 0 20px var(--primary);
}

/* Magazine Form Inputs */
.magazine-input {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, white, #f8f9fa);
    font-weight: 500;
}

.magazine-input:focus {
    outline: none !important;
    border-top: 3px solid var(--primary) !important;
    border-left: 2px solid #e5e7eb !important;
    border-right: 2px solid #e5e7eb !important;
    border-bottom: 2px solid #e5e7eb !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.2) !important;
    background: white;
}

.magazine-input::placeholder {
    color: rgba(107, 114, 128, 0.8);
    font-weight: 500;
}

/* Counter Animation */
.counter {
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Stat Item Animation */
.stat-item {
    transition: all 0.3s ease;
}

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

/* Loading Animation */
.loading-spinner {
    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); }
}

/* Magazine Layout Helpers */
.magazine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.magazine-section {
    padding: 5rem 0;
}

/* Bold Typography Effects */
.magazine-heading {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
}

.magazine-subheading {
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .magazine-hero-card {
        margin-top: 2rem;
        animation: none;
    }

    .magazine-service-card {
        margin-bottom: 1.5rem;
    }

    .geometric-shape {
        display: none;
    }

    .magazine-button-primary,
    .magazine-button-secondary {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }
}

@media (max-width: 640px) {
    .magazine-stat-card {
        padding: 1rem;
    }

    .magazine-expert-card,
    .magazine-story-card {
        margin-bottom: 1rem;
    }

    .geometric-shape {
        width: 50px !important;
        height: 50px !important;
    }
}

/* Custom Scrollbar Magazine Theme */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--secondary), var(--accent));
}

/* Magazine Badge Variants */
.magazine-badge-primary {
    background: linear-gradient(135deg, var(--primary), var(--coral));
}

.magazine-badge-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--vibrant));
}

.magazine-badge-accent {
    background: linear-gradient(135deg, var(--accent), var(--electric));
}

/* Hover Effects for Interactive Elements */
.magazine-interactive:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

/* Magazine Border Effects */
.magazine-border-gradient {
    border: 3px solid;
    border-image: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent)) 1;
}

/* Top Bar Styles */
.top-bar {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    font-size: 0.875rem;
    font-weight: 500;
}

/* Navigation Enhancement */
#navbar {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Service Card Icon Animation */
.service-icon-magazine {
    transition: all 0.3s ease;
}

.magazine-service-card:hover .service-icon-magazine {
    transform: scale(1.2) rotate(10deg);
    animation: icon-bounce-magazine 0.6s ease-in-out;
}

@keyframes icon-bounce-magazine {
    0%, 100% { transform: scale(1.2) rotate(10deg); }
    50% { transform: scale(1.3) rotate(5deg); }
}

/* Expert Card Badge Animation */
.expert-badge {
    transition: all 0.3s ease;
}

.magazine-expert-card:hover .expert-badge {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Story Card Enhancement */
.magazine-story-card .magazine-badge {
    transition: all 0.3s ease;
}

.magazine-story-card:hover .magazine-badge {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Form Focus Enhancement */
.magazine-input:focus + label,
.magazine-input:valid + label {
    transform: translateY(-20px) scale(0.8);
    color: var(--primary);
}

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

    .magazine-hero-card, .geometric-shape, .magazine-badge {
        animation: none !important;
    }
}

/* Focus States */
button:focus, a:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .magazine-service-card, .magazine-expert-card, .magazine-story-card {
        background: white !important;
        border: 2px solid var(--primary) !important;
    }

    .text-gray-600, .text-gray-700 {
        color: #000000 !important;
    }
}

/* Print Styles */
@media print {
    .magazine-service-card, .magazine-expert-card {
        background: white !important;
        color: black !important;
        border: 1px solid black !important;
    }

    .geometric-shape, .magazine-pattern {
        display: none !important;
    }
}

/* Magazine Color Utilities */
.text-magazine-primary { color: var(--primary); }
.text-magazine-secondary { color: var(--secondary); }
.text-magazine-accent { color: var(--accent); }
.bg-magazine-primary { background-color: var(--primary); }
.bg-magazine-secondary { background-color: var(--secondary); }
.bg-magazine-accent { background-color: var(--accent); }

/* Magazine Shadow Utilities */
.shadow-magazine-sm { box-shadow: 0 2px 8px rgba(255, 107, 107, 0.1); }
.shadow-magazine-md { box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2); }
.shadow-magazine-lg { box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3); }
.shadow-magazine-xl { box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4); }

/* Magazine Transform Utilities */
.transform-magazine-hover:hover {
    transform: translateY(-5px) scale(1.02);
}

.transform-magazine-press:active {
    transform: translateY(2px) scale(0.98);
}

/* Magazine Animation Classes */
.animate-magazine-float {
    animation: magazine-float 6s ease-in-out infinite;
}

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

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

@keyframes magazine-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

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

/* Magazine Border Radius Utilities */
.rounded-magazine { border-radius: 1.5rem; }
.rounded-magazine-lg { border-radius: 2rem; }
.rounded-magazine-xl { border-radius: 2.5rem; }

/* Magazine Spacing Utilities */
.space-magazine-y > * + * { margin-top: 2rem; }
.space-magazine-x > * + * { margin-left: 2rem; }
