/* 
    Layer3 Consulting - Premium White & Blue Palette (Apple Style)
    Clean, Professional, and Organized
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-white: #ffffff;
    --bg-light: #f5f5f7;
    --accent: #004d73;          /* Premium Deep Blue from palette */
    --accent-hover: #00314d;
    --text-primary: #1d1d1f;    /* Apple standard dark text */
    --text-secondary: #86868b;
    --border: rgba(0, 0, 0, 0.08);
    --radius: 20px;
    --container: 1000px;
    --transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-white);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.5;
    font-weight: 400;
    overflow-x: hidden;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 52px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 9999;
    border-bottom: 1px solid var(--border);
    transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1);
}

header.header-hidden {
    transform: translateY(-100%);
}

header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    height: 100%;
}

.lang-switcher {
    display: flex;
    gap: 15px;
    align-items: center;
}

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

nav ul li a {
    font-size: 0.8rem;
    color: var(--text-primary);
    opacity: 0.7;
    text-decoration: none;
    transition: opacity 0.3s;
    font-weight: 500;
}

nav ul li a:hover {
    opacity: 1;
    color: var(--accent);
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 120px;
    text-align: center;
    background: radial-gradient(circle at top, #f0f7ff 0%, #ffffff 70%);
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
}

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

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 980px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 77, 115, 0.2);
}

.btn-link {
    color: var(--accent);
    font-weight: 600;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Vendors - Clean Highlighted Row */
.vendors-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--bg-white);
}

.vendors-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.4em;
    color: var(--accent);
    margin-bottom: 50px;
    text-transform: uppercase;
}

.vendors-row {
    display: flex;
    align-items: center;
    gap: 50px; /* Restored a slightly larger gap for better breathing room */
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 40px 20px;
    background: transparent;
    border: none;
    -ms-overflow-style: none;
    scrollbar-width: none;
    width: 100%;
}

/* Magic trick to center flex items without clipping overflow */
.vendors-row::before,
.vendors-row::after {
    content: '';
    margin: auto;
}

.vendors-row::-webkit-scrollbar {
    display: none;
}

.vendor-logo {
    max-height: 45px; /* Slightly smaller to fit better side-by-side */
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 1;
    transition: var(--transition);
    transform-origin: center center;
}

.vendor-logo:hover {
    transform: scale(1.15);
}

/* Removed media query as the auto-margin trick handles all screen sizes */

/* Services Grid */
section {
    padding: 100px 0;
}

.section-light {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.apple-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.card {
    background-color: var(--bg-white);
    padding: 50px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    border-color: var(--accent);
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* About Section - Organized */
.about-content {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.about-text-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-text-grid p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-primary);
    opacity: 0.8;
}

.about-highlight {
    font-weight: 600 !important;
    font-size: 1.3rem !important;
    color: var(--accent) !important;
    opacity: 1 !important;
    border-top: 2px solid var(--accent);
    padding-top: 30px;
    margin-top: 10px;
}

/* Contact Form */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

input, textarea {
    width: 100%;
    padding: 18px;
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 77, 115, 0.1);
}

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

/* Footer */
footer {
    padding: 80px 0;
    background-color: var(--bg-light);
    text-align: center;
}

.footer-rights {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Animations */
[data-aos] {
    opacity: 0;
    transition: all 1s cubic-bezier(0.2, 0, 0.2, 1);
}

[data-aos="fade-up"] { transform: translateY(40px); }
[data-aos="fade-down"] { transform: translateY(-40px); }
[data-aos="scale-in"] { transform: scale(0.95); }

[data-aos].active {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important;
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    z-index: 10000;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Comprehensive Mobile Responsiveness */
@media (max-width: 900px) {
    .hero h1 { font-size: 3.5rem; }
    .hero p { font-size: 1.2rem; }
}

@media (max-width: 768px) {
    /* Header & Nav */
    header { height: auto; padding: 15px 0; }
    header .container { flex-direction: column; gap: 15px; justify-content: center; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .lang-switcher { justify-content: center; }
    
    /* Hero Section */
    .hero { padding-top: 140px; padding-bottom: 80px; }
    .hero h1 { font-size: 2.5rem; }
    .hero-btns { flex-direction: column; padding: 0 20px; }
    .btn { width: 100%; }
    
    /* Vendors */
    .vendors-section { padding: 40px 0; }
    .vendors-row { gap: 30px; padding: 20px 15px; }
    .vendor-logo { max-height: 35px; }
    
    /* Services & Cards */
    section { padding: 60px 0; }
    .section-header h2 { font-size: 2.2rem; }
    .apple-grid { grid-template-columns: 1fr; gap: 20px; }
    .card { padding: 30px 20px; }
    .card h3 { font-size: 1.5rem; }
    
    /* About */
    .about-text-grid p { font-size: 1.05rem; }
    .about-highlight { font-size: 1.15rem !important; }
    
    /* Form */
    .form-row { grid-template-columns: 1fr; gap: 0; }
    
    /* Footer & Floating Button */
    footer { padding: 40px 0; }
    .whatsapp-float { width: 50px; height: 50px; font-size: 26px; bottom: 20px; right: 20px; }
}
