/* --- PREMIUM VARIABLES --- */
:root {
    --primary-color: #0f172a;
    --accent-color: #2563eb;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-color: #f1f5f9;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { background-color: var(--bg-color); color: var(--text-dark); position: relative; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; position: relative; }

/* --- PAGE TRANSITION --- */
.page-transition {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, #ffffff 0%, #e0f2fe 100%);
    z-index: 99999; opacity: 0; visibility: hidden;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transform: scale(1.1); pointer-events: none;
}
.page-transition.active { opacity: 1; visibility: visible; transform: scale(1); pointer-events: all; }

/* --- BACK TO TOP --- */
#backToTop {
    display: none; position: fixed; bottom: 30px; right: 30px; z-index: 999;
    border: none; outline: none; background-color: var(--primary-color);
    color: white; cursor: pointer; width: 45px; height: 45px; border-radius: 50%;
    font-size: 1.1rem; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease; align-items: center; justify-content: center;
}
#backToTop:hover { background-color: var(--accent-color); transform: translateY(-3px); }

/* --- BUTTONS --- */
.btn-main {
    background-color: var(--primary-color); color: white; padding: 10px 22px; 
    border-radius: 50px; font-weight: 600; text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px; transition: 0.3s;
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.2); font-size: 0.8rem; letter-spacing: 0.5px;
}
.btn-main:hover { background-color: var(--accent-color); transform: translateY(-3px); }

.btn-outline {
    background: transparent; color: var(--text-dark); border: 2px solid var(--text-dark);
    padding: 10px 25px; border-radius: 50px; font-weight: 700; cursor: pointer;
    transition: 0.3s; font-size: 0.8rem; display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { background: var(--text-dark); color: white; }

.btn-premium {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white; border: none; padding: 14px 40px; border-radius: 50px;
    font-weight: 700; font-size: 0.95rem; cursor: pointer; text-transform: uppercase;
    letter-spacing: 1.5px; transition: all 0.4s ease; display: inline-flex; align-items: center; gap: 12px;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3); text-decoration: none;
    position: relative; overflow: hidden; z-index: 1;
}
.btn-premium::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg); animation: runningShine 3s infinite; z-index: -1;
}
@keyframes runningShine { 0% { left: -100%; } 50% { left: 200%; } 100% { left: 200%; } }
.btn-premium:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(37, 99, 235, 0.5); }


/* --- PREMIUM SHINE EFFECT (KEPT FROM PREVIOUS EDITS) --- */
@keyframes premiumGlassShine {
    0% { left: -100%; opacity: 0; }
    10% { opacity: 1; }
    20% { left: 200%; opacity: 0; }
    100% { left: 200%; opacity: 0; }
}
.hero-card-main::after, .scout-floating-card::after, .gallery-item::after, .promo-card::after, .sdg-card::after, .social-box::after, .glass-modal::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg); animation: premiumGlassShine 6s infinite;
    z-index: 5; pointer-events: none; mix-blend-mode: overlay; border-radius: inherit;
}


