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

:root {
    --primary: #6c5ce7;
    --secondary: #a29bfe;
    --dark: #0f0f1a;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body { background-color: var(--dark); color: var(--text); overflow-x: hidden; min-height: 100vh; }

/* === Modal Styles === */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    backdrop-filter: blur(8px); transition: opacity 0.5s ease;
}
.modal-content {
    background: var(--dark); border: 2px solid var(--primary);
    padding: 50px; text-align: center; max-width: 500px;
    box-shadow: 0 0 50px rgba(108, 92, 231, 0.3);
}
.modal-buttons {
    display: flex; gap: 20px; justify-content: center; margin-top: 30px;
}
.modal-buttons button { min-width: 150px; }


/* Background Shapes */
.background-shapes { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; }
.shape { position: absolute; filter: blur(100px); opacity: 0.6; animation: float 10s infinite alternate; }
.shape-1 { width: 400px; height: 400px; background: var(--primary); top: -10%; left: -10%; }
.shape-2 { width: 300px; height: 300px; background: #ff7675; bottom: 10%; right: -5%; animation-delay: 2s; }
.shape-3 { width: 200px; height: 200px; background: #00cec9; top: 40%; left: 40%; animation-delay: 4s; }
@keyframes float { 0% { transform: translate(0, 0) rotate(0deg); } 100% { transform: translate(30px, 50px) rotate(20deg); } }

/* Navigation */
.navbar {
    display: flex; justify-content: space-between; align-items: center; padding: 15px 5%;
    background: rgba(15, 15, 26, 0.9); backdrop-filter: blur(10px); position: fixed; top: 0; width: 100%;
    z-index: 1000; border-bottom: 1px solid var(--border);
}
.logo-container { display: flex; align-items: center; gap: 10px; }
.logo-container img { width: 55px; height: 55px; filter: drop-shadow(0 0 8px rgba(108, 92, 231, 0.5)); }
.logo-container span { font-weight: 700; font-size: 1.4rem; letter-spacing: 1px; }

.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links li { cursor: pointer; font-weight: 500; transition: color 0.3s; position: relative; }
.nav-links li:hover, .nav-links li.active { color: var(--secondary); }
.nav-links li.mobile-login a { text-decoration: none; color: var(--secondary); font-weight: 700; }
.mobile-login { display: none; }

.login-btn {
    padding: 10px 25px; background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white; text-decoration: none; border-radius: 30px; font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}
.login-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4); }
.menu-toggle { display: none; font-size: 1.5rem; color: white; cursor: pointer; }

