/* ================================================
   RIFQII STORE - MODERN CONTACT PAGE
   Theme: Purple-Cyan Gradient (Dark)
   Inspired by: Journal Trade Login
   ================================================ */

/* ==================== CSS VARIABLES ==================== */
:root {
    /* Primary Colors - Purple to Cyan Gradient */
    --primary-color: #7b2ff7;
    --secondary-color: #00d4ff;
    --accent-purple: #7b2ff7;
    --accent-cyan: #00d4ff;
    --success-color: #00ff88;
    --error-color: #ff3366;
    
    /* Dark Theme Colors */
    --bg-primary: #0a0e27;
    --bg-secondary: #1a1d3e;
    --bg-card: rgba(26, 29, 62, 0.85);
    --border-color: rgba(123, 47, 247, 0.3);
    --border-hover: rgba(0, 212, 255, 0.5);
    
    /* Text Colors */
    --text-primary: #e0e0e0;
    --text-secondary: #8b92b8;
    --text-muted: #4a5073;
    
    /* Glow Effects */
    --glow-purple: 0 0 30px rgba(123, 47, 247, 0.6);
    --glow-cyan: 0 0 30px rgba(0, 212, 255, 0.6);
    --glow-strong: 0 8px 32px rgba(123, 47, 247, 0.5);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4), 0 16px 64px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 12px 40px rgba(123, 47, 247, 0.6);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== GLOBAL RESET ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    height: 100%;
    background: var(--bg-primary);
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ==================== CUSTOM SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-purple), var(--accent-cyan));
    border-radius: 10px;
    box-shadow: var(--glow-purple);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
}

/* ==================== SELECTION COLOR ==================== */
::selection {
    background: var(--accent-purple);
    color: white;
}

::-moz-selection {
    background: var(--accent-purple);
    color: white;
}

/* ==================== ANIMATED BACKGROUND ==================== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

/* Animated background blobs */
.bg-animation::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(123, 47, 247, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: float 6s ease-in-out infinite;
    filter: blur(80px);
}

.bg-animation::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
    animation: float 8s ease-in-out infinite reverse;
    filter: blur(80px);
}

.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(123, 47, 247, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(123, 47, 247, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Floating Particles */
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(123, 47, 247, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(123, 47, 247, 0.8);
    left: var(--x);
    top: var(--y);
    animation: particleFloat var(--duration) ease-in-out infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-20vh) translateX(100px);
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

/* ==================== CURSOR GLOW EFFECT ==================== */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 47, 247, 0.15) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: opacity 0.3s;
    opacity: 0;
}

/* ==================== MAIN CONTAINER ==================== */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* ==================== HEADER SECTION ==================== */
.header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeInDown 1s ease-out forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo-icon {
    font-size: 3rem;
    color: var(--accent-cyan);
    animation: logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0, 212, 255, 0.5));
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 10px 30px rgba(0, 212, 255, 0.5));
    }
    50% {
        transform: translateY(-10px) scale(1.02);
        filter: drop-shadow(0 15px 40px rgba(123, 47, 247, 0.6));
    }
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    position: relative;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), var(--accent-cyan), transparent);
    box-shadow: var(--glow-purple);
}

.tagline {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: fadeIn 1.5s ease-out 0.3s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
    background: rgba(26, 29, 62, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card),
                0 0 0 1px rgba(255, 255, 255, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

/* Shimmer effect on hero */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(123, 47, 247, 0.1),
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

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

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--accent-cyan);
    text-shadow: 0 0 30px rgba(123, 47, 247, 0.5);
}

.text-glitch {
    position: relative;
    display: inline-block;
}

.hero-description {
    font-size: 1.15rem;
    font-weight: 500;
    color: #ffffff;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

.scan-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), var(--accent-cyan), transparent);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ==================== SECTION HEADER ==================== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-header i {
    font-size: 2rem;
    color: var(--primary-color);
    filter: drop-shadow(var(--glow-primary));
}

.section-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: var(--glow-primary);
}

/* ==================== CONTACT SECTIONS ==================== */
.contact-sections {
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(123, 47, 247, 0.2);
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 0.8s linear infinite;
    box-shadow: var(--glow-purple);
}

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

.loading-state p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Contact Group */
.contact-group {
    margin-bottom: 60px;
}

.group-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.group-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), var(--accent-cyan), transparent);
    box-shadow: var(--glow-purple);
}

.group-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Contact Grid - 2 Columns */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 700px;
    margin: 0 auto;
}

