/* =========================================
   MS Techsolution - Dark Antigravity UI theme
   ========================================= */

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

:root {
    --bg-dark: #0B0B0F;
    --text-light: #FFFFFF;
    --text-muted: #A0A0B0;
    --accent-orange: #FF5722;
    --accent-purple: #8A2BE2;
    --accent-blue: #3A86FF;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.08);
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    cursor: none; /* Custom cursor */
}

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

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

/* Background Glows */
.bg-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    filter: blur(120px);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}
.glow-orange {
    top: -10%;
    left: -10%;
    background: var(--accent-orange);
}
.glow-purple {
    top: 40%;
    right: -10%;
    background: var(--accent-purple);
}

/* Typography & Utility Classes */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gray {
    color: var(--text-muted);
}
.text-orange { color: var(--accent-orange); }

.sub-heading {
    color: var(--accent-orange);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.text-center { text-align: center; }
.w-full { width: 100%; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mb-0 { margin-bottom: 0px !important;}
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-10 { margin-bottom: 40px; }
.pb-4 { padding-bottom: 16px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.ml-3 { margin-left: 12px; }
.border-t { border-top: 1px solid var(--glass-border); }

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

.hover-lift {
    transition: var(--transition);
}
.hover-lift:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-purple));
    color: white;
    box-shadow: 0 8px 20px rgba(255, 87, 34, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 10px 25px rgba(255, 87, 34, 0.5);
    transform: scale(1.05);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--glass-border);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.btn-nav {
    padding: 10px 20px;
    border-radius: 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-size: 0.9rem;
    color: white;
    transition: var(--transition);
}
.btn-nav:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
}

/* Custom Cursor */
.cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 6px; height: 6px;
    background-color: var(--accent-orange);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s;
}
.cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 32px; height: 32px;
    border: 1px solid rgba(255, 87, 34, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.2s, height 0.2s, transform 0.1s ease-out;
}
html:hover .cursor-dot, html:hover .cursor-ring { display: block; }
.hovering .cursor-dot { width: 10px; height: 10px; background-color: var(--text-light); }
.hovering .cursor-ring { width: 50px; height: 50px; border-color: rgba(255, 255, 255, 0.3); background: rgba(255,255,255,0.05); }

/* Navigation */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}
.header.scrolled {
    padding: 15px 0;
    background: rgba(11, 11, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
}
.nav-logo img {
    height: 35px;
    border-radius: 8px;
}
.nav-menu {
    display: flex;
    gap: 30px;
}
.nav-link {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-light);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: var(--accent-orange);
    transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}
