/*
 * File: css/pages.css
 * Description: Enhanced Styles for About, Privacy, Terms, and Contact Pages
 */

/* =========================================
   1. SHARED PAGE STYLES
   ========================================= */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7B68EE 100%);
    color: var(--text-light);
    padding: 50px 0 100px;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    margin-bottom: -50px;
    position: relative;
    z-index: 1;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1), transparent 60%);
    pointer-events: none;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 800;
    text-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

.page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   2. ABOUT PAGE STYLES (ENHANCED)
   ========================================= */
   
/* Unified Hero for About */
.about-unified-hero {
    background: radial-gradient(circle at top, rgba(147, 112, 219, 0.1) 0%, rgba(255,255,255,0) 70%);
    padding: 80px 0 60px; text-align: center; position: relative; overflow: hidden;
}

.about-hero-icon {
    width: 120px; height: 120px; background: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 4rem;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.3); /* Gold Glow */
    margin-bottom: 30px; position: relative;
    animation: floatHero 6s ease-in-out infinite;
}

.bulb-glow {
    position: absolute; width: 150%; height: 150%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
    filter: blur(20px); animation: pulseGlow 4s infinite alternate;
}

/* Story Section */
.story-section { padding: 80px 0; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

/* The New Glass Card for Story Text */
.story-card-glass {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    padding: 40px; border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.story-card-glass h2 {
    font-size: 2rem; margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), #45aaf2);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.story-card-glass p { font-size: 1.05rem; line-height: 1.8; color: #555; margin-bottom: 20px; }

/* Rocket Visual */
.story-visual {
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.1));
    backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 30px; padding: 60px;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}
.visual-content {
    font-size: 8rem; filter: drop-shadow(0 15px 25px rgba(147, 112, 219, 0.3));
    transform: rotate(-5deg); transition: transform 0.4s ease;
}
.story-visual:hover .visual-content { transform: rotate(0deg) scale(1.1); }
.visual-badge {
    position: absolute; bottom: 30px; right: 30px;
    background: white; padding: 10px 20px; border-radius: 50px;
    display: flex; align-items: center; gap: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); font-weight: 700; color: var(--primary-dark);
}

/* Values Visual Header (Diamond) */
.values-visual-header {
    display: flex; align-items: center; gap: 40px; margin-bottom: 50px;
    padding-bottom: 40px; border-bottom: 1px solid rgba(0,0,0,0.05);
}
.values-intro-text h2 {
    font-size: 2rem; margin-bottom: 15px;
    background: linear-gradient(135deg, #00d2d3, #2e86de); /* Cyan/Blue */
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.gem-visual { position: relative; width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gem-glow {
    position: absolute; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0, 210, 211, 0.2) 0%, transparent 70%);
    filter: blur(20px); animation: pulseGlow 5s infinite alternate;
}
.gem-icon { font-size: 4rem; z-index: 2; filter: drop-shadow(0 0 15px rgba(0, 210, 211, 0.4)); animation: floatShield 5s ease-in-out infinite; }
.gem-sparkles span { position: absolute; background: white; clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); width: 15px; height: 15px; animation: sparkle 3s infinite; }
.gem-sparkles span:nth-child(1) { top: 0; right: 20px; animation-delay: 0s; }
.gem-sparkles span:nth-child(2) { bottom: 10px; left: 10px; width: 10px; height: 10px; animation-delay: 1.5s; }

