/* ===============================
   GLOBAL STYLES
=================================*/
:root {
    --primary: #0066ff;
    --secondary: #00c8c8;
    --accent: #ffd600;
    --dark: #11174d;
    --light: #f9faff;
    --radius: 12px;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    --font: Trebuchet MS, sans-serif;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Trebuchet MS, sans-serif;
    font-size: 15px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(to right, #ffffff, #000000, #ffffff);
    color: #333;
}

section {
    padding: 60px 10%;
    animation: fadeIn 1s ease-in-out;
}

.header-classic {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 8%;
    z-index: 1000;
}

/* Logo */
.header-classic strong {
    font-size: 20px;
    color: var(--dark);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Navigation */
.header-row {
    display: flex;
    gap: 20px;
}
.header-row :hover{
  background: var(--primary); 
  color: #fff;
}

/* Links */
.header-row a {
text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: background 0.3s ease, color 0.3s ease;

}

/* Hover underline animation */
.header-row a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: #0b0b0b;
    transition: .3s;
}

.header-row a:hover::after {
    width: 100%;
}

/*mobile responsiveness*/
@media(max-width:768px) {

    .header-classic {
        flex-direction: column;
        padding: 15px 5%;
        gap: 10px;
    }

    .header-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .header-classic strong {
        font-size: 18px;
    }

    /* Welcome-section*/
}

.welcome-section {
   height: 100vh; /* full screen height */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  background: linear-gradient(
      rgba(0, 255, 0, 0.7),
      rgba(131, 123, 252, 0.7)
    ),
    url('Images/medical-banner-with-doctor-wearing-goggles.jpg') center/cover no-repeat;
  color: #ffffff;
  position: relative;
}

/* overlay effect */

.welcome-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(136, 136, 136, 0.25);
    z-index: 1;
}

/* content container */

.overlay {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: auto;
}

/* title */

.section-title {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 5px;
    color: #42fff2f3;
    text-align: center;
}

/* title underline */

.section-title::after {
    content: "";
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, #696969, #80c2ff, #696969);
    display: block;
    margin: 10px auto 0;
    border-radius: 5px;
}

/* paragraph */

.welcome-section p {
    font-size: 15px;
    font-weight: lighter;
    line-height: 1.8;
    margin: 0px auto;
    max-width: 950px;
    color:;
}

/* image */

.welcome img {
    width: 700px;
    max-width: 800px;
    height: auto;
    border-radius: 15px;
    transition: transform .5s, box-shadow .6s;
    box-shadow: 0 20px 50px rgba(79, 79, 79, 0.5);
    animation: floatImage 4s ease-in-out infinite;
}

/* hover animation */

.welcome img:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 30px 70px rgb(173, 207, 255);
}

/* floating animation */

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0);
    }
}

/* mobile responsiveness */

@media(max-width:768px) {

    .section-title {
        font-size: 28px;
    }

    .welcome img {
        width: 90%;
    }

    .welcome-section {
        padding: 90px 15px;
    }

}


/* ===============================
   SERVICES
=================================*/

.services1 {
    padding: 103px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8fbff, #eef7ff);
}

/* section title */

.section-title {
    font-size: 38px;
    letter-spacing: 4px;
    color: #00c8c8;
    font-weight: 500;
}

/* cards grid */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 15px;
    max-width: 1500px;
    margin: auto;
}

/* individual card */

.card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    padding: 28px 30px;
    border-radius: 22px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 188, 212, 0.15);
    transition: all .45s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* hover glow background */

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, #00e5ff22, #00ff6a22);
    opacity: 0;
    transition: .5s;
}

.card:hover::before {
    opacity: 1;
}

/* hover effect */

.card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 18px 40px rgba(0, 200, 200, 0.25);
    border-color: #00e1ff;
}

/* card title */

.card strong {
    display: block;
    font-size: 20px;
    margin-bottom: 10px;
    color: #00796b;
    font-weight: 600;
    transition: .3s;
}

/* title hover */

.card:hover strong {
    color: #009688;
}

/* card text */

.card p {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

/* responsive */

@media(max-width:768px) {

    .cards {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }

    .card {
        padding: 24px;
    }

}

/* ===============================
   DOCTORS SECTION
=================================*/

#ourdoctors {
    padding: 100px 8% 50px 8%;
    /* top right bottom left */
    background-color:#000000;
}

/* title spacing */

#ourdoctors .section-title {
    margin-bottom: 30px;
    color: #ffffff;
}

#ourdoctors .section-title::after {
    content: "";
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, #696969, #80c2ff, #696969);
    display: block;
    margin: 15px auto 0;
    border-radius: 5px;
}

/* grid layout */

.doctor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 5px;
    max-width: 1100px;
    margin: auto;
}

/* doctor card */

.doctor-grid .card {
    background: #fff;
    border-radius: 22px;
    padding: 25px 25px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transition: all .4s ease;
}

/* hover */

.doctor-grid .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

/* doctor name */

