/* ==========================================
   Trichora Hair Research Institute - Main Stylesheet
   ========================================== */

/* ==========================================
   ROOT VARIABLES
   ========================================== */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --success-color: #25D366;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f3f4f6;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   GLOBAL STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.2rem;
    color: var(--primary-color) !important;
    transition: all 0.3s ease;
}

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

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

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

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

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

/* ==========================================
   HERO SECTION - FULL WIDTH CENTERED
   ========================================== */
.hero-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    text-align: center;
}

.hero-section .container {
    max-width: 100%;
}

.hero-section .row {
    justify-content: center;
    margin: 0;
}

.hero-section .col-lg-6 {
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
    font-size: 2.8rem;
    font-weight: 700;
}

.hero-content h2 {
    color: var(--primary-color);
    animation: fadeInUp 1s ease;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-content p {
    color: var(--text-light);
    animation: fadeInUp 1.2s ease;
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.cta-buttons {
    animation: fadeInUp 1.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Hide hero image */
.hero-image {
    display: none !important;
}

.btn {
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-success:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

/* ==========================================
   STORY PREVIEW SECTION
   ========================================== */
.story-preview {
    animation: fadeIn 1s ease;
}

.story-preview .card {
    transition: all 0.3s ease;
}

.story-preview .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================
   TREATMENT SECTION
   ========================================== */
.treatment-card {
    transition: all 0.3s ease;
}

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

.treatment-icon {
    transition: all 0.3s ease;
}

.treatment-card:hover .treatment-icon i {
    transform: scale(1.2);
}

/* ==========================================
   GALLERY SECTION
   ========================================== */
.gallery-preview .card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.gallery-preview .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-preview .card img {
    transition: all 0.3s ease;
}

.gallery-preview .card:hover img {
    transform: scale(1.1);
}

/* ==========================================
   PAGE HEADER
   ========================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    animation: fadeIn 0.8s ease;
}

/* ==========================================
   ABOUT PAGE - STORY
   ========================================== */
.story-section {
    animation: fadeIn 1s ease;
}

.story-text {
    font-size: 1.05rem;
    line-height: 1.8;
}

.story-text p {
    margin-bottom: 1.5rem;
}

/* ==========================================
   WHY CHOOSE US
   ========================================== */
.why-choose-us .card {
    transition: all 0.3s ease;
}

.why-choose-us .card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-color);
    color: white;
}

.why-choose-us .card:hover i {
    color: white;
}

.why-choose-us .card:hover .card-title,
.why-choose-us .card:hover .card-text {
    color: white;
}

/* ==========================================
   SERVICES PAGE
   ========================================== */
.services-details .service-image img {
    transition: all 0.3s ease;
}

.services-details .row:hover .service-image img {
    transform: scale(1.05);
}

.service-benefits {
    list-style: none;
    padding: 0;
}

.service-benefits li {
    padding: 10px 0;
    font-size: 1rem;
}

.step-number {
    transition: all 0.3s ease;
}

.how-it-works .card:hover .step-number {
    transform: scale(1.1);
}

/* ==========================================
   CONTACT PAGE
   ========================================== */
.contact-info .card {
    transition: all 0.3s ease;
}

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

.contact-info .card:hover i {
    transform: scale(1.2);
}

.contact-section .card {
    transition: all 0.3s ease;
}

.form-control {
    border-radius: 10px;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ==========================================
   CTA SECTIONS
   ========================================== */
.contact-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    animation: fadeIn 1s ease;
}

.footer a {
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
}

/* ==========================================
   FLOATING WHATSAPP BUTTON
   ========================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: white;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 15px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
    
    .story-text {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-content h2 {
        font-size: 1.3rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    .navbar,
    .whatsapp-float,
    .contact-cta,
    .cta-buttons {
        display: none !important;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-primary {
    color: var(--primary-color) !important;
}

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

.shadow-sm {
    box-shadow: var(--shadow) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */
.btn:focus,
.form-control:focus,
a:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to main content link for screen readers */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
}

.skip-to-main:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
}