/* Main Content */
main { margin-top: 80px; padding: 30px; min-height: calc(100vh - 80px); display: flex; justify-content: center; width: 100%; }
.page { display: none; width: 100%; max-width: 1200px; animation: fadeIn 0.5s ease-in-out; }
.active-page { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Home */
.hero-content { text-align: center; margin: 40px 0; }
h1 {
    font-size: 4rem; font-weight: 800; background: linear-gradient(to right, #fff, #a29bfe);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 10px;
}
.subtitle { font-size: 1.2rem; color: #b2b2b2; margin-bottom: 30px; }
.cta-hero-btn {
    padding: 12px 30px; background: white; color: var(--primary); border: none;
    border-radius: 30px; font-size: 1.1rem; font-weight: 700; cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3); transition: 0.3s;
}
.cta-hero-btn:hover { transform: scale(1.05); }
.section-title { text-align: center; margin: 60px 0 30px 0; }

/* Cards & Portfolio */
.cards-container { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; perspective: 1000px; }
.card {
    background: var(--glass); backdrop-filter: blur(10px); border: 1px solid var(--border);
    padding: 40px; border-radius: 20px; width: 300px; text-align: center;
    transform-style: preserve-3d; transition: transform 0.3s; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.card-icon { font-size: 3rem; color: var(--secondary); margin-bottom: 20px; transform: translateZ(20px); }
.card h3 { margin-bottom: 15px; transform: translateZ(20px); }
.card p { color: #ccc; font-size: 0.9rem; transform: translateZ(20px); }

/* Portfolio Styles */
.portfolio-tabs { display: flex; justify-content: center; gap: 20px; margin-bottom: 40px; }
.tab-btn {
    background: transparent; border: 1px solid var(--border); color: #ccc;
    padding: 10px 25px; border-radius: 20px; cursor: pointer; transition: 0.3s;
}
.tab-btn.active, .tab-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.portfolio-card { padding: 0; overflow: hidden; width: 300px; padding-bottom: 20px; }
.portfolio-img {
    width: 100%; height: 180px; background-size: cover; background-position: center;
    border-bottom: 1px solid var(--border); margin-bottom: 20px;
}
.portfolio-card h3 { margin: 0 20px 15px 20px; }
.small-btn { width: auto; display: inline-block; padding: 8px 25px; font-size: 0.9rem; }

/* Workflow */
.mt-5 { margin-top: 80px; }
.glass-section {
    background: var(--glass); backdrop-filter: blur(10px); border: 1px solid var(--border);
    border-radius: 20px; padding: 40px; margin: 60px auto; max-width: 1000px; text-align: center;
}
.workflow-steps { display: flex; justify-content: space-around; align-items: center; margin-top: 30px; flex-wrap: wrap; gap: 20px; }
.step { flex: 1; min-width: 200px; }
.step-number { font-size: 3rem; font-weight: 800; color: rgba(255, 255, 255, 0.1); margin-bottom: -20px; position: relative; z-index: 0; }
.step h4 { font-size: 1.5rem; color: var(--secondary); margin-bottom: 10px; position: relative; z-index: 1; }
.step p { color: #ccc; font-size: 0.9rem; }
.step-divider { height: 2px; width: 50px; background: var(--border); }

/* Tech Stack */
.tech-stack-container { text-align: center; margin-bottom: 80px; }
.tech-stack-container p { color: #666; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; font-size: 0.9rem; }
.tech-icons { display: flex; justify-content: center; gap: 30px; font-size: 2.5rem; color: rgba(255, 255, 255, 0.4); }

/* Pricing */
.pricing-card.featured { border: 1px solid var(--primary); background: rgba(108, 92, 231, 0.1); }
.badge {
    display: inline-block; padding: 5px 10px; background: var(--primary); color: white;
    font-size: 0.7rem; border-radius: 10px; position: absolute; top: -10px; left: 50%;
    transform: translateX(-50%); text-transform: uppercase; letter-spacing: 1px;
}
.price { font-size: 2.5rem; font-weight: 700; color: var(--primary); margin: 10px 0; transform: translateZ(30px); }

/* Dynamic Currency Symbol using CSS attr() */
.price::before {
    content: attr(data-currency); /* Reads from HTML data-currency="₹" or "$" */
    font-size: 1.5rem; vertical-align: top; margin-right: 5px;
}

.period { color: #ccc; font-size: 0.9rem; }
.renewal { font-size: 0.8rem; color: var(--secondary); margin-bottom: 20px; }
.features { list-style: none; margin: 20px 0; text-align: left; padding-left: 10px; }
.features li { margin-bottom: 10px; color: #ddd; font-size: 0.9rem; }
.features li::before { content: '✓'; color: var(--primary); margin-right: 10px; }
.action-btn {
    width: 100%; padding: 12px; background: transparent; border: 2px solid var(--primary);
    color: white; border-radius: 10px; cursor: pointer; transition: 0.3s; font-weight: 600; transform: translateZ(20px);
}
.action-btn:hover { background: var(--primary); }

.contact-container {
    max-width: 600px; margin: 0 auto; background: var(--glass); padding: 40px;
    border-radius: 20px; border: 1px solid var(--border); backdrop-filter: blur(15px);
}
.input-group { margin-bottom: 20px; text-align: left; }
.input-group label { display: block; margin-bottom: 8px; color: #ccc; }
.input-group input, .input-group textarea {
    width: 100%; padding: 12px; background: rgba(0,0,0,0.2); border: 1px solid var(--border);
    border-radius: 8px; color: white; font-size: 1rem;
}
.glass-select {
    width: 100%; padding: 12px; background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border);
    border-radius: 8px; color: white; font-size: 1rem; cursor: pointer;
}
.glass-select option { background-color: var(--dark); color: white; }
.submit-btn {
    width: 100%; padding: 15px; background: var(--primary); border: none; color: white;
    font-size: 1rem; border-radius: 8px; cursor: pointer; font-weight: 600; transition: 0.3s;
}

/* Mobile Media Queries */
@media (max-width: 768px) {
    .navbar { padding: 15px 20px; }
    .menu-toggle { display: block; }
    .desktop-login { display: none; }
    .nav-links {
        position: fixed; top: 70px; right: -100%; width: 100%; height: calc(100vh - 70px);
        background: rgba(15, 15, 26, 0.98); backdrop-filter: blur(15px);
        flex-direction: column; align-items: center; justify-content: center;
        transition: right 0.4s ease; border-top: 1px solid var(--border);
    }
    .nav-links.mobile-active { right: 0; }
    .nav-links li { font-size: 1.5rem; margin: 15px 0; }
    .mobile-login { display: block; margin-top: 20px; }
    h1 { font-size: 2.5rem; }
    .subtitle { font-size: 1rem; }
    .step-number { font-size: 2rem; }
    main { padding: 20px 10px; }
    .cards-container { gap: 40px; }
    .glass-section { padding: 20px; }
    .step-divider { display: none; }
    .workflow-steps { flex-direction: column; gap: 50px; }
    
    /* Modal Adjustment */
    .modal-content { padding: 30px 20px; width: 90%; }
    .modal-buttons { flex-direction: column; }
}
