
/* =========================================
   GREENER-SPOT OPTICALS
   PREMIUM RESPONSIVE WEBSITE
========================================= */

/* =========================================
   ROOT VARIABLES
========================================= */
:root {
    --primary: #0F766E;
    --secondary: #14B8A6;
    --green: #22C55E;
    --dark: #071A1A;
    --text: #334155;
    --white: #FFFFFF;
    --light: #F8FAFC;
    --shadow: 0 20px 50px rgba(15, 118, 110, 0.12);
    --radius: 24px;
    --transition: 0.35s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Manrope', sans-serif;
    background: var(--light);
    color: var(--text);
    overflow-x: hidden;
}

img {
    width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: min(1200px, 90%);
    margin: auto;
}

.section {
    padding: 120px 0;
}

/* =========================================
   BUTTONS
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 32px;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );
    color: white;
    border-radius: 50px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-5px);
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.outline-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 32px;
    border: 1px solid white;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

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

/* =========================================
   ANIMATED WHATSAPP FLOATING BUTTON
========================================= */

.whatsapp-float {
    position: fixed;
    right: 25px;
    bottom: 25px;

    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #25D366;
    color: #ffffff;

    border-radius: 50%;
    text-decoration: none;

    font-size: 30px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.20);

    z-index: 9999;

    animation: whatsappPulse 2s infinite;

    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}


/* Hover */

.whatsapp-float:hover {
    color: #ffffff;

    transform: scale(1.12);

    box-shadow:
        0 10px 30px rgba(37, 211, 102, 0.45);
}


/* WhatsApp Icon */

.whatsapp-float i {
    animation: whatsappBounce 2s infinite;
}


/* =========================================
   PULSE ANIMATION
========================================= */

@keyframes whatsappPulse {

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


/* =========================================
   ICON BOUNCE
========================================= */

@keyframes whatsappBounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
    }

    85% {
        transform: translateY(-5px);
    }

    90% {
        transform: translateY(0);
    }

    95% {
        transform: translateY(-3px);
    }
}


/* =========================================
   TOOLTIP
========================================= */

.whatsapp-tooltip {
    position: absolute;

    right: 75px;
    top: 50%;

    transform: translateY(-50%) translateX(10px);

    background: #071A1A;
    color: #ffffff;

    padding: 10px 15px;

    border-radius: 8px;

    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;

    opacity: 0;
    visibility: hidden;

    transition: all 0.3s ease;
}


/* Show tooltip */

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;

    transform: translateY(-50%) translateX(0);
}


/* Tooltip arrow */

.whatsapp-tooltip::after {
    content: "";

    position: absolute;

    right: -6px;
    top: 50%;

    transform: translateY(-50%);

    border-width: 6px 0 6px 6px;
    border-style: solid;

    border-color:
        transparent
        transparent
        transparent
        #071A1A;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .whatsapp-float {
        width: 55px;
        height: 55px;

        right: 18px;
        bottom: 18px;

        font-size: 27px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}


/* =========================================
   REDUCE MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    .whatsapp-float,
    .whatsapp-float i {
        animation: none;
    }
}

/* =========================================
   HEADER / NAVBAR
========================================= */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    transition: 0.3s;
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.logo img{
    display: flex;
    width: 100px;
    height: 75px;
}



.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: black;
    font-weight: 600;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    color: black;
    font-size: 1.8rem;
    cursor: pointer;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    margin-top: 85px;
    align-items: center;
    position: relative;
    background:
        linear-gradient(
            rgba(7, 26, 26, 0.65),
            rgba(7, 26, 26, 0.65)
        ),
        url("../images/hero1111.jpg") no-repeat;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at top right,
        rgba(34, 197, 94, 0.25),
        transparent 35%
    );
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
    position: relative;
}

