/*------------------------------------------------------------------
    Modern UI/UX Enhancements for Softecki
    Professional Software Company Design
-------------------------------------------------------------------*/

/* ============================================
   MODERN VARIABLES & ROOT STYLES
============================================ */
:root {
    --primary-gradient: linear-gradient(135deg, #068BEA 0%, #0066CC 100%);
    --secondary-gradient: linear-gradient(135deg, #fd8917 0%, #ff6b00 100%);
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --dark-overlay: linear-gradient(135deg, rgba(6, 139, 234, 0.95) 0%, rgba(0, 102, 204, 0.95) 100%);
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   ENHANCED TYPOGRAPHY
============================================ */
body {
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.7;
}

h1 {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.3;
    background: linear-gradient(135deg, #fff 0%, #e0f2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
}

h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
}

h4 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title::after {
    background: var(--secondary-gradient);
    height: 5px;
    width: 80px;
    border-radius: 10px;
}

/* ============================================
   ENHANCED NAVBAR
============================================ */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(6, 139, 234, 0.95) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.1em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--secondary-gradient);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
    border-radius: 10px;
}

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

/* ============================================
   MODERN HERO/BANNER SECTION
============================================ */
.banner {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../imgs/header2.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

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

.banner .caption {
    padding-top: 150px !important;
    padding-bottom: 100px;
}

.banner .caption h1 {
    margin-bottom: 25px;
    animation: fadeInUp 1s ease-out;
}

.banner .caption .sub {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.95);
    animation: fadeInUp 1.2s ease-out;
    font-weight: 400;
}

.banner .btn {
    margin: 10px;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.banner .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.banner .btn:hover::before {
    width: 300px;
    height: 300px;
}

.banner .btn-primary {
    background: var(--secondary-gradient);
    box-shadow: 0 10px 30px rgba(253, 137, 23, 0.4);
}

.banner .btn-success {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

/* ============================================
   CAROUSEL ENHANCEMENTS
============================================ */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

/* ============================================
   ABOUT SECTION ENHANCEMENTS
============================================ */
#about {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

#about .col-md-4 {
    padding: 40px 30px;
    border-radius: 20px;
    transition: var(--transition-smooth);
    margin-bottom: 30px;
}

#about .col-md-4:hover {
    background: white;
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-10px);
}

#about h4 {
    font-size: 24px;
    font-weight: 700;
    margin: 25px 0 15px;
    color: #068BEA;
}

#about p {
    font-size: 15px;
    line-height: 1.8;
}

/* ============================================
   SERVICES SECTION
============================================ */
#services {
    background: white;
    position: relative;
}

#services h3 {
    font-size: 38px;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 25px;
    line-height: 1.3;
}

#services .img-table,
#services .seconde img {
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

#services .img-table:hover,
#services .seconde img:hover {
    box-shadow: var(--card-shadow-hover);
    transform: scale(1.02);
}

#services ul li {
    font-size: 16px;
    margin: 15px 0;
    font-weight: 600;
}

/* ============================================
   FEATURES SECTION
============================================ */
#features {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

#features .feature {
    padding: 24px 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: var(--transition-smooth);
    height: 100%;
}

#features .feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
}

#features .feature-icon {
    margin-bottom: 25px;
    transition: var(--transition-smooth);
}

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

#features .feature h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
}

/* ============================================
   PRICING SECTION
============================================ */
#prices {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

#prices::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../imgs/pricing-bg.png');
    opacity: 0.1;
    background-size: cover;
}

#prices .price-table {
    border-radius: 25px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border: 3px solid transparent;
}

#prices .price-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-gradient);
}

#prices .price-table:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
    border-color: #068BEA;
}

#prices .price-table .header .title {
    font-size: 16px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#prices .price-table .header h4 {
    font-size: 20px;
    color: #666;
    font-weight: 600;
}

#prices .price-table ul li {
    font-size: 13px;
    margin: 15px 0;
    font-weight: 600;
}

/* ============================================
   TESTIMONIALS
============================================ */
#testimonials {
    background: white;
}

