:root {
    /* Asaas Palette */
    --primary: #3b5a85;       /* Asaas Blue */
    --primary-dark: #1a253a;  /* Deep Navy */
    --accent: #5a9bd5;        /* Highlight Blue */
    --bg-light: #f8fbfe;      /* Light Background */
    --text-main: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    --border: #e1e8ed;
    --radius: 8px;
}

/* Base Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--text-main); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* Utilities */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.section { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }

/* Buttons */
.btn { display: inline-block; padding: 12px 30px; border-radius: var(--radius); font-weight: 600; cursor: pointer; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline-dark { border: 2px solid var(--primary-dark); color: var(--primary-dark); }
.btn-outline-dark:hover { background: var(--primary-dark); color: var(--white); }
.btn-nav { background: var(--primary); color: var(--white) !important; padding: 8px 20px; border-radius: 4px; }
.btn-text { color: var(--primary); font-weight: 600; text-decoration: underline; }

/* Navigation */
.navbar { padding: 20px 0; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); z-index: 1000; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.5rem; color: var(--primary-dark); }
.logo-mark { width: 35px; height: 35px; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; border-radius: 6px; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-weight: 500; font-size: 0.95rem; }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero { padding: 100px 0 80px; background: linear-gradient(to bottom, var(--white), var(--bg-light)); }
.hero h1 { font-size: 3.5rem; color: var(--primary-dark); line-height: 1.1; margin-bottom: 20px; }
.highlight { color: var(--accent); }
.hero-sub { font-size: 1.25rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; }

/* Split Section (Architecture Core) */
.split-section { padding: 60px 0; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.split-card { 
    background: var(--white); 
    padding: 50px; 
    border-radius: 12px; 
    border: 1px solid var(--border); 
    transition: 0.3s; 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start;
}
.split-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: var(--accent); }

.card-icon { font-size: 2.5rem; color: var(--accent); margin-bottom: 20px; }
.split-card h2 { font-size: 2rem; color: var(--primary-dark); margin-bottom: 10px; }
.card-desc { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 30px; }

.card-features { margin-bottom: 40px; width: 100%; }
.card-features li { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.card-features i { color: var(--accent); }

/* Pillars Grid (Why Asaas) */
.section-header { margin-bottom: 60px; text-align: center; }
.section-header h2 { font-size: 2.5rem; color: var(--primary-dark); margin-bottom: 15px; }
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.pillar { background: var(--white); padding: 30px; border-radius: var(--radius); border: 1px solid var(--border); text-align: center; }
.pillar i { font-size: 2rem; color: var(--primary); margin-bottom: 20px; }
.pillar h3 { margin-bottom: 10px; color: var(--primary-dark); }

/* Process Timeline */
.process-timeline { display: flex; justify-content: space-between; align-items: flex-start; max-width: 900px; margin: 0 auto; position: relative; }
.step { text-align: center; flex: 1; position: relative; z-index: 2; }
.step-number { width: 50px; height: 50px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 0 auto 20px; font-size: 1.2rem; }
.connector { flex: 1; height: 2px; background: #ddd; margin-top: 25px; }

/* Footer */
footer { background: var(--primary-dark); color: #aab2bd; padding: 60px 0 20px; margin-top: 80px; }
.footer-layout { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 40px; margin-bottom: 20px; }
.footer-brand h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 5px; }
.footer-nav a { margin: 0 15px; color: #aab2bd; }
.footer-nav a:hover { color: var(--white); }

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .split-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; } /* Simplified for code brevity */
    .menu-toggle { display: block; }
    .process-timeline { flex-direction: column; align-items: center; gap: 30px; }
    .connector { display: none; }
    .footer-layout { flex-direction: column; gap: 30px; text-align: center; }
}

/* --- New Services Section Styles --- */

/* Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

/* Card Container */
.service-card {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); /* Soft shadow */
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden; /* Keeps the decoration inside */
}

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

/* Subtle Corner Decoration (Optional - mimics the screenshot faint circle) */
.service-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0,0,0,0.03) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

/* Square Icons */
.icon-box-sq {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 25px;
}

