@font-face {
    font-family: 'IRANSans';
    src: url('fonts/IRANSans.ttf') format('truetype');
}

:root {
    --primary-color: #00bcd4;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

.company-description {
    background: linear-gradient(rgba(44, 44, 44, 0.7), rgba(44, 44, 44, 0.7)), url('images/top_BG.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    text-align: right;
    line-height: 1.8;
    position: relative;
}

.company-description .company-logo {
    max-width: 200px;
    margin-bottom: 30px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.company-description .description-text {
    max-width: 1000px;
    margin: 0 auto;
    text-align: justify;
    text-justify: inter-word;
}

.company-description p {
    margin-bottom: 15px;
    font-size: 16px;
}

.company-description p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .company-description {
        padding: 25px;
    }
    
    .company-description p {
        font-size: 14px;
    }
}

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

body {
    font-family: 'IRANSans', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: right;
    color: #2c3e50;
    margin-bottom: 40px;
    font-size: 32px;
    position: relative;
    padding-bottom: 15px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.page-header {
    direction: ltr;
    text-align: center;
    margin: 0 auto 40px;
}

.page-header h1 {
    text-align: center;
}

.page-header h1::after {
    right: 50%;
    transform: translateX(50%);
}

.product-card {
    background-color: white;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px var(--shadow-color);
    overflow: hidden;
    transform: translateY(0);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    color: white;
    position: relative;
    overflow: hidden;
    
    direction: ltr;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    opacity: 0.7;
    z-index: 1;
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    right: -20px;
    width: 40px;
    height: 100%;
    background: inherit;
    transform: skewX(-10deg);
    z-index: 1;
}

.header > * {
    position: relative;
    z-index: 2;
}

.header.red { background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%); }
.header.yellow { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }
.header.green { background: linear-gradient(135deg, #43cea2 0%, #185a9d 100%); }
.header.pink { background: linear-gradient(135deg, #ec008c 0%, #fc6767 100%); }
.header.blue { background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%); }
.header.turquoise { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.header.gray { background: linear-gradient(135deg, #636363 0%, #a2ab58 100%); }
.header.purple { background: linear-gradient(135deg, #834d9b 0%, #d04ed6 100%); }

.header .title {
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.content {
    display: flex;
    padding: 30px;
    gap: 40px;
    position: relative;
}

.specs {
    flex: 1;
    padding: 20px;
    background: rgba(245, 247, 250, 0.5);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.range {
    direction: ltr;
    border-bottom: 2px solid #eee;
    padding: 12px 0;
    color: #2c3e50;
    font-size: 16px;
    transition: all var(--transition-speed);
}

.range:hover {
    border-bottom-color: var(--primary-color);
    transform: translateX(-5px);
}

.sph {
    direction: ltr;
    background: linear-gradient(to right, #fff, #f5f7fa);
    margin-top: 25px;
    padding: 20px;
    border-radius: 15px;
    box-shadow: inset 0 2px 4px var(--shadow-color);
}

.sph span {
    display: block;
    margin-bottom: 15px;
    font-weight: bold;
    color: #2c3e50;
    font-size: 18px;
}

.product-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.product-image img {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 10px 20px var(--shadow-color));
    transition: transform var(--transition-speed);
}

.product-image:hover img {
    transform: scale(1.05);
}

.features {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

.feature {
    background: #f8f9fa;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 15px;
    color: #2c3e50;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed);
    border-right: 4px solid transparent;
}

.feature:hover {
    background: #fff;
    border-right-color: var(--primary-color);
    transform: translateX(-5px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.warranty-notice {
    text-align: center;
    font-weight: bold;
    margin: 60px 0;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.warranty-notice p {
    margin: 15px 0;
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.6;
}

.benefits-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-top: 60px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.benefits-section h2 {
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: right;
    position: relative;
    padding-right: 25px;
    font-size: 24px;
}

.benefits-section h2::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: var(--primary-color);
    border-radius: 3px;
}

.benefits-content {
    display: flex;
    gap: 40px;
}

.thickness-comparison {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lens-type {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all var(--transition-speed);
    direction: ltr;
}

.lens-type:hover {
    background: #fff;
    transform: translateX(-5px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.lens-comparison {
    flex: 2;
}

.comparison-item {
    margin-bottom: 25px;
}

.comparison-item h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
    padding-right: 20px;
}

.comparison-item h3::before {
    content: '•';
    position: absolute;
    right: 0;
    color: var(--primary-color);
    font-size: 24px;
    line-height: 1;
}

.lens-diagrams {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
    direction: ltr;
}

.diagram {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.diagram-image {
    aspect-ratio: 1;
    border: 2px solid #eee;
    border-radius: 10px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: all var(--transition-speed);
}

.diagram:nth-child(1) .diagram-image {
    background-image: url('images/Aspheric_circle.jpg');
}

.diagram:nth-child(2) .diagram-image {
    background-image: url('images/Spheric_circle.jpg');
}

.diagram:nth-child(3) .diagram-image {
    background-image: url('images/Aspheric.jpg');
}

.diagram:nth-child(4) .diagram-image {
    background-image: url('images/Spheric.jpg');
}

.diagram span {
    text-align: center;
    font-weight: bold;
    color: #2c3e50;
}

.diagram:hover .diagram-image {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 5px 15px var(--shadow-color);
}

@media (max-width: 768px) {
    body {
        padding: 20px 15px;
    }

    .content {
        flex-direction: column;
        padding: 20px;
        gap: 30px;
    }
    
    .product-image {
        order: -1;
    }

    .benefits-content {
        flex-direction: column;
    }

    .lens-diagrams {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .header {
        padding: 15px 20px;
    }

    .header .title {
        font-size: 20px;

    }
}

@media (max-width: 990px) and (min-width: 669px) {
    .container {
        padding: 0 15px;
    }

    .content {
        flex-direction: column;
        padding: 15px;
        gap: 20px;
    }

    .product-card {
        margin-bottom: 30px;
    }

    .header {
        padding: 15px 20px;
    }

    .header .title {
        font-size: 20px;
    }

    .specs, .product-image, .features {
        width: 100%;
        margin-bottom: 20px;
    }

    .product-image {
        order: -1;
        padding: 20px 0;
    }

    .product-image img {
        max-width: 180px;
        margin: 0 auto;
        display: block;
    }

    .specs {
        padding: 15px;
    }

    .features {
        padding: 15px;
    }

    .range {
        padding: 10px 0;
        font-size: 14px;
    }

    .sph {
        margin-top: 20px;
        padding: 15px;
    }

    .sph span {
        font-size: 16px;
    }

    .feature {
        font-size: 14px;
        padding: 10px 15px;
    }

    .benefits-content {
        flex-direction: column;
    }

    .thickness-comparison, .lens-comparison {
        width: 100%;
        margin-bottom: 30px;
    }

    .lens-diagrams {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .company-description {
        padding: 30px;
    }

    .company-description .company-logo {
        max-width: 180px;
        margin-bottom: 25px;
    }

    .company-description p {
        font-size: 15px;
    }
}

.site-footer {
    background: white;
    padding: 40px 0;
    margin-top: 60px;
    box-shadow: 0 -5px 20px var(--shadow-color);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #2c3e50;
    font-size: 16px;
    font-weight: bold;
}

.address i {
    color: var(--primary-color);
    font-size: 20px;
}

.contact-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2c3e50;
    text-decoration: none;
    transition: all var(--transition-speed);
    padding: 8px 15px;
    border-radius: 8px;
    background: #f8f9fa;
}

.contact-links a:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
    color: var(--primary-color);
}

.contact-links i {
    font-size: 18px;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 30px 15px;
    }

    .contact-links {
        gap: 15px;
    }

    .address {
        flex-direction: column;
        text-align: center;
    }

    .contact-links a {
        width: calc(50% - 10px);
        justify-content: center;
    }
} 