/*====================================================
    PREMIUM GENERATOR WEBSITE
    STYLE.CSS
    VERSION 1.0
====================================================*/



/*===================================
Typography
===================================*/

body{

    font-family:var(--font-main);

    background:var(--light);

    color:var(--dark);

}

h1,
h2,
h3,
h4,
h5,
h6{

    font-weight:700;

    line-height:1.3;

    color:var(--primary);

}

h1{

    font-size:64px;

}

h2{

    font-size:42px;

}

h3{

    font-size:28px;

}

p{

    font-size:17px;

    color:#4f5b66;

}



/*===================================
Section Title
===================================*/

.section-title{

    text-align:center;

    margin-bottom:70px;

}

.section-title span{

    display:inline-block;

    color:var(--secondary);

    font-weight:700;

    margin-bottom:15px;

    letter-spacing:1px;

}

.section-title h2{

    margin-bottom:15px;

}

.section-title p{

    max-width:700px;

    margin:auto;

}



/*===================================
Buttons
===================================*/

.btn-primary{

    display:inline-flex;

    justify-content:center;

    align-items:center;

    padding:16px 38px;

    background:var(--secondary);

    color:white;

    border-radius:12px;

    font-weight:700;

    transition:.35s;

    box-shadow:0 15px 35px rgba(247,147,30,.35);

}

.btn-primary:hover{

    transform:translateY(-6px);

}

.btn-secondary{

    display:inline-flex;

    justify-content:center;

    align-items:center;

    padding:16px 38px;

    border:2px solid white;

    color:white;

    border-radius:12px;

    transition:.35s;

    margin-right:15px;

}

.btn-secondary:hover{

    background:white;

    color:var(--primary);

}



/*===================================
Loader
===================================*/

#loader{

    position:fixed;

    inset:0;

    background:var(--primary);

    display:flex;

    justify-content:center;

    align-items:center;

    z-index:999999;

}

.loader-circle{

    width:85px;

    height:85px;

    border-radius:50%;

    border:7px solid rgba(255,255,255,.15);

    border-top:7px solid var(--secondary);

    animation:loader 1s linear infinite;

}

@keyframes loader{

    to{

        transform:rotate(360deg);

    }

}



/*===================================
Header
===================================*/

header{

    position:fixed;

    top:0;

    right:0;

    width:100%;

    height:90px;

    backdrop-filter:blur(20px);

    background:rgba(10,31,51,.65);

    z-index:999;

    transition:.4s;

}

header .container{

    display:flex;

    justify-content:space-between;

    align-items:center;

    height:100%;

}

.logo img{

    height:60px;

}

nav ul{

    display:flex;

    gap:35px;

}

nav a{

    color:white;

    font-weight:600;

    position:relative;

}

nav a::after{

    content:"";

    position:absolute;

    right:0;

    bottom:-10px;

    width:0;

    height:2px;

    background:var(--secondary);

    transition:.3s;

}

nav a:hover::after{

    width:100%;

}

.btn-call{

    background:var(--secondary);

    color:white;

    padding:13px 28px;

    border-radius:12px;

}



/*===================================
Hero
===================================*/

.hero{

    position:relative;

    min-height:100vh;

    display:flex;

    align-items:center;

    overflow:hidden;

}

.hero video{

    position:absolute;

    width:100%;

    height:100%;

    object-fit:cover;

}

.overlay{

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.60);

}

.hero-content{

    position:relative;

    z-index:10;

    color:white;

    max-width:700px;

}

.hero-content span{

    display:inline-block;

    color:var(--secondary);

    margin-bottom:20px;

    font-weight:700;

}

.hero-content h1{

    color:white;

    margin-bottom:25px;

}

.hero-content p{

    color:#ddd;

    margin-bottom:35px;

    font-size:20px;

    line-height:2;

}

.hero-buttons{

    display:flex;

    align-items:center;

}



/*===================================
Scroll Down
===================================*/

.scroll-down{

    position:absolute;

    bottom:30px;

    left:50%;

    transform:translateX(-50%);

    color:white;

    font-size:30px;

    animation:bounce 2s infinite;

}

@keyframes bounce{

    0%,100%{

        transform:translate(-50%,0);

    }

    50%{

        transform:translate(-50%,10px);

    }

}
/* =====================================
   NAVBAR
===================================== */

