:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #06b6d4;
    --accent: #f43f5e;
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-white: #f8fafc;
    --text-gray: #94a3b8;
    --transition: all 0.3s ease;
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

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

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

/* Typography */
h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 3rem;
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-accent {
    color: var(--primary);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 500;
    transition: var(--transition);
}

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

.user-panel {
    position: relative;
    margin-right: 1.5rem;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    margin-right: 1.5rem;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.lang-btn img {
    border-radius: 2px;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 140px;
    padding: 0.5rem;
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1100;
}

.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 1rem;
    color: var(--text-gray);
    font-size: 0.85rem;
    border-radius: 8px;
}

.lang-dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
}

/* Cart */
.cart-wrapper {
    position: relative;
    margin-right: 1.5rem;
}

.cart-btn {
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0f172a;
}

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    z-index: 2000;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 1px solid var(--glass-border);
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.close-cart {
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-gray);
    margin-top: 5rem;
}

.cart-footer {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.cart-item-row:hover {
    background: rgba(255, 255, 255, 0.08);
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-name {
    font-weight: 600;
    color: var(--text-white);
}

.item-price {
    font-size: 0.9rem;
    color: var(--primary);
}

.remove-item {
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem;
}

.remove-item:hover {
    color: #ff4757;
    transform: scale(1.1);
}

.btn-full {
    width: 100%;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-gray);
    opacity: 0.5;
}

.menu-toggle {
    display: none;
}

.panel-trigger {
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: var(--transition);
}

.panel-trigger:hover {
    background: rgba(255, 255, 255, 0.05);
}

.panel-trigger i {
    font-size: 1.2rem;
    color: var(--primary);
}

.panel-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 260px;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1100;
}

.panel-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.user-name {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-white);
    margin-bottom: 0.2rem;
}

.user-status {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dropdown-links {
    list-style: none;
}

.dropdown-links li {
    margin-bottom: 0.5rem;
}

.dropdown-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1rem;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 10px;
    transition: var(--transition);
}

.dropdown-links a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-white);
    transform: translateX(5px);
}

.dropdown-links a i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 1rem 0;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-white);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-white);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

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

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    /* Ensure buttons wrap nicely on smaller screens */
}

.hero-image {
    position: relative;
}

.main-card {
    padding: 1rem;
    position: relative;
    overflow: visible;
}

.main-card img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.4;
    animation: blobAnimation 10s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -150px;
    right: -100px;
    animation-delay: 2s;
}

@keyframes blobAnimation {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Services */
.services {
    padding: 8rem 0;
    background: rgba(15, 23, 42, 0.8);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.2rem;
    margin-top: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    transition: var(--transition);
}

.service-card {
    padding: 3rem;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.service-list {
    list-style: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.service-list li {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

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

.pricing-card {
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card.popular {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.2);
}

.popular-badge {
    position: absolute;
    top: 25px;
    right: -45px;
    background: var(--primary);
    color: white;
    padding: 0.5rem 4rem;
    /* Increased padding to fit longer text */
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.price span {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
    text-align: left;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-gray);
    font-size: 0.95rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Stats */
.stats {
    padding: 4rem 0;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    padding: 3rem;
    text-align: center;
}

.stat-item .number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-white);
}

.stat-item .plus {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
}

.stat-item p {
    color: var(--text-gray);
    font-weight: 500;
}

/* Portfolio */
.portfolio {
    padding: 8rem 0;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-gray);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.portfolio-item {
    padding: 1rem;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
}

.portfolio-img {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* Auth Modal */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 11, 30, 0.85);
    backdrop-filter: blur(12px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.auth-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    width: 100%;
    max-width: 450px;
    padding: 3rem;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-gray);
}

.auth-form .input-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.glass-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.25rem;
    border-radius: 14px;
    color: var(--text-white);
    font-family: inherit;
    transition: var(--transition);
}

.glass-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: 2rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--glass-border);
    z-index: 0;
}

.auth-divider span {
    position: relative;
    background: #111a31;
    /* Close approximation for glass bg */
    padding: 0 1rem;
    color: var(--text-gray);
    font-size: 0.85rem;
    z-index: 1;
}

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

.social-btn {
    padding: 0.8rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-white);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.auth-footer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.auth-footer a {
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--text-white);
    transform: rotate(90deg);
}

.divider {
    width: 1px;
    background: var(--glass-border);
}

/* Footer */
footer {
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

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

.footer-brand p {
    margin-top: 1rem;
    color: var(--text-gray);
}

.footer-links ul {
    list-style: none;
    margin-top: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-gray);
    transition: var(--transition);
}

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

.footer-contact h4,
.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-contact p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

.footer-contact i {
    color: var(--primary);
    margin-right: 0.5rem;
}

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

/* Responsive */
@media (max-width: 992px) {
    h1 {
        font-size: 3.5rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .divider {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Brief Modal */
.brief-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 11, 30, 0.9);
    backdrop-filter: blur(12px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.brief-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.brief-modal {
    width: 90%;
    max-width: 550px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
}

.brief-header {
    text-align: center;
    margin-bottom: 2rem;
}

.brief-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.brief-header p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.brief-form textarea.glass-input {
    resize: vertical;
    min-height: 80px;
}

.brief-form select.glass-input {
    cursor: pointer;
}

.brief-form select.glass-input option {
    background: #0f172a;
    color: white;
}

.loading-spinner {
    display: none;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .loading-spinner {
    display: inline-block;
}