/*
 * Modern Beautiful Design for Binh Coconut Theme
 * Enhanced UI/UX with modern aesthetics
 */

/* === MODERN VARIABLES === */
:root {
    /* Colors */
    --primary-green: #059669;
    --primary-green-dark: #047857;
    --primary-green-light: #10b981;
    --accent-orange: #f97316;
    --accent-yellow: #eab308;
    --neutral-50: #f9fafb;
    --neutral-100: #f3f4f6;
    --neutral-200: #e5e7eb;
    --neutral-600: #4b5563;
    --neutral-800: #1f2937;
    --neutral-900: #111827;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', var(--font-primary);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Border radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #059669 0%, #047857 100%);
    --gradient-accent: linear-gradient(135deg, #f97316 0%, #eab308 100%);
    --gradient-soft: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

/* === ENHANCED TYPOGRAPHY === */
body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--neutral-800);
    font-size: 16px;
    font-weight: 400;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.025em;
    color: var(--neutral-900);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: var(--space-md);
    line-height: 1.8;
    color: var(--neutral-600);
}

/* === ENHANCED CONTAINER === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-lg);
    }
}

/* === MODERN BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.btn::before {
    content: '';
    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.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-outline {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-outline:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
}

/* === ENHANCED HERO SECTION === */
.hero__wrapper {
    min-height: 100vh;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero__wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: var(--space-3xl) 0;
}

.hero__title {
    color: white;
    margin-bottom: var(--space-lg);
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.hero__subtitle {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #fbbf24;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero__description {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255,255,255,0.95);
    max-width: 600px;
    margin: var(--space-lg) auto var(--space-xl);
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero__features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero__feature {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
    animation: fadeInUp 1s ease-out 0.8s both;
}

@media (min-width: 640px) {
    .hero__actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* === MODERN SECTIONS === */
.section {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    margin-bottom: var(--space-md);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -var(--space-sm);
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: var(--radius-sm);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--neutral-600);
    max-width: 600px;
    margin: 0 auto;
}

/* === ENHANCED CARDS === */
.card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--neutral-100);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-green);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    font-size: 1.5rem;
    color: white;
    background: var(--gradient-primary);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    text-align: center;
    color: var(--neutral-900);
}

.card-description {
    text-align: center;
    color: var(--neutral-600);
    line-height: 1.7;
}

/* === GRID LAYOUTS === */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* === PRICING CARD === */
.pricing-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-2xl);
    border: 3px solid var(--accent-yellow);
    position: relative;
    text-align: center;
    overflow: hidden;
}

.pricing-card::before {
    content: '🎉 SIÊU ƯU ĐÃI';
    position: absolute;
    top: var(--space-md);
    right: -60px;
    background: var(--accent-orange);
    color: white;
    padding: var(--space-xs) 80px;
    font-weight: 700;
    font-size: 0.875rem;
    transform: rotate(45deg);
}

.pricing-amount {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-green);
    line-height: 1;
    margin: var(--space-md) 0;
}

.pricing-unit {
    font-size: 1.25rem;
    color: var(--neutral-600);
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: var(--space-lg) 0;
}

.pricing-features li {
    padding: var(--space-xs) 0;
    color: var(--neutral-600);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

.pricing-features li::before {
    content: '✅';
    font-size: 1rem;
}

/* === MODERN CONTACT SECTION === */
.contact-section {
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

.contact-info {
    position: relative;
    z-index: 2;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--space-md);
    font-size: 1.25rem;
}

.contact-form {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-2xl);
    position: relative;
    z-index: 2;
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    color: var(--neutral-800);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--neutral-50);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    background: white;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* === RESPONSIVE UTILITIES === */
@media (max-width: 640px) {
    .hero__features {
        flex-direction: column;
        align-items: center;
    }
    
    .hero__actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* === SCROLL ANIMATIONS === */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* === ENHANCED FOOTER === */
.footer {
    background: var(--neutral-900);
    color: white;
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-section h3 {
    color: white;
    margin-bottom: var(--space-md);
}

.footer-section p,
.footer-section a {
    color: var(--neutral-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-green-light);
}

.footer-bottom {
    border-top: 1px solid var(--neutral-700);
    padding-top: var(--space-lg);
    text-align: center;
    color: var(--neutral-400);
} 