.header{

    position:fixed;

    top:0;

    right:0;

    width:100%;

    height:90px;

    display:flex;

    align-items:center;

    background:rgba(10,31,51,.75);

    backdrop-filter:blur(18px);

    z-index:1000;

    transition:.35s;

}

.header .container{

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.logo img{

    height:58px;

}

.nav-menu{

    display:flex;

    gap:35px;

    align-items:center;

}

.nav-menu>li{

    position:relative;

}

.nav-menu a{

    color:#fff;

    font-weight:600;

    transition:.3s;

}

.nav-menu a:hover{

    color:var(--secondary);

}

/* Dropdown */

.dropdown-menu{

    position:absolute;

    top:45px;

    right:0;

    width:220px;

    background:#fff;

    border-radius:12px;

    box-shadow:var(--shadow);

    opacity:0;

    visibility:hidden;

    transform:translateY(15px);

    transition:.3s;

    overflow:hidden;

}

.dropdown:hover .dropdown-menu{

    opacity:1;

    visibility:visible;

    transform:translateY(0);

}

.dropdown-menu li{

    border-bottom:1px solid #eee;

}

.dropdown-menu li:last-child{

    border:none;

}

.dropdown-menu a{

    display:block;

    padding:16px 20px;

    color:var(--dark);

}

.dropdown-menu a:hover{

    background:var(--secondary);

    color:#fff;

}

/* CTA */

.nav-btn{

    font-size:15px;

}

/* Hamburger */

.hamburger{

    display:none;

    flex-direction:column;

    gap:5px;

    cursor:pointer;

}

.hamburger span{

    width:28px;

    height:3px;

    background:#fff;

    border-radius:10px;

}
/* =====================================
   HERO
===================================== */

.hero{

    position:relative;

    min-height:100vh;

    display:flex;

    align-items:center;

    overflow:hidden;

    background:#081828;

}

.hero video{

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

    object-fit:cover;

    z-index:1;

}

.overlay{

    position:absolute;

    inset:0;

    background:linear-gradient(
        rgba(5,18,31,.82),
        rgba(5,18,31,.72)
    );

    z-index:2;

}

.hero-content{

    position:relative;

    z-index:3;

    color:#fff;

    max-width:760px;

}

.hero-content span{

    display:inline-block;

    margin-bottom:20px;

    color:var(--secondary);

    font-size:18px;

    font-weight:700;

}

.hero-content h1{

    color:#fff;

    font-size:64px;

    margin-bottom:25px;

    line-height:1.25;

}

.hero-content p{

    color:#e2e8f0;

    font-size:20px;

    line-height:2;

    margin-bottom:40px;

    max-width:650px;

}

.hero-buttons{

    display:flex;

    gap:18px;

    flex-wrap:wrap;

}

.scroll-down{

    position:absolute;

    bottom:30px;

    left:50%;

    transform:translateX(-50%);

    color:#fff;

    font-size:34px;

    animation:bounce 2s infinite;

    z-index:3;

}

@keyframes bounce{

    0%,100%{

        transform:translate(-50%,0);

    }

    50%{

        transform:translate(-50%,12px);

    }

}
.hero{

    background-image:url("../assets/images/hero.png");

    background-size:cover;

    background-position:center;

}
/*=====================================
STATISTICS
======================================*/

.stats{

    background:#f3f6fa;

}

.stats-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:30px;

}

.stat-card{

    background:white;

    border-radius:20px;

    padding:40px 25px;

    text-align:center;

    box-shadow:var(--shadow);

    transition:.35s;

}

.stat-card:hover{

    transform:translateY(-10px);

}

.stat-icon{

    font-size:50px;

    margin-bottom:20px;

}

.stat-card h2{

    font-size:50px;

    color:var(--secondary);

    margin-bottom:10px;

}

.stat-card h4{

    margin-bottom:10px;

}

.stat-card p{

    color:#6b7280;

}
/*==================================
WHY US
===================================*/

.why-us{

    padding:120px 0;

    background:white;

}

.why-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:70px;

    align-items:center;

}

.why-image{

    overflow:hidden;

    border-radius:25px;

}

.why-image img{

    width:100%;

    display:block;

    transition:.5s;

}

.why-image:hover img{

    transform:scale(1.08);

}

.section-tag{

    display:inline-block;

    color:var(--secondary);

    font-weight:bold;

    margin-bottom:15px;

}

.why-content h2{

    margin-bottom:25px;

}

.why-content>p{

    margin-bottom:35px;

    line-height:2;

}

