:root {
    --bg-color: #0a0a0a;
    --card-bg: #141414;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --primary: #0088cc;
    /* Telegram Blue-ish */
    --accent: #9d4edd;
    /* Purple for AI */
    --glow: rgba(0, 136, 204, 0.3);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    height: 30px;
    width: auto;
}

.dot {
    color: var(--primary);
}

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

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

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #005f8f);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--glow);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
}

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

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 60px;
}

.hero-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 136, 204, 0.5));
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight {
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

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

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
}

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

.service-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

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

.icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

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

.service-card p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.benefit {
    color: var(--text-main) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    font-size: 0.95rem;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.portfolio-item {
    background: #111;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.portfolio-placeholder {
    height: 300px;
    background: #1a1a1a;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.portfolio-img-real {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.portfolio-item:hover .portfolio-placeholder,
.portfolio-item:hover .portfolio-img-real {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Premium CSS Mockups */
.portfolio-placeholder {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #1e1e1e 0%, #252525 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'Outfit', sans-serif;
    padding: 20px;
}

/* Phone Frame Effect */
.portfolio-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.ui-app-header {
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ui-dot {
    width: 10px;
    height: 10px;
    background: #ff5f57;
    border-radius: 50%;
    box-shadow: 15px 0 0 #febc2e, 30px 0 0 #28c840;
}

.ui-title-bar {
    font-size: 0.75rem;
    color: #aaa;
    margin-left: auto;
    font-weight: 500;
}

/* Fashion UI - Premium */
.fashion-ui {
    align-items: center;
    justify-content: center;
}

.ui-product-card {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    width: 180px;
    padding: 15px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: rotate(-2deg);
    transition: 0.3s;
}

.portfolio-item:hover .ui-product-card {
    transform: rotate(0deg) scale(1.05);
}

.ui-product-img {
    height: 80px;
    background: linear-gradient(45deg, #333, #444);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.ui-product-title {
    font-size: 0.8rem;
    color: #fff;
    font-weight: 600;
}

.ui-product-price {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--primary);
}

.ui-btn-buy {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(157, 78, 221, 0.3);
}

/* Fintech UI - Premium */
.fintech-ui {
    justify-content: space-between;
}

.ui-chat-area {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.7rem;
}

.ui-msg {
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 85%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ui-msg.left {
    background: rgba(255, 255, 255, 0.1);
    color: #ddd;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.ui-msg.right {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    background: linear-gradient(135deg, var(--primary), #7b2cbf);
}

.ui-input-bar {
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ui-input-field {
    font-size: 0.7rem;
    color: #666;
    flex-grow: 1;
}

.ui-send-btn {
    color: var(--primary);
    font-size: 1rem;
}

/* Booking UI - Premium */
.booking-ui {
    padding: 20px;
    align-items: center;
    gap: 15px;
}

.ui-calendar-grid {
    display: flex;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.ui-day {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ui-day.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 10px rgba(76, 201, 240, 0.3);
    border-color: var(--accent);
}

.ui-time-slots {
    display: flex;
    gap: 10px;
}

.ui-slot {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 0.75rem;
    color: #ccc;
    border: 1px solid transparent;
}

.ui-slot.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(76, 201, 240, 0.1);
}

.ui-btn-book {
    width: 100%;
    background: var(--accent);
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 5px;
    box-shadow: 0 4px 10px rgba(76, 201, 240, 0.3);
}

/* Portfolio Content */
.portfolio-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
}

.story,
.solution,
.result {
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #ccc;
}

.story strong {
    color: #ff5f57;
}

.solution strong {
    color: var(--accent);
}

.result strong {
    color: var(--primary);
}

.result {
    background: rgba(157, 78, 221, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 3px solid var(--primary);
    margin-top: auto;
}

/* Problem Section */
.problem {
    background: #0f0f0f;
    padding: 100px 0;
    position: relative;
}

.problem::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    height: 40px;
    width: auto;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: 0.3s;
}

.footer-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.problem-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.problem-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 95, 87, 0.5);
    /* Reddish for 'problem' */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.problem-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

.problem-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.problem-item p {
    color: #aaa;
    font-size: 1rem;
    line-height: 1.6;
}

/* Process Section */
.process {
    background: #0a0a0a;
    padding: 100px 0;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 50px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    background: rgba(255, 255, 255, 0.02);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: 0.3s;
}

.step:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.03);
}

.step-number {
    font-size: 5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    line-height: 0.8;
    font-family: var(--font-main);
}

.step-content {
    flex: 1;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.step p {
    color: #ccc;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* FAQ Section */
.faq {
    background: #0f0f0f;
    padding: 100px 0;
}

.faq-list {
    max-width: 800px;
    margin: 50px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: 0.3s;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.faq-item.active {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--primary);
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: 0.3s;
}

.faq-item.active .faq-question::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #aaa;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 0 25px 25px;
    max-height: 300px;
}

/* Responsive Process */
@media (min-width: 768px) {
    .process-steps {
        flex-direction: row;
    }

    .step {
        flex: 1;
        flex-direction: column;
        gap: 20px;
        text-align: center;
        align-items: center;
    }
}

/* Why Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.feature-item p {
    color: var(--text-muted);
}

/* Contact */
.contact {
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-color), #0f1820);
    padding: 100px 0;
}

.contact h2 {
    margin-bottom: 20px;
}

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

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
    display: inline-block;
    /* Ensures margin works correctly */
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), #005f8f);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px var(--glow);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }

    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-title br {
        display: none;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .nav-links {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    /* Problem section */
    .problem-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .problem-item {
        padding: 25px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-item {
        padding: 25px;
    }

    /* Process */
    .process-grid {
        grid-template-columns: 1fr;
    }

    .step {
        flex-direction: column;
        padding: 25px;
        gap: 15px;
    }

    .step-number {
        font-size: 3rem;
    }

    .step h3 {
        font-size: 1.3rem;
    }

    .step p {
        font-size: 0.95rem;
    }

    /* FAQ */
    .faq-list {
        gap: 15px;
    }

    /* Why Us */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Contact */
    .contact h2 {
        font-size: 2rem;
    }

    .contact p {
        font-size: 1rem;
    }

    .btn-large {
        width: 100%;
        padding: 15px 30px;
    }

    /* Section titles */
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .problem-item h3,
    .service-card h3,
    .process-step h3 {
        font-size: 1.25rem;
    }
}