/* ===== Base & Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #111827;
    background: #ffffff;
    overflow-x: hidden;
}

/* ===== Custom Cursor ===== */
.custom-cursor {
    width: 40px;
    height: 40px;
    border: 1px solid #7C6CF2;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, opacity 0.15s ease;
    transform: translate(-50%, -50%);
    opacity: 0.5;
    mix-blend-mode: difference;
}

.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background: #7C6CF2;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.custom-cursor.hover {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.3;
    background: rgba(124, 108, 242, 0.1);
}

/* ===== Header ===== */
.header-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ===== Navigation ===== */
.nav-link {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6B7280;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #7C6CF2;
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #111827;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    font-weight: 500;
    color: #374151;
    border-bottom: 1px solid #E5E7EB;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #7C6CF2;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #7C6CF2;
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 0.75rem;
    border: 1.5px solid #7C6CF2;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background: #6B5CE7;
    border-color: #6B5CE7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 108, 242, 0.25);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #111827;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 0.75rem;
    border: 1.5px solid #E5E7EB;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: #7C6CF2;
    color: #7C6CF2;
    transform: translateY(-1px);
}

/* ===== Cards ===== */
.service-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    border-color: #7C6CF2;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(124, 108, 242, 0.08);
}

.industry-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.industry-card:hover {
    border-color: #7C6CF2;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 108, 242, 0.06);
}

.pricing-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(124, 108, 242, 0.08);
}

.pricing-featured {
    border-color: #7C6CF2;
    box-shadow: 0 4px 20px rgba(124, 108, 242, 0.1);
}

.pricing-featured:hover {
    box-shadow: 0 12px 40px rgba(124, 108, 242, 0.15);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
    border-color: rgba(124, 108, 242, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 108, 242, 0.06);
}

.stack-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stack-card:hover {
    border-color: #7C6CF2;
    transform: scale(1.02);
}

/* ===== Project Mockups ===== */
.project-mockup {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-item:hover .project-mockup {
    transform: scale(1.02);
}

/* ===== Forms ===== */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid #E5E7EB;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    color: #111827;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #7C6CF2;
    box-shadow: 0 0 0 3px rgba(124, 108, 242, 0.1);
}

.form-input::placeholder {
    color: #9CA3AF;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

/* ===== FAQ ===== */
.faq-question {
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #F9FAFB;
}

.faq-question.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    animation: slideDown 0.3s ease;
}

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

/* ===== Contact Links ===== */
.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.contact-link:hover {
    border-color: #E5E7EB;
    background: #F9FAFB;
}

/* ===== Footer ===== */
.footer-link {
    color: #9CA3AF;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    color: #9CA3AF;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(124, 108, 242, 0.2);
    color: #7C6CF2;
}

/* ===== Animations ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Scroll Reveal */
.reveal-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Timeline ===== */
.timeline-item {
    position: relative;
}

/* ===== Process Steps ===== */
.process-step {
    position: relative;
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    transition: all 0.3s ease;
}

/* ===== Loading States ===== */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .custom-cursor,
    .custom-cursor-dot {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .reveal-up {
        opacity: 1;
        transform: none;
    }
}

/* ===== Selection ===== */
::selection {
    background: #7C6CF2;
    color: white;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F9FAFB;
}

::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}
