@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Ferlix-inspired Color Palette */
    --primary-color: #3B82F6;
    --secondary-color: #8B5CF6;
    --accent-color: #10B981;
    --dark-color: #1F2937;
    --light-bg: #F8FAFC;
    --soft-blue: #EFF6FF;
    --soft-purple: #F5F3FF;
    --border-color: #E5E7EB;
    
    /* Spacing */
    --section-padding: 100px;
    --container-padding: 80px;
}

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
    scroll-behavior: smooth;
}

body {
    position: relative;
    background-color: var(--light-bg);
    color: var(--dark-color);
    line-height: 1.6;
}

/* Container System (Ferlix-style) */
.container {
    max-width: 1320px !important;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* Section Spacing */
section {
    padding: 80px 0;
}

section.hero-section {
    padding: 140px 0 100px;
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    section.hero-section {
        padding: 100px 0 60px;
    }
}

/* Hero Gradient (Ferlix-style) */
.hero-gradient {
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: pulse-gradient 15s ease-in-out infinite;
}

@keyframes pulse-gradient {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Section Backgrounds */
.bg-light {
    background-color: var(--light-bg);
}

.bg-soft-blue {
    background-color: var(--soft-blue);
}

.bg-soft-purple {
    background-color: var(--soft-purple);
}

.bg-white {
    background-color: #ffffff;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    padding: 8px 20px;
    background: var(--soft-blue);
    border-radius: 50px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-header p {
    font-size: 18px;
    color: #6B7280;
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 32px;
    }
    
    .section-header p {
        font-size: 16px;
    }
}

/* Navigation (Ferlix-style) */
nav {
    background: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark-color);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

@media (max-width: 768px) {
    .nav-link.active::after {
        display: none;
    }
}

/* Sticky Buttons */
.sticky-btn {
    transition: all 0.3s ease;
}

.sticky-btn:hover {
    transform: scale(1.1);
}

/* Card System (Ferlix-style) */
.card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 28px;
}

.card-icon.blue {
    background: var(--soft-blue);
    color: var(--primary-color);
}

.card-icon.purple {
    background: var(--soft-purple);
    color: var(--secondary-color);
}

.card-icon.green {
    background: #D1FAE5;
    color: var(--accent-color);
}

.card h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.card p {
    font-size: 16px;
    color: #6B7280;
    line-height: 1.7;
}

/* Legacy card classes */
.service-card,
.blog-card,
.benefit-card,
.process-step {
    transition: all 0.3s ease;
}

.service-card:hover,
.blog-card:hover,
.benefit-card:hover,
.process-step:hover {
    transform: translateY(-8px);
}

/* Hero Pattern (Ferlix style) */
.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

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

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

/* Section Divider */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
}

/* Gallery Item */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Modal Styles */
#appointmentModal {
    backdrop-filter: blur(4px);
}

.modal-form-step {
    animation: fadeIn 0.3s ease;
}

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

/* Buttons (Ferlix-style) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

.btn-white {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Grid System */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Spacing Utilities */
.mb-60 {
    margin-bottom: 60px;
}

.mb-80 {
    margin-bottom: 80px;
}

.mt-60 {
    margin-top: 60px;
}

.mt-80 {
    margin-top: 80px;
}

/* FAQ Accordion */
.rotate-180 {
    transform: rotate(180deg);
}

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

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.8);
}

.breadcrumb a:hover {
    color: white;
}

/* Stats Counter */
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .hero-gradient h1 {
        font-size: 2rem;
    }
    
    .hero-gradient p {
        font-size: 1rem;
    }
}

/* Article Content - Blog Detail Styles */
.article-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1f2937;
    line-height: 1.3;
}

.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1f2937;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #374151;
    line-height: 1.4;
}

.article-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: #374151;
    line-height: 1.4;
}

.article-content h5 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.article-content h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.article-content p {
    margin-bottom: 1rem;
    line-height: 1.75;
    color: #4b5563;
}

.article-content ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1rem;
    padding-left: 0;
}

.article-content ol {
    list-style: decimal;
    margin-left: 2rem;
    margin-bottom: 1rem;
    padding-left: 0;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: #4b5563;
    line-height: 1.75;
}

.article-content li > ul,
.article-content li > ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #374151;
    background-color: #f9fafb;
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
}

.article-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.article-content a:hover {
    color: var(--secondary-color);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.article-content table th,
.article-content table td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
    text-align: left;
}

.article-content table th {
    background-color: #f3f4f6;
    font-weight: 600;
    color: #374151;
}

.article-content table tr:nth-child(even) {
    background-color: #f9fafb;
}

.article-content pre {
    background-color: #1f2937;
    color: #f3f4f6;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.article-content code {
    background-color: #f3f4f6;
    color: #dc2626;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875em;
}

.article-content pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
}

.article-content hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 2rem 0;
}

.article-content strong {
    font-weight: 600;
    color: #1f2937;
}

.article-content em {
    font-style: italic;
}

.article-content figure {
    margin: 1.5rem 0;
}

.article-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.article-content video {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.article-content iframe {
    max-width: 100%;
    border-radius: 12px;
    margin: 1.5rem 0;
}

/* First element in article content should not have top margin */
.article-content > *:first-child {
    margin-top: 0;
}

/* Last element in article content should not have bottom margin */
.article-content > *:last-child {
    margin-bottom: 0;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}

