:root {
    --primary-color: #0A1F44; /* Deep Blue */
    --accent-color: #3A7BFF; /* Light Blue */
    --white: #FFFFFF;
    --text-color: #E2E8F0; /* Light grayish-blue for readable text on dark */
    --bg-dark: #051024;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    --font-primary: 'Poppins', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --transition-fast: 0.3s ease;
    --transition-slow: 0.5s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--primary-color);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.section {
    padding: 100px 0;
}

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

.mb-5 { margin-bottom: 3rem; }
.mt-5 { margin-top: 3rem; }
.full-width { width: 100%; display: block; text-align: center; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto;
    border-radius: 2px;
}

.highlight {
    color: var(--accent-color);
}

/* Glassmorphism utility */
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

.btn-primary:hover {
    background-color: #2764df;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

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

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    transform: translateY(-2px);
}

/* Glow Effect */
.glow {
    box-shadow: 0 0 15px rgba(58, 123, 255, 0.6);
}

.glow:hover {
    box-shadow: 0 0 25px rgba(58, 123, 255, 0.8);
}

/* Hover Scale */
.hover-scale {
    transition: transform var(--transition-fast);
}

.hover-scale:hover {
    transform: translateY(-10px);
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all var(--transition-fast);
}

.navbar.scrolled {
    background: rgba(10, 31, 68, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--white);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

.nav-btn {
    background-color: var(--glass-bg);
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.nav-btn:hover {
    background-color: var(--accent-color);
    color: var(--white) !important;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-color) 100%);
}

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(5, 16, 36, 0.7) 100%);
    z-index: 1;
}

/* Animated background shapes */
.hero-shapes {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 15s infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-color);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #6a00ff;
    bottom: -50px;
    right: -100px;
    animation-delay: 2s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: #00eaff;
    top: 40%;
    left: 40%;
    animation-delay: 4s;
}

