/* =====================================================
   GKK DPR Website - Kimi26 Inspired Design System
   Dark Theme + Glassmorphism + Animations
   ===================================================== */

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a0f;
    color: #e2e8f0;
    overflow-x: hidden;
}

.font-display {
    font-family: 'Space Grotesk', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0f; }
::-webkit-scrollbar-thumb { background: #2c5f8d; border-radius: 3px; }

/* Custom Selection */
::selection {
    background: rgba(44, 95, 141, 0.3);
    color: #fff;
}

/* =====================================================
   BACKGROUND CANVAS - Neural Network
   ===================================================== */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* =====================================================
   GLASSMORPHISM
   ===================================================== */
.glass {
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(26, 26, 46, 0.8);
    border-color: rgba(44, 95, 141, 0.3);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(44, 95, 141, 0.15), 0 0 60px rgba(44, 95, 141, 0.05);
}

/* =====================================================
   GRADIENT TEXT
   ===================================================== */
.gradient-text {
    background: linear-gradient(135deg, #2c5f8d 0%, #4a90c7 50%, #f39c12 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-alt {
    background: linear-gradient(135deg, #4a90c7 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-gold {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =====================================================
   GLOW EFFECTS
   ===================================================== */
.glow-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(44, 95, 141, 0.2);
    animation: pulse-ring 4s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

/* =====================================================
   FLOATING ANIMATION
   ===================================================== */
.float {
    animation: float 6s ease-in-out infinite;
}

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

/* =====================================================
   TYPING CURSOR
   ===================================================== */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: #2c5f8d;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* =====================================================
   STATUS INDICATOR
   ===================================================== */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* =====================================================
   GRID PATTERN
   ===================================================== */
.grid-pattern {
    background-image:
        linear-gradient(rgba(44, 95, 141, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(44, 95, 141, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* =====================================================
   CARD IMAGE CONTAINER
   ===================================================== */
.card-image-container {
    position: relative;
    overflow: hidden;
}

.card-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.9), transparent);
    pointer-events: none;
}

/* =====================================================
   SKILL TAG STYLE (for ministry/services)
   ===================================================== */
.skill-tag {
    background: rgba(44, 95, 141, 0.1);
    border: 1px solid rgba(44, 95, 141, 0.2);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(44, 95, 141, 0.2);
    border-color: rgba(44, 95, 141, 0.4);
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2c5f8d, #4a90c7);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* =====================================================
   BUTTON GLOW
   ===================================================== */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

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

/* =====================================================
   PARTICLE CONTAINER
   ===================================================== */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(44, 95, 141, 0.5);
    border-radius: 50%;
    animation: particle-float 15s infinite;
}

@keyframes particle-float {
    0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* =====================================================
   LOADING BAR
   ===================================================== */
.loading-bar {
    height: 3px;
    background: linear-gradient(90deg, #2c5f8d, #4a90c7, #f39c12);
    background-size: 200% 100%;
    animation: loading-shift 2s linear infinite;
}

@keyframes loading-shift {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =====================================================
   ORBIT ANIMATION
   ===================================================== */
.orbit-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.orbit-ring {
    position: absolute;
    border: 1px solid rgba(44, 95, 141, 0.15);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2c5f8d;
    box-shadow: 0 0 20px rgba(44, 95, 141, 0.6);
}

/* =====================================================
   TIMELINE
   ===================================================== */
.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #2c5f8d, #4a90c7, #f39c12);
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0a0a0f;
    border: 3px solid #2c5f8d;
    box-shadow: 0 0 20px rgba(44, 95, 141, 0.4);
}

/* =====================================================
   REVEAL ANIMATION
   ===================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
}

/* =====================================================
   COUNTER
   ===================================================== */
.counter-value {
    font-variant-numeric: tabular-nums;
}

/* =====================================================
   MOBILE MENU
   ===================================================== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 100;
}

.hamburger span {
    width: 28px;
    height: 2.5px;
    background: #e2e8f0;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(26, 26, 46, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 99;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .orbit-ring {
        display: none;
    }
}

/* =====================================================
   SECTION HEADER
   ===================================================== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 4px 12px;
    border-radius: 9999px;
    background: rgba(44, 95, 141, 0.1);
    border: 1px solid rgba(44, 95, 141, 0.2);
    color: #4a90c7;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* =====================================================
   LIGHTBOX
   ===================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =====================================================
   BACK TO TOP
   ===================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #2c5f8d;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.back-to-top:hover {
    background: #4a90c7;
    transform: translateY(-5px);
}

/* =====================================================
   SERVICE CARD SPECIFIC
   ===================================================== */
.service-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(44, 95, 141, 0.2), rgba(74, 144, 199, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 1px solid rgba(44, 95, 141, 0.2);
}

.service-icon-wrapper i {
    font-size: 1.5rem;
    color: #4a90c7;
}

/* =====================================================
   GALLERY OVERLAY
   ===================================================== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
    color: white;
    text-shadow: 0 0 20px rgba(44, 95, 141, 0.5);
}

/* =====================================================
   FORM STYLES
   ===================================================== */
.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: rgba(44, 95, 141, 0.5);
    box-shadow: 0 0 0 3px rgba(44, 95, 141, 0.1);
}

.form-input::placeholder {
    color: rgba(226, 232, 240, 0.3);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .orbit-ring {
        display: none;
    }
}

@media (max-width: 640px) {
    .service-icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .service-icon-wrapper i {
        font-size: 1.2rem;
    }
}