.doctor-grid h3 {
    font-size: 22px;
    margin-bottom: 6px;
    color: #011d78;
}

/* doctor specialization */

.doctor-grid strong {
    color: #009396;
    font-size: 16px;
}

/* description */

.doctor-grid p {
    margin-top: 10px;
    line-height: 1.6;
    color: #000000;
}

/* specialization title */

.specializations {
    margin-top: 14px;
    font-weight: 600;
    color: #00796b;
}

/* specialization list */

.doctor-grid ul {
    margin-top: 8px;
    padding-left: 18px;
}

.doctor-grid li {
    margin-bottom: 4px;
    font-size: 14px;
    color: #000000;
}

/* ===============================
   RESPONSIVE
=================================*/

/* tablets */

@media(max-width:992px) {

    #doctors {
        padding: 80px 5%;
    }

}

/* mobiles */

@media(max-width:600px) {

    .doctor-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .doctor-grid .card {
        padding: 22px;
    }

    .doctor-grid h3 {
        font-size: 20px;
    }

}

/* ===============================
   WHY CHOOSE SECTION
=================================*/

.why-section {
    padding: 180px 6%;
    background: linear-gradient(90deg, #e6e9f0, #000, #e6e9f0);
    text-align: center;
}

/* section title */

.why-section .section-title {
    font-size: 36px;
    letter-spacing: 4px;
    color: #00c8c8;
    margin-bottom: 30px;
    margin-top: 25px;
    font-weight: 500;
}

/* grid layout */

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: auto;
}

/* cards */

.why-card {
    background: #f2f2f2;
    padding: 18px 22px;
    border-radius: 40px;
    font-size: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all .35s ease;
}

/* hover effect */

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

@media(max-width:900px) {

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media(max-width:600px) {

    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-section {
        padding: 60px 20px;
    }

}


/* ===============================
   CTA SECTION
=================================*/

.cta-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* full screen height */
    padding: 20px;
    box-sizing: border-box;
    background-color: #000000;
}

.cta {
    max-width: 900px;
    width: 100%;
    text-align: center;

    padding: 70px 30px;
    border-radius: 25px;

    background: linear-gradient(135deg, #7fe7f0, #2d8dd6);

    color: #000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);

    animation: fadeSlideUp 0.9s ease;
}

/* Heading */

.cta h2 {
    font-size: 2.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Paragraph */

.cta p {
    font-size: 1.15rem;
    margin-bottom: 35px;
    color: #111;
}

/* Call Button */

.call-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 16px 38px;
    font-size: 1.15rem;
    font-weight: 600;

    background: #fff;
    color: #000;

    border-radius: 60px;
    text-decoration: none;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);

    transition: all 0.3s ease;
}

/* Hover */

.call-btn:hover {
    background: #00e600;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* Animations */

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

:root {
    --primary-color: #2789da;
    --primary-color-hover: #1f6fcc;
    --input-bg: #f9faff;
    --input-border: #ccc;
    --input-border-focus: var(--primary-color);
    --error-color: #e74c3c;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: #f2f7fb;
    color: #222;
    margin: 0;
    padding: 0;
}

section.contact {
    max-width: 700px;
    margin: 180px auto 100px;
    background: #ffffff;
    padding: 40px 30px 50px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 25px;
    text-align: center;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
    user-select: none;
}

input[type="text"],
input[type="tel"],
input[type="date"],
input[type="time"],
select,
textarea {
    padding: 12px 15px;
    border: 1.8px solid var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    font-size: 1rem;
    color: #222;
    transition: border-color 0.3s ease;
    resize: vertical;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
select:focus,
textarea:focus {
    border-color: var(--input-border-focus);
    outline: none;
    box-shadow: 0 0 8px rgba(39, 137, 218, 0.3);
}

textarea {
    min-height: 100px;
    font-family: var(--font-family);
}

.submit-btn {
    grid-column: 1 / -1;
    padding: 15px 0;
    background: var(--primary-color);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(39, 137, 218, 0.4);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover,
.submit-btn:focus {
    background: var(--primary-color-hover);
    transform: translateY(-3px);
    outline: none;
}

@media (max-width: 640px) {
    .contact-form {
        grid-template-columns: 1fr;
    }

    section.contact {
        margin: 30px 15px 60px;
        padding: 30px 20px 40px;
    }
}

footer.footer {
    background-color: #222f5b;
    color: #e0e0e0;
    padding: 25px 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95rem;
    text-align: center;
    user-select: none;
}

footer.footer .container {
    max-width: 1100px;
    margin: 0 auto;
}

footer.footer p {
    margin: 6px 0;
}

footer.footer a.phone-link {
    color: #ffd600;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer.footer a.phone-link:hover,
footer.footer a.phone-link:focus {
    color: #fff;
    outline: none;
}

footer.footer .social-icons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

footer.footer .social-icons a {
    color: #e0e0e0;
    transition: color 0.3s ease;
}

footer.footer .social-icons a:hover,
footer.footer .social-icons a:focus {
    color: #ffd600;
    outline: none;
}