/* Special grid for 3 items - 2 top, 1 centered bottom */
.contact-grid.grid-3 {
    grid-template-columns: repeat(2, 1fr);
}

.contact-grid.grid-3 .contact-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 350px;
    margin: 0 auto;
    width: 100%;
}

/* Contact Card - Glass Morphism */
.contact-card {
    background: rgba(26, 29, 62, 0.95);
    backdrop-filter: blur(15px);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-card),
                0 0 0 1px rgba(255, 255, 255, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Shimmer effect on card */
.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(123, 47, 247, 0.1),
        transparent
    );
    opacity: 0;
    transition: opacity 0.3s;
}

.contact-card:hover::before {
    opacity: 1;
    animation: shimmer 1.5s infinite;
}

.contact-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-purple);
    box-shadow: var(--shadow-hover),
                0 0 40px rgba(123, 47, 247, 0.4);
}

.contact-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), var(--accent-cyan), transparent);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.contact-card:hover::after {
    transform: scaleX(1);
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    position: relative;
    transition: var(--transition);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotateY(360deg);
}

/* Icon Colors */
.contact-card.whatsapp .contact-icon {
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
    color: white;
}

.contact-card.telegram .contact-icon {
    background: linear-gradient(135deg, #0088cc, #2AABEE);
    box-shadow: 0 8px 30px rgba(0, 136, 204, 0.5);
    color: white;
}

.contact-card.email .contact-icon {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
    color: white;
}

.contact-card.group .contact-icon {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    box-shadow: 0 8px 30px rgba(123, 47, 247, 0.5);
    color: white;
}

.contact-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.contact-desc {
    font-size: 1rem;
    font-weight: 500;
    color: #c4c9d4;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ==================== NOTIFICATIONS ==================== */
.notification-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notification {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 2px solid;
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: var(--shadow-card);
    transform: translateX(400px);
    opacity: 0;
    transition: var(--transition);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    color: white;
}

.notification.whatsapp-notif {
    border-color: #25D366;
}

.notification.whatsapp-notif .notification-icon {
    background: #25D366;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.notification.telegram-notif {
    border-color: #0088cc;
}

.notification.telegram-notif .notification-icon {
    background: #0088cc;
    box-shadow: 0 8px 30px rgba(0, 136, 204, 0.6);
}

.notification.email-notif {
    border-color: #6366f1;
}

.notification.email-notif .notification-icon {
    background: #6366f1;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
}

.notification.whatsapp-group-notif {
    border-color: #25D366;
}

.notification.whatsapp-group-notif .notification-icon {
    background: #25D366;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.notification.telegram-group-notif {
    border-color: #0088cc;
}

.notification.telegram-group-notif .notification-icon {
    background: #0088cc;
    box-shadow: 0 8px 30px rgba(0, 136, 204, 0.6);
}

/* ==================== FOOTER ==================== */
.footer {
    text-align: center;
    padding: 40px 20px 20px;
    border-top: 2px solid var(--border-color);
    margin-top: 60px;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.2s forwards;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--accent-purple);
    text-shadow: var(--glow-purple);
}

.separator {
    color: var(--text-muted);
}

.footer-tech {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.9rem;
    margin-top: 15px;
}

.footer-tech i {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Small Mobile (< 360px) */
@media (max-width: 360px) {
    .contact-grid {
        gap: 15px;
    }
    
    .contact-card {
        padding: 20px 15px;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .contact-title {
        font-size: 1.1rem;
    }
    
    .contact-desc {
        font-size: 0.85rem;
    }
}

/* Mobile (< 480px) */
@media (max-width: 480px) {
    .logo-container {
        gap: 10px;
    }

    .logo {
        font-size: 2rem;
    }

    .logo-icon {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 1rem;
        font-weight: 500;
    }

    .group-header h3 {
        font-size: 1.4rem;
    }
    
    .contact-grid {
        gap: 20px;
        max-width: 100%;
    }
    
    .contact-grid.grid-3 .contact-card:nth-child(3) {
        max-width: 100%;
    }
    
    .contact-desc {
        font-size: 0.95rem;
        font-weight: 500;
    }

    .notification-container {
        right: 15px;
        top: 15px;
        left: 15px;
    }
    
    .notification {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .notification-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .separator {
        display: none;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .main-container {
        padding: 30px 15px;
    }

    .logo {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .group-header h3 {
        font-size: 1.6rem;
    }

    .notification-container {
        right: 15px;
        top: 15px;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .bg-animation,
    .cursor-glow,
    .notification-container,
    .footer-links {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .main-container {
        max-width: 100%;
    }
}
