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

:root {
    --bg-color: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --secondary-gradient: linear-gradient(135deg, #3b82f6 0%, #2dd4bf 100%);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --card-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.25);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Animations --- */
.fade-in-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* --- Abstract Background Shapes --- */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: float 10s infinite ease-in-out alternate;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 40px); }
}

.blob-1 { top: -10%; right: -10%; width: 600px; height: 600px; background: #e0e7ff; }
.blob-2 { bottom: -10%; left: -10%; width: 500px; height: 500px; background: #f3e8ff; }
.blob-3 { top: 40%; left: 20%; width: 300px; height: 300px; background: #dbeafe; opacity: 0.4; }

/* --- Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: 0.3s;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 1rem 5%;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-items {
    display: flex;
    gap: 2rem;
    background: var(--glass-bg);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
}

nav.scrolled .nav-items {
    background: transparent;
    box-shadow: none;
    border: none;
}

.nav-items a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
    position: relative;
}

.nav-items a:hover { color: var(--text-main); }

.nav-items a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: 0.3s;
}

.nav-items a:hover::after { width: 100%; }

.btn-start {
    background: var(--text-main);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    background: #0f172a;
}

/* --- Hero --- */
.hero {
    max-width: 1200px;
    margin: 8rem auto 6rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    background: linear-gradient(to right, #1e293b, #475569);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-img { position: relative; perspective: 1000px; }
.hero-img img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.15);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: 0.5s;
}
.hero-img:hover img { transform: rotateY(0) rotateX(0); }

/* --- Page Header (for subpages) --- */
.page-header {
    background: var(--text-main);
    color: white;
    padding: 10rem 2rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header h1 { font-size: 3rem; margin-bottom: 1rem; }
.page-header p { font-size: 1.2rem; opacity: 0.8; max-width: 600px; margin: 0 auto; }
.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../images/page-header.jpg') center/cover;
    opacity: 0.2;
}

/* --- Sections --- */
.section-container {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-head { text-align: center; margin-bottom: 4rem; }
.section-head h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.section-head p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* --- Grid Layouts --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 4rem;
    align-items: center;
}

/* --- Cards --- */
.card {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: var(--card-shadow);
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
    border-color: #e0e7ff;
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.card h3 { margin-bottom: 0.8rem; font-size: 1.3rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* --- About Page --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.team-member { text-align: center; }
.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid white;
    box-shadow: var(--card-shadow);
}
.team-member h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.team-member span { color: #6366f1; font-weight: 500; font-size: 0.9rem; }

/* --- Pricing --- */
.pricing-card {
    text-align: center;
    padding: 3rem 2rem;
}

.pricing-card.featured {
    border: 2px solid #6366f1;
    transform: scale(1.05);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 1.5rem 0;
}
.price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }

.features-list {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

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

/* --- Contact --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
}

.contact-info h3 { margin-bottom: 1.5rem; font-size: 1.5rem; }
.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}
.info-item i {
    color: #6366f1;
    font-size: 1.2rem;
    margin-top: 4px;
}

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group textarea {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    transition: 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* --- Footer --- */
footer {
    background: white;
    padding: 5rem 2rem 2rem;
    margin-top: 5rem;
    border-top: 1px solid #f1f5f9;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
}

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

.footer-links h4 { margin-bottom: 1.5rem; font-weight: 700; }
.footer-links a { display: block; color: var(--text-muted); text-decoration: none; margin-bottom: 0.8rem; transition: 0.2s; }
.footer-links a:hover { color: #6366f1; transform: translateX(5px); }

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        margin-top: 6rem;
        text-align: center;
    }
    .hero-text h1 { font-size: 2.5rem; }
    
    .mobile-menu-btn { display: block !important; }
    
    .nav-items {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-radius: 0 0 24px 24px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: 0.4s ease-in-out;
        z-index: -1;
        opacity: 0;
    }
    
    .nav-items.active {
        transform: translateY(0);
        opacity: 1;
    }

    .grid-2, .contact-wrapper { grid-template-columns: 1fr; }
    
    .pricing-card.featured { transform: scale(1); }
}
