/* ============================================================
   Decent Online - Premium Corporate Stylesheet
   Modern, Clean, Professional IT Company Website
   ============================================================ */

/* === Variables & Reset === */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #6366f1;
    --accent: #06b6d4;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #6366f1 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #2563eb 100%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-700);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { transition: var(--transition); text-decoration: none; }
h1, h2, h3, h4, h5, h6 { color: var(--gray-900); font-weight: 700; line-height: 1.2; }
img { max-width: 100%; height: auto; }

/* === Section Headers === */
.section-header { margin-bottom: 3rem; }
.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(37,99,235,0.1) 0%, rgba(99,102,241,0.1) 100%);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--gray-900);
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* === Top Bar === */
.top-bar {
    background: var(--dark);
    font-size: 0.85rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-bar a { color: var(--gray-300); transition: var(--transition); }
.top-bar a:hover { color: var(--primary-light); opacity: 1; }

/* === Navbar === */
.navbar {
    padding: 1rem 0;
    background: var(--white);
    transition: var(--transition);
    border-bottom: 1px solid var(--gray-200);
}
.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary) !important;
    letter-spacing: -0.02em;
}
.nav-link {
    font-weight: 500;
    color: var(--gray-600) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
}
.nav-link:hover::after { width: 70%; }

/* === Hero Slider === */
.hero-slider .swiper {
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
}
.hero-slider .swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-slider .slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.85) 0%, rgba(30,41,59,0.75) 100%);
}
.hero-badge {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-lead {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    line-height: 1.8;
}
.btn-hero-primary {
    background: var(--primary);
    border: 2px solid var(--primary);
    color: var(--white);
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}
.btn-hero-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37,99,235,0.3);
}
.btn-hero-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    color: var(--white);
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}
.btn-hero-outline:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--dark);
    transform: translateY(-2px);
}
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    color: var(--white);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: var(--transition);
}
.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
    background: var(--primary);
}
.hero-slider .swiper-button-next::after,
.hero-slider .swiper-button-prev::after {
    font-size: 1.2rem;
}
.hero-slider .swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.5;
    width: 12px;
    height: 12px;
}
.hero-slider .swiper-pagination-bullet-active {
    background: var(--primary);
    opacity: 1;
}

/* === Services Section === */
.services-section {
    padding: 5rem 0;
    background: var(--white);
}
.service-card-modern {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}
.service-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}
.service-card-modern:hover::before {
    transform: scaleX(1);
}
.service-icon-modern {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(37,99,235,0.1) 0%, rgba(99,102,241,0.1) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}
.service-card-modern:hover .service-icon-modern {
    background: var(--gradient-primary);
    color: var(--white);
    transform: scale(1.1);
}
.service-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.service-link:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

/* === Why Choose Us Section === */
.why-choose-section {
    padding: 5rem 0;
    background: var(--gray-50);
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--gray-700);
}
.feature-item i {
    font-size: 1.25rem;
}
.why-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    height: 100%;
}
.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.why-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(37,99,235,0.1) 0%, rgba(99,102,241,0.1) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0 auto 1rem;
}

/* === Portfolio Section === */
.portfolio-section {
    padding: 5rem 0;
    background: var(--white);
}
.portfolio-card-modern {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.portfolio-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}
.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 240px;
}
.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.portfolio-card-modern:hover .portfolio-image img {
    transform: scale(1.1);
}
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.portfolio-card-modern:hover .portfolio-overlay {
    opacity: 1;
}
.portfolio-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gray-400);
}
.portfolio-content {
    padding: 1.5rem;
}
.portfolio-category {
    display: inline-block;
    background: rgba(37,99,235,0.1);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

/* === Technology Section === */
.tech-section {
    padding: 5rem 0;
    background: var(--gray-50);
}
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}
.tech-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem 1rem;
    text-align: center;
    transition: var(--transition);
}
.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.tech-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    transition: var(--transition);
}
.tech-item:hover .tech-icon {
    transform: scale(1.2);
}

