/*==================== GOOGLE FONTS ====================*/
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Be+Vietnam+Pro:wght@300;400;500;600;700&display=swap");

/*==================== VARIABLES CSS ====================*/
:root {
    --header-height: 3rem;

    /*========== Colors ==========*/
    /* Change favorite color */
    --hue-color: 250; /*Purple 250 - Green 142 - Blue 230 - Pink 340*/

    /* HSL color mode */
    --first-color: hsl(var(--hue-color), 69%, 61%);
    --first-color-second: hsl(var(--hue-color), 69%, 61%);
    --first-color-alt: hsl(var(--hue-color), 57%, 53%);
    --first-color-lighter: hsl(var(--hue-color), 92%, 85%);
    --title-color: hsl(var(--hue-color), 8%, 15%);
    --text-color: hsl(var(--hue-color), 8%, 45%);
    --text-color-light: hsl(var(--hue-color), 8%, 65%);
    --input-color: hsl(var(--hue-color), 70%, 96%);
    --body-color: hsl(var(--hue-color), 60%, 99%);
    --container-color: #fff;
    --scroll-bar-color: hsl(var(--hue-color), 12%, 90%);
    --scroll-thumb-color: hsl(var(--hue-color), 12%, 80%);

    /*========== Font and typography ==========*/
    --body-font: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

    /* .5rem = 8px, 1rem = 16px, 1.5rem = 24px ... */
    --big-font-size: 2rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1.125rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;

    /*========== Font weight ==========*/
    --font-medium: 500;
    --font-semi-bold: 600;

    /*========== Margenes Bottom ==========*/
    /* .25rem = 4px, .5rem = 8px, .75rem = 12px ... */
    --mb-0-25: .25rem;
    --mb-0-5: .5rem;
    --mb-0-75: .75rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    --mb-3: 3rem;

    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
}

/* Font size for large devices */
@media screen and (min-width: 968px) {
    :root {
        --big-font-size: 3rem;
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
        --smaller-font-size: .813rem;
    }
}

/*========== Variables Dark theme ==========*/
body.dark-theme {
    --title-color: hsl(var(--hue-color), 8%, 95%);
    --text-color: hsl(var(--hue-color), 8%, 75%);
    --input-color: hsl(var(--hue-color), 29%, 16%);
    --body-color: hsl(var(--hue-color), 28%, 12%);
    --container-color: hsl(var(--hue-color), 29%, 16%);
    --scroll-bar-color: hsl(var(--hue-color), 12%, 48%);
    --scroll-thumb-color: hsl(var(--hue-color), 12%, 36%);
}

/*========== Button Dark/Light ==========*/
.change-theme {
    font-size: 1.25rem;
    color: var(--title-color);
    margin-right: var(--mb-1);
    cursor: pointer;
}

.change-theme:hover {
    color: var(--first-color);
}

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

/* Prevent horizontal overflow */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Prevent scroll flashing during page load */
.container, .container-fluid, .row, [class*="col-"] {
  max-width: 100%;
  will-change: auto;
}

