/* assets/css/style.css */

/* 1. Font Definitions */
@font-face {
    font-family: 'IRANSansX';
    src: url('../fonts/IRANSansXFaNum-Regular.woff2') format('woff2');
    font-weight: normal;
}

@font-face {
    font-family: 'IRANSansX';
    src: url('../fonts/IRANSansXFaNum-Bold.woff2') format('woff2');
    font-weight: bold;
}

@font-face {
    font-family: 'IRANSansX';
    src: url('../fonts/IRANSansXFaNum-Black.woff2') format('woff2');
    font-weight: 900;
}

:root {
    /* Brand Colors: Playful Park Theme */
    --primary-color: #4CAF50;
    /* Green - Nature/Park */
    --secondary-color: #2196F3;
    /* Blue - Sky/Trust */
    --accent-color: #FFC107;
    /* Yellow - Joy/Sun */
    --danger-color: #F44336;
    /* Red - Energy */

    --wood-color: #FF9800;
    /* Warm Orange for details */

    /* Light Theme Backgrounds */
    --bg-body: #FFFDF5;
    /* Very warm light off-white */
    --bg-header: #ffffff;
    --bg-card: #ffffff;
    --bg-footer: #263238;
    /* Dark Blue-Grey */

    /* Text Colors */
    --text-main: #37474F;
    /* Dark Blue-Grey text */
    --text-muted: #546E7A;
    --text-light: #ffffff;

    /* Interface */
    --border-color: #ECEFF1;
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(33, 150, 243, 0.15);
    /* Blue tinted shadow */

    /* Dynamic Elements */
    --gradient-hero: linear-gradient(135deg, #4CAF50 0%, #2196F3 100%);
    --radius-main: 25px;
    /* More rounded */
}

/* 2. Global Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
}

/* STRICT Font Enforcement */
body,
input,
button,
textarea,
select {
    font-family: 'IRANSansX', sans-serif !important;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 3. Helper Classes */
.btn-cta {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-cta:hover::after {
    left: 100%;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.5);
}

.glossy-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    border-radius: 16px;
    padding: 30px;
    transition: 0.3s;
}

.glossy-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

/* 4. Header & Nav */
.main-header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
}

.main-nav ul {
    display: flex;
    gap: 35px;
}

.main-nav a {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a:hover {
    color: #2E7D32;
    /* Using primary color for hover readability on white */
}

/* Hamburger */
.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-color);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    border-left: 1px solid var(--border-color);
    color: var(--text-main);
    z-index: 1100;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 70px 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu-overlay.active {
    right: 0;
}

.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1050;
    display: none;
}

.backdrop.active {
    display: block;
}

.mobile-menu-overlay a {
    transition: 0.3s;
    border-radius: 5px;
    padding: 10px;
}

.mobile-menu-overlay a:hover {
    background: #f0f7ff;
    color: var(--primary-color) !important;
    padding-right: 15px;
}

/* 5. Hero Section (Redesigned) */
.hero-section {
    padding: 160px 0 120px;
    text-align: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    color: #fff;
    /* Always white inside Hero */
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: var(--accent-color);
    filter: blur(200px);
    opacity: 0.2;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.2;
    font-weight: 900;
    margin-bottom: 25px;
    background: none;
    -webkit-text-fill-color: #fff;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

.hero-content p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 45px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 6. Features Grid & Tech Specs */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 60px 0 100px;
}

.feature-card,
.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 20px;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.feature-card::before,
.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: 0.4s;
}

.feature-card:hover,
.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.feature-card:hover::before,
.tech-card:hover::before {
    transform: scaleX(1);
}

.feature-icon,
.tech-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.feature-card p,
.tech-card p {
    color: var(--text-muted);
}

/* 7. About (Modern ZigZag) */
.about-section {
    padding: 100px 0;
    border-top: 1px solid #1a1a1a;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-graphic {
    height: 400px;
    background: linear-gradient(135deg, var(--bg-card), #e6e9f0);
    border-radius: 30px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Abstract Shapes */
.about-graphic::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    opacity: 0.1;
}

.about-graphic::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: -20px;
    width: 300px;
    height: 300px;
    border: 40px solid rgba(0, 51, 153, 0.05);
    border-radius: 50%;
}

.about-graphic-icon {
    font-size: 8rem;
    color: var(--primary-color);
    z-index: 2;
    filter: drop-shadow(0 10px 20px rgba(0, 51, 153, 0.2));
}

/* 8. Products (Unified List View) */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 60px 0;
}

.product-item {
    display: flex;
    gap: 40px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 20px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.product-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--accent-color);
    opacity: 1;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.product-thumb {
    width: 200px;
    height: 150px;
    background: #f0f2f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-color);
    border: 1px solid #e0e0e0;
}

/* 9. Footer */
.main-footer {
    background: var(--bg-footer);
    padding: 80px 0 20px;
    border-top: 5px solid var(--accent-color);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
}

.footer-col a {
    color: #ccc;
    display: block;
    margin-bottom: 12px;
}

.footer-col a:hover {
    color: #fff;
    transform: translateX(-5px);
}

.footer-col ul li {
    color: #ccc;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col ul li i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.copy-right {
    text-align: center;
    /* CENTERED */
    border-top: 1px solid #151515;
    padding-top: 30px;
    color: #555;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .header-container {
        flex-direction: row-reverse;
    }

    .main-nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-item {
        flex-direction: column;
        text-align: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h3::after {
        right: 50%;
        transform: translateX(50%);
    }

    .footer-col a:hover {
        transform: none;
        color: var(--accent-color);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 500px) {
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }
}

/* 10. Gallery Section */
.gallery-section {
    padding: 100px 0;
    background: var(--bg-body);
    border-top: 1px solid var(--border-color);
}

.section-title-center {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title-center::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    height: 250px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
}

.gallery-overlay i {
    font-size: 3rem;
    color: var(--accent-color);
    transform: scale(0);
    transition: 0.3s;
}

/* Hover Effects */
.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

.gallery-item:hover {
    border-color: var(--accent-color);
}

/* 11. Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    transform: scale(0.9);
    transition: 0.3s;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}