:root {
    --primary-color: #FF6B00;
    --primary-light: #FF8F3D;
    --text-dark: #1A1A1A;
    --warm-orange: #FF7A00;
    --warm-background: #FFF4E6;
    --text-gray: #4A5568;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: var(--text-dark);
    margin: 0;
    overflow-x: hidden;
}

/* ============================================
   HERO SECTION - ENHANCED
   ============================================ */
.hero-section {
    position: relative;
    min-height: 90vh;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #FFF9F0 0%, #FFF4E6 50%, #FFFFFF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-section h1{
    font-size: clamp(3rem, 7vw, 2rem);

}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 107, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 143, 61, 0.06) 0%, transparent 50%);
    animation: gradientShift 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes gradientShift {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        opacity: 0.8;
    }
}

#particle-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    animation: fadeInUp 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--primary-color) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 8s ease-in-out infinite;
}

@keyframes textShine {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* Hero Buttons */
.hero-section button {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.2);
}

.hero-section button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-section button:hover::before {
    width: 300px;
    height: 300px;
}

.hero-section button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 0, 0.3);
}

/* ============================================
   AUTOMATION PROCESS SECTION - 2X2 GRID
   ============================================ */
.automation-process-section {
    position: relative;
    background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 50%, #FFF9F0 100%);
}

.automation-process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 80% 20%, rgba(255, 107, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(255, 143, 61, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 10;
}

.step-card {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 2rem;
    padding: 3rem;
    border: 2px solid rgba(255, 107, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    transform: translateY(50px);
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.08), transparent);
    transition: left 0.7s ease;
    pointer-events: none;
}

.step-card:hover::before {
    left: 100%;
}

.step-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light), var(--primary-color));
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: -1;
    animation: borderGlow 3s ease infinite;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.step-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-card:nth-child(1) { transition-delay: 0.1s; }
.step-card:nth-child(2) { transition-delay: 0.2s; }
.step-card:nth-child(3) { transition-delay: 0.3s; }
.step-card:nth-child(4) { transition-delay: 0.4s; }

.step-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary-color);
    box-shadow: 0 25px 60px rgba(255, 107, 0, 0.25);
}

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

/* Step Number Badge */
.step-card .w-20 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1), rgba(255, 143, 61, 0.1));
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.2);
}

.step-card .w-20::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 180deg, var(--primary-color), var(--primary-light), var(--primary-color));
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.step-card:hover .w-20 {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
}

.step-card:hover .w-20::before {
    opacity: 0.5;
}

.step-card .w-20 span {
    font-size: 2.5rem;
    transition: all 0.4s ease;
}

.step-card:hover .w-20 span {
    transform: scale(1.1);
}

/* Decorative connecting lines */
.process-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: calc(100% - 6rem);
    background: linear-gradient(180deg, 
        transparent,
        rgba(255, 107, 0, 0.3) 20%,
        rgba(255, 107, 0, 0.3) 80%,
        transparent
    );
    transform: translate(-50%, -50%);
    z-index: 1;
}

.process-grid::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% - 6rem);
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 107, 0, 0.3) 20%,
        rgba(255, 107, 0, 0.3) 80%,
        transparent
    );
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* ============================================
   TEMPLATE CARDS - ENHANCED
   ============================================ */
.template-card {
    position: relative;
    background: white;
    border-radius: 2rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 2px solid rgba(255, 107, 0, 0.1);
    opacity: 0;
    transform: translateY(50px);
}

.template-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light), var(--primary-color));
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: -1;
    animation: borderGlow 3s ease infinite;
}

.template-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.template-card:nth-child(1) { transition-delay: 0.1s; }
.template-card:nth-child(2) { transition-delay: 0.2s; }
.template-card:nth-child(3) { transition-delay: 0.3s; }

.template-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary-color);
    box-shadow: 0 25px 60px rgba(255, 107, 0, 0.25);
}

.template-card:hover::before {
    opacity: 0.3;
}

.template-card img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 16rem;
    object-fit: cover;
}

.template-card:hover img {
    transform: scale(1.1);
}

.template-card button {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
}

.template-card button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.template-card button:hover::before {
    width: 300px;
    height: 300px;
}

.template-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.3);
}

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .process-grid::before,
    .process-grid::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section p {
        font-size: 1.25rem;
    }
    
    .step-card {
        padding: 2rem;
    }
    
    .step-card .w-20 {
        width: 80px;
        height: 80px;
    }
    
    .step-card .w-20 span {
        font-size: 2rem;
    }
}