#testimonials .quote {
    font-size: 16px !important;
    font-style: italic;
    color: #1a202c;
    line-height: 1.8;
}

/* ============================================
   SCREENSHOTS SECTION
============================================ */
#screenshots {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

#screenshots .item img {
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

#screenshots .item img:hover {
    box-shadow: var(--card-shadow-hover);
    transform: scale(1.05);
}

/* ============================================
   BRANDS SECTION
============================================ */
#brands {
    background: white;
}

/* ============================================
   CONTACT SECTION
============================================ */
#contact {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    position: relative;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../imgs/footer.png');
    opacity: 0.1;
    background-size: cover;
}

#contact .container {
    position: relative;
    z-index: 2;
}

#contact form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 25px;
    box-shadow: var(--card-shadow);
}

#contact form .form-control {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 15px 20px;
    transition: var(--transition-smooth);
}

#contact form .form-control:focus {
    background: white;
    border-color: #068BEA;
    box-shadow: 0 0 0 3px rgba(6, 139, 234, 0.1);
    transform: translateY(-2px);
}

#contact form label {
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

#contact .btn-primary {
    background: var(--secondary-gradient);
    border: none;
    padding: 15px 50px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 10px 30px rgba(253, 137, 23, 0.4);
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.banner img {
    animation: float 6s ease-in-out infinite;
}

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

.card-modern {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.card-modern:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-10px);
}

/* Homepage Solutions Grid */
.solutions-grid {
    margin-top: 40px;
}

.solution-card h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.solution-card p {
    font-size: 14px;
    margin-bottom: 15px;
}

.solution-points {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
    font-size: 14px;
}

.solution-points li::before {
    content: "•";
    color: #068BEA;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: 0;
}

.solution-actions .btn {
    margin: 3px 3px 0 0;
}

