/* assets/css/style.css */
:root {
    --primary-color: #4a5bdc; /* Button blue */
    --primary-hover: #3a4bb0;
    --bg-dark: #1f2241; /* Dark blue background */
    --text-dark: #2d3748;
    --text-light: #ffffff;
    --border-color: #e2e8f0;
    --font-family: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    color: var(--bg-dark);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-speed), transform 0.2s;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    transition: background-color var(--transition-speed);
}
.btn-secondary:hover {
    background-color: #2b305c;
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--bg-dark);
    padding: 10px 22px;
    border: 2px solid var(--bg-dark);
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    transition: all var(--transition-speed);
}
.btn-outline-dark:hover {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    padding: 10px 22px;
    border: 2px solid var(--text-light);
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    transition: all var(--transition-speed);
}
.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--bg-dark);
}

/* Navbar */
.navbar {
    background-color: #ffffff;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-dark);
    letter-spacing: 1px;
}
.logo-text .highlight {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nav-links a:hover {
    color: var(--primary-color);
}
.nav-links .btn-contact {
    border: 2px solid var(--bg-dark);
    padding: 8px 16px;
    border-radius: 4px;
}
.nav-links .btn-contact:hover {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 200;
}
.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--bg-dark);
    border-radius: 3px;
    transition: all var(--transition-speed);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
}
.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}
.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}
.mobile-nav-links {
    list-style: none;
    text-align: center;
}
.mobile-nav-links li {
    margin: 20px 0;
}
.mobile-nav-links a {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    background-color: #f8f9fa;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text p {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 2rem;
}

.search-box {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-speed);
}
.input-group input:focus {
    border-color: var(--primary-color);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Abstract Hero Illustration */
.hero-image {
    position: relative;
    width: 100%;
    height: 400px;
}
.illustration-placeholder {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="400" height="400" xmlns="http://www.w3.org/2000/svg"><circle cx="200" cy="200" r="150" fill="%23e2e8f0" opacity="0.5"/><rect x="150" y="100" width="100" height="150" fill="%23ffffff" stroke="%232d3748" stroke-width="2"/><line x1="160" y1="120" x2="240" y2="120" stroke="%234a5bdc" stroke-width="4"/><line x1="160" y1="140" x2="220" y2="140" stroke="%232d3748" stroke-width="2"/><line x1="160" y1="160" x2="240" y2="160" stroke="%232d3748" stroke-width="2"/></svg>') no-repeat center right;
    background-size: contain;
}

/* Spinner */
.spinner {
    border: 4px solid rgba(0,0,0,0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: var(--primary-color);
    animation: spin 1s linear infinite;
    margin: 10px auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Error Message */
.error-msg {
    color: #e53e3e;
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Results Section */
.results-section {
    padding: 3rem 0;
    background-color: #ffffff;
}
.section-title {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--bg-dark);
}
.results-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.result-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
}
.result-item:last-child {
    border-bottom: none;
}
.result-label {
    font-weight: 600;
    color: #4a5568;
}
.result-value {
    font-weight: 500;
    color: var(--bg-dark);
}
.source-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.source-cache { background-color: #c6f6d5; color: #22543d; }
.source-api { background-color: #ebf4ff; color: #2b6cb0; }

/* Latest Posts */
.latest-posts {
    padding: 5rem 0;
    background-color: #ffffff;
}
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.post-card {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    height: 300px;
    display: flex;
    align-items: flex-end;
    color: var(--text-light);
}
.post-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}
.post-card:hover .post-bg {
    transform: scale(1.05);
}
.post-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(31, 34, 65, 0.9) 0%, rgba(31, 34, 65, 0.2) 100%);
}
.post-content {
    position: relative;
    z-index: 10;
    padding: 2rem;
}
.post-content h3 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.view-article {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--text-light);
    padding-bottom: 3px;
}

/* Page Header (About/Blog) */
.page-header {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0;
}
.page-header h1 {
    color: var(--text-light);
}

/* Content Section */
.content-section {
    padding: 4rem 0;
    background-color: #ffffff;
}
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.content-text p {
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding-top: 4rem;
}
.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-left h2 {
    color: var(--text-light);
    margin-bottom: 1rem;
}
.footer-left p {
    margin-bottom: 2rem;
    opacity: 0.8;
}
.company-info p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}
.phone-number {
    margin-top: 1.5rem;
    font-weight: 600;
    opacity: 1 !important;
}
.social-icons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}
.social-icons a {
    display: inline-block;
    width: 30px; height: 30px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
}
.footer-bottom {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    opacity: 0.7;
}
.footer-bottom-links a {
    margin-left: 1.5rem;
}

/* Media Queries */
@media (max-width: 992px) {
    .hero-container, .content-wrapper {
        grid-template-columns: 1fr;
    }
    .hero-text {
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .input-group {
        flex-direction: column;
    }
    .hero-image {
        display: none; /* Hide on mobile to keep it clean */
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .result-label {
        font-size: 0.9rem;
        opacity: 0.8;
    }
    .result-value {
        width: 100%;
        word-break: break-word;
        text-align: left;
    }
}

/* Floating WhatsApp Button */
.floating-wp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s;
}
.floating-wp-btn:hover {
    transform: scale(1.1);
}
