/* ==============================================
   Theme for AL-MANAR LASER PHYSIOTHERAPY CENTER
   Palette: Professional Blue & Calming Teal
==============================================
*/

/* Define the new color palette as CSS variables for easy management */
:root {
    --primary-blue: #0a9396;   /* A professional, reassuring teal-blue */
    --accent-teal: #94d2bd;    /* A lighter, calming teal for accents */
    --dark-text: #023047;      /* A deep, sophisticated navy for text */
    --light-text: #495057;     /* A soft grey for subtitles and body text */
    --light-bg: #f0f8ff;       /* A very pale, clean blue background (AliceBlue) */
    --hover-blue: #00b4d8;     /* A slightly brighter blue for hover effects */
}


/* === Hero Section General Styling === */

.hero-section {
    min-height: 100vh;
    /* Updated background gradient with the new light blue palette */
    background: linear-gradient(135deg, 
        rgba(240, 248, 255, 1) 0%,   /* var(--light-bg) */
        rgba(230, 242, 250, 0.95) 50%,
        rgba(240, 248, 255, 1) 100%
    );
    padding: 0 5%;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Updated subtle pattern overlay with a blue color */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* The SVG pattern's fill color is changed to the new primary blue */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.657 3.657-1.414 1.414L46.143 0h2.828zM11.03 0L7.372 3.657 8.787 5.07 13.857 0H11.03zm32.284 0L49.8 6.485 48.384 7.9l-7.9-7.9h2.83zM16.686 0L10.2 6.485 11.616 7.9l7.9-7.9h-2.83zM37.656 0l8.485 8.485-1.414 1.414L36.242 0h1.414zM22.344 0L13.858 8.485 15.272 9.9l8.485-8.485H22.344zM32.4 0l10.142 10.142-1.414 1.414L30.986 0H32.4zm-4.8 0L17.457 10.142l1.415 1.414L29.014 0h-1.414zM27.2 0l11.8 11.8-1.415 1.414L25.786 0H27.2zm-4.8 0L10.6 11.8l1.414 1.414L25.014 0h-2.628zM22 0l12.485 12.485-1.414 1.415L20.587 0H22zM18 0l12.485 12.485-1.414 1.415L16.587 0H18zm-4.8 0L25.485 12.485 24.07 13.9 11.586 0h1.614zM8.8 0L21.284 12.485 19.87 13.9 7.384 0H8.8zM4.8 0L17.284 12.485 15.87 13.9 3.384 0H4.8zm-4.8 0h2l12.485 12.485L12.07 13.9 0 1.828V0z' fill='%230a9396' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.6;
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding-top: 80px;
    position: relative;
    z-index: 1;
}


/* === Hero Text & Title Styling === */

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-title-container {
    margin-bottom: 2rem;
    position: relative;
}

.hero-title {
    font-size: 4.5rem;
    color: var(--dark-text); /* Updated */
    line-height: 1.1;
    font-weight: 800;
    position: relative;
    display: inline-block;
    margin: 0;
}

.hero-title .main-text {
    display: block;
    /* Updated gradient for the text */
    background: linear-gradient(45deg, var(--primary-blue), var(--hover-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    /* Updated text shadow color */
    text-shadow: 2px 2px 20px rgba(10, 147, 150, 0.2); 
}

.hero-title .bengali-text {
    display: block;
    font-size: 2.2rem;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--dark-text); /* Updated */
    position: relative;
    padding-left: 2rem;
}

.hero-title .bengali-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1.5rem;
    height: 3px;
    background: var(--primary-blue); /* Updated */
    transform: translateY(-50%);
}

.hero-title-decoration {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid var(--accent-teal); /* Updated */
    border-radius: 12px;
    top: -15px;
    left: -30px;
    z-index: -1;
    opacity: 0.3;
    transform: rotate(-15deg);
}

.hero-title-highlight {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--accent-teal); /* Updated */
    opacity: 0.2;
    transform: skew(-20deg);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--light-text); /* Updated */
    margin-bottom: 2rem;
    line-height: 1.6;
}


/* === Call to Action (CTA) Buttons === */

.cta-container {
    display: flex;
    gap: 0.8rem;
    margin-top: 2rem;
    flex-wrap: nowrap;
}

.cta-button {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: center;
    white-space: nowrap;
    flex: 1;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    border: none;
}

.cta-button i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.cta-button:hover i {
    transform: scale(1.1);
}

