/* Premium UI/UX Refinements - Apple/FAANG Style Design System */

/* Enhanced Typography Hierarchy */
:root {
    --font-size-display: clamp(2.5rem, 5vw, 4rem);
    --font-size-h1: clamp(2rem, 4vw, 3rem);
    --font-size-h2: clamp(1.5rem, 3vw, 2.25rem);
    --font-size-h3: clamp(1.25rem, 2.5vw, 1.75rem);
    --font-size-body: 1rem;
    --font-size-caption: 0.875rem;
    
    /* Premium Spacing Scale */
    --space-0: 0;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Premium Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Premium Borders */
    --border-width-thin: 0.5px;
    --border-width-base: 1px;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-full: 9999px;
}

/* Enhanced Section Spacing */
section {
    padding: var(--space-24) 0;
}

@media (max-width: 768px) {
    section {
        padding: var(--space-16) 0;
    }
}

/* Premium Card Design */
.card,
.service-card,
.industry-card,
.testimonial-card {
    background: rgba(255, 255, 255, 0.02);
    border: var(--border-width-base) solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    padding: var(--space-8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.card:hover,
.service-card:hover,
.industry-card:hover,
.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 0, 0.3);
    box-shadow: var(--shadow-xl);
    background: rgba(255, 255, 255, 0.03);
}

/* Enhanced Typography */
h1, .h1 {
    font-size: var(--font-size-h1);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2, .h2 {
    font-size: var(--font-size-h2);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h3, .h3 {
    font-size: var(--font-size-h3);
    font-weight: 600;
    line-height: 1.3;
}

p {
    line-height: 1.7;
    letter-spacing: -0.01em;
}

/* Premium Button Styles */
.cta-button,
button[type="submit"],
.submit-btn {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-body);
    font-weight: 600;
    border-radius: var(--border-radius-full);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}

.cta-button::before,
button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before,
button[type="submit"]:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover,
button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Premium Input Fields */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    background: rgba(255, 255, 255, 0.03);
    border: var(--border-width-base) solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    padding: var(--space-4) var(--space-5);
    color: #fff;
    font-size: var(--font-size-body);
    transition: all 0.3s ease;
    width: 100%;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

/* Enhanced Grid System */
.grid-auto,
.capabilities-grid,
.proof-grid,
.specs-grid {
    gap: var(--space-8);
}

@media (max-width: 768px) {
    .grid-auto,
    .capabilities-grid,
    .proof-grid,
    .specs-grid {
        gap: var(--space-6);
    }
}

/* Premium Feature List */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.feature-item {
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-left-color: var(--primary-color);
    transform: translateX(4px);
}

/* Premium Service Title */
.service-title {
    font-size: var(--font-size-h2);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-6);
}

/* Enhanced Section Titles */
.section-title {
    margin-bottom: var(--space-12);
    font-weight: 700;
    letter-spacing: -0.03em;
}

/* Premium Testimonial Design */
.testimonial-card {
    padding: var(--space-8);
    border: var(--border-width-base) solid rgba(255, 255, 255, 0.08);
}

.testimonial-content p {
    font-size: var(--font-size-body);
    line-height: 1.75;
    letter-spacing: -0.01em;
}

.author-info h4 {
    font-size: var(--font-size-body);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.author-info p {
    font-size: var(--font-size-caption);
    color: var(--text-muted);
}

/* Premium Service Section */
.service-section {
    padding: var(--space-24) 0;
    border-bottom: var(--border-width-thin) solid rgba(255, 255, 255, 0.05);
}

.service-section:last-child {
    border-bottom: none;
}

/* Enhanced CTA Section */
.service-cta {
    padding: var(--space-24) var(--space-8);
    text-align: center;
    background: linear-gradient(135deg, var(--dark-bg-2) 0%, var(--dark-bg) 100%);
}

.service-cta h2 {
    margin-bottom: var(--space-6);
}

.service-cta p {
    max-width: 600px;
    margin: 0 auto var(--space-8);
    font-size: 1.125rem;
}

/* Premium Micro-interactions */
a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    opacity: 0.8;
}

.learn-more,
.read-more,
.case-study-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    transition: gap 0.3s ease;
}

.learn-more:hover,
.read-more:hover,
.case-study-link:hover {
    gap: var(--space-3);
}

/* Premium Image Styling */
img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-image,
.portfolio-item img {
    border-radius: var(--border-radius-md);
}

.service-image:hover,
.portfolio-item:hover img {
    transform: scale(1.02);
}

/* Enhanced Accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--border-radius-sm);
}

/* Premium Loading States */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    background-size: 1000px 100%;
}

/* Responsive Refinements */
@media (max-width: 1024px) {
    .service-section {
        padding: var(--space-16) 0;
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-h1: clamp(1.75rem, 4vw, 2.5rem);
        --font-size-h2: clamp(1.5rem, 3vw, 2rem);
    }
    
    .card,
    .service-card,
    .industry-card {
        padding: var(--space-6);
    }
    
    section {
        padding: var(--space-12) 0;
    }
}

/* Premium Color Contrast */
.text-muted {
    color: rgba(255, 255, 255, 0.6);
}

.text-primary {
    color: var(--primary-color);
}

/* Smooth Scrolling Enhancement */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

/* Premium Container Max Widths */
.container-narrow {
    max-width: 900px;
}

.container-wide {
    max-width: 1600px;
}

/* Enhanced Visual Hierarchy */
.lead-text {
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: -0.01em;
}

.caption-text {
    font-size: var(--font-size-caption);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

