/* =========================================================
   ROSHAPHARMA
   Modern Pharmaceutical Website
   No external fonts / CDN
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    min-height: 100vh;

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    color: #1b4965;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f5fbff 45%,
            #eef7ff 100%
        );

    overflow-x: hidden;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {

    position: relative;

    width: 100%;

    padding: 18px 30px 15px;

    background:
        rgba(255, 255, 255, 0.82);

    backdrop-filter: blur(15px);

    -webkit-backdrop-filter: blur(15px);

    border-bottom:
        1px solid rgba(0, 120, 255, 0.08);

    box-shadow:
        0 8px 30px rgba(0, 80, 160, 0.07);

    text-align: center;

    z-index: 100;
}


/* =========================================================
   LOGO
========================================================= */

.logo-container {

    position: relative;

    display: inline-block;

    height: 90px;

    width: auto;

}


.logo {

    display: block;

    height: 90px;

    width: auto;

    position: relative;

    z-index: 2;

}


/* subtle moving light */

.light-effect {

    position: absolute;

    top: 5px;

    left: 10%;

    width: 45%;

    height: 80%;

    pointer-events: none;

    background:
        radial-gradient(
            circle,
            rgba(0, 166, 255, 0.25),
            transparent 65%
        );

    filter: blur(8px);

    animation:
        logoLight 7s infinite
        ease-in-out alternate;

    z-index: 1;
}


@keyframes logoLight {

    0% {
        transform:
            translateX(-15px)
            translateY(5px);
    }

    100% {
        transform:
            translateX(80px)
            translateY(10px);
    }

}


/* =========================================================
   NAVIGATION
========================================================= */

.main-nav {

    margin-top: 12px;

}


.main-nav ul {

    list-style: none;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 42px;

}


.main-nav a {

    position: relative;

    display: inline-block;

    padding: 7px 3px;

    color: #1b4965;

    text-decoration: none;

    font-size: 15px;

    font-weight: 600;

    transition:
        color .25s ease,
        transform .25s ease;

}


.main-nav a::after {

    content: "";

    position: absolute;

    left: 50%;

    bottom: 0;

    width: 0;

    height: 2px;

    background: #0078ff;

    transform:
        translateX(-50%);

    transition:
        width .25s ease;

}


.main-nav a:hover {

    color: #0078ff;

    transform:
        translateY(-2px);

}


.main-nav a:hover::after,
.main-nav a.active::after {

    width: 100%;

}


.main-nav a.active {

    color: #0078ff;

}


/* =========================================================
   HOME HERO
========================================================= */

.home-hero {

    position: relative;

    min-height: 600px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    overflow: hidden;

    padding: 80px 20px;

}


/* =========================================================
   BACKGROUND TEXT
========================================================= */

.background-text {

    position: absolute;

    top: 7%;

    left: 50%;

    transform:
        translateX(-50%);

    white-space: nowrap;

    font-size:
        clamp(65px, 13vw, 180px);

    font-weight: 900;

    letter-spacing: 8px;

    color:
        rgba(0, 120, 255, 0.055);

    user-select: none;

    pointer-events: none;

    animation:
        floatText 18s infinite
        ease-in-out;

}


@keyframes floatText {

    0%,
    100% {
        transform:
            translateX(-50%)
            translateY(25px)
            scale(1);
    }

    50% {
        transform:
            translateX(-50%)
            translateY(-25px)
            scale(1.04);
    }

}


/* =========================================================
   HERO GLOW
========================================================= */

.hero-glow {

    position: absolute;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(30px);

}


.glow-one {

    width: 280px;

    height: 280px;

    top: 15%;

    left: 8%;

    background:
        rgba(0, 166, 255, 0.08);

    animation:
        glowFloat 8s infinite
        ease-in-out alternate;

}


.glow-two {

    width: 240px;

    height: 240px;

    bottom: 10%;

    right: 8%;

    background:
        rgba(80, 210, 255, 0.09);

    animation:
        glowFloat 10s infinite
        ease-in-out alternate-reverse;

}


@keyframes glowFloat {

    from {
        transform:
            translateY(0);
    }

    to {
        transform:
            translateY(-30px);
    }

}


/* =========================================================
   HERO CONTENT
========================================================= */

.hero-content {

    position: relative;

    z-index: 5;

    max-width: 800px;

}


.hero-label {

    display: inline-block;

    margin-bottom: 18px;

    color: #0078ff;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 3px;

}


.hero-content h1 {

    color: #1b4965;

    font-size:
        clamp(42px, 6vw, 72px);

    line-height: 1.1;

    letter-spacing: 2px;

    margin-bottom: 22px;

}


.hero-content p {

    max-width: 620px;

    margin: 0 auto 35px;

    color: #527086;

    font-size: 19px;

    line-height: 1.8;

}


