/* ===================================
   VISUAL ENHANCEMENTS - MODERN DESIGN IMPROVEMENTS
   Version 2.6 - Professional & User-Friendly Design
   =================================== */

/* ===================================
   ENHANCED TYPOGRAPHY
   =================================== */

/* Improved font stack with better fallbacks */
:root {
    /* Enhanced font variables */
    --font-primary-enhanced: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-secondary-enhanced: 'Playfair Display', Georgia, 'Times New Roman', serif;
    
    /* Enhanced spacing system */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Enhanced border radius system */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    /* Enhanced shadow system */
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-moderate: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 20px rgba(240, 74, 0, 0.15);
}

/* Enhanced typography base */
body {
    font-family: var(--font-primary-enhanced);
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: -0.01em;
    font-feature-settings: 'kern' 1, 'liga' 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Enhanced headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary-enhanced);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-md);
    color: var(--text-navy);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 650;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

/* Enhanced paragraph styling */
p {
    font-size: 1.125rem;
    line-height: 1.75;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    font-weight: 400;
}

/* ===================================
   ENHANCED LAYOUT & SPACING
   =================================== */

/* Improved container with better responsive padding */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem);
}

/* Enhanced section spacing */
section {
    padding: clamp(4rem, 8vw, 6rem) 0;
    position: relative;
}

/* Improved section headers */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-2xl);
    padding: 0 var(--spacing-md);
}

.section-subtitle {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-soft);
}

.section-title {
    margin-bottom: var(--spacing-md);
    line-height: 1.25;
}

.section-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ===================================
   ENHANCED BUTTONS & CTAs
   =================================== */

/* Modern button base styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-primary-enhanced);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 48px;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

/* Primary button enhanced */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    box-shadow: var(--shadow-moderate);
    border: 2px solid transparent;
}

.btn-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 ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

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

.btn-primary:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

/* Outline button enhanced */
.btn-outline {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-soft);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-moderate);
}

.btn-outline:active {
    transform: translateY(0);
}

/* Large button variant */
.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    border-radius: var(--radius-lg);
    min-height: 56px;
}

/* Button icons */
.btn i {
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: scale(1.1);
}

/* ===================================
   ENHANCED CARDS & COMPONENTS
   =================================== */

/* Service cards enhancement */
.service-card {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(240, 74, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(240, 74, 0, 0.2);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.05) rotate(5deg);
    box-shadow: var(--shadow-glow);
}

/* Project cards enhancement */
.project-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

/* FAQ enhancement */
.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    border: 1px solid var(--border-light);
    margin-bottom: var(--spacing-md);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-moderate);
    border-color: rgba(240, 74, 0, 0.2);
}

.faq-question {
    padding: var(--spacing-lg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(240, 74, 0, 0.02);
}

.faq-question h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-navy);
    line-height: 1.4;
}

.faq-answer {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ===================================
   ENHANCED HERO SECTION
   =================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    color: var(--text-white);
    margin-bottom: var(--spacing-xl);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.15;
    padding-top: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.hero-highlight-block {
    background: rgba(240, 74, 0, 0.9);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-strong);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    max-width: 600px;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: orangeBoxFloat 6s ease-in-out infinite;
    overflow: hidden;
}