/* Values Grid */
.values-section { padding: 80px 0; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.value-card {
    background: white; border: 1px solid rgba(0,0,0,0.05); padding: 40px 30px; border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: all 0.3s ease;
    border-top: 4px solid transparent; height: 100%;
}
.value-card:hover {
    transform: translateY(-10px); box-shadow: 0 20px 40px rgba(147, 112, 219, 0.15);
    border-top-color: var(--primary-color);
}
.value-icon { font-size: 2.5rem; margin-bottom: 20px; display: inline-block; background: rgba(147, 112, 219, 0.1); padding: 15px; border-radius: 50%; color: var(--primary-color); }
.value-card h3 { font-size: 1.4rem; margin-bottom: 15px; color: var(--text-dark); }
.value-card p { color: #666; line-height: 1.6; }

/* Tech Strip */
.tech-section {
    background: rgba(33, 33, 33, 0.95); backdrop-filter: blur(10px);
    color: white; padding: 60px 0; text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1);
}
.tech-grid { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-top: 30px; }
.tech-item { display: flex; flex-direction: column; align-items: center; gap: 10px; transition: transform 0.3s ease; }
.tech-item:hover { transform: translateY(-5px); }
.tech-item span { font-size: 2rem; }

/* =========================================
   3. PRIVACY PAGE STYLES
   ========================================= */
.privacy-container {
    max-width: 900px; margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 50px; border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    margin-top: -50px; position: relative; z-index: 10;
}
@supports (backdrop-filter: blur(20px)) {
    .privacy-container { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
}

/* Privacy Shield Visual */
.privacy-visual-header {
    display: flex; align-items: center; gap: 40px; margin-bottom: 50px;
    padding-bottom: 40px; border-bottom: 1px solid rgba(0,0,0,0.05);
}
.privacy-intro-text h2 {
    font-size: 2rem; margin-bottom: 15px;
    background: linear-gradient(135deg, #2ed573, #1e90ff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.privacy-intro-text p { font-size: 1.1rem; color: #666; line-height: 1.6; }

.shield-visual { position: relative; width: 160px; height: 160px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.shield-glow {
    position: absolute; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(46, 213, 115, 0.2) 0%, transparent 70%);
    filter: blur(20px); animation: pulseShield 4s infinite alternate;
}
.shield-icon { font-size: 5rem; z-index: 2; filter: drop-shadow(0 10px 20px rgba(46, 213, 115, 0.3)); animation: floatShield 6s ease-in-out infinite; }
.shield-particles span { position: absolute; background: #2ed573; border-radius: 50%; opacity: 0; animation: particleFloat 3s infinite; }
.shield-particles span:nth-child(1) { width: 6px; height: 6px; top: 20%; left: 20%; animation-delay: 0s; }
.shield-particles span:nth-child(2) { width: 4px; height: 4px; top: 60%; right: 20%; animation-delay: 1s; }
.shield-particles span:nth-child(3) { width: 8px; height: 8px; top: 80%; left: 40%; animation-delay: 2s; }

.shield-badge {
    position: absolute; bottom: -10px; background: white; padding: 6px 14px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 700; color: #2ed573; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(46, 213, 115, 0.2); display: flex; align-items: center; gap: 6px; z-index: 3; white-space: nowrap;
}
.secure-dot { width: 8px; height: 8px; background: #2ed573; border-radius: 50%; box-shadow: 0 0 5px #2ed573; }

/* 9-Point Trust Grid */
.trust-grid-section { margin-bottom: 60px; padding-bottom: 40px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.trust-card {
    background: rgba(255, 255, 255, 0.5); border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 25px 15px; border-radius: 16px; text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); position: relative; overflow: hidden;
}
.trust-card:hover {
    background: rgba(255, 255, 255, 0.95); transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-color: var(--primary-color);
}
.trust-icon-wrapper {
    position: relative; width: 60px; height: 60px; margin: 0 auto 15px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.8); border-radius: 50%; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.trust-card:hover .trust-icon-wrapper { background: var(--primary-light); color: white; }
.trust-icon { font-size: 2rem; z-index: 1; }
.trust-badge-x {
    position: absolute; bottom: -2px; right: -2px; width: 20px; height: 20px;
    background: #ff4757; color: white; border-radius: 50%; font-size: 12px;
    display: flex; align-items: center; justify-content: center; font-weight: bold; border: 2px solid white; z-index: 2;
}
.trust-card h4 { font-size: 1rem; margin-bottom: 5px; color: var(--text-dark); font-weight: 600; }
.trust-card p { font-size: 0.8rem; color: #666; margin: 0; }

/* Content Styles */
.legal-content h2 { font-size: 1.5rem; color: var(--text-dark); margin-top: 40px; margin-bottom: 15px; }
.legal-content ul { background: rgba(249, 249, 249, 0.8); padding: 25px 25px 25px 45px; border-radius: 10px; margin-bottom: 20px; border: 1px solid rgba(0,0,0,0.08); }
.last-updated { text-align: center; margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(0,0,0,0.1); color: #888; font-size: 0.9rem; }

/* =========================================
   4. TERMS PAGE STYLES
   ========================================= */
.terms-visual-header {
    display: flex; align-items: center; gap: 40px; margin-bottom: 40px;
    padding-bottom: 40px; border-bottom: 1px solid rgba(0,0,0,0.05);
}
.terms-intro-text h2 {
    font-size: 2rem; margin-bottom: 15px;
    background: linear-gradient(135deg, var(--secondary-color), #ff6b6b);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.terms-intro-text p { font-size: 1.1rem; color: #666; line-height: 1.6; }

.scale-visual { position: relative; width: 160px; height: 160px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.scale-glow {
    position: absolute; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(255, 165, 0, 0.2) 0%, transparent 70%);
    filter: blur(20px); animation: pulseScale 5s infinite alternate;
}
.scale-icon { font-size: 5rem; z-index: 2; filter: drop-shadow(0 10px 20px rgba(255, 165, 0, 0.3)); animation: balanceScale 6s ease-in-out infinite; transform-origin: center bottom; }
.scale-plates span { position: absolute; width: 10px; height: 10px; background: var(--secondary-color); border-radius: 50%; opacity: 0.6; }
.plate-left { bottom: 40px; left: 30px; animation: floatPlateLeft 6s ease-in-out infinite; }
.plate-right { bottom: 40px; right: 30px; animation: floatPlateRight 6s ease-in-out infinite; }

.scale-badge {
    position: absolute; bottom: -10px; background: white; padding: 6px 14px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 700; color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); border: 1px solid rgba(255, 165, 0, 0.2);
    display: flex; align-items: center; gap: 6px; z-index: 3; white-space: nowrap;
}
.check-mark { color: #2ed573; font-weight: 900; }

.terms-summary-deck { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 50px; }
.summary-card {
    background: rgba(255,255,255,0.6); border: 1px solid rgba(0,0,0,0.1); border-radius: 12px;
    padding: 20px; display: flex; align-items: center; gap: 15px; transition: transform 0.3s ease;
}
.summary-card:hover { transform: translateY(-3px); background: white; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-color: var(--secondary-color); }
.summary-icon { font-size: 2rem; background: rgba(0,0,0,0.03); width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; }
.summary-text h4 { font-size: 1rem; margin: 0 0 4px 0; color: var(--text-dark); }
.summary-text p { font-size: 0.8rem; margin: 0; color: #666; line-height: 1.4; }

/* =========================================
   5. CONTACT PAGE STYLES
   ========================================= */

/* Unified Hero (Merges Title & Visual) */
.contact-unified-hero {
    background: radial-gradient(circle at top right, rgba(165, 94, 234, 0.1) 0%, rgba(255,255,255,0) 60%),
                radial-gradient(circle at bottom left, rgba(45, 152, 218, 0.05) 0%, rgba(255,255,255,0) 60%);
    padding: 80px 0 60px; text-align: center; position: relative; overflow: hidden;
}

.hero-grid-center {
    display: flex; flex-direction: column; align-items: center; gap: 30px;
    max-width: 800px; margin: 0 auto; position: relative; z-index: 2;
}

.hero-visual-icon {
    width: 120px; height: 120px; background: white; border-radius: 30px;
    display: flex; align-items: center; justify-content: center; font-size: 4rem;
    box-shadow: 0 20px 40px rgba(165, 94, 234, 0.2);
    animation: floatHero 6s ease-in-out infinite; position: relative;
}

.hero-visual-icon::after {
    content: ''; position: absolute; inset: -10px; border-radius: 40px;
    border: 2px dashed rgba(165, 94, 234, 0.3); animation: rotateDecor 20s linear infinite; z-index: -1;
}

.hero-title h1 {
    font-size: 3.5rem; margin-bottom: 15px;
    background: linear-gradient(135deg, #a55eea 0%, #45aaf2 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -1px;
}
.hero-title p { font-size: 1.2rem; color: #666; line-height: 1.6; max-width: 600px; margin: 0 auto; }

/* Contact Page Layout */
.contact-section { padding: 60px 0 100px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: stretch; }

/* Left Column: Purple Info Card */
.contact-card-purple {
    background: linear-gradient(135deg, #a55eea 0%, #8854d0 100%);
    padding: 50px 40px; border-radius: 24px; color: white;
    box-shadow: 0 20px 40px rgba(136, 84, 208, 0.3); position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center;
}
.contact-card-purple::before {
    content: ''; position: absolute; top: -60px; right: -60px; width: 200px; height: 200px;
    background: rgba(255,255,255,0.1); border-radius: 50%;
}

.contact-card-purple h2 { color: white; font-size: 1.8rem; margin-bottom: 15px; }

.info-list { margin-top: 40px; }
.info-row {
    display: flex; align-items: center; gap: 20px; margin-bottom: 30px;
    background: rgba(255,255,255,0.15); padding: 15px 20px; border-radius: 15px;
    backdrop-filter: blur(5px); transition: transform 0.2s;
}
.info-row:hover { transform: translateX(10px); background: rgba(255,255,255,0.25); }
.info-icon-box { font-size: 1.5rem; }

/* Right Column: Form */
.contact-form-container {
    background: white; padding: 40px; border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.08); box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.form-group { margin-bottom: 25px; }
.form-label { display: block; margin-bottom: 10px; color: var(--text-dark); font-weight: 600; font-size: 0.95rem; }

/* Input Styling */
.form-input {
    width: 100%; padding: 15px 20px; border: 2px solid #f0f0f0; background: #f9f9f9;
    border-radius: 12px; font-family: 'Poppins', sans-serif; font-size: 1rem; color: #333; transition: all 0.3s ease;
}
.form-input:focus {
    outline: none; border-color: #a55eea; background: white; box-shadow: 0 0 0 4px rgba(165, 94, 234, 0.1);
}
textarea.form-input { min-height: 150px; resize: vertical; }

/* SHARED ANIMATIONS */
@keyframes pulseGlow { 0% { transform: scale(0.8); opacity: 0.3; } 100% { transform: scale(1.2); opacity: 0.5; } }
@keyframes floatBadge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulseShield { 0% { transform: scale(0.9); opacity: 0.5; } 100% { transform: scale(1.1); opacity: 0.8; } }
@keyframes floatShield { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes particleFloat { 0% { transform: translateY(0); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(-20px); opacity: 0; } }
@keyframes pulseScale { 0% { transform: scale(0.9); opacity: 0.5; } 100% { transform: scale(1.1); opacity: 0.8; } }
@keyframes balanceScale { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }
@keyframes floatPlateLeft { 0%, 100% { transform: translateY(0); } 25% { transform: translateY(5px); } 75% { transform: translateY(-5px); } }
@keyframes floatPlateRight { 0%, 100% { transform: translateY(0); } 25% { transform: translateY(-5px); } 75% { transform: translateY(5px); } }
@keyframes floatHero { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes rotateDecor { to { transform: rotate(360deg); } }
@keyframes sparkle { 0% { opacity: 0; transform: scale(0); } 50% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(0); } }

/* RESPONSIVE */
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
    .hero-title h1 { font-size: 2.5rem; }
}
@media (max-width: 768px) {
    .story-grid, .privacy-highlights, .trust-grid, .terms-summary-deck, .values-grid { grid-template-columns: 1fr; }
    .privacy-visual-header, .terms-visual-header, .values-visual-header { flex-direction: column; text-align: center; gap: 20px; }
    .page-hero h1 { font-size: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) {
    .story-visual:hover, .value-card:hover, .highlight-card:hover, .tech-item:hover,
    .visual-glow, .visual-badge, .shield-icon, .shield-glow, .scale-icon, .scale-glow, .hero-visual-icon, .gem-icon, .gem-glow, .about-hero-icon, .bulb-glow {
        animation: none; transform: none;
    }
}