.badge {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    color: white;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.hero-content h1 {
    color: white;
    font-size: 5rem;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 25px;
}

.hero-content h1 span {
    color: var(--green);
}

.hero-content p {
    color: #E2E8F0;
    max-width: 550px;
    font-size: 1.15rem;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.trust {
    display: flex;
    gap: 50px;
    margin-top: 60px;
}

.trust strong {
    color: white;
    font-size: 2rem;
}

.trust p {
    color: #CBD5E1;
    font-size: 0.9rem;
}

/* =========================================
   HERO IMAGE
========================================= */
.hero-image {
    position: relative;
}

.image-card {
    border-radius: 40px;
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    transform: rotate(2deg);
    transition: 0.5s;
}

.image-card:hover {
    transform: rotate(0deg) translateY(-10px);
}

.image-card img {
    height: 650px;
    object-fit: cover;
}

.floating-card {
    position: absolute;
    bottom: 40px;
    left: -50px;
    background: white;
    padding: 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
    animation: float 4s infinite ease-in-out;
}

.floating-card i {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #DCFCE7;
    color: #16A34A;
}

@keyframes float {
    50% {
        transform: translateY(-15px);
    }
}

/* =========================================
   SECTION HEADINGS
========================================= */
.section-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 70px;
}

.section-heading span,
.section-tag {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.section-heading h2 {
    font-size: 3rem;
    color: var(--dark);
    margin: 15px 0;
    letter-spacing: -1px;
}

.section-heading p {
    color: #64748B;
    font-size: 1.1rem;
}

/* =========================================
   ABOUT SECTION
========================================= */
.about {
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    background: #DCFCE7;
    border-radius: 50%;
    top: -40px;
    left: -40px;
}

.about-image img {
    position: relative;
    z-index: 1;
    height: 550px;
    object-fit: cover;
    border-radius: 35px;
}

.about-content h2 {
    font-size: 3rem;
    color: var(--dark);
    margin: 20px 0;
}

.about-content p {
    color: #64748B;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 35px;
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.features div {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--dark);
}

.features i {
    color: var(--green);
}

/* =========================================
   SERVICES
========================================= */
.services {
    background: #F8FAFC;
}

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

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 28px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    background: #DCFCE7;
    border-radius: 50%;
    right: -50px;
    top: -50px;
    transition: 0.4s;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(15, 118, 110, 0.15);
}

.service-card:hover::before {
    transform: scale(4);
}

.service-card i {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    background: #ECFDF5;
    color: var(--primary);
    border-radius: 20px;
    font-size: 2rem;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
    transition: 0.4s;
}

.service-card:hover i {
    transform: scale(1.15) rotate(10deg);
}

.service-card h3 {
    color: var(--dark);
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.service-card p {
    color: #64748B;
    position: relative;
    z-index: 2;
}

/* =========================================
   WHY CHOOSE US
========================================= */
.why-us {
    background: white;
}

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

.why-card {
    background: #F8FAFC;
    padding: 35px;
    border-radius: 25px;
    text-align: center;
}

.why-card h3 {
    font-size: 2.5rem;
    color: var(--primary);
}

.why-card p {
    color: #64748B;
}

/* =========================================
   DOCTOR SECTION
========================================= */
.doctor {
    background: var(--dark);
    color: white;
}

.doctor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.doctor-image img {
    border-radius: 35px;
}

.doctor-content h2 {
    font-size: 3rem;
    margin: 20px 0;
}

.doctor-content p {
    color: #CBD5E1;
    line-height: 1.8;
    margin-bottom: 30px;
}

.doctor-list div {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.doctor-list i {
    color: var(--green);
}

/* =========================================
   PREMIUM EYEWEAR
========================================= */
.eyewear {
    background: #F8FAFC;
}

.brands {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
}

.brands div {
    height: 100px;
    background: white;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 1.3rem;
    color: #334155;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.35s;
}

.brands div:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-8px);
}

/* =========================================
   GALLERY
========================================= */
.gallery {
    background: white;
}

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

.gallery-grid img {
    height: 300px;
    object-fit: cover;
    border-radius: 25px;
    transition: 0.4s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* =========================================
   TESTIMONIALS
========================================= */
.testimonials {
    background: #F8FAFC;
}

.testimonial-box {
    max-width: 750px;
    margin: auto;
    background: white;
    padding: 50px;
    border-radius: 30px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stars {
    color: #F59E0B;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.testimonial-box p {
    font-size: 1.2rem;
    color: #475569;
    line-height: 1.8;
}

/* =========================================
   APPOINTMENT
========================================= */
.appointment {
    background: white;
}

.appointment-wrapper {
    background: linear-gradient(
        135deg,
        #0F766E,
        #14B8A6
    );
    border-radius: 40px;
    padding: 70px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    overflow: hidden;
}

.appointment-info {
    color: white;
}

.appointment-info h2 {
    font-size: 3rem;
    line-height: 1.2;
}

.appointment-info p {
    margin-top: 20px;
    color: #DCFCE7;
    line-height: 1.7;
}

.appointment form {
    background: white;
    padding: 35px;
    border-radius: 25px;
}

.appointment input,
.appointment select,
.appointment textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
}

.appointment input:focus,
.appointment select:focus,
.appointment textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15);
}

/* =========================================
   CONTACT
========================================= */
.contact {
    background: #F8FAFC;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.8rem;
    color: var(--dark);
}

