:root {
    --primary: #7b1818;
    --secondary: #f5f1e6;
    --primary-light: rgba(123, 24, 24, 0.85);
    --primary-lighter: rgba(123, 24, 24, 0.1);
    --primary-dark: #5a1212;
    --secondary-dark: #e5e0d5;
    --dark: #333;
    --light: #fff;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --accent-gradient: linear-gradient(135deg, #7b1818, #5a1212);
    --spacing-section: 4rem 5%; /* Reduced from 7rem */
}


/* Hero Section - Updated */
.hero {
    background: linear-gradient(135deg, rgba(245, 241, 230, 0.9), rgba(245, 241, 230, 0.85));
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--dark);
    padding: 4rem 1rem;
    overflow: hidden;
    margin-top: 0; /* Ensure no gap between header and hero */
    border-top: 1px solid rgba(0, 0, 0, 0.05); /* Subtle separator */
    box-shadow: inset 0 15px 10px -10px rgba(0, 0, 0, 0.03); /* Top inner shadow for transition */
}

/* .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    animation: backgroundMove 30s linear infinite;
}

@keyframes backgroundMove {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
} */

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
}

.hero h1 {
    font-size: 2.5rem; /* Reduced from 4.5rem */
    margin-bottom: 1.5rem; /* Reduced from 1.8rem */
    color: var(--primary); /* Changed from light */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Reduced shadow opacity */
    animation: fadeInUp 1s ease-out;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem; /* Reduced from 1.3rem */
    max-width: 800px;
    margin: 0 auto 2rem; /* Reduced from 3rem */
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: both;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background: var(--primary); /* Changed from light */
    color: var(--light); /* Changed from dark */
    padding: 1rem 2.5rem; /* Reduced from 1.2rem 2.8rem */
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid var(--primary); /* Changed from light */
    cursor: pointer;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-dark);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover {
    color: var(--light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn:hover::before {
    left: 0;
}

/* Section Styling */
section {
    padding: var(--spacing-section);
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem; /* Reduced from 5rem */
    position: relative;
}

.section-title h2 {
    font-size: 2rem; /* Reduced from 2.8rem */
    margin-bottom: 1.2rem; /* Reduced from 1.5rem */
    color: var(--primary);
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -12px; /* Reduced from -15px */
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
    transition: var(--transition);
}

.section-title:hover h2::after {
    width: 120px;
}

.section-title p {
    color: var(--dark);
    opacity: 0.7;
    font-size: 1.1rem; /* Reduced from 1.2rem */
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
}

/* Features Cards */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Reduced from 300px */
    gap: 2rem; /* Reduced from 2.5rem */
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--light);
    border-radius: 8px;
    padding: 2rem 1.5rem; /* Reduced from 3rem 2rem */
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(123, 24, 24, 0.03);
    transition: var(--transition);
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-10px); /* Reduced from -15px */
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card:hover::before {
    height: 100%;
}

.icon {
    font-size: 2.5rem; /* Reduced from 2.8rem */
    color: var(--primary);
    margin-bottom: 1.5rem; /* Reduced from 1.8rem */
    transition: var(--transition);
    display: inline-block;
}

.feature-card:hover .icon {
    transform: scale(1.2);
    color: var(--primary-dark);
}

.feature-card h3 {
    margin-bottom: 1rem; /* Reduced from 1.2rem */
    font-weight: 600;
    font-size: 1.3rem; /* Reduced from 1.4rem */
    color: var(--dark);
}

.feature-card p {
    color: #666;
    text-align: center;
    line-height: 1.6; /* Reduced from 1.7 */
}

/* Why Us Section */
.why-us {
    background-color: #f7f7f7;
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 24, 24, 0.05), transparent 70%);
}

.why-us::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 24, 24, 0.05), transparent 70%);
}

.why-us-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem; /* Reduced from 3rem */
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
}

.why-us-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem; /* Reduced from 1.8rem */
    transition: var(--transition);
    padding: 1.5rem; /* Reduced from 2rem */
    border-radius: 8px;
    background-color: var(--light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.why-us-item:hover {
    transform: translateY(-8px); /* Reduced from -10px */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-left: 3px solid var(--primary);
}

.why-us-icon {
    font-size: 1.3rem; /* Reduced from 1.4rem */
    color: var(--light);
    background: var(--primary);
    width: 60px; /* Reduced from 70px */
    height: 60px; /* Reduced from 70px */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(123, 24, 24, 0.2);
    transition: var(--transition);
    flex-shrink: 0;
}

.why-us-item:hover .why-us-icon {
    transform: rotateY(180deg);
    background: var(--accent-gradient);
}

.why-us-item h3 {
    margin-bottom: 0.6rem; /* Reduced from 0.8rem */
    font-size: 1.2rem; /* Reduced from 1.3rem */
    color: var(--dark);
}

.why-us-item p {
    color: #666;
    font-size: 1rem;
}

/* Path Section */
.path-section {
    background-color: var(--light);
    position: relative;
}

.path-section::before,
.path-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    z-index: 0;
    opacity: 0.03;
}

.path-section::before {
    background-color: var(--dark);
    top: 10%;
    left: 5%;
}