/* =========================================================
   PRIMARY BUTTON
========================================================= */

.primary-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 15px;

    min-width: 220px;

    padding: 15px 25px;

    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            #159cff,
            #0068df
        );

    color: white;

    text-decoration: none;

    font-size: 16px;

    font-weight: 700;

    box-shadow:
        0 10px 0 rgba(0, 70, 160, 0.12),
        0 20px 35px rgba(0, 100, 220, 0.20);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        filter .25s ease;

}


.primary-button span {

    font-size: 21px;

    transition:
        transform .25s ease;

}


.primary-button:hover {

    transform:
        translateY(-7px);

    filter:
        brightness(1.08);

    box-shadow:
        0 15px 0 rgba(0, 70, 160, 0.12),
        0 30px 45px rgba(0, 100, 220, 0.25);

}


.primary-button:hover span {

    transform:
        translateX(5px);

}


.primary-button:active {

    transform:
        translateY(3px);

}


/* =========================================================
   ECG
========================================================= */

.ecg {

    position: absolute;

    left: 0;

    bottom: 7%;

    width: 100%;

    height: 150px;

    opacity: .10;

    z-index: 1;

    pointer-events: none;

    overflow: hidden;

}


.ecg svg {

    width: 100%;

    height: 100%;

}


.ecg polyline {

    fill: none;

    stroke: #009cff;

    stroke-width: 5;

    stroke-linecap: round;

    stroke-linejoin: round;

    stroke-dasharray: 1200;

    stroke-dashoffset: 1200;

    animation:
        heartbeat 5s linear infinite;

}


@keyframes heartbeat {

    0% {
        stroke-dashoffset: 1200;
    }

    50% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -1200;
    }

}


/* =========================================================
   PRODUCTS PAGE
========================================================= */

.products-page {

    position: relative;

    padding:
        75px 20px 100px;

    min-height: 800px;

    overflow: hidden;

}


/* =========================================================
   PAGE HEADING
========================================================= */

.page-heading {

    position: relative;

    z-index: 5;

    max-width: 850px;

    margin:
        0 auto 50px;

    text-align: center;

}


.page-heading h1 {

    color: #1b4965;

    font-size:
        clamp(38px, 5vw, 56px);

    margin-bottom: 15px;

}


.page-heading p {

    color: #5d7688;

    font-size: 17px;

    line-height: 1.7;

}


/* =========================================================
   PRODUCT LIST
========================================================= */

.product-list {

    position: relative;

    z-index: 5;

    width: 100%;

    max-width: 1000px;

    margin: 0 auto;

}


/* =========================================================
   PRODUCT CARD
========================================================= */

.product-row {

    position: relative;

    display: flex;

    align-items: center;

    gap: 50px;

    width: 100%;

    min-height: 250px;

    margin:
        30px auto;

    padding:
        35px 50px;

    background:
        rgba(255, 255, 255, 0.88);

    border:
        1px solid rgba(0, 120, 255, 0.08);

    border-radius: 30px;

    text-decoration: none;

    color: inherit;

    box-shadow:
        0 20px 55px rgba(0, 80, 160, 0.10);

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    overflow: hidden;

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;

}


.product-row::before {

    content: "";

    position: absolute;

    top: -100px;

    right: -100px;

    width: 260px;

    height: 260px;

    border-radius: 50%;

    background:
        rgba(0, 150, 255, 0.055);

    filter: blur(10px);

    transition:
        transform .5s ease;

}


.product-row:hover {

    transform:
        translateY(-10px);

    border-color:
        rgba(0, 120, 255, 0.20);

    box-shadow:
        0 30px 70px rgba(0, 80, 160, 0.16);

}


.product-row:hover::before {

    transform:
        scale(1.35);

}


/* =========================================================
   CUBE CONTAINER
========================================================= */

.cube-container {

    position: relative;

    flex:
        0 0 150px;

    width: 150px;

    height: 150px;

    display: flex;

    align-items: center;

    justify-content: center;

}


/* =========================================================
   CUBE
========================================================= */

.inline-cube {

    width: 66px;

    height: 100px;

    perspective: 700px;

}


.scene {

    width: 100%;

    height: 100%;

    position: relative;

    transform-style:
        preserve-3d;

    animation:
        rotateCube 20s infinite linear;

}


.face {

    position: absolute;

    width: 66px;

    height: 100px;

    background-size: cover;

    background-position: center;

    backface-visibility: visible;

}


/* =========================================================
   CUBE 1
========================================================= */

.front1 {
    transform:
        rotateY(0deg)
        translateZ(33px);

    background-image:
        url("images/front1.jpg");
}


.back1 {
    transform:
        rotateY(180deg)
        translateZ(33px);

    background-image:
        url("images/back1.jpg");
}


