/* File: assets/css/landing.css */
:root {
    --primary: #2563eb; /* Royal Blue */
    --secondary: #0ea5e9;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f8fafc;
    --accent: #7c3aed;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--darker);
    color: var(--light);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* Texture Pattern */
.bg-dots {
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

.bg-dots-dark {
    background-image: radial-gradient(rgba(15, 23, 42, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Header */
.landing-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.landing-header.scrolled {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(15px);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: #fff !important;
    text-decoration: none;
    letter-spacing: -0.5px;
}

/* Hero Section - Amisya Style Radial Gradient */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at 70% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(14, 165, 233, 0.1) 0%, transparent 40%),
                var(--darker);
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero-content {
    max-width: 700px;
    padding: 0 1rem;
    position: relative;
    z-index: 5;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.05;
    letter-spacing: -2px;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 30%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    max-width: 550px;
    line-height: 1.7;
}

/* Masked Hero Image */
.hero-image-wrapper {
    position: relative;
    z-index: 2;
}

.hero-img-mask {
    width: 100%;
    max-width: 600px;
    border-radius: 40px;
    mask-image: radial-gradient(circle, black 65%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle, black 65%, transparent 100%);
    filter: saturate(1.1) brightness(1.1);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: all 0.5s ease;
}

.hero-img-mask:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

/* Floating Navigation Bar */
.floating-nav-container {
    position: relative;
    z-index: 10;
    margin-top: -60px;
    text-align: center;
}

/* Floating Navigation - Now Fixed at Bottom */
.floating-nav-container {
    position: fixed;
    bottom: 30px;
    left: 0;
    width: 100%;
    z-index: 1000;
    pointer-events: none;
    display: flex;
    justify-content: center;
    transition: all 0.4s ease;
}

.floating-nav {
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.85); /* Dark Slate / Darker Slate */
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 2.2rem;
    border-radius: 100px;
    display: flex;
    gap: 2.2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.floating-nav a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.floating-nav a:hover {
    color: #fff;
}

/* Premium Buttons */
.btn-premium {
    padding: 0.8rem 2.2rem;
    font-weight: 600;
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-pill {
    background: #fff;
    color: var(--darker);
    border: none;
}

.btn-primary-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.btn-outline-pill {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-outline-pill:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Stats Section */
.stats-section {
    padding: 120px 0;
    background: var(--darker);
}

.stat-card {
    background: transparent;
    padding: 1.5rem;
    text-align: left;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-left-color: var(--primary);
    transform: translateX(5px);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: #fff;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Content Sections (Mixed Theme) */
.section-light {
    background-color: #f8fafc;
    color: var(--dark);
    padding: 120px 0;
    position: relative;
}

.section-dark {
    background-color: var(--darker);
    color: #fff;
    padding: 120px 0;
}

.section-dark .text-muted,
footer .text-muted {
    color: #cbd5e1 !important;
}

/* Services Section */
.services-section {
    padding: 120px 0;
}

.service-card {
    background: #fff;
    padding: 3rem;
    border-radius: 40px;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.section-dark .service-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(37, 99, 235, 0.07);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 2rem;
}

/* Gallery Section Refinement */
.gallery-section {
    padding: 120px 0;
}

.gallery-card {
    position: relative;
    border-radius: 35px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.95), transparent);
    padding: 2rem;
    padding-top: 4rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.15) rotate(1deg);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-title {
    font-weight: 700;
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
}

.gallery-date {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 5px;
    display: block;
}

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

.animate-up {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Form Elements (Optional) */
.form-control {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 0.8rem 1.2rem;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Footer (Deep Dark) */
footer {
    background: var(--darker);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 80px 0;
}

/* Responsive Customization */
@media (max-width: 991.98px) {
    .hero { text-align: center; padding-bottom: 80px; }
    .hero h1 { font-size: 3.5rem; }
    .hero-content { margin: 0 auto; }
    .floating-nav { gap: 1rem; padding: 0.8rem 1.5rem; }
}

/* Waves Animation */
.hero-waves {
    position: absolute;
    width: 100%;
    height: 15vh;
    min-height: 100px;
    max-height: 150px;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 10;
}

.waves {
    position: relative;
    width: 100%;
    height: 15vh;
    margin-bottom: -7px; /* Fix for safari gap */
    min-height: 100px;
    max-height: 150px;
}

/* Animation */
.parallax > use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/* Shrinking for mobile */
@media (max-width: 768px) {
    .waves {
        height: 60px;
        min-height: 60px;
    }
}