.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: none;
}
.header-action { display: flex; align-items: center; gap: 15px; }

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 10;
}
.hero-text h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 20px;
}
.hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
}
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.values-list {
    margin-top: 20px;
}
.values-list li {
    margin-bottom: 15px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.about-stats {
    padding: 40px;
    display: grid;
    gap: 30px;
}
.stat-item h3 {
    font-size: 3.5rem;
    background: linear-gradient(90deg, #FFFFFF, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}
.stat-item p {
    color: var(--text-muted);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.service-card {
    padding: 40px 30px;
    text-align: left;
}
.service-icon {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 20px;
}
.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}
.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Video Showcase */
.benefits-inline {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.benefits-inline li {
    font-size: 1.1rem;
    font-weight: 500;
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}
.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: var(--border-radius);
}

/* Portfolio Horizontal Scroll */
.horizontal-scroll-wrapper {
    margin-top: 50px;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-orange) var(--bg-dark);
}
.horizontal-scroll-wrapper::-webkit-scrollbar {
    height: 6px;
}
.horizontal-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--accent-orange);
    border-radius: 10px;
}
.horizontal-scroll-container {
    display: flex;
    gap: 30px;
    padding: 10px;
    width: max-content;
}
.portfolio-item {
    width: 400px;
    overflow: hidden;
}
.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}
.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}
.portfolio-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}
.portfolio-info {
    padding: 20px;
}
.portfolio-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}
.portfolio-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.pricing-card {
    padding: 40px 30px;
    text-align: center;
    position: relative;
}
.pricing-card.highlighted {
    border-color: var(--accent-orange);
    box-shadow: 0 0 30px rgba(255, 87, 34, 0.1);
    transform: scale(1.05);
}
.popular-badge {
    position: absolute;
    top: -15px; left: 50%;
    transform: translateX(-50%);
    background: var(--accent-orange);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.plan-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-muted);
}
.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.plan-price .text-sm {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
    display: block;
}
.plan-desc {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.95rem;
}
.plan-features {
    text-align: left;
    margin-bottom: 30px;
}
.plan-features li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.plan-features i { color: var(--accent-orange); }

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial-card {
    padding: 35px;
}
.testimonial-card p {
    font-style: italic;
    color: #E0E0E0;
    line-height: 1.8;
}
.avatar {
    width: 45px; height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
}
.bg-purple-gradient { background: linear-gradient(135deg, #8A2BE2, #4B0082); }
.bg-orange-gradient { background: linear-gradient(135deg, #FF5722, #D84315); }
.bg-blue-gradient { background: linear-gradient(135deg, #3A86FF, #0044CC); }

/* Contact Section */
.contact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 60px;
    gap: 50px;
}
.custom-form .form-group {
    margin-bottom: 20px;
}
.custom-form input, .custom-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: var(--font-main);
    transition: var(--transition);
}
.custom-form input:focus, .custom-form textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    background: rgba(255, 255, 255, 0.08);
}
.custom-form textarea { resize: vertical; }

/* Floating Utilities */
.whatsapp-float {
    position: fixed;
    right: 20px; bottom: 90px;
    width: 50px; height: 50px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); }

.scroll-top {
    position: fixed;
    right: 15px; bottom: 20px;
    width: 60px; height: 60px;
    z-index: 1000;
    cursor: none;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top i {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: var(--accent-orange);
    font-size: 1.2rem;
}
.scroll-top:hover { transform: translateY(-5px); }
#scrollCircle { transition: stroke-dashoffset 0.1s linear; }

/* Footer */
.footer {
    background: rgba(0,0,0,0.5);
    padding: 80px 0 20px;
    margin-top: 50px;
    border-top: 1px solid var(--glass-border);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-links h4, .footer-social h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.footer-links ul li { margin-bottom: 12px; }
.footer-links a {
    color: var(--text-muted);
    transition: var(--transition);
}
.footer-links a:hover { color: var(--accent-orange); }
.social-icons {
    display: flex; gap: 15px;
}
.social-icons a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.social-icons a:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: white;
}

/* Animations */
.fade-up { opacity: 0; transform: translateY(40px); transition: 0.8s ease-out; }
.fade-in-up { opacity: 0; transform: translateY(30px); animation: fadeInUp 1s forwards 0.2s; }
.fade-in-left { opacity: 0; transform: translateX(-30px); animation: fadeInHorizontal 1s forwards 0.4s; }
.fade-in-right { opacity: 0; transform: translateX(30px); animation: fadeInHorizontal 1s forwards 0.6s; }
.is-visible { opacity: 1 !important; transform: translate(0,0) !important; }

@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInHorizontal { to { opacity: 1; transform: translateX(0); } }

/* Media Queries */
@media (max-width: 992px) {
    .about-grid, .contact-box { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 50px auto 0; }
    .pricing-card.highlighted { transform: scale(1); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* Handle mobile hamburger */
    .nav-menu {
        position: fixed;
        top: 70px; right: -100%;
        width: 100%; height: calc(100vh - 70px);
        background: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: 0.4s;
    }
    .nav-menu.active { right: 0; }
    .hamburger { display: block; }
    .header-action .btn-nav { display: none; }
    
    .hero-text h1 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .contact-box { padding: 30px 20px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-icons { justify-content: center; }
    
    /* Disable custom cursor on mobile */
    html, a, button, .btn, .hamburger { cursor: auto; }
    .cursor-dot, .cursor-ring { display: none !important; }
}