/* Smooth rendering */
section {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.container, .container-fluid {
  max-width: 100%;
}

.row {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
  contain: layout;
}

[class*="col-"] {
  max-width: 100%;
  will-change: auto;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  height: 100%;
}

body {
  margin: 0 0 var(--header-height) 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  transition: .4s; /*For animation dark mode*/
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  will-change: auto;
}

/* Performance optimization */
.section-padding {
  contain: layout;
  transform: translateZ(0);
}

/* Prevent layout shifts */
* {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* AOS Animation Performance */
[data-aos] {
  will-change: transform, opacity;
  transform: translateZ(0);
}

/* Prevent scroll jumping */
html {
  scroll-padding-top: 70px;
}

/*==================== BOOTSTRAP OVERRIDES ====================*/
.navbar-brand {
    font-weight: 600;
    font-size: 1.3rem;
    color: #667eea !important;
    font-family: 'Be Vietnam Pro', sans-serif !important;
}

/* Better Vietnamese font rendering */
body, .navbar-nav .nav-link, h1, h2, h3, h4, h5, h6, p, span, div {
    font-family: var(--body-font) !important;
    font-feature-settings: "kern" 1, "liga" 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.navbar {
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.navbar.sticky-top {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    width: 100%;
}

.navbar.scroll-header {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
    padding: 0.3rem 0;
}

.dark-theme .navbar.scroll-header {
    background-color: rgba(30, 30, 40, 0.98) !important;
}

.navbar-nav .nav-link {
    font-size: 0.9rem;
    padding: 0.3rem 0.7rem !important;
    margin: 0 0.1rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--first-color) !important;
    background-color: rgba(102, 126, 234, 0.1);
    border-radius: 0.5rem;
}

.navbar-nav .nav-link i {
    margin-right: 0.3rem;
    font-size: 0.9rem;
}

/* Responsive navbar adjustments */
@media (max-width: 1200px) {
    .navbar-nav .nav-link {
        font-size: 0.85rem;
        padding: 0.3rem 0.5rem !important;
    }

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

@media (max-width: 992px) {
    .navbar-nav .nav-link {
        font-size: 0.8rem;
        padding: 0.25rem 0.4rem !important;
    }

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

/* Mobile navbar fixes */
@media (max-width: 1200px) {
    /* Reset container to default Bootstrap behavior */
    .navbar .container-fluid {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Brand stays on left */
    .navbar-brand {
        margin-right: 0 !important;
        flex-shrink: 0 !important;
        order: 1 !important;
        margin-left: 0 !important;
    }

    /* Hamburger on right */
    .navbar-toggler {
        margin-left: auto !important;
        border: none !important;
        order: 3 !important;
        position: absolute !important;
        right: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    /* Menu dropdown styling */
    .navbar-collapse {
        flex-basis: 100% !important;
        text-align: center;
        order: 2 !important;
        clear: both !important;
    }

    .navbar-nav {
        margin: 1rem 0;
        text-align: center;
    }

    .navbar-nav .nav-item {
        margin: 0.2rem 0;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
        display: block;
    }

    #theme-toggle {
        margin: 1rem auto 0 auto !important;
        display: block;
        width: fit-content;
    }
}

/* Desktop navbar centering */
@media (min-width: 1200px) {
    .navbar-nav.mx-auto {
        margin: 0 auto !important;
    }

    .navbar .container-fluid {
        display: flex !important;
        align-items: center !important;
    }
}/* Desktop navbar centering */
@media (min-width: 1200px) {
    .navbar-nav.mx-auto {
        margin: 0 auto !important;
    }
}

/* Ensure proper flex behavior on mobile */
@media (max-width: 1200px) {
    .navbar .container-fluid {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }
}/* Ensure button doesn't wrap */
#theme-toggle {
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
    margin-left: 0.5rem !important;
}

/* Additional mobile navbar fixes */
@media (max-width: 1200px) {
    .navbar-expand-xl .navbar-nav {
        flex-direction: column !important;
    }

    .navbar-expand-xl .navbar-collapse {
        display: none !important;
    }

    .navbar-expand-xl .navbar-collapse.show {
        display: block !important;
    }

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

.dark-theme .navbar {
    background-color: rgba(30, 30, 40, 0.95) !important;
}

.hero-section {
    /* background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><defs><linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23667eea;stop-opacity:0.3" /><stop offset="100%" style="stop-color:%23764ba2;stop-opacity:0.3" /></linearGradient></defs><rect width="1920" height="1080" fill="url(%23grad1)"/><g><circle cx="300" cy="200" r="120" fill="%23ffffff" opacity="0.1"/><circle cx="1500" cy="300" r="80" fill="%23ffffff" opacity="0.15"/><circle cx="800" cy="600" r="150" fill="%23ffffff" opacity="0.08"/><circle cx="1200" cy="800" r="100" fill="%23ffffff" opacity="0.12"/><polygon points="400,400 500,300 600,400 500,500" fill="%23ffffff" opacity="0.1"/><polygon points="1000,200 1150,150 1200,300 1050,350" fill="%23ffffff" opacity="0.08"/><rect x="1400" y="600" width="200" height="200" rx="20" fill="%23ffffff" opacity="0.1"/><path d="M100,700 Q200,600 300,700 T500,700" stroke="%23ffffff" stroke-width="3" fill="none" opacity="0.15"/><path d="M1100,100 Q1300,50 1500,100 T1700,100" stroke="%23ffffff" stroke-width="2" fill="none" opacity="0.12"/></g></svg>') center/cover; */
    background: url(../img/3d-render-code-testing-functional-test-usability.jpg) center/cover no-repeat;
    min-height: 100vh;
    color: #2c3e50;
    padding-top: 60px;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 200, 255, 0.2) 0%, transparent 50%);
}

/* Hero content overlay */
.hero-content-overlay {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.hero-content-overlay:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.85);
}

/* Add subtle gradient border */
.hero-content-overlay::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, #667eea, #764ba2, #667eea);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.2;
}

/* Hero section text colors */
.hero-section h1,
.hero-section h3,
.hero-section p {
    color: #2c3e50 !important;
    text-shadow: none;
}

.hero-section .btn-light {
    background-color: #667eea;
    border-color: #667eea;
    color: white;
}

.hero-section .btn-light:hover {
    background-color: #5a67d8;
    border-color: #5a67d8;
    color: white;
}

.hero-section .btn-outline-light {
    border-color: #2c3e50;
    color: #2c3e50;
    background-color: transparent;
}

.hero-section .btn-outline-light:hover {
    background-color: #2c3e50;
    border-color: #2c3e50;
    color: white;
}

.hero-section a {
    color: #2c3e50 !important;
}

.hero-section a:hover {
    color: #667eea !important;
}

/* Responsive hero content overlay */
@media (max-width: 768px) {
    .hero-content-overlay {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
        border-radius: 15px;
    }
}

@media (max-width: 576px) {
    .hero-content-overlay {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
        border-radius: 12px;
    }
}

.feature-icon {
    font-size: 3rem;
    color: #667eea;
}

.dark-theme .feature-icon {
    color: #8b9cff;
}

/*==================== PORTFOLIO SWIPER ====================*/
.portfolioSwiper {
    padding: 20px 0 50px 0;
}

.portfolioSwiper .swiper-slide {
    height: auto;
    display: flex;
}

.portfolioSwiper .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.portfolioSwiper .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.portfolioSwiper .card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: 0.375rem 0.375rem 0 0;
}

.portfolioSwiper .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.portfolioSwiper .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--title-color);
}