/* Distinct accent colors per solution card */
.solutions-grid .solution-card {
    border-top: 4px solid #068BEA;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.solutions-grid .col-md-4:nth-child(1) .solution-card { border-top-color: #068BEA; }
.solutions-grid .col-md-4:nth-child(2) .solution-card { border-top-color: #10b981; }
.solutions-grid .col-md-4:nth-child(3) .solution-card { border-top-color: #ef4444; }
.solutions-grid .col-md-4:nth-child(4) .solution-card { border-top-color: #f59e0b; }
.solutions-grid .col-md-4:nth-child(5) .solution-card { border-top-color: #8b5cf6; }
.solutions-grid .col-md-4:nth-child(6) .solution-card { border-top-color: #0ea5e9; }
.solutions-grid .col-md-4:nth-child(7) .solution-card { border-top-color: #ec4899; }
.solutions-grid .col-md-4:nth-child(8) .solution-card { border-top-color: #22c55e; }
.solutions-grid .col-md-4:nth-child(9) .solution-card { border-top-color: #f97316; }
.solutions-grid .col-md-4:nth-child(10) .solution-card { border-top-color: #14b8a6; }

.solutions-grid .solution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
}

/* ============================================
   SERVICE DETAIL PAGE COLOR THEMES
   Each service gets a subtle but distinct feel
   while keeping the main Softecki branding.
============================================ */

body[class^="service-"] #home .banner {
    padding-top: 120px;
    padding-bottom: 80px;
}

body.service-school {
    background-color: #f5f9ff;
}
body.service-school .section-title { color: #0456a8; }
body.service-school #about { background: #ffffff; }
body.service-school #services { background: #f0f5ff; }

body.service-microfinance {
    background-color: #f3fdf9;
}
body.service-microfinance .section-title { color: #047857; }
body.service-microfinance #about { background: #ffffff; }
body.service-microfinance #services { background: #e6fbf2; }

body.service-hospital {
    background-color: #f4fbff;
}
body.service-hospital .section-title { color: #0369a1; }
body.service-hospital #about { background: #ffffff; }
body.service-hospital #services { background: #e5f5ff; }

body.service-petrol {
    background-color: #fff8ed;
}
body.service-petrol .section-title { color: #b45309; }
body.service-petrol #about { background: #ffffff; }
body.service-petrol #services { background: #ffedd5; }

body.service-property {
    background-color: #f7f5ff;
}
body.service-property .section-title { color: #6d28d9; }
body.service-property #about { background: #ffffff; }
body.service-property #services { background: #ede9fe; }

body.service-church {
    background-color: #fdf7ff;
}
body.service-church .section-title { color: #7c2d12; }
body.service-church #about { background: #ffffff; }
body.service-church #services { background: #fef3c7; }

body.service-mobileapp {
    background-color: #f5fbff;
}
body.service-mobileapp .section-title { color: #0ea5e9; }
body.service-mobileapp #about { background: #ffffff; }
body.service-mobileapp #services { background: #e0f2fe; }

body.service-integration {
    background-color: #f3fbff;
}
body.service-integration .section-title { color: #0f766e; }
body.service-integration #about { background: #ffffff; }
body.service-integration #services { background: #e0f7ff; }

/* Subtle entrance animation for sections on service detail pages */
@keyframes fadeInUpSoft {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body[class^="service-"] section {
    animation: fadeInUpSoft 0.6s ease both;
}

body[class^="service-"] section:nth-of-type(2) { animation-delay: 0.05s; }
body[class^="service-"] section:nth-of-type(3) { animation-delay: 0.10s; }
body[class^="service-"] section:nth-of-type(4) { animation-delay: 0.15s; }
body[class^="service-"] section:nth-of-type(5) { animation-delay: 0.20s; }

/* ============================================
   RESPONSIVE ENHANCEMENTS
============================================ */
@media (max-width: 992px) {
    h1 {
        font-size: 48px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    #contact form {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .banner .btn {
        padding: 15px 30px;
        font-size: 14px;
    }
    
    #contact form {
        padding: 20px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   ADDITIONAL PROFESSIONAL TOUCHES
============================================ */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: #068BEA;
    color: white;
}

::-moz-selection {
    background: #068BEA;
    color: white;
}

/* Loading Animation Enhancement */
.preloader-holder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ============================================
   SOCIAL MEDIA ENHANCEMENTS
============================================ */
#contact a[href*="whatsapp"]:hover {
    background: #25D366 !important;
}

#contact a[href*="mailto"]:hover {
    background: #EA4335 !important;
}

#contact a[href*="linkedin"]:hover {
    background: #0077B5 !important;
}

#contact a[href*="twitter"]:hover {
    background: #1DA1F2 !important;
}

/* ============================================
   SCROLL TO TOP BUTTON
============================================ */
#scrollTopBtn {
    transition: var(--transition-smooth);
}

#scrollTopBtn:hover {
    transform: translateY(-5px) scale(1.1) !important;
}

/* ============================================
   ENHANCED STAT ITEMS
============================================ */
.stat-item {
    transition: var(--transition-smooth);
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-item i {
    transition: var(--transition-smooth);
}

.stat-item:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* ============================================
   FORM ENHANCEMENTS
============================================ */
.form-control:hover {
    border-color: #068BEA;
}

.form-control::placeholder {
    color: #999;
    font-style: italic;
}

/* ============================================
   BADGE & TRUST INDICATORS
============================================ */
.trust-badge {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(37, 211, 102, 0.1);
    border-radius: 20px;
    margin: 5px;
    font-size: 13px;
    font-weight: 600;
}

/* ============================================
   PRICING TABLE ENHANCEMENTS
============================================ */
#prices .price-table ul li:last-child {
    border-bottom: none;
}

#prices .price-table:hover .header .title {
    transform: scale(1.05);
    transition: var(--transition-smooth);
}

/* ============================================
   CAROUSEL INDICATORS
============================================ */
.carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    margin: 0 5px;
}

.carousel-indicators .active {
    background: #fd8917;
    transform: scale(1.2);
}

/* ============================================
   LOADING STATES
============================================ */
.btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
============================================ */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid rgba(6, 139, 234, 0.3);
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
============================================ */
@media print {
    .navbar,
    .carousel-control-prev,
    .carousel-control-next,
    #scrollTopBtn,
    .btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ============================================
   HIGH CONTRAST MODE
============================================ */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .card-modern {
        border: 2px solid #000;
    }
}
