/* --- VARIABLES & RESET --- */

/* --- Anjoman Font Faces --- */
@font-face {
    font-family: 'Anjoman';
    src: url('../fonts/Anjoman/AnjomanMax-Regular.woff2') format('woff2'),
         url('../fonts/Anjoman/AnjomanMax-Regular.woff') format('woff'),
         url('../fonts/Anjoman/AnjomanMax-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Anjoman';
    src: url('../fonts/Anjoman/AnjomanMax-SemiBold.woff2') format('woff2'),
         url('../fonts/Anjoman/AnjomanMax-SemiBold.woff') format('woff'),
         url('../fonts/Anjoman/AnjomanMax-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Anjoman';
    src: url('../fonts/Anjoman/AnjomanMax-Bold.woff2') format('woff2'),
         url('../fonts/Anjoman/AnjomanMax-Bold.woff') format('woff'),
         url('../fonts/Anjoman/AnjomanMax-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Anjoman';
    src: url('../fonts/Anjoman/AnjomanMax-Black.woff2') format('woff2'),
         url('../fonts/Anjoman/AnjomanMax-Black.woff') format('woff'),
         url('../fonts/Anjoman/AnjomanMax-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #06b6d4; /* Cyan */
    --primary-dark: #0891b2;
    --dark-bg: #020617; /* Deep Navy/Black */
    --card-bg: #0f172a; /* Lighter Navy */
    --text-light: #f1f5f9;
    --text-gray: #94a3b8;
    --font-main: 'Anjoman', 'Vazirmatn', sans-serif;
    --navbar-height: 64px; /* offset for fixed navbar */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--navbar-height);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* --- BUTTONS --- */
.btn-primary {
    background-color: var(--primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--dark-bg), transparent);
    z-index: -1;
}

.hero-content {
    width: 100%;
    margin-top: 60px;
}

.badge {
    background: rgba(6, 182, 212, 0.2);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(6, 182, 212, 0.4);
    display: inline-block;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight {
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* --- SECTIONS GENERAL --- */
.section {
    padding: 100px 0;
}

.bg-dark {
    background-color: #0b1120;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.divider {
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    margin: 15px auto;
    border-radius: 2px;
}

/* --- ABOUT --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

/* --- SERVICES --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.card p {
    color: var(--text-gray);
}

/* --- PRODUCT TEASER --- */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.product-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(6, 182, 212, 0.15);
}

.product-image-wrapper img {
    width: 100%;
    display: block;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.link-arrow {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary);
    font-weight: 700;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.link-arrow:hover {
    border-color: var(--primary);
}

/* --- CONTACT --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info ul {
    margin-top: 30px;
}

.contact-info li {
    margin-bottom: 15px;
    color: var(--text-gray);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    padding: 15px;
    background: var(--dark-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
    font-family: var(--font-main);
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* --- FOOTER --- */
footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 30px 0;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* --- EXTERNAL LINK HIGHLIGHT --- */
.external-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.18s ease;
}
.external-link:hover {
    color: var(--primary-dark);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide standard menu */
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }

    .about-grid, .product-grid, .contact-container {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}

/* --- services.html added styles --- */

/* Service Items Styling */
.service-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 40px;
    margin-bottom: 70px;
    align-items: flex-start;
}

.service-number {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    flex-shrink: 0;
}

.service-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #f1f5f9;
}

.service-content > p {
    color: #94a3b8;
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
}

.feature-list i {
    color: #06b6d4;
    font-size: 1.2rem;
}

/* Technology Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tech-card {
    background: #0f172a;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
    text-align: center;
}

.tech-card:hover {
    border-color: #06b6d4;
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.1);
}

.tech-card h4 {
    color: #06b6d4;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.tech-card p {
    color: #94a3b8;
}

/* Process Grid */
.process-grid {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.process-step {
    flex: 1;
    min-width: 180px;
    text-align: center;
    background: #0f172a;
    padding: 30px 20px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    margin: 0 auto 15px;
}

.process-step h4 {
    color: #f1f5f9;
    margin-bottom: 10px;
}

.process-step p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.step-arrow {
    font-size: 2rem;
    color: #06b6d4;
}

/* Why Grid */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.why-item {
    text-align: center;
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.why-item h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #f1f5f9;
}

.why-item p {
    color: #94a3b8;
    line-height: 1.6;
}

/* Product detail styles */
.product-detail .product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.product-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.product-info .subtitle {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 18px;
}

.product-image-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.04);
}

.product-image-wrapper img {
    width: 100%;
    display: block;
}

/* Responsive adjustments for services additions */
@media (max-width: 768px) {
    .service-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-number {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .service-content h3 {
        font-size: 1.5rem;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .process-grid {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    .hero {
        height: 40vh !important;
    }

    .hero h1 {
        font-size: 2rem;
        margin-top: 60px !important;
    }
}
