/* ============================================
   ALHAYA ORGANIC — Custom Styles
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #03080f;
    color: #e8edf5;
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(3, 8, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(52, 212, 168, 0.08), 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #34d4a8, #54d494);
    border-radius: 1px;
    transition: width 0.3s ease;
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #34d4a8 0%, #25a882 100%);
    color: #03080f;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(52, 212, 168, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(52, 212, 168, 0.4);
    background: linear-gradient(135deg, #54d494 0%, #34d4a8 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: rgba(52, 212, 168, 0.08);
    color: #34d4a8;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 0.95rem;
    border: 1px solid rgba(52, 212, 168, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(52, 212, 168, 0.15);
    border-color: rgba(52, 212, 168, 0.4);
    transform: translateY(-2px);
}

/* ============================================
   INPUT FIELDS
   ============================================ */
.input-field {
    background: rgba(10, 22, 40, 0.8);
    border: 1px solid rgba(52, 212, 168, 0.15);
    border-radius: 12px;
    padding: 14px 16px;
    color: #e8edf5;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
}

.input-field::placeholder {
    color: #506d88;
}

.input-field:focus {
    border-color: rgba(52, 212, 168, 0.5);
    background: rgba(10, 22, 40, 0.95);
    box-shadow: 0 0 0 3px rgba(52, 212, 168, 0.1);
}

/* ============================================
   CARD HOVER EFFECTS
   ============================================ */
.card-hover {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(52, 212, 168, 0.08);
}

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

/* ============================================
   FLOATING CARDS (Hero)
   ============================================ */
.floating-card {
    z-index: 10;
}

.card-float-1 {
    animation: float1 4s ease-in-out infinite;
}

.card-float-2 {
    animation: float2 5s ease-in-out infinite;
}

.card-float-3 {
    animation: float3 3.5s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(-1deg); }
}

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

/* ============================================
   GEOMETRIC BACKGROUND SHAPES
   ============================================ */
.geo-shape {
    position: absolute;
    opacity: 0.4;
    pointer-events: none;
}

.shape-circle-1 {
    top: 15%;
    right: 5%;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(52, 212, 168, 0.15);
    border-radius: 50%;
    animation: spin-slow 30s linear infinite;
}

.shape-circle-2 {
    top: 60%;
    right: 15%;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(52, 212, 168, 0.1);
    border-radius: 50%;
    animation: spin-slow 20s linear infinite reverse;
}

.shape-square-1 {
    top: 25%;
    right: 30%;
    width: 60px;
    height: 60px;
    background: rgba(52, 212, 168, 0.06);
    border-radius: 12px;
    transform: rotate(45deg);
    animation: float-slow 6s ease-in-out infinite;
}

.shape-triangle-1 {
    bottom: 20%;
    left: 5%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(52, 212, 168, 0.06);
    animation: float-slow 7s ease-in-out infinite reverse;
}

.shape-ring-1 {
    top: 40%;
    left: 2%;
    width: 80px;
    height: 80px;
    border: 3px solid rgba(251, 191, 36, 0.1);
    border-radius: 50%;
    animation: spin-slow 15s linear infinite;
}

.shape-dots {
    bottom: 10%;
    right: 10%;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(52, 212, 168, 0.2) 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.5;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.5s; }

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(52, 212, 168, 0.08);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 180px;
        height: 180px;
    }

    .shape-square-1 {
        display: none;
    }

    .shape-triangle-1 {
        display: none;
    }

    .shape-ring-1 {
        display: none;
    }

    .floating-card {
        display: none;
    }

    .floating-card.mobile-show {
        display: flex;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
    }

    .font-playfair.text-4xl {
        font-size: 2rem !important;
    }

    .font-playfair.text-5xl {
        font-size: 2.25rem !important;
    }
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: rgba(52, 212, 168, 0.3);
    color: #f0fdf6;
}

/* ============================================
   FOCUS VISIBLE
   ============================================ */
:focus-visible {
    outline: 2px solid #34d4a8;
    outline-offset: 2px;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}
