/* ===================================
   UI/UX POLISH - MODERN DESIGN SYSTEM
   =================================== */

/* === Enhanced CSS Variables === */
:root {
    /* Update existing + add new */
    --font-en-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --primary-hover: #1d4ed8;
    --text-muted: #64748b;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08);
    --border-radius-sm: 0.5rem;
    --border-radius-md: 0.75rem;
    --border-radius-lg: 1rem;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Typography Enhancements === */
h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: -0.02em;
    line-height: 1.2;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Hero Section Polish === */
#hero {
    padding-top: 100px !important;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%) !important;
}

#hero::before {
    background: radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.03) 0%, transparent 50%);
    animation: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem !important;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* === Trust Strip === */
.trust-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    max-width: 500px;
    margin: 0 auto;
}

.trust-item {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.trust-divider {
    color: #cbd5e1;
    font-size: 0.75rem;
}

/* === Button System === */
.btn {
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-hero {
    padding: 1rem 2.5rem;
    font-size: 1.0625rem;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* === Navbar Polish === */
.navbar {
    padding: 1.25rem 0;
    height: 72px;
}

.navbar-logo {
    height: 40px;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.5rem 1rem;
}

.navbar.is-scrolled {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

/* === Card Improvements === */
.service-card,
.project-card {
    border-radius: var(--border-radius-lg);
    transition: var(--transition-smooth);
    border: 1px solid #e2e8f0;
}

.service-card:hover,
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card {
    border-radius: var(--border-radius-md);
}

/* === Section Improvements === */
section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.bg-light {
    background-color: #f8fafc !important;
}

/* === Contact Section === */
.contact-info-card {
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
    background: white;
    border: 1px solid #e2e8f0;
    padding: 1.25rem 1.5rem !important;
    /* Reduced vertical padding */
}

.contact-info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-info-card p {
    white-space: nowrap;
    /* Prevent text wrapping */
    overflow: visible;
    /* Allow full text visibility */
    font-size: 0.9375rem;
    line-height: 1.4;
    margin-bottom: 0;
}

.contact-info-card h6 {
    margin-bottom: 0.5rem;
    /* Tighter spacing */
    font-size: 0.75rem;
    /* Smaller label for better fit */
}

.contact-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 0.75rem !important;
    /* Reduced bottom margin */
}

/* Contact Section Layout Fix - Prevent Overlap */
#contact .col-lg-5 {
    margin-bottom: 2rem;
    /* Space below cards */
}

/* Stack cards vertically on all screens to prevent overlap with form */
#contact .row.g-3 {
    display: flex;
    flex-direction: column;
    gap: 0.75rem !important;
}

#contact .col-md-4 {
    flex: 0 0 auto;
    width: 100%;
    /* Full width for each card */
    max-width: 100%;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .contact-info-card {
        padding: 1.25rem 2rem !important;
        /* More horizontal padding */
    }
}

@media (max-width: 767px) {

    /* Mobile: Allow text to wrap if screen is very small */
    .contact-info-card p {
        white-space: normal;
        word-break: break-word;
    }

    .contact-info-card {
        padding: 1.25rem 1rem !important;
    }
}

/* === Back to Top Button === */
#backToTop {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
}

#backToTop:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* === WhatsApp Float === */
.whatsapp-float {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* === Responsive Refinements === */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 64px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero {
        width: 100%;
        max-width: 300px;
    }

    .trust-strip {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .navbar-collapse {
        background: white;
        padding: 1rem;
        margin-top: 1rem;
        border-radius: var(--border-radius-md);
        box-shadow: var(--shadow-lg);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .trust-item {
        font-size: 0.8125rem;
    }
}

/* === Utility Classes === */
.hover-lift {
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-2px);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* === Filter Buttons === */
.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    background: white;
    color: var(--text-dark);
    transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* === Form Improvements === */
.form-control,
.form-select {
    border-radius: var(--border-radius-sm);
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    transition: var(--transition-smooth);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* === Badge Improvements === */
.badge {
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
}

/* === About Section - Match Portfolio Style === */
.about-content {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    transition: transform 0.3s ease;
    font-size: 1rem;
    line-height: 1.6;
}

.about-content:hover {
    transform: translateY(-5px);
}

/* Gradient top border */
.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #10b981);
    border-radius: 15px 15px 0 0;
}

.about-content h3,
.about-content h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about-content h3 i,
.about-content h2 i {
    font-size: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .about-content {
        padding: 1.5rem;
        margin: 1rem;
    }

    .about-content h3,
    .about-content h2 {
        font-size: 1.4rem;
    }

    .about-content p {
        font-size: 1rem;
    }
}

/* === Contact Form Buttons === */
#contact form button.btn {
    padding: 0.625rem 1.25rem !important;
    /* Smaller padding */
    font-size: 0.875rem !important;
    /* Smaller font */
}

#contact form button.btn i {
    font-size: 1rem;
    /* Smaller icon */
}