.path-section::after {
    background-color: var(--dark);
    bottom: 10%;
    right: 5%;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Reduced from 280px */
    gap: 2rem; /* Reduced from 3rem */
    margin-top: 1.5rem; /* Reduced from 2rem */
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

.step-card {
    background: var(--light);
    padding: 2rem 1.5rem; /* Reduced from 3rem 2rem */
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: var(--transition);
    overflow: hidden;
    border-radius: 8px;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 0;
    background: var(--primary);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-10px); /* Reduced from -15px */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.step-card:hover::before {
    width: 100%;
}

.step-number {
    font-size: 4rem; /* Reduced from 5rem */
    font-weight: 800;
    color: rgba(51, 51, 51, 0.05);
    position: absolute;
    top: 10px;
    right: 20px;
    transition: var(--transition);
}

.step-card:hover .step-number {
    transform: scale(1.2);
    color: rgba(51, 51, 51, 0.08);
}

.step-icon {
    width: 80px; /* Reduced from 100px */
    height: 80px; /* Reduced from 100px */
    background-color: var(--light);
    border: 2px solid rgba(123, 24, 24, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem; /* Reduced from 2rem */
    font-size: 2rem; /* Reduced from 2.2rem */
    color: var(--primary);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.step-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition);
}

.step-card:hover .step-icon {
    color: var(--light);
    transform: rotateY(180deg);
    border-color: var(--primary);
}

.step-card:hover .step-icon::before {
    opacity: 1;
    transform: scale(1);
}

.step-card h3 {
    margin-bottom: 1rem; /* Reduced from 1.2rem */
    font-size: 1.3rem; /* Reduced from 1.4rem */
    color: var(--dark);
}

.step-card p {
    color: #666;
    line-height: 1.6; /* Reduced from 1.8 */
}

/* CTA Section */
.cta {
    background: var(--secondary); /* Changed from dark to light secondary color */
    color: var(--dark); /* Changed from light to dark */
    text-align: center;
    margin: 0 5% 30px;
    padding: 3.5rem 2rem; /* Reduced from 5rem 2rem */
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(123, 24, 24, 0.05) 0%, transparent 80%);
    animation: pulse 15s infinite;
}

@keyframes pulse {
    0% { transform: translate(0, 0); }
    50% { transform: translate(5%, 5%); }
    100% { transform: translate(0, 0); }
}

.cta h2 {
    font-size: 2rem; /* Reduced from 2.6rem */
    margin-bottom: 1.2rem; /* Reduced from 1.5rem */
    position: relative;
    text-transform: capitalize;
    color: var(--primary);
    letter-spacing: 1px;
    line-height: 1.3;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.cta p {
    font-size: 1.2rem; /* Reduced from 1.3rem */
    margin-bottom: 2rem; /* Reduced from 2.5rem */
    opacity: 0.9;
    font-style: italic;
}

.cta .btn {
    background: var(--primary); /* Changed to match primary */
    color: var(--light);
    border: 2px solid var(--primary); /* Changed from light */
}

.cta .btn:hover {
    background: var(--primary-dark);
    color: var(--light); /* Keep light color on hover */
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Responsive */
@media (max-width: 1200px) {
    :root {
        --spacing-section: 3.5rem 5%; /* Reduced from 6rem */
    }
    
    .hero h1 {
        font-size: 3.2rem; /* Reduced from 3.8rem */
    }
    
    .section-title h2 {
        font-size: 2.2rem; /* Reduced from 2.5rem */
    }
}

@media (max-width: 992px) {
    :root {
        --spacing-section: 3rem 5%; /* Reduced from 5rem */
    }

    
    .hero h1 {
        font-size: 2.8rem; /* Reduced from 3.2rem */
    }
    
    .section-title h2 {
        font-size: 2rem; /* Reduced from 2.2rem */
    }
    
    .cta h2 {
        font-size: 2rem; /* Reduced from 2.2rem */
    }
    
    .why-us-item {
        padding: 1.5rem; /* Reduced from 1.8rem */
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-section: 3rem 5%; /* Reduced from 4rem */
    }
    
    
    .hero h1 {
        font-size: 2.5rem; /* Reduced from 2.8rem */
    }
    
    .hero p {
        font-size: 1rem; /* Reduced from 1.1rem */
    }
    
    .cta {
        padding: 3rem 1.5rem; /* Reduced from 4rem */
        margin: 0 3%;
    }
    
    .section-title {
        margin-bottom: 3rem; /* Reduced from 3.5rem */
    }
    
    .section-title h2 {
        font-size: 1.8rem; /* Reduced from 2rem */
    }
    
    .feature-card, .step-card {
        padding: 2rem 1.2rem; /* Reduced from 2.5rem 1.5rem */
    }
    
    .step-icon {
        width: 70px; /* Reduced from 80px */
        height: 70px; /* Reduced from 80px */
        font-size: 1.6rem; /* Reduced from 1.8rem */
    }
}

@media (max-width: 576px) {
    :root {
        --spacing-section: 2.5rem 4%; /* Reduced from 3.5rem */
    }
    
    .hero h1 {
        font-size: 2rem; /* Reduced from 2.2rem */
    }
    
    .hero p {
        font-size: 0.95rem; /* Reduced from 1rem */
    }
    
    .section-title h2 {
        font-size: 1.6rem; /* Reduced from 1.8rem */
    }
    
    .btn {
        padding: 0.8rem 1.8rem; /* Reduced from 1rem 2rem */
    }
    
    .cta h2 {
        font-size: 1.6rem; /* Reduced from 1.8rem */
    }
    
    .cta p {
        font-size: 1rem; /* Reduced from 1.1rem */
    }
}