/* Colors based on image */
.blue-bg { background-color: #4A90E2; }
.red-bg { background-color: #E84A5F; }
.blue-text { color: #4A90E2; }
.red-text { color: #E84A5F; }

/* Text Styling */
.service-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-desc {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* List with Green Checkmarks */
.check-list-styled {
    list-style: none;
    margin-bottom: 30px;
}

.check-list-styled li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: #555;
    font-size: 0.95rem;
}

.check-list-styled i {
    color: #2ECC71; /* The specific green from the screenshot */
    margin-top: 4px; /* Align checkmark with text top */
}

/* Links */
.link-arrow {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s ease;
}

.link-arrow:hover {
    gap: 12px; /* Arrow moves slightly on hover */
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
    }
}

/* --- Contact Page Styles --- */

.contact-wrapper {
    background: linear-gradient(135deg, #f8fbfe 0%, #eef6fc 100%);
    min-height: 90vh; /* Takes up full screen minus navbar */
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.contact-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Info takes less space than form */
    overflow: hidden;
    border: 1px solid #e1e8ed;
}

/* Left Side: Info */
.contact-info {
    background: var(--primary-dark);
    padding: 50px 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h2 { font-size: 2rem; margin-bottom: 15px; color: white; }
.contact-info p { color: #aab2bd; margin-bottom: 40px; line-height: 1.6; }

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 500;
}
.info-item i { color: var(--accent); }

/* Right Side: Form */
.contact-form-container {
    padding: 50px 40px;
}

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.9rem;
}

/* Input Styling with Icons */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: var(--accent);
    z-index: 1;
}

.contact-form-container input,
.contact-form-container select,
.contact-form-container textarea {
    width: 100%;
    padding: 12px 15px 12px 45px; /* Extra padding-left for icon */
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: 0.3s;
    background: #f9f9f9;
}

/* Special padding for textarea (no icon usually) */
.contact-form-container textarea { padding: 15px; }

/* Focus States */
.contact-form-container input:focus,
.contact-form-container select:focus,
.contact-form-container textarea:focus {
    border-color: var(--accent);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(90, 155, 213, 0.2);
}

/* Phone Group (Side by Side) */
.phone-group {
    display: flex;
    gap: 10px;
}

.country-select {
    width: auto;
    min-width: 100px;
    padding-left: 15px !important; /* No icon in select */
    appearance: none; /* Removes default browser arrow */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 10px auto;
}

.btn-block {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-card {
        grid-template-columns: 1fr;
    }
    .contact-info {
        padding: 30px;
        text-align: center;
    }
    .info-item {
        justify-content: center;
    }
}

/* --- New Footer Styles (Screenshot Match) --- */

.footer-dark {
    background-color: #151b26; /* Dark Navy/Black from image */
    color: #a0aec0;
    padding: 80px 0 30px;
    font-size: 0.95rem;
    margin-top: 80px;
}

/* Grid Layout */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr; /* Brand col is wider */
    gap: 40px;
    margin-bottom: 50px;
}

/* Brand Column */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
}
/* Reusing logo mark but slightly darker bg for footer context if needed */
.footer-logo .logo-mark { 
    background: #3b5a85; 
}

.footer-desc {
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 300px;
}

/* Social Icons (Circles) */
.social-links {
    display: flex;
    gap: 12px;
}
.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: 0.3s;
}
.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* Headings */
.footer-widget h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 700;
}

/* Link Lists */
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #a0aec0; transition: 0.2s; }
.footer-links a:hover { color: #fff; padding-left: 5px; }

/* Contact List (Icons + Text) */
.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    color: #a0aec0;
}
.contact-list i {
    color: var(--accent);
    margin-top: 4px;
}
.contact-list a:hover { color: #fff; }

/* Bottom Bar */
.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.legal-links {
    display: flex;
    gap: 25px;
}
.legal-links a { color: #a0aec0; font-size: 0.9rem; }
.legal-links a:hover { color: #fff; text-decoration: underline; }

/* Mobile Responsive */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns on tablet */
    }
}
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
        text-align: center;
    }
    .footer-logo, .social-links, .contact-list li {
        justify-content: center; /* Center align items */
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* --- New Process Timeline Styles --- */

.timeline-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

/* The Vertical Center Line */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e1e8ed;
    transform: translateX(-50%);
    z-index: 0;
}

