/* Base Variables */
:root {
    --primary-color: #1b4332;
    --secondary-color: #ddb892;
    --accent-color: #b08d57;
    --hover-color: #2d6a4f;
    --text-color: #333333;
    --light-color: #ffffff;
    --glass-bg: rgba(27, 67, 50, 0.1);
    --glass-border: rgba(221, 184, 146, 0.2);
    --gradient-start: #b08d57;
    --gradient-end: #ddb892;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --green-gradient: linear-gradient(135deg, 
        var(--primary-color),
        var(--hover-color)
    );
    --gold-gradient: linear-gradient(135deg, 
        var(--gradient-start),
        var(--gradient-end)
    );
    --gold-brown-gradient: linear-gradient(135deg,
        #b08d57,
        #816653,
        #b08d57
    );
    --gold-shine: linear-gradient(
        90deg,
        transparent,
        rgba(221, 184, 146, 0.3),
        transparent
    );
}

/* Global Styles */
body {
    color: var(--text-color);
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, 
        rgba(27, 67, 50, 0.05) 0%,
        rgba(221, 184, 146, 0.1) 50%,
        rgba(176, 141, 87, 0.05) 100%
    );
    min-height: 100vh;
}

/* Hero Section */
.hero2 {
    position: relative;
    padding: 10rem 2rem;
    background: linear-gradient(135deg,
        rgba(27, 67, 50, 0.98),
        rgba(45, 106, 79, 0.98)
    );
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    margin-bottom: 2rem;
}

.hero2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        transparent 0%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 1;
}

.hero2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('~/images/pattern.png') repeat;
    opacity: 0.1;
    animation: patternMove 20s linear infinite;
    z-index: 0;
}

.welcome2 {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.welcome2 h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 2rem;
    background: var(--gold-brown-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    transform: translateY(-30px);
    filter: blur(10px);
    animation: dramaticFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards,
               gradientMove 5s ease infinite;
    position: relative;
    text-shadow: 0 0 30px rgba(221, 184, 146, 0.3);
}

.welcome2 h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: var(--gold-brown-gradient);
    background-size: 200% auto;
    animation: shimmer 3s infinite;
}

.welcome2 h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: var(--secondary-color);
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(-30px);
    filter: blur(10px);
    animation: dramaticFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
    text-shadow: 0 0 20px rgba(221, 184, 146, 0.2);
}

/* Card Grid */
.cards-container {
    padding: 2rem 4rem;
    margin-top: 2rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: rgba(255, 255, 255, 0.98);
    border: none !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    height: 100%;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: cardFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    box-shadow: 0 10px 30px rgba(27, 67, 50, 0.1);
    width: 100%;
    margin: 0;
    transform-origin: center;
    will-change: transform;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(221, 184, 146, 0.2) 50%,
        transparent 100%
    );
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.8s ease;
    z-index: 2;
}

.card::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg,
        #b08d57,
        #ddb892,
        #b08d57
    );
    background-size: 200% 200%;
    border-radius: 12px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.card:hover {
    transform: translateY(-20px) scale(1.05);
    border-radius: 20px !important;
    box-shadow: 
        0 30px 60px rgba(27, 67, 50, 0.15),
        0 0 30px rgba(176, 141, 87, 0.2);
}

.card:hover::before {
    transform: translateX(100%) rotate(45deg);
}

.card:hover::after {
    opacity: 1;
    border-radius: 22px;
    animation: borderGradient 3s ease infinite;
}

.card-img-wrapper {
    border-radius: 10px 10px 0 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    position: relative;
}

.card:hover .card-img-wrapper {
    border-radius: 20px 20px 0 0;
}

.card-img-top {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover .card-img-top {
    transform: scale(1.2);
}

.card-body {
    padding: 3rem;
    text-align: center;
    position: relative;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.95),
        rgba(255, 255, 255, 0.98)
    );
    overflow: hidden;
}

.card-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(221, 184, 146, 0.4),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.card:hover .card-body::before {
    transform: translateX(100%);
}

.card-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: var(--gold-brown-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
    animation: gradientMove 5s ease infinite;
    padding-bottom: 1rem;
}

.card:hover .card-title {
    transform: translateY(-5px) scale(1.05);
    letter-spacing: 0.5px;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-brown-gradient);
    background-size: 200% auto;
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover .card-title::after {
    width: 100%;
}

/* Animations */
@keyframes dramaticFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-30px);
        filter: blur(10px);
    }
    50% {
        opacity: 0.5;
        transform: translateY(-15px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes cardFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes patternMove {
    0% { background-position: 0 0; }
    100% { background-position: 100% 100%; }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes borderGradient {
    0% {
        background-position: 0% 0%;
        box-shadow: 0 0 20px rgba(176, 141, 87, 0.2);
    }
    50% {
        background-position: 100% 100%;
        box-shadow: 0 0 30px rgba(176, 141, 87, 0.3);
    }
    100% {
        background-position: 0% 0%;
        box-shadow: 0 0 20px rgba(176, 141, 87, 0.2);
    }
}

/* Responsive Design */
@media (max-width: 1400px) {
    .cards-container {
        padding: 2rem;
    }
    .cards-grid {
        gap: 1rem;
    }
    .card-img-wrapper {
        height: 400px;
    }
    .card-body {
        padding: 2.75rem;
    }
}

@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .card-img-wrapper {
        height: 380px;
    }
    .card-body {
        padding: 2.5rem;
    }
}

@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .card-img-wrapper {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .cards-container {
        padding: 1rem;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .card-img-wrapper {
        height: 420px;
    }
    .card-body {
        padding: 2.5rem;
    }
}
