/* References Page Styles */

/* Root Variables */
:root {
    --primary-color: #6366f1;
    --secondary-color: #ec4899;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --background: #ffffff;
    --background-secondary: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 20px 60px rgba(99, 102, 241, 0.4);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --radius-lg: 0.75rem;
    --transition-base: all 0.3s ease-in-out;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-large {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
}

/* Hero Section */
.hero-references {
    min-height: 70vh;
    max-height: 900px;
    padding-top: 120px;
    padding-bottom: var(--spacing-2xl);
    background: 
        radial-gradient(ellipse at top, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(236, 72, 153, 0.12) 0%, transparent 60%),
        var(--background);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.references-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.breadcrumb {
    margin-bottom: var(--spacing-lg);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 var(--spacing-sm);
    color: var(--text-light);
}

.references-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.references-hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
}

.references-hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.references-hero-stats .stat-item {
    text-align: center;
}

.references-hero-stats .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.references-hero-stats .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.references-hero-cta {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

/* Floating Cards */
.references-floating-cards {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.references-card-float {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 600;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    color: var(--text-primary);
}

.references-card-float i {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.references-card-float .card-metric {
    font-size: 0.75rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.references-card-float:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: var(--shadow-lg);
}

/* Card Positions and Animations */
.card-projects {
    top: 0;
    left: 0;
    animation: float-1 6s ease-in-out infinite;
}

.card-clients {
    top: 10%;
    right: 20%;
    animation: float-2 6s ease-in-out infinite 1s;
}

.card-growth {
    top: 50%;
    left: 10%;
    animation: float-3 6s ease-in-out infinite 2s;
}

.card-experience {
    bottom: 20%;
    right: 0;
    animation: float-4 6s ease-in-out infinite 3s;
}

.card-partnership {
    bottom: 0;
    left: 30%;
    animation: float-5 6s ease-in-out infinite 4s;
}

@keyframes float-1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-2deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(1deg); }
}

@keyframes float-4 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(-1deg); }
}

@keyframes float-5 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-22px) rotate(2deg); }
}

/* Responsive Design for Hero Section */
@media (max-width: 992px) {
    .references-hero-stats {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-references {
        min-height: 70vh;
        padding-top: 100px;
    }
    
    .references-hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .references-hero-cta {
        flex-direction: column;
    }
    
    .references-floating-cards {
        width: 250px;
        height: 250px;
    }
    
    .references-card-float {
        padding: var(--spacing-sm);
        font-size: 0.875rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* References Section */
.references-section {
    padding: 100px 0;
    background: var(--bg-color);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* References Grid */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.reference-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.reference-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.reference-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reference-logo {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
}

.reference-card:hover .reference-logo {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* Success Stories Section */
.success-stories {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.story-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.story-stats {
    margin-bottom: 1.5rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.story-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.story-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* Contact CTA Section */
.contact-cta {
    padding: 120px 0;
    background: 
        radial-gradient(ellipse at top, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(236, 72, 153, 0.12) 0%, transparent 60%),
        var(--background);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
}

/* Large Screens Optimization (4K, Ultrawide) */
@media (min-width: 1920px) {
    .hero-references {
        max-height: 1000px;
        min-height: 60vh;
    }
    
    .hero-container {
        max-width: 1400px;
    }
    
    .references-hero-content {
        max-width: 900px;
    }
    
    .references-hero-title {
        font-size: clamp(3rem, 4vw, 4rem);
    }
    
    .references-hero-description {
        font-size: 1.375rem;
        max-width: 700px;
    }
    
    .references-floating-cards {
        width: 500px;
        height: 500px;
    }
}

@media (min-width: 2560px) {
    .hero-references {
        max-height: 1100px;
        min-height: 55vh;
    }
    
    .hero-container {
        max-width: 1600px;
    }
    
    .references-hero-content {
        max-width: 1000px;
    }
    
    .references-floating-cards {
        width: 600px;
        height: 600px;
    }
}

@media (min-width: 3840px) {
    .hero-references {
        max-height: 1200px;
        min-height: 50vh;
        padding-top: 140px;
        padding-bottom: var(--spacing-3xl);
    }
    
    .hero-container {
        max-width: 1800px;
    }
    
    .references-hero-content {
        max-width: 1200px;
    }
    
    .references-hero-title {
        font-size: 4.5rem;
    }
    
    .references-hero-description {
        font-size: 1.5rem;
        max-width: 800px;
    }
    
    .references-hero-stats .stat-number {
        font-size: 2.5rem;
    }
    
    .references-floating-cards {
        width: 700px;
        height: 700px;
    }
    
    .references-card-float {
        padding: var(--spacing-xl);
    }
    
    .references-card-float i {
        font-size: 2rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-references {
        padding: 60px 0 40px;
    }
    
    .hero-references .container {
        padding: 0 1.5rem;
    }
    
    .hero-references .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-references .hero-description {
        font-size: 1rem;
    }
    
    .hero-references .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 1.25rem;
    }
    
    .references-section,
    .success-stories,
    .contact-cta {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .references-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .reference-card {
        padding: 1.5rem;
        min-height: 100px;
    }
    
    .reference-logo {
        max-width: 160px;
        max-height: 80px;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .story-card {
        padding: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-references {
        padding: 50px 0 30px;
    }
    
    .hero-references .container {
        padding: 0 1rem;
    }
    
    .hero-references .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.875rem;
    }
    
    .hero-references .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-references .hero-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .references-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .reference-card {
        padding: 1rem;
        min-height: 80px;
    }
    
    .reference-logo {
        max-width: 140px;
        max-height: 70px;
    }
    
    .story-card {
        padding: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
}