/* Updated Button variants with the new blue palette */
.cta-button.primary {
    background: linear-gradient(45deg, #005f73, var(--primary-blue));
    color: white;
    box-shadow: 0 4px 15px rgba(10, 147, 150, 0.2);
}

.cta-button.primary:hover {
    background: linear-gradient(45deg, var(--primary-blue), var(--hover-blue));
    box-shadow: 0 6px 20px rgba(10, 147, 150, 0.25);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.cta-button.secondary:hover {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 6px 20px rgba(10, 147, 150, 0.25);
}

.cta-button.accent {
    background: linear-gradient(45deg, var(--hover-blue), #90e0ef);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.2);
}

.cta-button.accent:hover {
    background: linear-gradient(45deg, #90e0ef, #ade8f4);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.25);
}

.cta-button.light {
    background: #eef2f5;
    color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(100, 120, 140, 0.1);
}

.cta-button.light:hover {
    background: #d8e2e8;
    box-shadow: 0 6px 20px rgba(100, 120, 140, 0.15);
}


/* === Quick Info Section === */

.quick-info {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: flex-start;
    align-items: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-text); /* Updated */
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
    background: rgba(10, 147, 150, 0.07); /* Updated */
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.info-item i {
    color: var(--primary-blue); /* Updated */
    font-size: 0.9rem;
}

.info-divider {
    width: 4px;
    height: 4px;
    background: #ccc;
    border-radius: 50%;
}


/* === Hero Illustration & Photos === */

.hero-illustration {
    position: relative;
    padding: 20px;
}

.photos-container {
    position: relative;
    height: 500px;
    width: 100%;
    perspective: 1500px;
    transform-style: preserve-3d;
}

.photo {
    position: absolute;
    width: 300px;
    height: 220px;
    background: #fff;
    padding: 12px;
    border-radius: 20px;
    overflow: hidden;
    transform-origin: center center;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: all 0.6s ease;
}

.photo::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Updated photo overlay gradient */
    background: linear-gradient(
        45deg,
        rgba(10, 147, 150, 0.2),
        rgba(148, 210, 189, 0.1)
    );
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.photo::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 12px;
    opacity: 0;
    transition: all 0.3s ease;
    transform: scale(0.9);
    z-index: 2;
}

.photo-1 { top: 20px; left: 0; transform: rotate(-12deg) translateZ(60px); z-index: 3; }
.photo-2 { top: 100px; left: 120px; transform: rotate(8deg) translateZ(30px) scale(0.9); z-index: 2; }
.photo-3 { top: 200px; left: 30px; transform: rotate(10deg) translateZ(0) scale(0.85); z-index: 1; }

.photo:hover {
    transform: scale(1.05) translateZ(100px) rotate(0deg) !important;
    z-index: 10;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}
.photo:hover::before { opacity: 1; }
.photo:hover::after { opacity: 1; transform: scale(1); }
.photo:hover img { transform: scale(1.1); filter: brightness(1.1) contrast(1.05); }

.photo-decoration {
    position: absolute;
    z-index: 0;
}

.decoration-1 {
    top: -20px; right: -20px; width: 120px; height: 120px;
    /* Updated decoration gradient */
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.1;
    animation: morphBlob 8s ease-in-out infinite;
}

.decoration-2 {
    bottom: -30px; left: -30px; width: 150px; height: 150px;
    /* Updated decoration gradient */
    background: linear-gradient(-45deg, var(--primary-blue), var(--accent-teal));
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    opacity: 0.1;
    animation: morphBlob 10s ease-in-out infinite reverse;
}


/* === Animations & Media Queries (Unchanged) === */
/* These control the layout and responsiveness, no color changes needed */

@keyframes morphBlob {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50% { border-radius: 50% 60% 30% 60% / 30% 40% 70% 50%; }
    75% { border-radius: 40% 60% 70% 30% / 60% 40% 50% 60%; }
}

@keyframes float-decoration {
    0%, 100% { transform: rotate(-15deg) translate(0, 0); }
    50% { transform: rotate(-12deg) translate(5px, -5px); }
}

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
        padding: 4rem 0 1rem;
    }
    .hero-illustration {
        order: -1;
        transform: scale(0.85);
        margin: -1rem 0 -4rem;
    }
    .photos-container {
        height: 450px;
        transform: scale(0.85);
    }
    .quick-info {
        justify-content: center;
    }
    .cta-container {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 0 3%;
    }
    .hero-content {
        padding: 3rem 0 0.5rem;
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-title .bengali-text {
        font-size: 1.8rem;
    }
    .hero-illustration {
        transform: scale(0.7);
        margin: -2rem 0 -5rem;
    }
    .photos-container {
        height: 400px;
        transform: scale(0.75);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-title .bengali-text {
        font-size: 1.4rem;
        margin-top: 0.8rem;
    }
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    .cta-container {
        flex-direction: column;
        gap: 0.6rem;
        align-items: center;
    }
    .cta-button {
        width: 80%;
        max-width: 300px;
        padding: 0.7rem;
    }
    .quick-info {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }
    .info-item {
        width: 80%;
        max-width: 300px;
        justify-content: center;
    }
    .info-divider {
        display: none;
    }
}