/* Amnil Technologies Brochure Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #E31E24;
    --secondary-grey: #6B7280;
    --dark-grey: #1F2937;
    --light-grey: #F3F4F6;
    --white: #FFFFFF;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-grey);
    background: var(--white);
}

.page {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    background: var(--white);
    position: relative;
    overflow: hidden;
    page-break-after: always;
    display: flex;
    flex-direction: column;
}

@media print {
    .page {
        margin: 0;
        page-break-after: always;
    }
    body {
        margin: 0;
    }
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-red) 0%, #C41E24 100%);
    color: var(--white);
    padding: 40px 50px;
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--white);
    clip-path: ellipse(50% 100% at 50% 100%);
}

.logo {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
}

.tagline {
    font-size: 14px;
    opacity: 0.9;
    font-style: italic;
}

.iso-badge {
    position: absolute;
    top: 40px;
    right: 50px;
    background: var(--white);
    color: var(--primary-red);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

/* Content Styles */
.content {
    padding: 50px;
    flex: 1;
    padding-bottom: 120px;
}

h1 {
    color: var(--primary-red);
    font-size: 36px;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary-red);
}

h2 {
    color: var(--dark-grey);
    font-size: 24px;
    margin: 30px 0 15px 0;
}

h3 {
    color: var(--primary-red);
    font-size: 18px;
    margin: 20px 0 10px 0;
}

p {
    margin-bottom: 15px;
    text-align: justify;
}

/* Grid Layouts */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.three-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

/* Card Styles */
.card {
    background: var(--light-grey);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-red);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-top: 0;
}

/* List Styles */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.tech-badge {
    background: var(--primary-red);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
}

.client-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.client-badge {
    background: var(--white);
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.product-item {
    background: var(--light-grey);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-red);
}

.product-item h4 {
    color: var(--primary-red);
    font-size: 16px;
    margin-bottom: 8px;
}

/* Footer Styles */
.footer {
    background: var(--dark-grey);
    color: var(--white);
    padding: 30px 50px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-number {
    font-size: 14px;
    opacity: 0.8;
}

/* Decorative Elements */
.circle-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.circle-red {
    background: var(--primary-red);
    width: 200px;
    height: 200px;
    top: -100px;
    right: -100px;
}

.circle-grey {
    background: var(--secondary-grey);
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: -75px;
}

/* Contact Page Specific */
.contact-info {
    background: linear-gradient(135deg, var(--primary-red) 0%, #C41E24 100%);
    color: var(--white);
    padding: 40px;
    border-radius: 15px;
    margin: 30px 0;
}

.contact-item {
    margin: 20px 0;
}

.contact-item h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
    font-size: 18px;
}

/* Location Badges */
.location-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.location-badge {
    background: var(--light-grey);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: var(--dark-grey);
}

.highlight-box {
    background: var(--light-grey);
    padding: 30px;
    border-radius: 10px;
    border-top: 4px solid var(--primary-red);
    margin: 20px 0;
}

/* Client Logos Grid */
.client-logos-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.client-logo-box {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.client-logo-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.15);
    border-color: var(--primary-red);
}

.client-logo-box img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.amnil-logo {
    max-height: 40px;
    width: auto;
}

@media print {
    .client-logos-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
    }
    .client-logo-box {
        min-height: 60px;
        padding: 10px;
    }
    .client-logo-box img {
        max-height: 50px;
    }
    .amnil-logo {
        max-height: 35px;
    }
}