.contact-info p {
    margin: 20px 0;
    color: #64748B;
}

.contact-info i {
    color: var(--primary);
    margin-right: 15px;
}

.map iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 30px;
}

/* =========================================
   FOOTER
========================================= */
.footer {
    background: #071A1A;
    padding: 80px 0 20px;
    color: white;
}

.footer-container {
    width: min(1200px, 90%);
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
}

.footer-logo img {
    width: 100px; 
}


.footer-column h3 {
    margin-bottom: 25px;
    color: white;
}

.footer-column p {
    color: #94A3B8;
    line-height: 1.8;
}

.footer-column a {
    display: block;
    color: #CBD5E1;
    margin-bottom: 15px;
    transition: 0.3s;
}

.footer-column a:hover {
    color: #22C55E;
    transform: translateX(5px);
}

.socials {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.socials a {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: 0.3s;
}

.socials a:hover {
    background: #22C55E;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    color: #94A3B8;
}
/* Scroll animation */
.hidden{
    opacity:0;
    transform:translateY(50px);
    transition:all .8s ease;
}

.show{
    opacity:1;
    transform:translateY(0);
}

/* Active navigation */
.nav-menu a.active{
    color:#14B8A6;
}

/* Back to top button */
.top-btn{
    position:fixed;
    right:25px;
    bottom:25px;
    width:55px;
    height:55px;
    border:none;
    border-radius:50%;
    background:#0F766E;
    color:#fff;
    cursor:pointer;
    font-size:20px;
    opacity:0;
    visibility:hidden;
    transition:.3s;
    box-shadow:0 10px 25px rgba(0,0,0,.2);
    z-index:999;
}

.top-btn.show{
    opacity:1;
    visibility:visible;
}

.top-btn:hover{
    transform:translateY(-5px);
}

/* Ripple effect */
.btn{
    position:relative;
    overflow:hidden;
}

.ripple{
    position:absolute;
    border-radius:50%;
    transform:scale(0);
    background:rgba(255,255,255,.5);
    animation:ripple .6s linear;
}

@keyframes ripple{
    to{
        transform:scale(4);
        opacity:0;
    }
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */

/* TABLETS */
@media (max-width: 992px) {
    .hero-wrapper,
    .about-grid,
    .doctor-grid,
    .appointment-wrapper,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .image-card img {
        height: 500px;
    }

    .floating-card {
        left: 20px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brands {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .appointment-wrapper {
        padding: 40px;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .container {
        width: 92%;
    }

    .section {
        padding: 70px 0;
    }

    /* NAVBAR */
    .navbar {
        height: 75px;
    }

    .navbar > .btn {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background: white;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: 0.4s;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        color: #071A1A;
        font-size: 1.2rem;
    }

    /* HERO */
   
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons a {
        width: 100%;
        max-width: 320px;
    }

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

    .trust strong {
        font-size: 1.4rem;
    }

    .trust p {
        font-size: 0.75rem;
    }

    .image-card {
        transform: none;
    }

    .image-card img {
        height: 400px;
    }

    .floating-card {
        position: relative;
        left: 0;
        bottom: auto;
        margin-top: 20px;
        width: 100%;
    }

    /* HEADINGS */
    .section-heading h2 {
        font-size: 2rem;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    /* ABOUT */
    .about-image img {
        height: 400px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    /* SERVICES */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* WHY */
    .why-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* DOCTOR */
    .doctor-content h2 {
        font-size: 2rem;
    }

    /* GALLERY */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid img {
        height: 250px;
    }

    /* EYEWEAR */
    .brands {
        grid-template-columns: repeat(2, 1fr);
    }

    .brands div {
        height: 80px;
        font-size: 1rem;
    }

    /* APPOINTMENT */
    .appointment-wrapper {
        padding: 25px 15px;
        border-radius: 25px;
    }

    .appointment-info {
        text-align: center;
    }

    .appointment-info h2 {
        font-size: 1.8rem;
    }

    .appointment form {
        padding: 20px 15px;
    }

    .appointment button {
        width: 100%;
    }

    /* CONTACT */
    .map iframe {
        height: 300px;
    }

    /* FOOTER */
    .footer-logo img{
        width: 100px;
    }
    .footer {
        text-align: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .socials {
        justify-content: center;
    }
}

/* SMALL PHONES */
@media (max-width: 400px) {
    .hero-content h1 {
        font-size: 2.3rem;
    }

    .trust {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .appointment-info h2 {
        font-size: 1.6rem;
    }
}