/* Row Layout */
.timeline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

/* Content Widths (45% Text | 10% Badge | 45% Card) */
.timeline-content {
    width: 45%;
}

/* Text Styling */
.text-content h3 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-weight: 700;
}
.text-content p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.text-right { text-align: right; padding-right: 30px; }
.text-left { text-align: left; padding-left: 30px; }

/* The Number Badge (01, 02, 03) */
.timeline-badge {
    width: 60px;
    height: 60px;
    border-radius: 16px; /* Rounded Square */
    color: white;
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    z-index: 2;
    position: relative;
}

/* Gradients matching the image */
.gradient-1 { background: linear-gradient(135deg, #b76c9b 0%, #834d9b 100%); } /* Purple/Pink */
.gradient-2 { background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.1); } /* Lime Green */
.gradient-3 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); } /* Teal/Green */

/* The White Cards */
.process-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
}

.process-card h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-dark);
}
.process-card p {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.5;
    margin: 0;
}

/* Card Icons */
.card-icon { font-size: 1.5rem; margin-top: 3px; }
.blue-icon { color: #4A90E2; }
.yellow-icon { color: #F5A623; }
.green-icon { color: #2ECC71; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .timeline-line {
        left: 30px; /* Move line to left side */
    }
    
    .timeline-row {
        flex-direction: column; /* Stack items vertically */
        align-items: flex-start;
        margin-bottom: 50px;
        padding-left: 80px; /* Space for the line/badge */
        position: relative;
    }

    .reverse-layout {
        flex-direction: column-reverse; /* Fix ordering for middle item */
    }
    
    .timeline-content {
        width: 100%;
        text-align: left;
        padding: 0;
        margin-bottom: 20px;
    }
    
    .timeline-badge {
        position: absolute;
        left: 0;
        top: 0;
    }

    /* Override specific text alignments */
    .text-right, .text-left { text-align: left; padding: 0; }
}

/* --- REFINED HERO SECTION (Big Image Style) --- */

.hero-split-section {
    /* This makes the section tall enough to look professional */
    min-height: 85vh; 
    padding: 120px 0 80px; 
    display: flex;
    align-items: center;
    background: #fff;
    position: relative;
    overflow: hidden; 
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% Text, 50% Image */
    gap: 60px;
    align-items: center;
}

/* --- LEFT SIDE: TEXT --- */
.hero-text {
    max-width: 550px;
    z-index: 2; 
    position: relative;
}

.hero-text h1 {
    font-size: 3.5rem; 
    line-height: 1.1;
    margin-bottom: 25px;
    color: #2c3e50;
    font-weight: 800;
}

.highlight-blue {
    color: #4A90E2; 
}

.hero-sub {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 35px;
    line-height: 1.6;
}

/* --- BUTTONS --- */
.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-secondary {
    background: #eef2f7;
    color: #4A90E2;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}
.btn-secondary:hover {
    background: #dbe4ef;
}

/* --- RIGHT SIDE: IMAGE & SHAPE --- */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* The Background Blob */
.hero-bg-shape {
    position: absolute;
    width: 130%; 
    height: 120%; 
    background: #f0f7ff; /* Soft Blue */
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; /* Organic shape */
    z-index: 0;
    right: -15%; 
    animation: morph 8s ease-in-out infinite; 
}

/* The Main Image */
.main-hero-img {
    width: 100%; 
    max-width: 600px; 
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15); /* Stronger shadow */
    position: relative;
    z-index: 1; 
    transform: perspective(1000px) rotateY(-5deg); /* 3D Tilt */
    transition: transform 0.3s ease;
}

.hero-image-wrapper:hover .main-hero-img {
    transform: perspective(1000px) rotateY(0deg); /* Flatten on hover */
}

/* --- STATS ROW --- */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.stat-item h3 {
    font-size: 1.5rem;
    color: #4A90E2;
    margin-bottom: 0;
    font-weight: 800;
}

.stat-item span {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: #ddd;
}

/* --- FLOATING BADGE --- */
.floating-badge {
    position: absolute;
    bottom: 40px;
    left: -30px;
    background: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}

.badge-icon {
    width: 40px;
    height: 40px;
    background: #4A90E2; /* Blue to match theme */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-text strong { color: #2c3e50; font-size: 0.95rem; }
.badge-text span { color: #888; font-size: 0.8rem; }

/* --- ANIMATIONS --- */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes morph {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 900px) {
    .hero-split-section { padding-top: 100px; min-height: auto; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-text { margin: 0 auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    
    .hero-bg-shape { width: 100%; height: 100%; right: 0; }
    
    .floating-badge { 
        left: 50%; 
        transform: translateX(-50%); 
        bottom: -20px; 
        width: max-content; 
        animation: none; 
    }
}

/* --- Logo Image Styles --- */

/* Navbar Logo Size */
.logo-img {
    height: 40px; /* Standard navbar height */
    width: auto;  /* Maintains aspect ratio */
    display: block;
}

/* Footer Logo Size (can be slightly larger) */
.footer-logo .logo-img {
    height: 50px; 
    filter: brightness(0) invert(1); /* Optional: Makes logo white for dark footer if it's a black logo */
}

/* If your logo is ALREADY white text/icon, remove the 'filter' line above. */

/* --- Why Asaas Grid Styles --- */

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive Grid */
    gap: 30px;
}

/* The Feature Card */
.feature-box {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid #edf2f7;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Hover Effect: Lift up and shadow */
.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: transparent;
}

/* Icon Circle Styling */
.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Typography inside card */
.feature-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.feature-box p {
    color: #718096;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Gradient Colors for Icons */
.gradient-blue   { background: linear-gradient(135deg, #4A90E2 0%, #0072ff 100%); }
.gradient-purple { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.gradient-green  { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.gradient-orange { background: linear-gradient(135deg, #f83600 0%, #f9d423 100%); }
.gradient-red    { background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%); }
.gradient-teal   { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }

/* Mobile Adjustment */
@media (max-width: 768px) {
    .why-grid {
        grid-template-columns: 1fr; /* Stack vertically on phone */
        gap: 20px;
    }
    .feature-box {
        padding: 30px;
        text-align: center; /* Center text on mobile */
    }
    .icon-circle {
        margin: 0 auto 20px auto; /* Center icon */
    }
}

/* --- About Page Specific Styles --- */

/* 1. Identity Hero */
.about-hero {
    padding: 120px 0 80px;
    text-align: center;
    background: #fff;
}

.about-hero h1 {
    font-size: 3.5rem;
    color: var(--primary-dark);
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.about-hero .hero-sub {
    font-size: 1.25rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* 2. Philosophy Section */
.philosophy-section {
    background: #f8fbfe;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.section-label {
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.phil-content h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--primary-dark);
}

.phil-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 20px;
}

/* Philosophy Quote Card */
.phil-card {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    position: relative;
}

.phil-card i {
    font-size: 2rem;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.quote-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
    font-style: italic;
    line-height: 1.6;
}

/* 3. Values Grid */
.values-section {
    background: #fff;
}

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

.value-card {
    padding: 30px;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    transition: 0.3s;
}

.value-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.value-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.value-card p {
    font-size: 0.95rem;
    color: #718096;
    line-height: 1.6;
}

/* 4. Process Simple */
.process-simple {
    background: var(--primary-dark);
    color: #fff;
    padding: 80px 0;
}

.process-box {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.process-intro {
    font-size: 1.2rem;
    color: #a0aec0;
    margin-bottom: 60px;
}

.steps-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.step-item {
    text-align: center;
    flex: 1;
    z-index: 2;
}

.step-num {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255,255,255,0.1);
    margin-bottom: 10px;
}

.step-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
}
.step-item p {
    color: #a0aec0;
    font-size: 0.9rem;
}

.step-line {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin-top: 30px; /* Align with middle of numbers roughly */
}

/* 5. Human Section */
.human-section {
    background: #fff;
    padding: 100px 0;
}
.human-section h2 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}
.human-section p {
    max-width: 700px;
    margin: 0 auto 20px;
    color: #4a5568;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* CTA Banner (Reusable) */
.cta-banner {
    background: linear-gradient(135deg, #4A90E2 0%, #0072ff 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
}
.cta-banner h2 { font-size: 2.5rem; margin-bottom: 15px; color: white; }
.cta-banner p { font-size: 1.2rem; margin-bottom: 30px; color: rgba(255,255,255,0.9); }
.cta-banner .btn { background: white; color: var(--accent); border: none; }
.cta-banner .btn:hover { background: #f0f0f0; transform: translateY(-2px); }

/* About Page Responsive */
@media (max-width: 768px) {
    .about-hero h1 { font-size: 2.5rem; }
    .philosophy-grid { grid-template-columns: 1fr; }
    .steps-row { flex-direction: column; align-items: center; gap: 30px; }
    .step-line { display: none; }
}

/* --- Personal Page Specific Styles --- */

/* Hero Adjustments */
.personal-hero {
    padding: 100px 0 60px;
    background: #fff;
}
.badge-pill {
    background: #eef6fc;
    color: var(--primary-dark);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: inline-block;
}
.justify-center {
    justify-content: center;
}

/* Audience Strip */
.audience-strip {
    background: var(--primary-dark);
    color: #fff;
    padding: 20px 0;
    text-align: center;
}
.audience-strip p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #aab2bd;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.audience-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    font-weight: 600;
    font-size: 1.1rem;
}
.audience-list i { margin-right: 8px; color: var(--accent); }
.audience-list .divider { color: #444; }

/* Features Grid 3-col */
.features-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}
.feature-card-simple {
    text-align: left;
    padding: 30px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
}
.f-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 20px;
}
.feature-card-simple h3 { margin-bottom: 10px; color: var(--primary-dark); }
.feature-card-simple p { font-size: 0.95rem; color: #666; line-height: 1.6; }

/* Portfolio Showcase */
.portfolio-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.portfolio-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Browser Mockup CSS */
.browser-mockup {
    background: #f1f3f5;
    border-bottom: 1px solid #e1e1e1;
}
.browser-header {
    padding: 10px 15px;
    display: flex;
    gap: 6px;
    background: #e9ecef;
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: block; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.browser-mockup img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3; /* Keeps images consistent size */
    object-fit: cover;
}

.portfolio-info {
    padding: 25px;
    text-align: left;
}
.p-category {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.p-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 10px;
}

/* Split Content (Philosophy + Process) */
.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.process-block {
    background: #f8fbfe;
    padding: 40px;
    border-radius: 16px;
}
.mini-timeline {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.mini-step {
    display: flex;
    align-items: center;
    gap: 15px;
}
.step-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Dark CTA Section */
.cta-section-dark {
    background: #151b26;
    color: #fff;
    padding: 80px 0;
}
.cta-section-dark h2 { color: #fff; margin-bottom: 15px; }
.cta-section-dark p { color: #a0aec0; margin-bottom: 30px; }
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.trust-badges span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e0;
    font-size: 0.95rem;
}
.trust-badges i { color: #2ECC71; }
.btn-lg {
    padding: 18px 45px;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 900px) {
    .split-content { grid-template-columns: 1fr; }
    .features-grid-3 { grid-template-columns: 1fr; }
    .audience-list { flex-direction: column; gap: 10px; }
    .divider { display: none; }
}

/* --- Business Page Specific Styles --- */

/* Hero Adjustments */
.business-hero {
    padding: 100px 0 60px;
    background: #fff;
    /* Optional: Subtle background pattern for business feel */
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Darker Badge for Business */
.badge-dark {
    background: #2d3748;
    color: #fff;
}

/* Strip Darker Theme */
.strip-dark {
    background: #2d3748; /* Dark Grey/Navy */
    color: #fff;
}
.strip-dark p {
    color: #cbd5e0;
}
.strip-dark .audience-list .divider {
    color: #4a5568;
}

/* Reusing Feature Grid, Portfolio, Process from Personal Page */
/* No new CSS needed for those if you pasted the Personal Page CSS previously. */
/* The classes .features-grid-3, .portfolio-item, .browser-mockup, .split-content */
/* are all shared to maintain system consistency. */

/* Specific Override for Business Process Icon */
.business-hero h1 {
    color: #1a202c; /* Slightly darker black for authority */
}

/* Responsive adjustment for badges if not already there */
@media (max-width: 600px) {
    .trust-badges {
        flex-direction: column;
        gap: 10px;
    }
}

/* --- Hero Updates --- */

/* The small pill above the H1 */
.badge-soft-blue {
    display: inline-block;
    background-color: #eef6fc;
    color: #4A90E2;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Bold text inside the paragraph */
.hero-sub strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Update Floating Badge Icon Color (Optional) */
.badge-icon {
    background: #4A90E2; /* Changed to Blue to match the theme better */
}

/* --- FOUNDER / WHO'S BEHIND SECTION --- */

.founder-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr; /* Image is slightly narrower than text */
    gap: 80px;
    align-items: center;
}

/* Image Styling */
.founder-image-wrapper {
    position: relative;
}

.founder-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
    object-fit: cover;
}

/* Decorative border behind image */
.img-accent-border {
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid #4A90E2;
    border-radius: 12px;
    z-index: 1;
}

/* Text Styling */
.founder-text h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 800;
}

.role-title {
    color: #4A90E2;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-title .divider {
    color: #ccc;
    margin: 0 10px;
}

.bio-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* Motivation Quote Block */
.motivation-block {
    background: #f8fbfe;
    border-left: 4px solid #4A90E2;
    padding: 25px;
    margin-top: 30px;
    border-radius: 0 8px 8px 0;
}

.motivation-block h5 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
}

.motivation-block p {
    font-style: italic;
    color: #444;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .founder-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .founder-image-wrapper {
        max-width: 400px;
        margin: 0 auto; /* Center image on mobile */
    }

    .img-accent-border {
        left: -10px;
        top: 10px;
    }
}

/* --- ARABIC LANGUAGE SUPPORT --- */

/* 1. Import Arabic Font (Cairo) */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700;900&display=swap');

/* 2. Arabic Global Styles */
html[lang="ar"] body {
    font-family: 'Cairo', sans-serif; /* Override font */
    direction: rtl; /* Flip layout to Right-to-Left */
    text-align: right;
}

/* 3. Flip Margins and Paddings for Arabic */
html[lang="ar"] .nav-links {
    margin-right: auto;
    margin-left: 0;
}

html[lang="ar"] .nav-links li {
    margin-left: 20px;
    margin-right: 0;
}

html[lang="ar"] .hero-text {
    text-align: right;
}

html[lang="ar"] .features-grid-3, 
html[lang="ar"] .hero-grid,
html[lang="ar"] .founder-grid {
    direction: rtl; /* Ensure grids flow right-to-left */
}

/* Flip Icons and specialized elements */
html[lang="ar"] .step-icon,
html[lang="ar"] .f-icon {
    margin-left: 15px;
    margin-right: 0;
}

html[lang="ar"] .motivation-block {
    border-left: none;
    border-right: 4px solid #4A90E2; /* Flip border */
    border-radius: 8px 0 0 8px;
}

/* --- Fix Footer Alignment on Mobile --- */
@media (max-width: 768px) {
    .footer-widget {
        text-align: center !important; /* Force text to center */
        align-items: center; /* Center items if using flexbox */
        display: flex;
        flex-direction: column;
    }

    .footer-desc {
        text-align: center; /* Ensure the text inside reads from the center */
        margin-left: auto;  /* Push from left */
        margin-right: auto; /* Push from right (centers the block) */
        max-width: 90%;     /* Prevent it from hitting the absolute edges */
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
    
    .social-links {
        justify-content: center; /* Center the social icons */
    }
    
    /* Ensure contact items (icons + text) are centered */
    .contact-list li {
        justify-content: center;
    }
}