.right1 {
    transform:
        rotateY(90deg)
        translateZ(33px);

    background-image:
        url("images/right1.jpg");
}


.left1 {
    transform:
        rotateY(-90deg)
        translateZ(33px);

    background-image:
        url("images/left1.jpg");
}


.top1 {
    transform:
        rotateX(90deg)
        translateZ(33px);

    background-image:
        url("images/top1.jpg");
}


.bottom1 {
    transform:
        rotateX(-90deg)
        translateZ(33px);

    background-image:
        url("images/bottom1.jpg");
}


/* =========================================================
   CUBE 2
========================================================= */

.front2 {
    transform:
        rotateY(0deg)
        translateZ(33px);

    background-image:
        url("images/front2.jpg");
}


.back2 {
    transform:
        rotateY(180deg)
        translateZ(33px);

    background-image:
        url("images/back2.jpg");
}


.right2 {
    transform:
        rotateY(90deg)
        translateZ(33px);

    background-image:
        url("images/right2.jpg");
}


.left2 {
    transform:
        rotateY(-90deg)
        translateZ(33px);

    background-image:
        url("images/left2.jpg");
}


.top2 {
    transform:
        rotateX(90deg)
        translateZ(33px);

    background-image:
        url("images/top2.jpg");
}


.bottom2 {
    transform:
        rotateX(-90deg)
        translateZ(33px);

    background-image:
        url("images/bottom2.jpg");
}


/* =========================================================
   CUBE 3
========================================================= */

.front3 {
    transform:
        rotateY(0deg)
        translateZ(33px);

    background-image:
        url("images/front3.jpg");
}


.back3 {
    transform:
        rotateY(180deg)
        translateZ(33px);

    background-image:
        url("images/back3.jpg");
}


.right3 {
    transform:
        rotateY(90deg)
        translateZ(33px);

    background-image:
        url("images/right3.jpg");
}


.left3 {
    transform:
        rotateY(-90deg)
        translateZ(33px);

    background-image:
        url("images/left3.jpg");
}


.top3 {
    transform:
        rotateX(90deg)
        translateZ(33px);

    background-image:
        url("images/top3.jpg");
}


.bottom3 {
    transform:
        rotateX(-90deg)
        translateZ(33px);

    background-image:
        url("images/bottom3.jpg");
}


/* =========================================================
   CUBE ANIMATION
========================================================= */

@keyframes rotateCube {

    from {
        transform:
            rotateX(0deg)
            rotateY(0deg);
    }

    to {
        transform:
            rotateX(0deg)
            rotateY(360deg);
    }

}


/* =========================================================
   PRODUCT INFORMATION
========================================================= */

.product-info {

    position: relative;

    flex: 1;

    z-index: 2;

}


.product-number {

    display: block;

    margin-bottom: 8px;

    color:
        rgba(0, 120, 255, 0.55);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 2px;

}


.product-info h2 {

    margin-bottom: 14px;

    color: #1b4965;

    font-size: 30px;

    transition:
        color .25s ease;

}


.product-row:hover .product-info h2 {

    color: #0078ff;

}


.product-info p {

    max-width: 650px;

    color: #536d7e;

    font-size: 16px;

    line-height: 1.8;

}


.product-link {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-top: 18px;

    color: #0078ff;

    font-size: 14px;

    font-weight: 700;

}


.product-link span {

    font-size: 20px;

    transition:
        transform .25s ease;

}


.product-row:hover .product-link span {

    transform:
        translateX(6px);

}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {

    position: relative;

    padding: 25px 20px;

    background:
        rgba(255, 255, 255, 0.80);

    border-top:
        1px solid rgba(0, 120, 255, 0.08);

    text-align: center;

    color: #718898;

    font-size: 13px;

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 800px) {

    .site-header {

        padding:
            15px 15px 12px;

    }


    .main-nav ul {

        gap: 25px;

    }


    .main-nav a {

        font-size: 14px;

    }


    .home-hero {

        min-height: 550px;

        padding:
            60px 20px;

    }


    .background-text {

        font-size:
            clamp(50px, 15vw, 110px);

    }


    .product-row {

        flex-direction: column;

        text-align: center;

        gap: 20px;

        padding:
            40px 25px;

    }


    .cube-container {

        flex-basis: 140px;

    }


    .product-info p {

        margin:
            0 auto;

    }

}


@media (max-width: 500px) {

    .logo {

        height: 75px;

    }


    .logo-container {

        height: 75px;

    }


    .main-nav ul {

        gap: 18px;

    }


    .main-nav a {

        font-size: 13px;

    }


    .hero-content h1 {

        font-size: 40px;

    }


    .hero-content p {

        font-size: 16px;

    }


    .product-row {

        border-radius: 24px;

    }


    .product-info h2 {

        font-size: 26px;

    }

}