.features{

    display:flex;

    flex-direction:column;

    gap:20px;

}

.feature-card{

    display:flex;

    align-items:center;

    gap:20px;

    background:#f7f8fb;

    padding:20px;

    border-radius:18px;

    transition:.35s;

}

.feature-card:hover{

    transform:translateX(-8px);

    box-shadow:var(--shadow);

}

.feature-number{

    width:65px;

    height:65px;

    border-radius:50%;

    background:var(--secondary);

    color:white;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:22px;

    font-weight:bold;

}
/* Footer */

.footer {
    background: #111;
    color: #fff;
    padding: 60px 0 20px;
}


.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}


.footer h3 {
    margin-bottom: 20px;
    font-size: 20px;
}


.footer p {
    color: #ccc;
    line-height: 2;
}


.footer-links ul {
    list-style: none;
    padding: 0;
}


.footer-links li {
    margin-bottom: 12px;
}


.footer-links a {
    color: #ccc;
    text-decoration: none;
}


.footer-links a:hover {
    color: #fff;
}


.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
}
/* About Section */

.about {
    padding: 80px 0;
}


.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}


.about-text span {
    color: #e30613;
    font-weight: bold;
}


.about-text h2 {
    font-size: 36px;
    margin: 20px 0;
}


.about-text p {
    line-height: 2;
    color: #666;
    margin-bottom: 15px;
}


.about-image img {
    width: 100%;
    border-radius: 15px;
}
/* Articles Section */

.articles {
    padding: 80px 0;
    background: #f7f7f7;
}


.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}


.article-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
}


.article-card:hover {
    transform: translateY(-8px);
}


.article-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}


.article-content {
    padding: 25px;
}


.article-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
}


.article-content p {
    color: #666;
    line-height: 2;
    margin-bottom: 20px;
}


.article-content a {
    color: #e30613;
    text-decoration: none;
    font-weight: bold;
}
/* Contact Section */

.contact {
    padding: 80px 0;
}


.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}


.contact-info {
    background: #111;
    color: #fff;
    padding: 40px;
    border-radius: 15px;
}


.contact-info h3 {
    margin-bottom: 25px;
}


.contact-info p {
    margin-bottom: 15px;
    line-height: 2;
    color: #ddd;
}


.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.contact-form input,
.contact-form textarea {

    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;

}


.contact-form textarea {
    height: 150px;
    resize: none;
}


.contact-form button {
    border: none;
    cursor: pointer;
}
/* Responsive Base */

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}


img {
    max-width: 100%;
    height: auto;
}
.hamburger {
    display: none;
}
@media (max-width:768px) {

    .navbar {
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        background: white;
        display: none;
    }


    .navbar.active {
        display: block;
    }

}
@media (max-width: 768px) {

    /* Mobile Menu */
    

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}


.hamburger span {
    width: 28px;
    height: 3px;
    background: #111;
    display: block;
}


.navbar {
    position: absolute;
    top: 80px;
    right: 0;
    width: 100%;
    background: #fff;
    display: none;
}


.navbar.active {
    display: block;
}


.nav-menu {
    flex-direction: column;
    padding: 20px;
}


.nav-menu li {
    margin: 15px 0;
}


.nav-btn {
    display: none;
}


    .container {
        width: 90%;
    }


    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }


    .article-grid,
    .category-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }


    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }


    .about-text h2 {
        font-size: 28px;
    }


    .section-title h2 {
        font-size: 26px;
    }

    .hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}


.hamburger span {
    width: 28px;
    height: 3px;
    background: #111;
    display: block;
}


}
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #111;
    display: block;
}
.menu-btn{
    width:45px;
    height:45px;
    border:none;
    background:transparent;
    display:none;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:6px;
    cursor:pointer;
}

.menu-btn span{
    width:28px;
    height:3px;
    background:#222;
    border-radius:10px;
    transition:.3s;
}
/* جلوگیری از به هم ریختن اندازه‌ها */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    overflow-x:hidden;
}

img{
    max-width:100%;
    height:auto;
    display:block;
}

.container{
    width:90%;
    max-width:1400px;
    margin:auto;
}

/* تبلت */
@media (max-width:992px){

    section{
        padding:60px 20px;
    }

}

/* موبایل */
@media (max-width:768px){

    h1{
        font-size:32px;
    }

    h2{
        font-size:26px;
    }

    p{
        font-size:15px;
    }

    .container{
        width:95%;
    }

}

