/* --- Font --- */
@font-face {
    font-family: 'Minecraft';
    src: url('./assets/=fonts/MinecraftTen-VGORe.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'poppin';
    src: url('./assets/=fonts/poppinsdefault.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'poppin';
    src: url('./assets/=fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

/* --- CSS Variables based on the provided image --- */
:root {
    --header-bg: #034150;
    --gradient-start: #00222a; /* gradient2 */
    --gradient-end: #0f4956;   /* gradient1 */
    --footer-bg: #00222a;
    
    --card-bg: #0e4552;
    --outline-color: #09323b;
    --text-white: #ffffff;
    --text-grey: #b1b1b1;
    --font-main: 'Minecraft' ,sans-serif;
}

/* --- General Reset & Body --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--gradient-end); /* Fallback */
    color: var(--text-white);
    text-align: center;
    line-height: 1.4;
    font-weight: 100;
}

a {
    text-decoration: none;
    color: inherit;
    font-weight: 100;
}

/* --- Header & Nav --- */
.header {
    background-color: var(--header-bg);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0px 0px 50px 6px black;
}

.header-mobile-top {
    display: none; /* در دسکتاپ مخفی است */
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 2rem;
    cursor: pointer;
    font-family: inherit;
}

.mobile-logo {
    display: none;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-link {
    font-size: 1.2rem;
    letter-spacing: 2px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--text-grey);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 100;
}

.placeholder-logo {
    width: 150px;
    height: 50px;
    background-color: transparent;
    /* border: 2px dashed #fff;  موقت برای نشان دادن جای لوگو */
    display: block;
    font-weight: 100;   
}

/* --- Main Background Gradient --- */
.main-gradient {
    background: linear-gradient(to bottom, var(--gradient-start) 0%, var(--gradient-end) 100%);
    padding-bottom: 80px;
}

/* --- Typography & Headings --- */
h1 {
    font-size: 3rem;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0 #000;
    font-weight: 100;
    
}

h2 {
    font-size: 2rem;
    letter-spacing: 2px;
    margin-bottom: 40px;
    font-weight: 100;
}

.subtitle {
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--text-white);
    margin-bottom: 20px;
    font-weight: 100;
}

.grey-text {
    color: var(--text-grey);
    font-weight: 100;
}

.mt-1 { margin-top: 15px; }
.mt-2 { margin-top: 30px; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--card-bg);
    border: 2px solid var(--outline-color);
    border-radius: 25px;
    color: var(--text-white);
    font-family: var(--font-main);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight:100;
    box-shadow: 0px 0px 10px 0px black;
}

.btn:hover {
    background-color: var(--outline-color);
}

.btn-outline {
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--card-bg);
}

.dark-btn {
    background-color: #00151a; /* Darker button for WATCH section */
    border-color: #00151a;
}

.center-btn {
    display: inline-block;
    margin: 0 auto;
}

/* --- Hero Section --- */
.hero {
    padding: 80px 20px;
}

.hero p {
    font-size: 0.9rem;
    color: var(--text-grey);
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- Services Section --- */
.services {
    padding: 60px 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.service-card {
    background-color: transparent;
    border: 2px solid var(--outline-color);
    border-radius: 20px;
    height: 250px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    transition: background-color 0.3s;
    box-shadow: 0px 0px 10px 0px black;
}

.service-card:hover {
    background-color: rgba(14, 69, 82, 0.5);
}

.card-title {
    font-size: 1rem;
    letter-spacing: 1px;
}

/* --- Portfolio Section --- */
.portfolio {
    padding: 60px 20px;
}

.portfolio-slider {
    max-width: 960px;
    height: 540px;
    margin: 0 auto;
    background-color: transparent;
    border: 2px solid var(--outline-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 3px 10px 0px black;
}

/* --- Partners Section --- */
.partners {
    padding: 60px 20px;
}

.partners-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.partner-icon {
    background-color: var(--card-bg);
    border: 2px solid var(--outline-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 10px 0px black;
}

.partner-icon img {
    width: 60%;
    height: 60%;
}

/* Sizing for partners to create the depth effect */
.partner-item.large .partner-icon { width: 140px; height: 140px; border-radius: 30px; }
.partner-item.medium .partner-icon { width: 100px; height: 100px; }
.partner-item.small .partner-icon { width: 70px; height: 70px; }

.partner-item span {
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.partner-item.large span { font-size: 1rem; }

/* --- Cooperation & Watch Sections --- */
.cooperation {
    padding: 60px 20px;
}

.watch-section {
    padding: 40px 20px;
}

/* --- Footer --- */
.footer {
    background-color: var(--footer-bg);
    padding: 50px 20px 20px;
    text-align: left;
    box-shadow: -3px -3px 10px 0px black;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    font-weight: 100;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: var(--text-white);
}

.footer-col ul li a:hover {
    color: var(--text-grey);
}

.policy-col {
    max-width: 300px;
    font-weight: 100;
}

.footer-logo {
    display: flex;
    align-items: flex-end;
    font-weight: 100;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.5rem;
    color: var(--text-grey);
    text-align: left;
    font-weight: 100;
}

.service-card {
    background-color: var(--card-bg);
    border: 1px solid var(--outline-color);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; 
    transition: transform 0.3s ease;
    font-weight: 100;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon-wrapper {
    width: 100px; 
    height: 100px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.service-card h3 {
    margin: 0; 
    font-size: 1.25rem;
    font-weight: 100;
}
.portfolio-image{
    width: 100%;
    height: 100%;
    border-radius: 20px;
}
.copyright{
    text-align: left;
    margin-left: 1rem;
    font-weight: 100;
}


/* --- Responsive Design --- */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-container {
        gap: 15px;
        font-size: 0.9rem;
    }
    
    .partners-row {
        flex-wrap: wrap;
    }
        .header {
        padding: 10px 0;
    }

    .header-mobile-top {
        display: flex; /* نمایش نوار بالای موبایل */
    }

    .mobile-logo {
        display: flex;
    }

    .desktop-logo {
        display: none; /* مخفی کردن لوگوی وسط منو در موبایل */
    }

    .nav-container {
        display: none; /* مخفی کردن لینک‌ها به صورت پیش‌فرض در موبایل */
        flex-direction: column;
        background-color: var(--header-bg);
        position: absolute;
        top: 100%; /* قرارگیری دقیقا زیر هدر */
        left: 0;
        width: 100%;
        padding: 20px 0;
        border-top: 1px solid var(--outline-color);
        padding-left: 5rem;
    }

    /* کلاسی که با جاوااسکریپت اضافه می‌شود تا منو نمایش داده شود */
    .nav-container.active {
        display: flex;
    }

    .nav-link {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }

    .footer-logo {
        display: none;
    }
    .portfolio-slider{
        max-width: 1000px;
        height: 400px;
    }
}

@media (max-width: 600px) {
    h1 { font-size: 2rem; }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-container {
        flex-direction: column;
    }
    
    .portfolio-slider {
        height: 250px;
    }
}