/* =========================================================
   ABOUT PAGE
========================================================= */

.about-page {

    position: relative;

    min-height: 900px;

    padding:
        75px 20px 100px;

    overflow: hidden;

}


/* =========================================================
   ABOUT HEADING
========================================================= */

.about-heading {

    position: relative;

    z-index: 5;

    max-width: 850px;

    margin:
        0 auto 55px;

    text-align: center;

}


.about-heading h1 {

    color: #1b4965;

    font-size:
        clamp(38px, 5vw, 56px);

    line-height: 1.15;

    margin-bottom: 18px;

}


.about-intro {

    max-width: 650px;

    margin: 0 auto;

    color: #5d7688;

    font-size: 17px;

    line-height: 1.8;

}


/* =========================================================
   ABOUT CARDS
========================================================= */

.about-card {

    position: relative;

    display: flex;

    gap: 40px;

    max-width: 950px;

    margin:
        30px auto;

    padding:
        40px 50px;

    background:
        rgba(255, 255, 255, 0.88);

    border:
        1px solid rgba(0, 120, 255, 0.08);

    border-radius: 30px;

    box-shadow:
        0 20px 55px rgba(0, 80, 160, 0.09);

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    overflow: hidden;

    transition:
        transform .3s ease,
        box-shadow .3s ease;

}


.about-card::before {

    content: "";

    position: absolute;

    width: 220px;

    height: 220px;

    border-radius: 50%;

    top: -120px;

    right: -80px;

    background:
        rgba(0, 150, 255, 0.055);

    filter: blur(8px);

    pointer-events: none;

}


.about-card:hover {

    transform:
        translateY(-5px);

    box-shadow:
        0 28px 65px rgba(0, 80, 160, 0.13);

}


/* =========================================================
   CARD NUMBER
========================================================= */

.about-card-number {

    flex:
        0 0 65px;

    color:
        rgba(0, 120, 255, 0.35);

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 2px;

    padding-top: 5px;

}


/* =========================================================
   CARD CONTENT
========================================================= */

.about-card-content {

    position: relative;

    z-index: 2;

    flex: 1;

}


.about-card-content h2 {

    margin-bottom: 20px;

    color: #1b4965;

    font-size: 30px;

}


.about-card-content p {

    margin-bottom: 16px;

    color: #536d7e;

    font-size: 16px;

    line-height: 1.9;

    text-align: justify;

}


.about-card-content p:last-child {

    margin-bottom: 0;

}


/* =========================================================
   MISSION CARD
========================================================= */

.mission-card {

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.94),
            rgba(239,248,255,.92)
        );

}


.mission-card .about-card-content h2 {

    color: #0078ff;

}


/* =========================================================
   RESPONSIVE ABOUT
========================================================= */

@media (max-width: 700px) {

    .about-page {

        padding:
            55px 15px 70px;

    }


    .about-card {

        flex-direction: column;

        gap: 15px;

        padding:
            30px 25px;

        border-radius: 24px;

    }


    .about-card-number {

        flex-basis: auto;

        padding: 0;

    }


    .about-card-content h2 {

        font-size: 27px;

    }


    .about-card-content p {

        font-size: 15px;

        line-height: 1.8;

        text-align: left;

    }

}
/* =========================================================
   LANGUAGE SWITCHER
========================================================= */

.language-switcher {

    position: absolute;

    top: 25px;
    right: 35px;

    display: flex;

    align-items: center;

    gap: 8px;

    z-index: 9999;

    font-family: "Segoe UI", Arial, sans-serif;

    font-size: 14px;

    font-weight: 600;

}


.language-fa,
.language-en {

    color: #1b4965;

    text-decoration: none;

    cursor: pointer;

    transition:
        color .25s ease,
        transform .25s ease;

}


.language-fa:hover,
.language-en:hover {

    color: #0078ff;

    transform: scale(1.1);

}


.language-switcher .separator {

    color: #9ab3c3;

    user-select: none;

}


/* =========================================================
   LANGUAGE TEXT
========================================================= */


/* Persian text hidden by default */

.fa {

    display: none;

}


/* Persian mode */

body.fa-mode {

    direction: rtl;

}


/* Hide English */

body.fa-mode .en {

    display: none;

}


/* Show Persian */

body.fa-mode .fa {

    display: inline;

}


/* =========================================================
   PERSIAN PAGE ADJUSTMENTS
========================================================= */

body.fa-mode .main-nav ul {

    direction: rtl;

}


body.fa-mode .about-card-content p {

    text-align: right;

}


body.fa-mode .hero-content {

    direction: rtl;

}


/*
   Keep language switcher itself
   in a predictable horizontal layout
*/

body.fa-mode .language-switcher {

    direction: rtl;

}