/* =========================================
   Hussainy Solutions ERP - Premium Styles
   ========================================= */

   :root {
    --primary-color: #f97316; /* Vibrant Orange */
    --primary-gradient: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    --secondary-color: #0ea5e9; /* Soft Blue accent */
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border-color: #e2e8f0;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Layout */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Helpers */
.text-white { color: white !important; }
.text-gray { color: #cbd5e1 !important; }
.text-primary { color: var(--primary-color) !important; }
.bg-light { background-color: var(--bg-light); }
.bg-white-opacity { background: rgba(255,255,255,0.2) !important; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

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

.sub-heading {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.section-padding {
    padding: 120px 0;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Background Decorative Shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.3;
}
.shape-1 {
    top: -10%; left: -5%; width: 600px; height: 600px; background: rgba(249, 115, 22, 0.4);
}
.shape-2 {
    top: 20%; right: -10%; width: 500px; height: 500px; background: rgba(14, 165, 233, 0.2);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
}
.btn-sm { padding: 8px 16px; font-size: 0.95rem; }
.btn-large { padding: 16px 32px; font-size: 1.125rem; }
.btn-primary {
    background: var(--primary-gradient); color: white;
    box-shadow: 0 4px 14px 0 rgba(249, 115, 22, 0.39);
}
.btn-primary:hover {
    transform: translateY(-2px); box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}
.btn-white { background: var(--bg-white); color: var(--primary-color); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* --- Navbar (Glassmorphism) --- */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 44px; border-radius: 8px; }
.logo-text { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px; }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a:not(.btn) {
    color: var(--text-secondary); text-decoration: none;
    font-weight: 500; transition: var(--transition);
}
.nav-links a:not(.btn):hover { color: var(--primary-color); }

/* --- Hero Section --- */
.hero {
    position: relative; padding: 180px 0 100px;
    background: linear-gradient(to bottom, transparent, #f8fafc);
}
.hero-container {
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center;
}
.badge {
    display: inline-block; padding: 6px 16px;
    background: rgba(249, 115, 22, 0.1); color: var(--primary-color);
    border-radius: 20px; font-weight: 600; font-size: 0.875rem; margin-bottom: 24px;
    border: 1px solid rgba(249, 115, 22, 0.2);
}
.hero-content h1 { font-size: 3.8rem; letter-spacing: -1.5px; margin-bottom: 24px; line-height: 1.1; }
.hero-content p { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 40px; max-width: 540px; }
.hero-actions { display: flex; gap: 16px; }

.dashboard-wrapper { position: relative; z-index: 10; padding: 20px; }
.dashboard-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 80%; height: 80%; background: var(--primary-gradient);
    filter: blur(80px); opacity: 0.25; z-index: -1; border-radius: 50%;
}
.dashboard-mockup {
    width: 100%; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl); border: 1px solid rgba(255,255,255,0.5);
    transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
    transition: var(--transition);
}
.dashboard-wrapper:hover .dashboard-mockup { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); }

/* Floating Cards Animation */
.floating-card {
    position: absolute; background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); border: 1px solid var(--border-color);
    padding: 16px 20px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 16px;
    animation: float 6s ease-in-out infinite; z-index: 20;
}
.floating-card i {
    font-size: 1.5rem; color: var(--primary-color);
    background: rgba(249, 115, 22, 0.1); padding: 10px; border-radius: 50%;
}
.floating-card h4 { font-size: 0.95rem; margin-bottom: 2px; }
.floating-card span { font-size: 0.8rem; color: var(--text-secondary); font-weight: 500; }
.float-1 { top: -10px; right: -20px; }
.float-2 { bottom: 20px; left: -30px; animation-delay: 3s; }
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* --- Infinite Marquee (Trending SaaS Feature) --- */
.marquee-wrapper {
    background: #0f172a; color: white;
    padding: 20px 0; overflow: hidden; display: flex;
    white-space: nowrap; position: relative;
    border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1);
}
.marquee {
    display: flex; gap: 80px; min-width: 100%;
    animation: marquee-scroll 25s linear infinite;
}
.marquee span { font-size: 1.1rem; font-weight: 500; display: flex; align-items: center; gap: 10px; }
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Scrolls exactly half the width to loop */
}

/* --- Bento Grid (Trending SaaS Feature) --- */
.section-header { text-align: center; max-width: 650px; margin: 0 auto 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 16px; }
.section-header p { font-size: 1.125rem; color: var(--text-secondary); }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 24px;
}

.bento-card {
    background: var(--bg-white); border: 1px solid var(--border-color);
    border-radius: var(--radius-xl); padding: 32px;
    transition: var(--transition); display: flex; flex-direction: column;
}
.bento-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.bento-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.bento-card p { color: var(--text-secondary); font-size: 1rem; }

/* Grid Spans */
.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 2; }
.bento-card:not(.bento-large):not(.bento-wide) { grid-column: span 1; }