/* --- HERO SECTION --- */
.hero-wrapper { padding: 40px 0; min-height: 90vh; display: flex; align-items: center; }
.hero-card-main {
    background: linear-gradient(135deg, #e0e7ff 0%, #f1f5f9 100%);
    border-radius: 40px; width: 100%; position: relative; overflow: hidden;
    box-shadow: var(--shadow-lg); border: 1px solid white;
    display: flex; justify-content: space-between; align-items: center; height: 600px;
}
.hero-text { padding: 60px; width: 50%; z-index: 2; }
.hero-text h1 {
    font-size: 4.5rem; line-height: 1; font-weight: 800; margin-bottom: 25px;
    background: linear-gradient(to right, #0f172a 20%, #2563eb 40%, #93c5fd 50%, #2563eb 60%, #0f172a 80%);
    background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; color: transparent; animation: shine 4s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }
.hero-text h4 { color: #444; font-size: 1.2rem; letter-spacing: 2px; font-weight: 700; text-transform: uppercase; margin-bottom: 10px; }
.hero-image-side { width: 50%; height: 100%; position: relative; }
.hero-image-side img { width: 100%; height: 100%; object-fit: cover; border-top-left-radius: 40px; border-bottom-left-radius: 40px; }

/* Floating Scout Card */
.scout-floating-card {
    position: absolute; bottom: 40px; right: 40px;
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px);
    padding: 15px 25px; border-radius: 20px; display: flex; align-items: center;
    gap: 15px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); border: 1px solid rgba(255,255,255,0.6);
    cursor: pointer; transition: all 0.3s ease; z-index: 10; animation: float 4s ease-in-out infinite; overflow: hidden;
}
.scout-floating-card:hover { transform: translateY(-5px) scale(1.02); background: #fff; }
.scout-thumbs { display: flex; }
.s-thumb { width: 35px; height: 35px; border-radius: 50%; border: 2px solid white; margin-left: -12px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.s-thumb:first-child { margin-left: 0; }
.s-thumb img { width: 100%; height: 100%; object-fit: cover; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* --- SECTIONS --- */
.section-padding { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 1.8rem; font-weight: 800; color: var(--primary-color); margin-bottom: 8px; text-transform: uppercase; }
.section-title p { color: var(--text-light); font-size: 1rem; }

/* --- GALLERY GRID & SKELETON --- */
.gallery-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px; margin-bottom: 30px;
}
.gallery-item {
    position: relative; border-radius: 16px; overflow: hidden;
    background: #fff; box-shadow: var(--shadow-sm); cursor: pointer;
    height: 250px; display: none; 
}
.gallery-item.visible { display: block; }
.gallery-item.animate-custom { animation: smoothFadeUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; }
@keyframes smoothFadeUp { 0% { opacity: 0; transform: translateY(40px); } 100% { opacity: 1; transform: translateY(0); } }

.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s ease; }
.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.4); opacity: 0; transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.overlay i {
    color: white; font-size: 1.5rem; transform: scale(0); transition: 0.3s;
    background: rgba(255,255,255,0.25); padding: 18px; border-radius: 50%; backdrop-filter: blur(8px);
}
.gallery-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item:hover .overlay i { transform: scale(1); }

/* --- SKELETON LOADER ANIMATION --- */
.skeleton-card {
    height: 250px; border-radius: 16px; background: #e2e8f0;
    position: relative; overflow: hidden; border: 1px solid #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.skeleton-card::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.3) 20%, rgba(255, 255, 255, 0.6) 60%, rgba(255, 255, 255, 0));
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

.load-more-container { text-align: center; margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 20px; }

/* --- OTHER ELEMENTS --- */
.promo-card { background: #fff; border-radius: 25px; padding: 0; box-shadow: var(--shadow-lg); display: flex; align-items: stretch; overflow: hidden; border: 1px solid rgba(0,0,0,0.05); min-height: 280px; max-width: 800px; margin: 0 auto; }
.promo-image { width: 30%; position: relative; }
.promo-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-content { width: 70%; padding: 25px 35px; display: flex; flex-direction: column; justify-content: center; text-align: left; }
.info-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 15px; } 
.info-item { display: flex; align-items: center; gap: 10px; color: var(--text-dark); font-size: 0.85rem; }
.info-item i { color: var(--accent-color); width: 20px; text-align: center; }

.sdg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sdg-card { background: white; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; transition: 0.3s; border: 1px solid rgba(255, 255, 255, 0.5); }
.sdg-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.sdg-img { height: 160px; overflow: hidden; } 
.sdg-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.sdg-card:hover .sdg-img img { transform: scale(1.1); }
.sdg-text { padding: 20px; } .sdg-text h3 { font-size: 1rem; font-weight: 700; line-height: 1.4; }

.social-box { background: white; border-radius: 24px; padding: 30px; display: flex; justify-content: center; gap: 30px; box-shadow: var(--shadow-sm); flex-wrap: wrap; position: relative; overflow: hidden; }
.social-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--text-dark); transition: 0.3s; width: 100px; }
.social-item:hover { transform: translateY(-5px); }
.s-icon { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 10px; transition: 0.3s; }
.fb .s-icon { background: #e7f5ff; color: #1877f2; } .insta .s-icon { background: #fff0f5; color: #E1306C; } .wa .s-icon { background: #e8f5e9; color: #25D366; }
.social-item:hover .s-icon { transform: rotate(10deg) scale(1.1); }

/* --- LIGHTBOX & MODAL --- */
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.95); z-index: 1000; display: none; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; backdrop-filter: blur(10px); }
.lightbox.active { display: flex; opacity: 1; }
.lightbox img { max-width: 90%; max-height: 85vh; border-radius: 10px; box-shadow: 0 0 50px rgba(0,0,0,0.5); transform: scale(0.9); transition: 0.3s; }
.lightbox.active img { transform: scale(1); }
.close-lightbox { position: absolute; top: 30px; right: 30px; color: white; font-size: 2rem; cursor: pointer; transition: 0.3s; }
.close-lightbox:hover { color: var(--accent-color); transform: rotate(90deg); }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(5px); z-index: 1000; display: none; justify-content: center; align-items: center; }
.glass-modal { background: rgba(255, 255, 255, 0.95); width: 90%; max-width: 400px; border-radius: 24px; padding: 40px; text-align: center; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); animation: fadeIn 0.3s ease; position: relative; overflow: hidden; }
.modal-btn { display: block; padding: 15px; margin-bottom: 10px; background: #f8fafc; border-radius: 12px; text-decoration: none; color: var(--text-dark); font-weight: 600; transition: 0.2s; }
.modal-btn:hover { background: var(--accent-color); color: white; }
@keyframes fadeIn { from{opacity:0; transform: scale(0.9);} to{opacity:1; transform: scale(1);} }

/* --- WEATHER & CAMERA CSS --- */
#weather-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999; overflow: hidden; transition: opacity 1.5s ease-out; }
.snowflake { position: absolute; top: -20px; color: rgba(186, 218, 255, 0.8); user-select: none; pointer-events: none; animation-name: fall, sway; animation-iteration-count: infinite, infinite; filter: blur(1.5px); }
@keyframes fall { 0% { top: -10%; opacity: 0; } 20% { opacity: 1; } 100% { top: 110%; opacity: 0.3; } }
@keyframes sway { 0% { transform: translateX(0px); } 50% { transform: translateX(25px); } 100% { transform: translateX(0px); } }

.btn-camera { position: relative; height: 48px; width: 220px; padding: 0; border: none; outline: none; cursor: pointer; border-radius: 12px; overflow: hidden; transition: all 0.3s ease; box-shadow: 0 8px 25px rgba(122, 90, 248, 0.4); background: radial-gradient(65.28% 65.28% at 50% 100%, rgba(223, 113, 255, 0.8) 0%, rgba(223, 113, 255, 0) 100%), linear-gradient(0deg, #7a5af8, #7a5af8); }
.btn-camera:active { transform: scale(0.98); }
.cam-label { position: absolute; left: 0; right: 0; top: 13px; text-align: center; font-size: 15px; font-weight: 600; color: white; z-index: 10; transition: 0.4s ease; }
.cam-label.default { opacity: 1; transform: translateY(0); }
.cam-label.success { opacity: 0; transform: translateY(20px); display: flex; justify-content: center; align-items: center; gap: 8px; color: #fff; }
.btn-camera.animate .cam-label.default { opacity: 0; transform: translateY(-20px); }
.btn-camera.animate .cam-label.success { opacity: 1; transform: translateY(0); transition-delay: 3.8s; }
.cam-fold-cut { position: absolute; top: -1px; right: -1px; border-style: solid; border-width: 0 22px 22px 0; border-color: transparent var(--bg-color) transparent transparent; z-index: 20; transition: all 0.5s ease; pointer-events: none; }
.cam-fold-flap { position: absolute; top: 0; right: 0; width: 0; height: 0; border-style: solid; border-width: 22px 0 0 22px; border-color: transparent transparent transparent #5b21b6; filter: drop-shadow(-2px 2px 2px rgba(0,0,0,0.3)); z-index: 21; transition: all 0.5s ease; transform-origin: top right; }
.btn-camera:hover .cam-fold-flap, .btn-camera.animate .cam-fold-flap { border-width: 0; }
.btn-camera:hover .cam-fold-cut, .btn-camera.animate .cam-fold-cut { border-width: 0; }
.cam-particles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.c-dot { position: absolute; width: 4px; height: 4px; background: rgba(255,255,255,0.6); border-radius: 50%; bottom: -10px; opacity: 0; animation: rise 3s infinite ease-in; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 50% { opacity: 0.8; } 100% { transform: translateY(-80px); opacity: 0; } }
.c-dot:nth-child(1) { left: 10%; animation-duration: 2s; } .c-dot:nth-child(2) { left: 30%; animation-duration: 3.5s; width: 3px; height: 3px; } .c-dot:nth-child(3) { left: 60%; animation-duration: 2.8s; animation-delay: 0.5s; } .c-dot:nth-child(4) { left: 80%; animation-duration: 3.2s; animation-delay: 1s; }
.camera-group { position: absolute; width: 45px; height: 35px; top: 7px; left: -60px; z-index: 15; }
.cam-body { width: 44px; height: 28px; background: #222; border-radius: 5px; position: absolute; top: 5px; left: 0; background: linear-gradient(145deg, #444, #111); box-shadow: 2px 5px 10px rgba(0,0,0,0.3); border: 1px solid #555; }
.cam-top { width: 20px; height: 5px; background: #333; position: absolute; top: 0; left: 12px; border-radius: 4px 4px 0 0; }
.cam-lens { width: 22px; height: 22px; background: radial-gradient(circle at 30% 30%, #555, #000); border: 2px solid #666; border-radius: 50%; position: absolute; top: 8px; left: 11px; }
.cam-lens::after { content: ''; position: absolute; width: 6px; height: 6px; background: rgba(255,255,255,0.4); border-radius: 50%; top: 4px; right: 4px; }
.cam-flash { width: 6px; height: 4px; background: #fff; position: absolute; top: 4px; right: 4px; border-radius: 1px; }
.flash-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: white; opacity: 0; pointer-events: none; z-index: 30; mix-blend-mode: overlay; }
.btn-camera.animate .camera-group { animation: driveCamera 4s ease-in-out forwards; }
.btn-camera.animate .flash-overlay { animation: flashEffect 4s ease-in-out forwards; }
@keyframes driveCamera { 0% { left: -60px; transform: scale(0.8) rotate(-10deg); } 40% { left: 90px; transform: scale(1.1) rotate(0deg); } 50% { left: 90px; transform: scale(1.1); } 100% { left: 250px; transform: scale(0.8) rotate(10deg); } }
@keyframes flashEffect { 0%, 45% { opacity: 0; } 48% { opacity: 1; } 55% { opacity: 0; } }

/* --- RESPONSIVE OPTIMIZATION (MOBILE SPEED FIX) --- */
@media (max-width: 900px) {
    .hero-text h1 { font-size: 3rem; }
    .hero-card-main { height: auto; flex-direction: column-reverse; padding-bottom: 0; }
    .hero-image-side { width: 100%; height: 350px; }
    .hero-text { width: 100%; padding: 40px 30px; text-align: center; }
    .hero-image-side img { border-radius: 0; border-top-left-radius: 40px; border-top-right-radius: 40px; }
    .scout-floating-card { bottom: 20px; right: 20px; padding: 10px 15px; backdrop-filter: none; background: rgba(255, 255, 255, 0.95); }
    .promo-card { flex-direction: column; max-width: 100%; }
    .promo-image { width: 100%; height: 250px; }
    .promo-content { width: 100%; padding: 25px; text-align: center; }
    .info-item { justify-content: center; }
    .sdg-grid { grid-template-columns: 1fr; gap: 25px; padding: 0 15px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* Disable heavy effects on mobile */
    .snowflake { display: none; }
    .glass-modal { backdrop-filter: none; }
    .skeleton-card::after { animation: none; background: #f1f5f9; }
}
@media (max-width: 600px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .sdg-grid { grid-template-columns: 1fr; }
}