@keyframes float {
    0% { transform: translateY(0) translateX(0); }
    33% { transform: translateY(-30px) translateX(20px); }
    66% { transform: translateY(20px) translateX(-20px); }
    100% { transform: translateY(0) translateX(0); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    font-size: 0.9rem;
    margin-bottom: 24px;
    animation: fadeInDown 1s ease-out;
}

.hero-headline {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtext {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 30px;
    font-weight: 300;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.tagline {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.8s both;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- ABOUT SECTION --- */
.about {
    position: relative;
}

.about-card {
    padding: 50px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text-color);
    line-height: 1.8;
}

.about-card strong {
    color: var(--white);
    font-weight: 600;
}

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

.card {
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.card:hover {
    background: rgba(255, 255, 255, 0.08);
}

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

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.card p {
    color: var(--text-color);
    font-size: 0.95rem;
}

/* --- FEATURES SECTION --- */
.features-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-list {
    margin-top: 30px;
}

.feature-list li {
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-list ion-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    background: rgba(58, 123, 255, 0.1);
    padding: 10px;
    border-radius: 50%;
}

.glass-mockup {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--glass-shadow);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.glass-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
}
.dot:nth-child(2) { background: #ffbd2e; }
.dot:nth-child(3) { background: #27c93f; }

.mockup-body {
    height: 300px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: flex-end;
}

.mockup-chart {
    display: flex;
    gap: 15px;
    width: 100%;
    align-items: flex-end;
    justify-content: center;
}

.bar {
    width: 40px;
    background: var(--accent-color);
    border-radius: 4px 4px 0 0;
    animation: growBar 2s ease-out forwards;
}

.bar-1 { height: 40%; background: rgba(58, 123, 255, 0.4); animation-delay: 0.2s;}
.bar-2 { height: 60%; background: rgba(58, 123, 255, 0.6); animation-delay: 0.4s;}
.bar-3 { height: 80%; background: rgba(58, 123, 255, 0.8); animation-delay: 0.6s;}
.bar-4 { height: 100%; background: var(--accent-color); animation-delay: 0.8s;}

@keyframes growBar {
    from { height: 0; }
}

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

.portfolio-item {
    position: relative;
    height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.pg-1 { background-image: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&q=80&w=800'); }
.pg-2 { background-image: url('https://images.unsplash.com/photo-1499951360447-b19be8fe80f5?auto=format&fit=crop&q=80&w=800'); }
.pg-3 { background-image: url('https://images.unsplash.com/photo-1522542550221-31fd19575a2d?auto=format&fit=crop&q=80&w=800'); }

.portfolio-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 31, 68, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    font-size: 1.5rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay h4 {
    transform: translateY(0);
}


/* --- PRICING SECTION --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    align-items: center; /* keep premium larger by not stretching */
}

.pricing-card {
    padding: 40px;
    position: relative;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.pricing-card.premium {
    padding: 50px 40px;
    background: rgba(58, 123, 255, 0.1);
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(58, 123, 255, 0.3);
    transform: scale(1.05); /* Make it bigger slightly natively */
}

.pricing-card.premium:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 0 30px rgba(58, 123, 255, 0.5);
}

.popular-badge {
    position: absolute;
    top: -15px;
    right: 50%;
    transform: translateX(50%);
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-header {
    text-align: center;
    margin-bottom: 30px;
}

.plan-header h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.price {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

.currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.period {
    font-size: 1.2rem;
    color: var(--text-color);
}

.starting-label {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-top: 5px;
}

.plan-features {
    margin-bottom: 40px;
}

.plan-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--text-color);
}

.plan-features ion-icon {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* --- CONTACT SECTION --- */
.contact-card {
    padding: 60px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 40px;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- FOOTER --- */
.footer {
    background: var(--bg-dark);
    padding: 60px 0 30px;
    border-top: 1px solid var(--glass-border);
}

.footer-logo {
    font-size: 2rem;
    margin-bottom: 15px;
}

.footer-text {
    color: var(--text-color);
    margin-bottom: 30px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-socials a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all var(--transition-fast);
}

.footer-socials a:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

.copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
}

/* --- CHATBOT --- */
.chatbot-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(58, 123, 255, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chatbot-trigger:hover {
    transform: scale(1.1);
}

.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 320px;
    background: var(--primary-color);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chatbot-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    background: rgba(0,0,0,0.2);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.chatbot-agent {
    display: flex;
    align-items: center;
    gap: 10px;
}

.agent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.chatbot-agent h4 {
    font-size: 0.95rem;
    margin: 0;
}

.online-status {
    font-size: 0.75rem;
    color: #25D366;
    display: flex;
    align-items: center;
    gap: 5px;
}

.online-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #25D366;
    border-radius: 50%;
    display: inline-block;
}

#close-chat {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

#close-chat:hover { opacity: 1; }

.chatbot-body {
    padding: 20px;
    height: 250px;
    overflow-y: auto;
    background: var(--bg-dark);
}

.chat-message {
    background: var(--glass-bg);
    padding: 12px 16px;
    border-radius: 15px 15px 15px 2px;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 10px;
    border: 1px solid var(--glass-border);
    animation: fadeIn 0.3s ease;
}

/* Typing Indicator */
.typing-indicator {
    background: var(--glass-bg);
    padding: 12px 16px;
    border-radius: 15px 15px 15px 2px;
    display: inline-block;
    border: 1px solid var(--glass-border);
    margin-bottom: 10px;
}

.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    margin: 0 2px;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.chatbot-footer {
    padding: 15px 20px;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid var(--glass-border);
}

.chat-btn-hello {
    width: 100%;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid var(--accent-color);
    background: rgba(58, 123, 255, 0.1);
    color: var(--white);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.chat-btn-hello:hover {
    background: var(--accent-color);
}

/* SCROLL REVEAL UTILITIES */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left { transform: translateX(-50px); }
.slide-in-right { transform: translateX(50px); }
.zoom-in { transform: scale(0.9); }

.scroll-reveal.slide-in-left.active,
.scroll-reveal.slide-in-right.active,
.scroll-reveal.zoom-in.active {
    transform: translate(0) scale(1);
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
    .features-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero-headline {
        font-size: 3rem;
    }
    
    .pricing-card.premium {
        transform: scale(1);
    }
    
    .nav-links {
        display: none; /* simple mobile hide for now, could add hamburger */
    }
}
