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

.mobile-only {
    display: none;
}

:root {
    --primary: #22c55e;
    --primary-hover: #16a34a;
    --primary-glow: rgba(34, 197, 94, 0.1);
    --bg-main: #ffffff;
    --bg-card: #f9fafb;
    --bg-card-hover: #f3f4f6;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(0, 0, 0, 0.1);
    --glass: rgba(255, 255, 255, 0.8);
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(8px); /* Reduced blur for performance */
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    will-change: padding, box-shadow;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

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



.nav-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    border-radius: 20px;
    padding: 1rem;
    display: none;
    z-index: 1002;
    border: 1px solid var(--border);
    animation: slideUp 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: top right;
}

/* Bridge the gap between button and menu to maintain hover state */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 10px;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 600;
}

.dropdown-menu a:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.dropdown-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0.75rem 1rem 0;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border);
}

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

.btn {
    background: var(--primary);
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    text-align: center;
}

.btn-sm {
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(34, 197, 94, 0.25);
}

.btn-outline {
    background: white;
    border: 1px solid var(--border);
    color: var(--text-main);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: var(--primary);
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    position: relative;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    background: rgba(34, 197, 94, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-image {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
}

.hero-image img {
    width: 100%;
    display: block;
}

/* Portfolio Section */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.portfolio {
    padding: 10rem 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Force 3 columns on desktop */
    gap: 2.5rem;
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3rem 2rem;
    border-radius: 28px;
    transition: border-color 0.4s ease, background 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    will-change: transform, opacity;
    height: 100%; /* Force equal height in grid */
}

.portfolio-card .card-content {
    flex-grow: 1; /* Push button to bottom */
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--primary-glow), transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.portfolio-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

.portfolio-card:hover::before {
    opacity: 0.1;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(34, 197, 94, 0.1);
}



.hero-image {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.portfolio-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.portfolio-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* AI Assistant Section */
.ai-section {
    padding: 8rem 0;
    background: radial-gradient(circle at top right, rgba(34, 197, 94, 0.05), transparent 40%);
}

.ai-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.ai-content {
    flex: 1.2;
}

.ai-visual {
    flex: 1;
    background: var(--bg-card);
    border-radius: 32px;
    padding: 3rem;
    border: 1px solid var(--border);
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
}

.chat-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chat-message {
    padding: 1.25rem;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 90%;
}

.chat-message.user {
    align-self: flex-start;
    background: #f1f5f9;
    border: 1px solid rgba(0,0,0,0.05);
}

.chat-message.ai {
    align-self: flex-end;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.1);
}

.chat-label {
    display: block;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.chat-message.ai strong {
    color: var(--text-main);
}

/* Footer Improvements */
footer {
    padding: 6rem 0 3rem;
    background: #f8fafc;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1.5rem;
    color: var(--text-muted);
    max-width: 320px;
}

.footer-nav h4, .footer-social h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-nav a {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}



/* Pricing Section */
.pricing {
    padding: 8rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Force 3 columns on desktop */
    gap: 2rem;
    margin-top: 5rem;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3rem 2rem;
    border-radius: 28px;
    position: relative;
    transition: border-color 0.4s ease, background 0.4s ease;
    display: flex;
    flex-direction: column;
    will-change: transform, opacity;
    height: 100%;
}

.pricing-card .btn {
    width: 100%;
    margin-top: auto; /* Force buttons to align at bottom */
    text-align: center;
}

.pricing-card.featured {
    border: 2px solid #3b82f6;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
    transform: scale(1.02); /* Less aggressive scaling */
}

.pricing-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.05);
    width: fit-content;
}

.pricing-badge.blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.pricing-badge.green { background: rgba(34, 197, 94, 0.2); color: #4ade80; }

.pricing-card h3 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-card .sub {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.price {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.price span {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.features-list {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.features-list li i {
    color: var(--primary);
    font-size: 0.8rem;
}

.features-list li.disabled {
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.5;
}

.features-list li.disabled i {
    color: var(--text-muted);
}

.savings {
    color: #4ade80;
    font-size: 1rem;
    font-weight: 600;
    margin-top: auto;
}

/* Media Queries (Moved to end to ensure correct overriding) */
@media (max-width: 1024px) {
    .portfolio-grid, .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .nav-links {
        display: none; /* Hide nav links on mobile since hamburger is gone */
    }

    .hero {
        padding: 8rem 0 4rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-btns, .cta-btns {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-btns .btn, .cta-btns .btn {
        width: 100%;
    }

    .section-title h2 {
        font-size: 2.25rem;
    }

    .portfolio-grid, .pricing-grid, .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .footer-brand p {
        margin: 1rem auto;
    }

    .social-links {
        justify-content: center;
    }

    .ai-flex {
        flex-direction: column;
        gap: 3rem;
    }

    .ai-visual {
        width: 100%;
        padding: 1.5rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }
}