/* === Counter Section === */
.counter-section {
    padding: 5rem 0;
    background: var(--gradient-primary);
    position: relative;
}
.counter-wrapper {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    border: 1px solid rgba(255,255,255,0.1);
}
.counter-item-modern {
    padding: 1.5rem;
}
.counter-icon {
    font-size: 2.5rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1rem;
}
.counter-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.counter-label {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

/* === Testimonial Section === */
.testimonial-section {
    padding: 5rem 0;
    background: var(--white);
}
.testimonialSwiper {
    padding-bottom: 60px;
}
.testimonial-card-modern {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin: 0.5rem;
    transition: var(--transition);
}
.testimonial-card-modern:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.testimonial-rating {
    margin-bottom: 1.5rem;
}
.testimonial-rating .fa-star {
    color: var(--gray-300);
    font-size: 1rem;
}
.testimonial-rating .fa-star.active {
    color: #fbbf24;
}
.testimonial-text {
    font-size: 1.05rem;
    color: var(--gray-600);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 2rem;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.testimonial-author img,
.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.author-avatar {
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}
.testimonialSwiper .swiper-pagination-bullet {
    background: var(--gray-400);
    opacity: 0.5;
}
.testimonialSwiper .swiper-pagination-bullet-active {
    background: var(--primary);
    opacity: 1;
}

/* === Blog Section === */
.blog-section {
    padding: 5rem 0;
    background: var(--gray-50);
}
.blog-card-modern {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.blog-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}
.blog-image {
    height: 220px;
    overflow: hidden;
}
.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.blog-card-modern:hover .blog-image img {
    transform: scale(1.1);
}
.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}
.blog-category {
    background: rgba(37,99,235,0.1);
    color: var(--primary);
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}
.blog-date {
    color: var(--gray-500);
}
.blog-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}
.blog-link:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

/* === CTA Section === */
.cta-section {
    padding: 5rem 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}
.cta-content {
    position: relative;
    z-index: 1;
}
.cta-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 800;
}
.cta-content .lead {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
}
.cta-buttons .btn {
    border-radius: 50px;
    font-weight: 600;
    padding: 0.875rem 2.5rem;
}

/* === Page Header (Inner Pages) === */
.page-header {
    background: var(--gradient-primary);
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.page-header .breadcrumb {
    font-size: 0.95rem;
}
.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
}
.page-header .breadcrumb-item a:hover {
    color: var(--white);
}
.page-header .breadcrumb-item.active {
    color: rgba(255,255,255,0.6);
}

/* === Footer === */
footer {
    background: var(--dark);
    color: var(--gray-300);
    padding-top: 4rem;
}
footer h5, footer h6 {
    color: var(--white);
    font-weight: 700;
}
footer a {
    color: var(--gray-400);
    transition: var(--transition);
}
footer a:hover {
    color: var(--primary-light) !important;
}
footer .social-links a {
    font-size: 1.25rem;
    margin-right: 1rem;
}
footer hr {
    border-color: rgba(255,255,255,0.1);
    margin: 3rem 0 1.5rem;
}

/* === Scroll Top Button === */
.scroll-top {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}
.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}
.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

/* === Newsletter Form === */
.newsletter-form .form-control {
    border-radius: 50px 0 0 50px;
    border: none;
    padding: 0.75rem 1.25rem;
}
.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 0.75rem 1.5rem;
}

/* === Responsive Design === */
@media (max-width: 991px) {
    .hero-slider .swiper {
        height: 70vh;
        min-height: 500px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-lead {
        font-size: 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .counter-value {
        font-size: 2.25rem;
    }
    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-slider .swiper {
        height: 60vh;
        min-height: 450px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-lead {
        font-size: 0.95rem;
    }
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    .hero-buttons .btn.me-3 {
        margin-right: 0 !important;
    }
    .section-title {
        font-size: 1.75rem;
    }
    .section-subtitle {
        font-size: 1rem;
    }
    .counter-value {
        font-size: 2rem;
    }
    .cta-content h2 {
        font-size: 1.75rem;
    }
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    .cta-buttons .btn.me-3 {
        margin-right: 0 !important;
    }
    .page-header h1 {
        font-size: 2rem;
    }
    .top-bar {
        display: none;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.75rem;
    }
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .tech-item {
        padding: 1.5rem 0.75rem;
    }
    .tech-icon {
        font-size: 2rem;
    }
}

/* === Utility Classes === */
.bg-gradient-primary {
    background: var(--gradient-primary);
}
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* === Custom Scrollbar === */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--gray-100);
}
::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}