.hero-highlight-block::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.hero-highlight-block:hover {
    transform: translateY(-3px) scale(1.02);
    background: rgba(240, 74, 0, 0.95);
    animation: highlightGlow 2s ease-in-out infinite;
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-highlight-block:hover::before {
    left: 100%;
    opacity: 1;
}

.hero-highlight-block:active {
    transform: translateY(-1px) scale(1.01);
    transition: transform 0.1s ease;
}

.hero-description-highlighted {
    font-size: 1.125rem;
    color: var(--text-white);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hero-highlight-block:hover .hero-description-highlighted {
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    transform: translateZ(0);
}

.hero-confidence-text {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    text-align: center;
}

.hero-confidence-text p {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.hero-highlight-block:hover .hero-confidence-text p {
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
    transform: scale(1.02);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
}

/* ===================================
   ENHANCED GRIDS & LAYOUTS
   =================================== */

/* Improved grid systems */
.services-grid,
.projects-grid,
.testimonials-grid,
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

/* Feature cards enhancement */
.feature-card {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    border: 1px solid var(--border-light);
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

/* ===================================
   ENHANCED FORMS
   =================================== */

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--text-navy);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: var(--font-primary-enhanced);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
    color: var(--text-primary);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(240, 74, 0, 0.1);
    background: var(--bg-white);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* ===================================
   ENHANCED ANIMATIONS
   =================================== */

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Graph/Chart icon animations */
@keyframes chartPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes dataTransition {
    0% {
        opacity: 0.7;
        transform: translateY(2px);
    }
    50% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0.7;
        transform: translateY(2px);
    }
}

@keyframes chartGlow {
    0% {
        box-shadow: 0 0 5px rgba(240, 74, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(240, 74, 0, 0.5);
    }
    100% {
        box-shadow: 0 0 5px rgba(240, 74, 0, 0.3);
    }
}

/* Enhanced hero highlight block animations */
@keyframes orangeBoxFloat {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes highlightGlow {
    0% {
        box-shadow: var(--shadow-strong);
    }
    50% {
        box-shadow: 0 8px 32px rgba(240, 74, 0, 0.4), 0 0 20px rgba(240, 74, 0, 0.2);
    }
    100% {
        box-shadow: var(--shadow-strong);
    }
}

/* Apply animations to elements */
.service-card,
.project-card,
.feature-card,
.testimonial-card {
    animation: fadeInScale 0.6s ease-out;
}

/* Chart/Graph icon animations */
.fa-chart-line,
.fa-chart-bar,
.fa-analytics {
    animation: chartPulse 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.fa-chart-line:hover,
.fa-chart-bar:hover,
.fa-analytics:hover {
    animation: dataTransition 1.5s ease-in-out infinite;
    transform: scale(1.1);
    color: var(--primary-light);
}

/* Service icon animations */
.service-icon {
    position: relative;
    overflow: visible;
}

.service-icon .fa-chart-line {
    animation: chartPulse 4s ease-in-out infinite;
}

.service-icon:hover .fa-chart-line {
    animation: dataTransition 1s ease-in-out infinite;
}

.service-card:hover .service-icon {
    animation: chartGlow 2s ease-in-out infinite;
}

/* Smooth scrolling enhancement */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ===================================
   RESPONSIVE ENHANCEMENTS
   =================================== */

/* Tablet optimizations */
@media (max-width: 1024px) {
    .services-grid,
    .projects-grid,
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--spacing-lg);
    }
    
    .hero-highlight-block {
        padding: var(--spacing-lg);
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    section {
        padding: clamp(3rem, 6vw, 4rem) 0;
    }
    
    .section-header {
        margin-bottom: var(--spacing-xl);
    }
    
    .services-grid,
    .projects-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
    }
    
    .hero-highlight-block {
        padding: var(--spacing-md);
        animation: none; /* Disable floating animation on mobile for performance */
    }
    
    .hero-highlight-block:hover {
        transform: translateY(-2px) scale(1.01);
        animation: none;
    }
    
    .hero-confidence-text p {
        font-size: 1.125rem;
    }
    
    .hero-content {
        padding-top: 100px;
        padding-bottom: 40px;
    }
    
    .hero-title {
        margin-top: var(--spacing-sm);
        padding-top: var(--spacing-md);
    }
}

/* Small mobile optimizations */
@media (max-width: 480px) {
    .service-card,
    .project-card,
    .feature-card {
        padding: var(--spacing-lg);
    }
    
    .btn {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .btn-large {
        padding: 1.125rem 2rem;
        font-size: 1rem;
    }
    
    /* Reduce animations on small screens for better performance */
    .fa-chart-line,
    .fa-chart-bar,
    .fa-analytics {
        animation: none;
    }
    
    .service-icon:hover .fa-chart-line {
        animation: none;
    }
    
    .service-card:hover .service-icon {
        animation: none;
    }
    
    .hero-highlight-block {
        animation: none;
    }
    
    .hero-highlight-block:hover {
        transform: scale(1.01);
        animation: none;
    }
}