/* ===================================
   PROCESS SECTION - PREMIUM DESIGN
   =================================== */

.process-section {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
}

/* Sophisticated geometric background pattern */
.process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(217, 180, 95, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(217, 180, 95, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.6;
    z-index: 0;
}

/* Premium gradient orbs */
.process-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(
        circle at center,
        rgba(217, 180, 95, 0.08) 0%,
        rgba(217, 180, 95, 0.04) 40%,
        transparent 70%
    );
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.process-section .container {
    position: relative;
    z-index: 1;
}

/* ===================================
   SECTION HEADER ENHANCEMENTS
   =================================== */

.process-section .section-header {
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.process-section .section-tag {
    animation: fadeInDown 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
}

.process-section .section-title {
    animation: fadeInUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards 0.2s;
    opacity: 0;
}

.process-section .title-underline {
    animation: scaleIn 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards 0.4s;
    transform: scaleX(0);
}

@keyframes scaleIn {
    to {
        transform: scaleX(1);
    }
}

/* ===================================
   PROCESS STEPS LAYOUT - PREMIUM GRID
   =================================== */

.process-steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0;
    align-items: center;
    margin-top: var(--spacing-xl);
    position: relative;
}

/* Animated progress line background */
.process-steps::before {
    content: '';
    position: absolute;
    top: 100px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(217, 180, 95, 0.2) 10%,
        rgba(217, 180, 95, 0.3) 50%,
        rgba(217, 180, 95, 0.2) 90%,
        transparent 100%
    );
    z-index: 0;
    border-radius: 2px;
}

/* ===================================
   STEP CARDS - PREMIUM GLASSMORPHISM
   =================================== */

.step-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid rgba(217, 180, 95, 0.15);
    text-align: center;
    overflow: hidden;
    z-index: 2;
}

/* Premium gradient border on hover */
.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: var(--gold-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Subtle glow effect */
.step-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 50% 0%,
        rgba(217, 180, 95, 0.1) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
    z-index: -1;
}

.step-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 8px 20px rgba(217, 180, 95, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(217, 180, 95, 0.3);
}

.step-card:hover::after {
    opacity: 1;
}

/* ===================================
   STEP ICON - SOPHISTICATED DESIGN
   =================================== */

.step-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto var(--spacing-md);
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        rgba(217, 180, 95, 0.12) 0%,
        rgba(217, 180, 95, 0.06) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    box-shadow: 
        0 8px 20px rgba(217, 180, 95, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

/* Rotating ring effect */
.step-icon::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--primary-gold);
    border-right-color: var(--primary-gold);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Inner highlight */
.step-icon::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 35%;
    height: 35%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.8) 0%,
        transparent 70%
    );
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.step-card:hover .step-icon {
    background: var(--gold-gradient);
    color: var(--text-white);
    transform: scale(1.08) rotate(8deg);
    box-shadow: 
        0 12px 30px rgba(217, 180, 95, 0.3),
        inset 0 2px 8px rgba(255, 255, 255, 0.3);
}

.step-card:hover .step-icon::before {
    opacity: 1;
    transform: rotate(180deg);
}

.step-card:hover .step-icon::after {
    opacity: 1;
}

.step-icon svg {
    width: 44px;
    height: 44px;
    stroke-width: 2;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
}

.step-card:hover .step-icon svg {
    transform: scale(1.1);
}

/* ===================================
   STEP NUMBER - ELEGANT TYPOGRAPHY
   =================================== */

.step-number {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(
        135deg,
        rgba(217, 180, 95, 0.15) 0%,
        rgba(217, 180, 95, 0.08) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    letter-spacing: -2px;
}

.step-card:hover .step-number {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    transform: scale(1.15) rotate(-5deg);
    opacity: 0.25;
}

/* ===================================
   STEP CONTENT - PREMIUM TYPOGRAPHY
   =================================== */

.step-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    letter-spacing: -0.3px;
    position: relative;
    z-index: 1;
}

.step-card:hover .step-title {
    color: var(--primary-dark-gold);
    transform: translateY(-2px);
}

.step-description {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.75;
    margin: 0;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.step-card:hover .step-description {
    color: var(--text-dark);
}

/* ===================================
   STEP CONNECTOR - SOPHISTICATED PATH
   =================================== */

.step-connector {
    width: 80px;
    height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Animated connection line */
.step-connector::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        to right,
        rgba(217, 180, 95, 0.3) 0%,
        var(--primary-gold) 50%,
        rgba(217, 180, 95, 0.3) 100%
    );
    transform: translateY(-50%);
    border-radius: 2px;
}

/* Premium arrow indicator */
.step-connector::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    width: 12px;
    height: 12px;
    border-right: 3px solid var(--primary-gold);
    border-top: 3px solid var(--primary-gold);
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% {
        opacity: 1;
        transform: translateY(-50%) rotate(-45deg) translateX(0);
    }
    50% {
        opacity: 0.6;
        transform: translateY(-50%) rotate(-45deg) translateX(5px);
    }
}

