:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --text: #f1f5f9;
    --text-muted: #cbd5e1;
    --bg-dark: #0f172a;
    --bg-darker: #0a0f1f;
    --border: #334155;
    --success: #10b981;
    --danger: #ef4444;

    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

.display-4,
.display-5,
.display-6 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-light);
}

/* ================================
   Buttons
   ================================ */
.btn {
    font-weight: 600;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
    color: white;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-primary {
    border: 2px solid var(--accent);
    color: var(--accent);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid var(--text);
    color: var(--text);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--text);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ================================
   Navigation
   ================================ */
.navbar {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transition: var(--transition);
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--text) !important;
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--accent) !important;
}

.navbar-brand i {
    color: var(--accent);
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    margin: 0 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

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

/* ================================
   Hero Section
   ================================ */
.hero {
    min-height: 100vh;
    background: var(--bg-darker);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #eee, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 60px 70px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 50px 50px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 130px 80px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 90px 10px, #fff, rgba(0, 0, 0, 0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 5s infinite;
    opacity: 0.5;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .lead {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 600px;
    margin-bottom: 2rem;
}

.stats-row {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.stat-item {
    flex: 0 1 auto;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.hero-image {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: var(--transition-slow);
    animation: float 4s ease-in-out infinite;
}

.floating-card i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.floating-card p {
    font-size: 0.9rem;
    text-align: center;
    color: white;
}

.floating-card:nth-child(1) {
    background: var(--gradient-1);
    top: 50px;
    left: 20%;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    background: var(--gradient-2);
    top: 200px;
    right: 15%;
    animation-delay: 0.5s;
}

.floating-card:nth-child(3) {
    background: var(--gradient-3);
    bottom: 50px;
    left: 40%;
    animation-delay: 1s;
}

.floating-card:hover {
    transform: scale(1.1) translateY(-20px);
    box-shadow: 0 30px 60px rgba(59, 130, 246, 0.3);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-30px);
    }
}

/* ================================
   Fade-in Animations
   ================================ */
.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in-delay-1 {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.fade-in-delay-3 {
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.fade-in-delay-4 {
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
    opacity: 0;
}

.fade-in-delay-5 {
    animation: fadeInUp 0.8s ease-out 1s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ================================
   Features Section
   ================================ */
.features {
    background: var(--bg-dark);
    position: relative;
}

.feature-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
    border-radius: 50%;
}

.feature-card:hover {
    border-color: var(--accent);
    background: rgba(30, 41, 59, 0.9);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.feature-card:hover::before {
    opacity: 0.1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ================================
   Services Section
   ================================ */
.services {
    background: var(--bg-darker);
}

.service-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
    opacity: 0.1;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateX(10px);
}

.service-card:hover::after {
    right: 100%;
}

.service-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    transition: var(--transition);
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-link {
    color: var(--accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.service-link:hover {
    gap: 1rem;
}

/* ================================
   Stats Section
   ================================ */
.stats {
    background: var(--bg-darker);
    padding: 5rem 0;
}

.stat-box {
    padding: 2rem;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border);
    transition: var(-- transition);
}

.stat-box:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.1);
}

.stat-box h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* ================================
   Testimonials Section
   ================================ */
.testimonials {
    background: var(--bg-dark);
}

.testimonial-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.2;
    font-weight: 800;
}

.testimonial-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.9);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.stars {
    display: flex;
    gap: 0.25rem;
}

.stars i {
    color: #fbbf24;
    font-size: 1rem;
}

.testimonial-text {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

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

.author-role {
    font-size: 0.85rem;
}

/* ================================
   CTA Section
   ================================ */
.cta-section {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 20px;
    margin: 5rem auto;
    max-width: 100%;
    padding: 4rem 2rem;
}

.cta-section h2 {
    color: var(--text);
}

.cta-section p {
    color: var(--text-muted);
}

/* ================================
   Contact Section
   ================================ */
.contact {
    background: var(--bg-dark);
}

.contact-box {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
}

.contact-box:hover {
    border-color: var(--accent);
    background: rgba(30, 41, 59, 0.9);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.contact-box:hover .contact-icon {
    transform: scale(1.1);
}

.contact-box h4 {
    color: var(--text);
    margin-bottom: 0.5rem;
}

.contact-box p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.contact-link {
    color: var(--accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.contact-link:hover {
    gap: 1rem;
}

.contact-form {
    margin-top: 3rem;
}

.form-control {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    transition: var(--transition);
    font-size: 1rem;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--accent);
    color: var(--text);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

/* ================================
   Section Header
   ================================ */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    color: var(--text);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ================================
   Footer
   ================================ */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
}

.footer h5 {
    color: var(--text);
}

.footer p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    border: 1px solid var(--border);
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
}

/* ================================
   Back to Top Button
   ================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    z-index: 999;
}

.back-to-top.show {
    display: flex;
    animation: slideInUp 0.4s ease-out;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   Intersection Observer Animations
   ================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

.animate-on-scroll.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ================================
   Responsive Design
   ================================ */

/* Tablets */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    .hero {
        padding-top: 70px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .lead {
        font-size: 1rem;
    }

    .stats-row {
        gap: 1.5rem;
        flex-direction: column;
    }

    .stat-item {
        flex: 0 1 100%;
    }

    .hero-image {
        height: 350px;
        margin-top: 3rem;
    }

    .floating-card {
        width: 120px;
        height: 120px;
    }

    .floating-card i {
        font-size: 2rem;
    }

    .floating-card p {
        font-size: 0.8rem;
    }

    .floating-card:nth-child(1) {
        left: 10%;
        top: 30px;
    }

    .floating-card:nth-child(2) {
        right: 10%;
        top: 180px;
    }

    .floating-card:nth-child(3) {
        left: 30%;
        bottom: 30px;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .pricing-card.featured {
        transform: scale(1.02);
    }

    .cta-section {
        margin: 3rem auto;
        padding: 2.5rem 1.5rem;
    }

    .cta-section .row {
        text-align: center;
    }

    .cta-section .col-lg-4 {
        text-align: center;
    }

    .contact-form {
        margin-top: 2rem;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    body {
        font-size: 0.95rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content .lead {
        font-size: 0.9rem;
    }

    .d-flex.gap-3.flex-wrap {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    .stats-row {
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .hero-image {
        height: 300px;
        margin-top: 2rem;
    }

    .floating-card {
        width: 100px;
        height: 100px;
    }

    .floating-card i {
        font-size: 1.5rem;
    }

    .floating-card p {
        font-size: 0.7rem;
    }

    .feature-card,
    .service-card,
    .testimonial-card,
    .pricing-card,
    .contact-box {
        padding: 1.5rem 1rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .service-number {
        font-size: 2.5rem;
    }

    .pricing-price .amount {
        font-size: 2rem;
    }

    .footer {
        padding: 2rem 0;
    }

    .footer h5 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .social-links {
        justify-content: center;
        margin-bottom: 2rem;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 1rem;
        right: 1rem;
    }

    .cta-section {
        border-radius: 12px;
        padding: 2rem 1rem;
    }

    .navbar-toggler {
        border: none;
    }

    .navbar-toggler:focus {
        box-shadow: none;
        border: none;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 1.3rem;
    }
}

.min-vh-100 {
    min-height: 100vh;
}

.z-2 {
    position: relative;
    z-index: 2;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {

    .navbar,
    .back-to-top,
    .btn {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}