
@font-face {
	font-family: dana;
	font-style: normal;
	font-weight: 10;
	src: url('fonts/woff2/Dana-Hairline.woff2') format('woff2'),  /* FF39+,Chrome36+, Opera24+*/
		 url('fonts/woff/Dana-Hairline.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}
@font-face {
	font-family: dana;
	font-style: normal;
	font-weight: 100;
	src: url('fonts/woff2/Dana-Thin.woff2') format('woff2'),  /* FF39+,Chrome36+, Opera24+*/
		 url('fonts/woff/Dana-Thin.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}
@font-face {
	font-family: dana;
	font-style: normal;
	font-weight: 200;
	src: url('fonts/woff2/Dana-UltraLight.woff2') format('woff2'),  /* FF39+,Chrome36+, Opera24+*/
		 url('fonts/woff/Dana-UltraLight.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}
@font-face {
	font-family: dana;
	font-style: normal;
	font-weight: 300;
	src: url('fonts/woff2/Dana-Light.woff2') format('woff2'),  /* FF39+,Chrome36+, Opera24+*/
		 url('fonts/woff/Dana-Light.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}
@font-face {
	font-family: dana;
	font-style: normal;
	font-weight: 500;
	src: url('fonts/woff2/Dana-Medium.woff2') format('woff2'),  /* FF39+,Chrome36+, Opera24+*/
		 url('fonts/woff/Dana-Medium.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}
@font-face {
	font-family: dana;
	font-style: normal;
	font-weight: 600;
	src: url('fonts/woff2/Dana-DemiBold.woff2') format('woff2'),  /* FF39+,Chrome36+, Opera24+*/
		 url('fonts/woff/Dana-DemiBold.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}
@font-face {
	font-family: dana;
	font-style: normal;
	font-weight: 800;
	src: url('fonts/woff2/Dana-ExtraBold.woff2') format('woff2'),  /* FF39+,Chrome36+, Opera24+*/
		 url('fonts/woff/Dana-ExtraBold.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}
@font-face {
	font-family: dana;
	font-style: normal;
	font-weight: 900;
	src: url('fonts/woff2/Dana-Black.woff2') format('woff2'),  /* FF39+,Chrome36+, Opera24+*/
		 url('fonts/woff/Dana-Black.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}
@font-face {
	font-family: dana;
	font-style: normal;
	font-weight: bold;
	src: url('fonts/woff2/Dana-Bold.woff2') format('woff2'),  /* FF39+,Chrome36+, Opera24+*/
		 url('fonts/woff/Dana-Bold.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}
@font-face {
	font-family: dana;
	font-style: normal;
	font-weight: normal;
	src: url('fonts/woff2/Dana-Regular.woff2') format('woff2'),  /* FF39+,Chrome36+, Opera24+*/
		 url('fonts/woff/Dana-Regular.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Dana,'Inter', sans-serif;
    /* background: linear-gradient(135deg, #525252 0%, #404040 25%, #363636 50%, #2a2a2a 75%, #1f1f1f 100%); */
    background: url('mainbg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    height: 100vh; /* Fixed height for desktop */
    color: white;
    position: relative;
    overflow: hidden; /* Prevent scroll on desktop */
}

/* Allow scroll on mobile devices */
@media (max-width: 1024px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }
}

/* Geometric background pattern */
/*body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, rgba(255,255,255,0.02) 0%, transparent 50%),
        linear-gradient(-45deg, rgba(0,0,0,0.1) 0%, transparent 50%);
    background-size: 200px 200px, 150px 150px;
    pointer-events: none;
    z-index: 0;
}*/

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Mobile override */
@media (max-width: 1024px) {
    .container {
        height: auto;
    }
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 1px 0;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background-color: #FFD700;
    border-radius: 2px;
}

.logo-section {
    text-align: center;
}

.main-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.main-logo h1 {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 2px;
    color: white;
}

.yellow-dot {
    width: 10px;
    height: 10px;
    background-color: #FFD700;
    border-radius: 50%;
}

.subtitle {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 2px;
    opacity: 0.9;
    color: white;
}

.language-btn {
    width: 38px;
    height: 38px;
    border: 2px solid #FFD700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.language-btn:hover {
    background-color: #FFD700;
    color: #2a2a2a;
}

/* Language Dropdown */
.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(42, 42, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    padding: 8px 16px;
    font-size: 12px;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.language-option:hover {
    background-color: rgba(255, 215, 0, 0.1);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

.menu-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.menu-close {
    position: absolute;
    top: -60px;
    right: 20px;
    font-size: 40px;
    color: #FFD700;
    cursor: pointer;
    transition: color 0.3s ease;
}

.menu-close:hover {
    color: white;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.menu-item {
    font-size: 24px;
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.menu-item:hover {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
}

/* Company Detail Page (Full Screen) */
.company-detail-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('orangebg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    overflow-y: auto;
    direction: rtl; /* Default RTL for Persian */
}

.company-detail-page.show {
    opacity: 1;
    visibility: visible;
}

.company-detail-page[dir="ltr"] {
    direction: ltr;
}

.company-detail-page[dir="ltr"] .company-detail-info h1,
.company-detail-page[dir="ltr"] .company-detail-content,
.company-detail-page[dir="ltr"] .company-additional-info {
    text-align: left;
}

.company-detail-header {
    padding: 20px;
    text-align: right;
}

.company-detail-page[dir="ltr"] .company-detail-header {
    text-align: left;
}

.company-detail-close {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 42px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.company-detail-close:hover {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 0, 0, 0.3);
    transform: scale(1.1);
}

.company-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 40px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
}

.company-detail-page[dir="ltr"] .company-detail-container {
    grid-template-columns: 1fr 300px;
}

.company-detail-logo {
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.company-detail-logo img {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
}

.company-detail-info {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: right;
}

.company-detail-info h1 {
    font-size: 42px;
    margin-bottom: 30px;
    color: #333;
    font-weight: 700;
    text-align: right;
    border-bottom: 3px solid #FFD700;
    padding-bottom: 15px;
}

.company-detail-content p {
    font-size: 18px;
    line-height: 2;
    color: #444;
    margin-bottom: 30px;
    text-align: justify;
}

.company-additional-info {
    margin-top: 30px;
}

.company-additional-info h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    margin-top: 30px;
    font-weight: 600;
    text-align: right;
}

.company-additional-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.company-additional-info li {
    background: rgba(255, 215, 0, 0.2);
    padding: 12px 20px;
    margin-bottom: 8px;
    border-radius: 8px;
    border-right: 4px solid #FFD700;
    font-size: 16px;
    color: #333;
}

.company-detail-page[dir="ltr"] .company-additional-info li {
    border-right: none;
    border-left: 4px solid #FFD700;
}

.contact-info {
    background: rgba(255, 215, 0, 0.1);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.contact-info p {
    margin-bottom: 10px !important;
    font-size: 16px !important;
    text-align: right !important;
}

.company-detail-page[dir="ltr"] .contact-info p {
    text-align: left !important;
}

.contact-info span {
    font-weight: 600;
    color: #333;
}

/* Companies Grid */
.companies-grid {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.company-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
    flex: 1;
    min-height: 100px; 
}

.company-row::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
}

.company-row:last-child::after {
    display: none;
}

.company-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    /* padding: clamp(10px, 2vh, 25px); */
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.company-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
}

.company-card:hover {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.company-card:hover .company-logo {
    transform: scale(1.1);
}

.logo-container {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.company-logo {
    *width: clamp(40px, 6vh, 80px); /* Responsive based on viewport height */
    *height: clamp(40px, 6vh, 80px);
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Responsive adjustments for mobile */
@media (max-width: 1024px) {
    .companies-grid {
        justify-content: flex-start;
    }
    
    .company-row {
        min-height: auto;
        flex: none;
    }
    

}

.company-info {
    flex: 1;
}

.company-info h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    color: white;
}

.company-info span {
    font-size: 11px;
    opacity: 0.7;
    font-weight: 400;
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .company-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .company-card:nth-child(2n)::after {
        display: none;
    }
    
    .company-detail-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 30px 30px;
    }
    
    .company-detail-page[dir="ltr"] .company-detail-container {
        grid-template-columns: 1fr;
    }
    
    .company-detail-logo {
        position: static;
        padding: 30px;
    }
    
    .company-detail-info h1 {
        font-size: 36px;
    }
    
    .menu-item {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .company-row {
        grid-template-columns: 1fr;
    }
    
    .company-card::after {
        display: none;
    }
    
    .main-logo h1 {
        font-size: 36px;
    }
    
    .header {
        padding: 20px 0 40px 0;
    }
    
    .company-detail-container {
        padding: 0 20px 20px;
        gap: 20px;
    }
    
    .company-detail-logo {
        padding: 20px;
    }
    
    .company-detail-logo img {
        max-width: 150px;
    }
    
    .company-detail-info {
        padding: 30px 25px;
    }
    
    .company-detail-info h1 {
        font-size: 32px;
    }
    
    .company-detail-content p {
        font-size: 16px;
        line-height: 1.8;
    }
    
    .company-additional-info h3 {
        font-size: 20px;
    }
    
    .company-additional-info li {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .contact-info p {
        font-size: 14px !important;
    }
    
    .menu-item {
        font-size: 20px;
        padding: 12px 25px;
    }
    
    .language-dropdown {
        min-width: 100px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .company-card {
        gap: 15px;
        padding: 15px;
    }
    
    .logo-container {
        width: 40px;
        height: 40px;
    }
    
    .company-info h3 {
        font-size: 14px;
    }
    
    .company-info span {
        font-size: 10px;
    }
    
    .main-logo h1 {
        font-size: 32px;
    }
    
    .company-detail-container {
        padding: 0 15px 15px;
        gap: 15px;
    }
    
    .company-detail-header {
        padding: 15px;
    }
    
    .company-detail-close {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 24px;
    }
    
    .company-detail-logo {
        padding: 15px;
    }
    
    .company-detail-logo img {
        max-width: 120px;
    }
    
    .company-detail-info {
        padding: 20px 15px;
    }
    
    .company-detail-info h1 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .company-detail-content p {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 20px;
    }
    
    .company-additional-info h3 {
        font-size: 18px;
        margin-top: 20px;
        margin-bottom: 10px;
    }
    
    .company-additional-info li {
        font-size: 13px;
        padding: 8px 12px;
        margin-bottom: 6px;
    }
    
    .contact-info {
        padding: 15px;
    }
    
    .contact-info p {
        font-size: 13px !important;
        margin-bottom: 8px !important;
    }
    
    .menu-item {
        font-size: 18px;
        padding: 10px 20px;
    }
    
    .menu-close {
        font-size: 35px;
        top: -50px;
    }
    
    .language-dropdown {
        min-width: 90px;
        right: -15px;
    }
    
    .language-option {
        padding: 6px 12px;
        font-size: 11px;
    }
}