/* ===================================
   COMPONENTS LIBRARY
   =================================== */

/* Service Card */
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 103, 184, 0.05) 0%, rgba(0, 103, 184, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 103, 184, 0.15);
    border-color: var(--color-accent);
}

.service-card__icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 103, 184, 0.1) 0%, rgba(0, 103, 184, 0.05) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.service-card:hover .service-card__icon-wrapper {
    background: linear-gradient(135deg, var(--color-accent) 0%, #005da6 100%);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(0, 103, 184, 0.3);
}

.service-card__icon {
    font-size: 2rem;
    color: var(--color-accent);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.service-card:hover .service-card__icon {
    color: white;
    transform: scale(1.1);
}

.service-card__title {
    position: relative;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
    z-index: 2;
}

.service-card:hover .service-card__title {
    color: var(--color-accent);
}

.service-card__description {
    position: relative;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 0.95rem;
    z-index: 2;
}

.service-card__arrow {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 103, 184, 0.1);
    border-radius: 50%;
    color: var(--color-accent);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.service-card:hover .service-card__arrow {
    background-color: var(--color-accent);
    color: white;
    transform: translateX(8px);
}

.service-card__arrow i {
    font-size: 1.125rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card__arrow i {
    transform: translateX(2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-card {
        padding: 2rem;
    }
    
    .service-card__icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .service-card__icon {
        font-size: 1.75rem;
    }
    
    .service-card__title {
        font-size: 1.25rem;
    }
}

/* Animation delays for staggered effect */
.service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Fade-in animation on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}
    margin-bottom: 2rem;
    flex-grow: 1;
}


/* Button Styles */
.btn {
    display: inline-block;
    font-weight: var(--font-bold);
    text-align: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn--primary {
    background-color: var(--color-accent);
    color: white;
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.btn--primary:hover {
    background-color: var(--color-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    border: 1px solid var(--color-border);
    color: var(--color-secondary);
    background-color: transparent;
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.btn--secondary:hover {
    background-color: var(--bg-dark);
    transform: translateY(-1px);
}

.btn--icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hero CTA Button - Modern Design */
.hero-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, var(--color-accent) 0%, #005da6 100%);
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 103, 184, 0.3);
    border: 2px solid transparent;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #005da6 0%, var(--color-accent) 100%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.hero-cta:hover::before {
    opacity: 1;
}

.hero-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 103, 184, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-cta__icon-wrapper {
    position: relative;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.hero-cta:hover .hero-cta__icon-wrapper {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(45deg) scale(1.1);
}

.hero-cta__icon {
    font-size: 0.875rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.hero-cta:hover .hero-cta__icon {
    transform: rotate(-45deg);
}

.hero-cta__text {
    position: relative;
    font-size: 1rem;
    letter-spacing: 0.02em;
    z-index: 2;
}

.hero-cta__shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
    z-index: 3;
    pointer-events: none;
}

.hero-cta:hover .hero-cta__shine {
    left: 100%;
}

/* Responsive adjustments for hero CTA */
@media (max-width: 640px) {
    .hero-cta {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .hero-cta__icon-wrapper {
        width: 28px;
        height: 28px;
    }
    
    .hero-cta__icon {
        font-size: 0.75rem;
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header__label {
    color: var(--color-accent);
    font-weight: var(--font-bold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.625rem;
    margin-bottom: 1rem;
}

.section-header__title {
    font-size: 2rem;
    font-weight: var(--font-bold);
    color: var(--color-secondary);
}

@media (min-width: 768px) {
    .section-header__title {
        font-size: 2.5rem;
    }
}

/* Pillar Header */
.pillar-header {
    margin-bottom: 5rem;
}

.pillar-header__top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pillar-header__icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(0, 103, 184, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    box-shadow: var(--shadow-sm);
}

.pillar-header__title {
    font-size: 2rem;
    font-weight: var(--font-bold);
    letter-spacing: -0.025em;
    color: var(--color-secondary);
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .pillar-header__title {
        font-size: 2.5rem;
    }
}

.pillar-header__description {
    font-size: 1.125rem;
    color: var(--color-text);
    max-width: 48rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Form Elements */
.form-input {
    background-color: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.875rem 1.25rem;
    color: var(--color-secondary);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 103, 184, 0.1);
}

.form-input::placeholder {
    color: var(--color-text);
    opacity: 0.6;
}

/* Icon Decorator */
.icon-decorator {
    opacity: 0.1;
    position: absolute;
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

.grid--cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
    .grid--cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid--cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid--cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .grid--cols-5 {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Spacing Utilities */
.section {
    padding: 6rem 1.5rem;
}

@media (min-width: 768px) {
    .section {
        padding: 8rem 1.5rem;
    }
}

.section--hero {
    padding-top: 8rem;
    padding-bottom: 6rem;
}

@media (min-width: 1024px) {
    .section--hero {
        padding-top: 12rem;
        padding-bottom: 10rem;
    }
}
