* {
    box-sizing: border-box;
}

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

:root {
    --bg-color: #f5f5f7;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --card-bg: rgba(255, 255, 255, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --primary-accent: #0071e3;
    --btn-bg: rgba(0, 0, 0, 0.05);
    --btn-hover: rgba(0, 0, 0, 0.08);
    --border-radius-lg: 28px;
    --border-radius-md: 20px;
    --border-radius-sm: 12px;
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
    --bg-color: #000000;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --card-bg: rgba(28, 28, 30, 0.4);
    --glass-bg: rgba(28, 28, 30, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --primary-accent: #2997ff;
    --btn-bg: rgba(255, 255, 255, 0.1);
    --btn-hover: rgba(255, 255, 255, 0.15);
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.4);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.4s ease, color 0.4s ease;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

a {
    color: var(--primary-accent);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transition: background 0.4s ease, border-color 0.4s ease;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    text-decoration: none !important;
    transition: opacity 0.3s ease;
}

.brand-logo:hover {
    opacity: 0.9;
}

.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand-logo:hover .logo-icon {
    transform: rotate(5deg) scale(1.1);
}

.nav-contact a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    margin-right: 1.5rem;
}

.theme-switch {
    background: var(--btn-bg);
    border: none;
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.theme-switch:hover {
    background: var(--btn-hover);
}

/* Hero / Banner */
.hero-section {
    padding: clamp(60px, 15vh, 100px) 0 60px;
    text-align: center;
    overflow-x: hidden;
    width: 100%;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    background: linear-gradient(
        to right, 
        var(--text-primary) 20%, 
        var(--primary-accent) 40%, 
        #ff3b30 60%, 
        var(--text-primary) 80%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientWave 5s linear infinite, fadeInUp 1s ease-out;
}

@keyframes gradientWave {
    to { background-position: 200% center; }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Slider */
.banner-slider {
    overflow: hidden;
    position: relative;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: 3rem;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.slide h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.store-badges {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.store-badge {
    background: var(--text-primary);
    color: var(--bg-color);
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

/* Cards Section */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 1;
}

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

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-accent);
    margin-bottom: 1.5rem;
}

.service-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* About Section */
.about-section {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .about-section {
        padding: 60px 0;
        margin-bottom: 40px;
    }
}

.about-content {
    padding: 60px 40px;
    border-radius: var(--border-radius-lg);
    max-width: 900px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin: 0;
}

/* Founder Profile */
.about-founder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.founder-image-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    padding: 5px;
    background: linear-gradient(135deg, var(--primary-accent), #ff3b30);
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 113, 227, 0.3);
}

.founder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-color);
}

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

.founder-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.founder-title {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px !important;
}

.fb-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background: linear-gradient(135deg, #1877F2, #0C63D1);
    color: white !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 10px 20px rgba(24, 119, 242, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fb-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 25px rgba(24, 119, 242, 0.3);
    opacity: 1;
}

@media (min-width: 768px) {
    .about-founder {
        flex-direction: row;
        text-align: left;
        gap: 30px;
        justify-content: center;
    }
    
    .founder-info {
        text-align: left;
    }
}

/* Footer Section */
.footer-section {
    padding: 80px 0 40px;
    margin-top: 100px;
    border-top: 1px solid var(--glass-border);
}

.footer-desc {
    color: var(--text-secondary);
    margin: 20px 0;
    line-height: 1.6;
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-accent);
}

.footer-links, .footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li, .footer-contact-info li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-accent);
}

.footer-contact-info li {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--btn-bg);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-accent);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* WhatsApp Widget */
.wa-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.wa-button {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    animation: pulse 2s infinite;
    position: relative;
    z-index: 2;
}

.wa-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background: #4cd964;
    border: 3px solid var(--bg-color);
    border-radius: 50%;
}

.wa-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.wa-chat-window.show {
    display: flex;
}

.wa-header {
    background: var(--btn-bg);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.wa-avatar {
    width: 40px;
    height: 40px;
    background: var(--text-primary);
    color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.8rem;
}

.wa-title {
    flex: 1;
}

.wa-title h5 {
    margin: 0;
    font-size: 1rem;
}

.wa-title span {
    font-size: 0.8rem;
    color: #4cd964;
}

.wa-close {
    cursor: pointer;
    color: var(--text-secondary);
}

.wa-body {
    padding: 20px;
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wa-msg {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.wa-msg.received {
    background: var(--btn-bg);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.wa-msg.sent {
    background: var(--primary-accent);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.wa-input-area {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--glass-border);
}

.wa-input {
    flex: 1;
    border: 1px solid var(--glass-border);
    background: var(--btn-bg);
    color: var(--text-primary);
    border-radius: 20px;
    padding: 10px 15px;
    outline: none;
    font-size: 0.9rem;
}

.wa-send {
    background: var(--primary-accent);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s;
}

.wa-send:hover {
    opacity: 0.8;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsiveness */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-contact {
        display: none !important;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .wa-chat-window {
        position: fixed;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        height: 100dvh;
        border-radius: 0;
        z-index: 2000;
        animation: slideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    }

    @keyframes slideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    
    .wa-body {
        flex: 1;
        max-height: none;
    }
}