.portfolioSwiper .card-text {
    flex: 1;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.portfolioSwiper .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Swiper navigation buttons */
.portfolioSwiper .swiper-button-next,
.portfolioSwiper .swiper-button-prev {
    color: var(--first-color);
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.portfolioSwiper .swiper-button-next:after,
.portfolioSwiper .swiper-button-prev:after {
    font-size: 16px;
    font-weight: 600;
}

.portfolioSwiper .swiper-pagination-bullet {
    background: var(--first-color);
    opacity: 0.3;
}

.portfolioSwiper .swiper-pagination-bullet-active {
    opacity: 1;
}

/* Dark theme support */
.dark-theme .portfolioSwiper .card {
    background-color: var(--container-color);
}

.dark-theme .portfolioSwiper .card-title {
    color: var(--title-color);
}

.dark-theme .portfolioSwiper .card-text {
    color: var(--text-color);
}

.dark-theme .portfolioSwiper .swiper-button-next,
.dark-theme .portfolioSwiper .swiper-button-prev {
    background: rgba(30, 30, 40, 0.9);
    color: var(--first-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .portfolioSwiper .card-img-top {
        height: 180px;
    }

    .portfolioSwiper .card-body {
        padding: 1rem;
    }

    .portfolioSwiper .swiper-button-next,
    .portfolioSwiper .swiper-button-prev {
        display: none; /* Hide navigation buttons on mobile to prevent overflow */
    }

    .portfolioSwiper .swiper-button-next:after,
    .portfolioSwiper .swiper-button-prev:after {
        font-size: 14px;
    }

    /* Show pagination instead on mobile */
    .portfolioSwiper .swiper-pagination {
        display: block !important;
    }
}

/*==================== NEW PRICING SECTION ====================*/
.pricing-grid {
    margin-top: 3rem;
}

.pricing-card-new {
    background: var(--container-color);
    border-radius: 15px;
    padding: 0;
    height: 100%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.pricing-card-new:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
}

.pricing-card-new.featured {
    border-color: var(--first-color);
    transform: scale(1.05);
}

.pricing-card-new.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-header-new {
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.pricing-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.pricing-icon i {
    font-size: 1.8rem;
    color: white;
}

.pricing-header-new h4 {
    color: var(--title-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.pricing-description {
    color: var(--text-color);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.pricing-amount {
    margin-bottom: 0.8rem;
}

.price-main {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--first-color);
    line-height: 1;
}

.custom-price {
    font-size: 2rem;
}

.price-currency {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.price-period {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-top: 0.5rem;
}

.pricing-features {
    padding: 0 1.5rem 0.8rem;
}

.pricing-features ul li {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.pricing-features ul li:last-child {
    border-bottom: none;
}

.pricing-features ul li i {
    margin-right: 1rem;
    font-size: 1.1rem;
    color: #28a745;
    width: 20px;
}

.pricing-features ul li.unavailable {
    color: var(--text-color-light);
}

.pricing-features ul li.unavailable i {
    color: #dc3545;
}

.pricing-action {
    padding: 1.2rem 1.5rem 2rem;
    text-align: center;
}

.btn-pricing {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.btn-pricing:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4c93 100%);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.btn-pricing.featured {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.btn-pricing.featured:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
}

.pricing-note {
    color: var(--text-color-light);
    font-size: 0.8rem;
    font-style: italic;
}

/* FAQ Section */
.pricing-faq {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.accordion-button {
    background-color: var(--container-color);
    border: none;
    color: var(--title-color);
    font-weight: 600;
    padding: 1.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--first-color);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-body {
    background-color: var(--container-color);
    color: var(--text-color);
    padding: 1.5rem;
}

/* Dark theme support */
.dark-theme .pricing-card-new {
    background: var(--container-color);
}

.dark-theme .pricing-header-new {
    background: linear-gradient(135deg, rgba(139, 156, 255, 0.1) 0%, rgba(139, 156, 255, 0.05) 100%);
}

.dark-theme .pricing-features ul li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .accordion-button {
    background-color: var(--container-color);
    color: var(--title-color);
}

.dark-theme .accordion-body {
    background-color: var(--container-color);
    color: var(--text-color);
}

/* Responsive */
@media (max-width: 768px) {
    .pricing-card-new.featured {
        transform: none;
    }

    .pricing-card-new.featured:hover {
        transform: translateY(-10px);
    }

    .pricing-header-new {
        padding: 2rem 1.5rem 1.5rem;
    }

    .pricing-features,
    .pricing-action {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .price-main {
        font-size: 2rem;
    }
}

/* Full HD optimization */
@media (min-width: 1920px) {
    .pricing-card-new {
        max-height: 750px;
        display: flex;
        flex-direction: column;
    }

    .pricing-header-new {
        padding: 1.8rem 1.5rem 1.3rem;
        flex-shrink: 0;
    }

    .pricing-features {
        padding: 0 1.3rem 0.5rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .pricing-action {
        padding: 1rem 1.3rem 1.5rem;
        flex-shrink: 0;
        margin-top: auto;
    }

    .pricing-icon {
        width: 65px;
        height: 65px;
        margin-bottom: 0.8rem;
    }

    .pricing-icon i {
        font-size: 1.6rem;
    }

    .pricing-header-new h4 {
        font-size: 1.25rem;
    }

    .pricing-description {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .pricing-features ul li {
        padding: 0.5rem 0;
        font-size: 0.85rem;
    }

    .btn-pricing {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }

    .price-main {
        font-size: 2rem;
    }
}

/*==================== PACKAGE SELECTION MODAL ====================*/
.package-modal .modal-dialog {
    max-width: 500px;
}

.package-summary {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid #667eea;
}

.package-title {
    color: #667eea;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.package-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.package-features {
    margin-bottom: 0;
}

.package-features li {
    padding: 0.3rem 0;
    font-size: 0.9rem;
    color: #4a5568;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-buy-now {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.btn-buy-now:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    transform: translateY(-2px);
    color: white;
}

.btn-consult {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.btn-consult:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    color: white;
}

.action-btn-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.action-btn-text {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 0.2rem;
}

/*==================== QUICK CHECKOUT FORM ====================*/
.checkout-form .form-floating {
    margin-bottom: 1rem;
}

.checkout-form .form-control {
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    padding: 1rem 0.75rem;
}

.checkout-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.payment-option {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.payment-option:hover,
.payment-option.selected {
    border-color: #667eea;
    background: #f8f9ff;
}

.payment-option i {
    font-size: 1.2rem;
    color: #667eea;
    margin-bottom: 0.3rem;
}

.payment-option span {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
}

.btn-checkout {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-checkout:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    transform: translateY(-2px);
    color: white;
}

/*==================== CONSULTATION FORM ====================*/
.time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.time-slot {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.8rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-size: 0.85rem;
}

.time-slot:hover,
.time-slot.selected {
    border-color: #667eea;
    background: #f8f9ff;
    color: #667eea;
}

.brief-upload {
    border: 2px dashed #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.brief-upload:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.brief-upload i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.btn-schedule {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-schedule:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    color: white;
}

/* Dark theme support */
.dark-theme .package-summary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: #8b9cff;
}

.dark-theme .payment-option,
.dark-theme .time-slot {
    background: var(--container-color);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .payment-option:hover,
.dark-theme .payment-option.selected,
.dark-theme .time-slot:hover,
.dark-theme .time-slot.selected {
    border-color: #8b9cff;
    background: rgba(139, 156, 255, 0.1);
}

.dark-theme .brief-upload {
    background: var(--container-color);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .brief-upload:hover {
    border-color: #8b9cff;
    background: rgba(139, 156, 255, 0.1);
}

.service-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
    background-color: var(--container-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.testimonial-card {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 2rem;
    height: 100%;
}

.dark-theme .testimonial-card {
    background: var(--container-color);
    border-left: 4px solid #8b9cff;
}

/*==================== PROCESS TIMELINE ====================*/
.process-timeline {
    position: relative;
    padding: 2rem 0;
}

.process-card {
    position: relative;
    background: var(--container-color);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
}

.process-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
}

.process-icon i {
    font-size: 2rem;
    color: white;
}

.step-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.process-content h5 {
    color: var(--title-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    white-space: nowrap;
    text-align: center;
}

.process-content p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Timeline connector for desktop */
.process-connector {
    display: none;
}

@media (min-width: 992px) {
    .process-connector {
        display: block;
        position: absolute;
        top: 40px;
        right: -40px;
        width: 80px;
        height: 2px;
        background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
        z-index: 1;
    }

    .process-connector::after {
        content: '';
        position: absolute;
        right: -8px;
        top: -3px;
        width: 0;
        height: 0;
        border-left: 8px solid #764ba2;
        border-top: 4px solid transparent;
        border-bottom: 4px solid transparent;
    }

    .process-card:last-child .process-connector {
        display: none;
    }
}

/* Timeline progress line */
.process-timeline-line {
    position: relative;
    margin-top: 2rem;
    width: 80%;
    height: 4px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 2px;
    margin-left: auto;
    margin-right: auto;
}

.timeline-progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    width: 0%;
    animation: progressAnimation 3s ease-in-out forwards;
}

@keyframes progressAnimation {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Dark theme support */
.dark-theme .process-card {
    background: var(--container-color);
    border-color: rgba(139, 156, 255, 0.2);
}

.dark-theme .process-card:hover {
    box-shadow: 0 20px 40px rgba(139, 156, 255, 0.1);
}

.dark-theme .process-content h5 {
    color: var(--title-color);
}

.dark-theme .process-content p {
    color: var(--text-color);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .process-card {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }

    .process-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }

    .process-icon i {
        font-size: 1.8rem;
    }

    .process-content h5 {
        font-size: 1.1rem;
    }

    .process-content p {
        font-size: 0.9rem;
    }
}

/* Animation delays for mobile */
@media (max-width: 991px) {
    .process-card[data-aos="fade-up"]:nth-child(1) { animation-delay: 0.1s; }
    .process-card[data-aos="fade-up"]:nth-child(2) { animation-delay: 0.2s; }
    .process-card[data-aos="fade-up"]:nth-child(3) { animation-delay: 0.3s; }
    .process-card[data-aos="fade-up"]:nth-child(4) { animation-delay: 0.4s; }
}

.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
}

.section-padding {
    padding: 5rem 0;
}

.about-stats {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 2rem;
}

.about-stats small {
    font-size: .775em;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
}

/*==================== DARK THEME SPECIFIC ====================*/
.dark-theme .bg-light {
    background-color: var(--container-color) !important;
}

.dark-theme .card {
    background-color: var(--container-color);
    color: var(--text-color);
}

.dark-theme .modal-content {
    background-color: var(--container-color);
    color: var(--text-color);
}

.dark-theme .nav-link {
    color: var(--text-color) !important;
}

.dark-theme .nav-link:hover {
    color: var(--first-color) !important;
}

/*==================== CONTAINER OPTIMIZATION ====================*/
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1320px;
    }

    .container-fluid {
        max-width: 1500px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 1140px;
    }
}

/* Ensure navbar items don't break */
.navbar-collapse {
    flex-grow: 0;
}

.navbar-nav {
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
}

/* Center navbar content */
.navbar .container-fluid {
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-brand {
    margin-right: 0 !important;
}

.navbar-collapse {
    justify-content: center;
}

#theme-toggle {
    margin-left: 0 !important;
}

/* Compact navbar for better space utilization */
@media (min-width: 1200px) {
    .navbar-nav .nav-link {
        font-size: 0.95rem;
        padding: 0.4rem 0.8rem !important;
    }
}

/* Ultra-wide screen optimizations */
@media (min-width: 1400px) {
    .navbar-nav .nav-link {
        font-size: 1rem;
        padding: 0.5rem 1rem !important;
    }

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

@media (max-width: 1199.98px) {
    .navbar .container-fluid {
        flex-direction: column;
        gap: 1rem;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
    }

    .navbar-collapse {
        justify-content: center;
    }
}

/* Container fluid adjustments */
.container-fluid.px-3 {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 1200px) {
    .container-fluid.px-3 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/*==================== FLOATING CTA BUTTON ====================*/
.floating-cta {
    bottom: 80px;
    right: 20px;
    z-index: 1000;
    animation: slideInUp 0.5s ease-out;
}

.btn-cta {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
    transform: translateY(0);
}

.btn-cta:hover {
    background: linear-gradient(135deg, #ff5252 0%, #d63031 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
    color: white;
}

.btn-cta i {
    margin-right: 8px;
    animation: bounce 2s infinite;
}

.btn-cta span {
    position: relative;
    z-index: 2;
}

.cta-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    transform: translate(-50%, -50%) scale(0);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/*==================== FLOATING FACEBOOK BUTTON ====================*/
.floating-facebook {
    bottom: 140px;
    right: 20px;
    z-index: 999;
}

.btn-facebook {
    background: linear-gradient(45deg, #1877f2, #42a5f5);
    border: none;
    border-radius: 50px;
    color: white;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: slideInRight 0.8s ease;
}

.btn-facebook:hover {
    background: linear-gradient(45deg, #166fe5, #3b96e8);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(24, 119, 242, 0.4);
    color: white;
    text-decoration: none;
}

.btn-facebook i {
    margin-right: 8px;
    font-size: 16px;
}

.btn-facebook span {
    font-size: 13px;
}

.facebook-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50px;
    background: rgba(24, 119, 242, 0.3);
    animation: facebookPulse 2s infinite;
    z-index: -1;
}

@keyframes facebookPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/*==================== CTA MODAL ====================*/
.modal-header.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.cta-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    animation: iconPulse 2s infinite;
}

.cta-icon i {
    font-size: 2rem;
    color: white;
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.btn-cta-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-cta-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    color: white;
}

.btn-cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-cta-primary:hover::before {
    left: 100%;
}

/*==================== RESPONSIVE CTA ====================*/
@media (max-width: 768px) {
    .floating-cta {
        bottom: 70px;
        right: 15px;
    }

    .floating-facebook {
        bottom: 130px;
        right: 15px;
    }

    .btn-cta {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .btn-facebook {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .btn-cta span,
    .btn-facebook span {
        display: none;
    }

    .btn-cta i,
    .btn-facebook i {
        margin-right: 0;
        font-size: 1.2rem;
    }
}

.dark-theme .form-control {
    background-color: var(--input-color);
    border-color: var(--input-color);
    color: var(--text-color);
}

.dark-theme .form-control:focus {
    background-color: var(--input-color);
    border-color: var(--first-color);
    color: var(--text-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.dark-theme .form-select {
    background-color: var(--input-color);
    border-color: var(--input-color);
    color: var(--text-color);
}

.dark-theme .nav-link {
    color: var(--text-color) !important;
}

.dark-theme .nav-link:hover {
    color: var(--first-color) !important;
}

/*==================== DARK THEME CTA ====================*/
.dark-theme .btn-cta {
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.dark-theme .btn-facebook {
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

.dark-theme .modal-content {
    background-color: var(--container-color);
    color: var(--text-color);
}

.dark-theme .cta-form .form-control,
.dark-theme .cta-form .form-select {
    background-color: var(--input-color);
    border-color: var(--input-color);
    color: var(--text-color);
}

.dark-theme .cta-form .form-control:focus,
.dark-theme .cta-form .form-select:focus {
    background-color: var(--input-color);
    border-color: var(--first-color);
    color: var(--text-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/*==================== REUSABLE CSS CLASSES ====================*/
.section {
  padding: 2rem 0 4rem;
}

.section__title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-3);
}

.section__title,
.section__subtitle {
  text-align: center;
}

/*==================== LAYOUT ====================*/
.grid {
  display: grid;
  gap: 1.5rem;
}

.header {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--body-color);
}

/*========== SCROLL BAR ==========*/
::-webkit-scrollbar {
  width: .60rem;
  background-color: var(--scroll-bar-color);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb-color);
  border-radius: .5rem;
}

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

/*==================== MEDIA QUERIES ====================*/
/* For small devices */
@media screen and (max-width: 350px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }
}

/* For medium devices */
@media screen and (min-width: 568px) {
  .about__container,
  .skills__container,
  .portfolio__content,
  .project__container,
  .contact__container,
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 768px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

  body {
    margin: 0;
  }

  .section {
    padding: 6rem 0 2rem;
  }
  .section__subtitle {
    margin-bottom: 4rem;
  }
}

/* For large devices */
@media screen and (min-width: 1024px) {
  .header,
  .main,
  .footer__container {
    padding: 0;
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav__icon,
  .nav__close,
  .nav__toggle {
    display: none;
  }
  .nav__list {
    display: flex;
    column-gap: 2rem;
  }
  .nav__menu {
    margin-left: auto;
  }
  .change-theme {
    margin: 0;
  }
}