/* موبایل‌های کوچک */
@media (max-width:480px){

    h1{
        font-size:28px;
    }

    h2{
        font-size:22px;
    }

    p{
        font-size:14px;
    }

}
.contact{
    padding:100px 0;
    background:#f8f9fa;
}

.contact-title{
    text-align:center;
    margin-bottom:60px;
}

.contact-title h2{
    font-size:40px;
    margin-bottom:15px;
}

.contact-title p{
    color:#666;
}

.contact-content{
    display:flex;
    justify-content:space-between;
    gap:50px;
}

.contact-info{
    flex:1;
}

.info-box{
    background:#fff;
    padding:25px;
    margin-bottom:20px;
    border-radius:12px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.info-box h3{
    margin-bottom:10px;
}

.contact-form{
    flex:1;
    display:flex;
    flex-direction:column;
    gap:18px;
}

.contact-form input,
.contact-form textarea{
    width:100%;
    padding:16px;
    border:1px solid #ddd;
    border-radius:10px;
    font-size:16px;
    outline:none;
}

.contact-form input:focus,
.contact-form textarea:focus{
    border-color:#f4b400;
}

.contact-form button{
    padding:16px;
    border:none;
    border-radius:10px;
    background:#f4b400;
    color:#fff;
    font-size:17px;
    cursor:pointer;
    transition:.3s;
}

.contact-form button:hover{
    background:#d89d00;
}

/* Responsive */

@media(max-width:768px){

    .contact{
        padding:70px 0;
    }

    .contact-content{
        flex-direction:column;
    }

    .contact-title h2{
        font-size:30px;
    }

}
.brands{
    padding:70px 0;
    background:#fff;
    overflow:hidden;
}

.brands h2{
    text-align:center;
    margin-bottom:40px;
    color:#0b2341;
    font-size:32px;
    font-weight:700;
}

.brands-slider{
    width:100%;
    overflow:hidden;
    position:relative;
}

.brands-track{
    display:flex;
    align-items:center;
    gap:60px;
    width:max-content;
    animation:scrollBrands 25s linear infinite;
}

.brands-track img{
    width:140px;
    height:70px;
    object-fit:contain;
    filter:grayscale(100%);
    opacity:.75;
    transition:.3s;
}

.brands-track img:hover{
    filter:none;
    opacity:1;
    transform:scale(1.08);
}

@keyframes scrollBrands{
    from{
        transform:translateX(0);
    }
    to{
        transform:translateX(-50%);
    }
}

@media(max-width:768px){
    .brands-track{
        gap:35px;
    }

    .brands-track img{
        width:90px;
        height:45px;
    }
}
.category-grid img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #fff;
    padding: 15px;
}
.projects{
    padding:80px 8%;
    background:#f7f8fc;
}

.section-title{
    text-align:center;
    margin-bottom:50px;
}

.section-title h2{
    font-size:38px;
    color:#0b2341;
    margin-bottom:10px;
}

.section-title p{
    color:#666;
}

.projects-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
}

.project-card{
    position:relative;
    overflow:hidden;
    border-radius:18px;
    box-shadow:0 15px 35px rgba(0,0,0,.12);
}

.project-card img{
    width:100%;
    height:260px;
    object-fit:cover;
    display:block;
    transition:.5s;
}

.project-card:hover img{
    transform:scale(1.08);
}

.overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(to top,rgba(0,0,0,.75),transparent);
    display:flex;
    align-items:flex-end;
    padding:25px;
}

.overlay h3{
    color:#fff;
    font-size:24px;
}
.products-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
    margin-top:40px;
}

.product-card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 8px 25px rgba(0,0,0,.1);
    transition:.3s;
}

.product-card:hover{
    transform:translateY(-8px);
}

.product-card img{
    width:100%;
    height:220px;      /* ارتفاع ثابت */
    object-fit:cover;  /* عکس متناسب نمایش داده شود */
    display:block;
}

.product-card h3{
    padding:15px 20px 5px;
    font-size:22px;
    color:#222;
}

.product-card ul{
    list-style:none;
    padding:0 20px 20px;
}

.product-card ul li{
    padding:8px 0;
    border-bottom:1px solid #eee;
    color:#555;
}

.badge{
    position:absolute;
    top:15px;
    right:15px;
    background:#28a745;
    color:#fff;
    padding:6px 14px;
    border-radius:30px;
    font-size:14px;
    font-weight:bold;
}

.product-card{
    position:relative;
}