/* MILLSON GLOBAL INC - Enterprise Website Styles */
/* Optimized for AWS S3 + CloudFront deployment */

:root {
    --primary: #1a237e;
    --primary-dark: #0d47a1;
    --accent: #ff9800;
    --accent-hover: #f57c00;
    --text: #333;
    --text-light: #666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --shadow: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.15);
    --radius: 10px;
    --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Language Switcher */
.lang-switcher {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 999;
    background: var(--white);
    border-radius: 30px;
    box-shadow: var(--shadow);
    padding: 5px;
    display: flex;
    gap: 5px;
}

.lang-switcher a {
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
}

.lang-switcher a.active,
.lang-switcher a:hover {
    background: var(--primary);
    color: var(--white);
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

.logo {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 2px;
    text-decoration: none;
    color: var(--white);
}

.logo span { color: var(--accent); }

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

nav a:hover::after { width: 100%; }
nav a:hover { color: var(--accent); }

.cta-btn {
    background: var(--accent);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.cta-btn:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

/* Ad Banner */
.ad-banner {
    background: var(--bg-light);
    padding: 12px 0;
    text-align: center;
    border-bottom: 2px solid #e0e0e0;
    margin-top: 70px;
}

.ad-banner-inner {
    background: linear-gradient(90deg, #e3f2fd, #fff3e0);
    padding: 15px;
    border-radius: 8px;
    border: 1px dashed #90caf9;
    max-width: 900px;
    margin: 0 auto;
}

.ad-label {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.ad-content {
    font-size: 15px;
    color: var(--primary-dark);
    font-weight: 600;
}

.ad-content a {
    color: #e65100;
    text-decoration: underline;
}

/* Hero */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                url('../images/hero-port.jpg');
    background-size: cover;
    background-position: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    position: relative;
}

.hero-content { width: 100%; padding: 40px 0; }

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 17px;
    font-weight: bold;
    transition: var(--transition);
    display: inline-block;
    border: none;
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 15px 40px;
    text-decoration: none;
    border: 2px solid var(--white);
    border-radius: 5px;
    font-size: 17px;
    font-weight: bold;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

/* Section Styles */
section { padding: 80px 0; }

.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Services */
.services { background: var(--bg-light); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-card-content { padding: 25px; }

.service-card h3 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 15px;
}

.service-card .price {
    color: var(--accent);
    font-size: 20px;
    font-weight: bold;
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 34px;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 16px;
    color: #555;
    margin-bottom: 18px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: #e8eaf6;
    border-radius: var(--radius);
}

.stat-number {
    font-size: 34px;
    color: var(--accent);
    font-weight: bold;
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 5px;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
}

/* Products */
.products { background: var(--bg-light); }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 15px;
}

.product-card ul {
    list-style: none;
    text-align: left;
    margin: 20px 0;
}

.product-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: var(--text-light);
    font-size: 14px;
}

.product-card ul li::before {
    content: "✓";
    color: #4caf50;
    font-weight: bold;
    margin-right: 10px;
}

/* Coverage */
.coverage {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.coverage-region {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

.coverage-region h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--accent);
}

.coverage-region ul { list-style: none; }

.coverage-region ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 15px;
}

.coverage-region ul li::before {
    content: "📍";
    margin-right: 10px;
}

/* Ad Section */
.ad-section {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    padding: 40px 0;
    border-top: 3px solid var(--accent);
    border-bottom: 3px solid var(--accent);
}

.ad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.ad-box {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.ad-box h4 {
    color: #e65100;
    margin-bottom: 10px;
    font-size: 18px;
}

.ad-box p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.ad-box .ad-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent);
    font-weight: bold;
    text-decoration: none;
    transition: var(--transition);
}

.ad-box .ad-link:hover { color: var(--accent-hover); }

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent);
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.7;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary);
}

.testimonial-company {
    font-size: 13px;
    color: #999;
}

/* SEO Content */
.seo-content { background: #e8eaf6; padding: 60px 0; }

.seo-content h2 {
    font-size: 30px;
    color: var(--primary);
    margin-bottom: 30px;
    text-align: center;
}

.seo-text { max-width: 900px; margin: 0 auto; }

.seo-text p {
    margin-bottom: 18px;
    font-size: 15px;
    color: #444;
    line-height: 1.8;
}

.seo-text h3 {
    color: var(--primary);
    margin: 25px 0 12px;
    font-size: 20px;
}

.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    justify-content: center;
}

.keyword-tag {
    background: var(--primary);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    transition: var(--transition);
}

.keyword-tag:hover {
    background: var(--accent);
    transform: scale(1.05);
}

/* Contact */
.contact {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h2 {
    font-size: 34px;
    margin-bottom: 30px;
}

.contact-info p {
    font-size: 17px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info .icon { color: var(--accent); font-size: 20px; }

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    color: var(--text);
}

.contact-form h3 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 24px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    color: var(--text);
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,35,126,0.1);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.submit-btn {
    background: var(--accent);
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Thank You Page */
.thank-you {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 40px;
}

.thank-you-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.thank-you-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Footer */
footer {
    background: #0a1929;
    color: #aaa;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 17px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 13px;
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 999;
    animation: pulse 2s infinite;
    font-size: 15px;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,152,0,0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255,152,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,152,0,0); }
}

/* Breadcrumb */
.breadcrumb {
    background: var(--bg-light);
    padding: 15px 0;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 120px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 40px;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Content Page */
.content-page { padding: 60px 0; }

.content-page h2 {
    color: var(--primary);
    margin: 30px 0 15px;
    font-size: 28px;
}

.content-page p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

.content-page ul {
    margin: 15px 0 15px 30px;
    line-height: 1.8;
    color: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content { flex-direction: column; gap: 15px; }

    nav ul {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    nav ul.active { display: flex; }

    .mobile-menu-btn { display: block; }

    .hero-content h1 { font-size: 32px; }
    .hero-content p { font-size: 17px; }

    .about-content,
    .contact-grid { grid-template-columns: 1fr; }

    .hero-btns { flex-direction: column; align-items: center; }

    .form-row { grid-template-columns: 1fr; }

    .lang-switcher {
        top: auto;
        bottom: 80px;
        right: 10px;
    }

    .floating-cta {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 13px;
    }

    section { padding: 50px 0; }

    .section-title { font-size: 28px; }
}

/* Print Styles */
@media print {
    header, .ad-banner, .floating-cta, .lang-switcher { display: none; }
    .hero { min-height: auto; padding: 40px 0; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