/* Bento Themes */
.bento-primary { background: var(--primary-gradient); color: white; border: none; justify-content: flex-end;}
.bento-primary h3, .bento-primary p { color: white; }
.bento-dark { background: #0f172a; border: none; }

.bento-flex { display: flex; align-items: flex-start; gap: 24px; }
.bento-flex .icon-wrapper { flex-shrink: 0; }

.icon-wrapper {
    width: 56px; height: 56px; background: rgba(249, 115, 22, 0.08);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 20px; transition: var(--transition);
}

/* --- How it Works Section --- */
.how-it-works-section { border-top: 1px solid var(--border-color); }
.steps-container {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 60px;
    position: relative;
}
/* Connecting line between steps */
.steps-container::before {
    content: ''; position: absolute; top: 32px; left: 10%; width: 80%;
    height: 2px; background: dashed 2px var(--border-color); z-index: 1;
}
.step-card { text-align: center; position: relative; z-index: 2; }
.step-number {
    width: 64px; height: 64px; background: var(--bg-white);
    border: 2px solid var(--primary-color); color: var(--primary-color);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 800; margin: 0 auto 24px; box-shadow: var(--shadow-sm);
}
.step-content h3 { font-size: 1.4rem; margin-bottom: 12px; }
.step-content p { color: var(--text-secondary); max-width: 300px; margin: 0 auto; }

/* --- CTA Section --- */
.cta-section { padding: 40px 0 120px; }
.cta-box {
    background: #0f172a; border-radius: var(--radius-xl); padding: 80px 40px;
    text-align: center; color: white; position: relative; overflow: hidden;
}
.cta-box::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(249,115,22,0.3) 0%, transparent 70%);
}
.cta-box h2 {
    color: white; font-size: 3rem; margin-bottom: 16px; position: relative; z-index: 2; letter-spacing: -1px;
}
.cta-box p {
    color: #94A3B8; font-size: 1.15rem; max-width: 600px; margin: 0 auto 40px; position: relative; z-index: 2;
}
.cta-buttons { position: relative; z-index: 2; display: flex; justify-content: center; gap: 16px; }

/* --- Footer --- */
.footer { background-color: #020617; color: #cbd5e1; padding-top: 80px; }
.top-footer { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 60px; }
.brand-desc { margin: 24px 0; max-width: 350px; color: #94a3b8; }
.social-links { display: flex; gap: 16px; }
.social-links a {
    width: 40px; height: 40px; background: rgba(255,255,255,0.05); display: flex; align-items: center;
    justify-content: center; border-radius: 50%; color: white; text-decoration: none; transition: var(--transition);
}
.social-links a:hover { background: var(--primary-color); transform: translateY(-3px); }
.footer-links h4, .footer-contact h4 { color: white; font-size: 1.25rem; margin-bottom: 24px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #94a3b8; text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--primary-color); }

.contact-item { display: flex; gap: 16px; margin-bottom: 20px; }
.contact-item i { font-size: 1.25rem; color: var(--primary-color); margin-top: 4px; }
.contact-item span { display: block; color: white; font-weight: 500; margin-bottom: 4px; }

/* --- Why Us Section --- */
.why-us-section {
    background-color: var(--bg-main);
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.value-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}
.value-card:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.value-icon {
    width: 70px;
    height: 70px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}
.value-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--text-primary);
}
.value-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .values-grid { grid-template-columns: 1fr; }
}

/* --- Carousel Styles --- */
.gallery-section {
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-color);
}
.carousel-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--text-primary);
}
.text-center {
    text-align: center;
}
.swiper {
    width: 100%;
    padding-bottom: 60px !important; /* Space for pagination */
}
.carousel-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #f1f5f9;
}
.carousel-img-mobile {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    aspect-ratio: 9/16;
    object-fit: cover;
    background: #f1f5f9;
}
:root {
    --swiper-theme-color: #f97316 !important; /* Forces swiper active dots to be orange */
}

.contact-item p { color: #94a3b8; }
.bottom-footer {
    border-top: 1px solid rgba(255,255,255,0.1); padding: 32px 24px; display: flex;
    justify-content: space-between; align-items: center; color: #64748b;
}
.made-in { font-weight: 500; color: #94a3b8; }

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 60px; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-large, .bento-wide { grid-column: span 2; }
    .bento-flex { flex-direction: column; gap: 12px; }
    .top-footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-content h1 { font-size: 2.8rem; }
    .bento-grid { grid-template-columns: 1fr; display: flex; flex-direction: column; gap:24px;}
    .steps-container { grid-template-columns: 1fr; }
    .steps-container::before { display: none; }
    .cta-box h2 { font-size: 2.25rem; }
    .top-footer { grid-template-columns: 1fr; }
    .bottom-footer { flex-direction: column; gap: 16px; text-align: center; }
}