/* Floating dot */
.step-connector .connector-dot {
    width: 10px;
    height: 10px;
    background: var(--primary-gold);
    border-radius: 50%;
    box-shadow: 
        0 0 0 4px rgba(217, 180, 95, 0.2),
        0 0 0 8px rgba(217, 180, 95, 0.1);
    animation: dotFloat 3s ease-in-out infinite;
}

@keyframes dotFloat {
    0%, 100% {
        transform: translateY(-8px);
    }
    50% {
        transform: translateY(8px);
    }
}

/* ===================================
   HOVER SEQUENCE ANIMATION
   =================================== */

.process-steps:hover .step-card:not(:hover) {
    opacity: 0.6;
    transform: scale(0.98);
}

/* ===================================
   ENTRANCE ANIMATIONS
   =================================== */

.step-card {
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
}

.step-card[data-step="1"] { 
    animation-delay: 0.2s; 
}

.step-card[data-step="2"] { 
    animation-delay: 0.4s; 
}

.step-card[data-step="3"] { 
    animation-delay: 0.6s; 
}

.step-connector {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

.step-connector:nth-of-type(2) { 
    animation-delay: 0.5s; 
}

.step-connector:nth-of-type(4) { 
    animation-delay: 0.7s; 
}

/* ===================================
   RESPONSIVE DESIGN - MOBILE FIRST
   =================================== */

@media (max-width: 1200px) {
    .process-steps {
        gap: var(--spacing-sm);
    }
    
    .step-connector {
        width: 60px;
    }
}

@media (max-width: 1024px) {
    .process-section {
        padding: 80px 0;
    }
    
    .process-steps::before {
        left: 10%;
        right: 10%;
    }
    
    .step-card {
        padding: var(--spacing-md);
    }
    
    .step-icon {
        width: 80px;
        height: 80px;
    }
    
    .step-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .step-title {
        font-size: 1.35rem;
    }
    
    .step-description {
        font-size: 0.95rem;
    }
    
    .step-number {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .process-section {
        padding: 70px 0;
    }
    
    /* Single column layout */
    .process-steps {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .process-steps::before {
        display: none;
    }
    
    /* Hide horizontal connectors */
    .step-connector {
        display: none;
    }
    
    /* Vertical connector for mobile */
    .step-card::after {
        content: '';
        position: absolute;
        bottom: calc(-1 * var(--spacing-xl) / 2 - 20px);
        left: 50%;
        transform: translateX(-50%);
        width: 3px;
        height: 40px;
        background: linear-gradient(
            to bottom,
            var(--primary-gold) 0%,
            rgba(217, 180, 95, 0.5) 50%,
            rgba(217, 180, 95, 0.2) 100%
        );
        border-radius: 2px;
    }
    
    /* Arrow for mobile connector */
    .step-card::before {
        content: '';
        position: absolute;
        bottom: calc(-1 * var(--spacing-xl) / 2 - 24px);
        left: 50%;
        transform: translateX(-50%) rotate(45deg);
        width: 8px;
        height: 8px;
        border-bottom: 2px solid var(--primary-gold);
        border-right: 2px solid var(--primary-gold);
        z-index: 10;
    }
    
    /* Remove connector from last card */
    .step-card:last-child::after,
    .step-card:last-child::before {
        display: none;
    }
    
    .step-card[data-step="3"]::after,
    .step-card[data-step="3"]::before {
        display: none;
    }
    
    .step-number {
        font-size: 2.8rem;
        top: 20px;
        right: 20px;
    }
    
    .step-card:hover {
        transform: translateY(-8px) scale(1.01);
    }
}

@media (max-width: 480px) {
    .process-section {
        padding: 60px 0;
    }
    
    .step-card {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .step-icon {
        width: 70px;
        height: 70px;
    }
    
    .step-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .step-title {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }
    
    .step-description {
        font-size: 0.9rem;
        line-height: 1.65;
    }
    
    .step-number {
        font-size: 2.5rem;
        top: 16px;
        right: 16px;
    }
}

/* ===================================
   ACCESSIBILITY & REDUCED MOTION
   =================================== */

@media (prefers-reduced-motion: reduce) {
    .step-card,
    .step-connector,
    .process-section .section-tag,
    .process-section .section-title,
    .process-section .title-underline {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .step-card:hover {
        transform: translateY(-4px) scale(1);
    }
    
    .step-card:hover .step-icon {
        transform: scale(1.05) rotate(0deg);
    }
    
    .step-connector::after,
    .step-connector .connector-dot {
        animation: none !important;
    }
    
    .process-steps:hover .step-card:not(:hover) {
        opacity: 1;
        transform: none;
    }
}

/* ===================================
   PERFORMANCE OPTIMIZATIONS
   =================================== */

.step-card,
.step-icon,
.step-connector {
    will-change: auto;
}

.step-card:hover {
    will-change: transform;
}

/* GPU acceleration */
.step-card,
.step-icon,
.step-connector::after {
    transform: translateZ(0);
    backface-visibility: hidden;
}
