/* ============================================
   YEKCINA - Custom Styles & Animations
   ============================================ */

/* CSS Variables */
:root {
    --primary-green: #1a5c45;
    --primary-green-dark: #134434;
    --accent-yellow: #f5b800;
    --accent-yellow-light: #ffd54f;
    --text-dark: #1a3a2f;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --bg-cream: #fefdf8;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Navigation */
#mainNav {
    background: var(--primary-green);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

#mainNav.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
}

.logo-container {
    width: 40px;
    height: 40px;
    background: var(--accent-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.1);
}

.footer-logo-container {
    background: white;
    padding: 15px;
    border-radius: 10px;
    display: inline-block;
}

.footer-logo {
    height: 60px;
    width: auto;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-yellow);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.btn-download {
    border-radius: 25px;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 184, 0, 0.4);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.hero-particles::before,
.hero-particles::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(245, 184, 0, 0.1);
    animation: float 15s infinite ease-in-out;
}

.hero-particles::before {
    top: -200px;
    right: -100px;
}

.hero-particles::after {
    bottom: -200px;
    left: -100px;
    animation-delay: -7s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(50px, 50px) rotate(90deg); }
    50% { transform: translate(0, 100px) rotate(180deg); }
    75% { transform: translate(-50px, 50px) rotate(270deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

/* Button Hover Effects */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn-hover-effect::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;
    z-index: -1;
}

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

.btn-hover-effect:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Section Titles */
.text-primary {
    color: var(--primary-green) !important;
}

.text-warning {
    color: var(--accent-yellow) !important;
}

/* Quote Box */
.quote-box {
    background: linear-gradient(135deg, #fefdf8 0%, #f5f5dc 100%);
    border-left: 4px solid var(--accent-yellow);
}

/* Icon Circles */
.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-circle-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Card Styles */
.card-hover {
    transition: all 0.4s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.card-hover:hover .icon-circle {
    transform: scale(1.1) rotate(10deg);
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--accent-yellow);
    transition: height 0.3s ease;
}

.service-card:hover::before {
    height: 100%;
}

/* Gallery Section */
.gallery-item {
    height: 420px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f9fa;
    transition: all 0.5s ease;
}

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

/* Mobile Gallery Horizontal Scroll */
.gallery-mobile-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 15px;
    padding: 10px 5px 20px;
    margin: 0 -15px;
    scrollbar-width: none;
}

.gallery-mobile-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-mobile-item {
    flex: 0 0 85%;
    scroll-snap-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-mobile-item:first-child {
    margin-left: 15px;
}

.gallery-mobile-item:last-child {
    margin-right: 15px;
}

.gallery-mobile-img {
    width: 100%;
    height: 450px;
    object-fit: contain;
    background: #f8f9fa;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.gallery-mobile-item:active {
    transform: scale(0.98);
}

/* Modal Fullscreen Image */
.modal-fullscreen-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

#imageModal .modal-content {
    background: rgba(0, 0, 0, 0.95);
}

#imageModal .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

#imageModal .btn-close-white:hover {
    opacity: 1;
}

.gallery-placeholder {
    height: 100%;
    transition: all 0.3s ease;
}

.gallery-nav {
    width: 50px;
    height: 50px;
    transition: all 0.3s ease;
}

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

/* Accordion Styles */
.accordion-button {
    font-weight: 600;
    color: var(--text-dark);
    background: white;
    border: none;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background: var(--bg-cream);
    color: var(--primary-green);
}

.accordion-button:focus {
    border-color: transparent;
}

.accordion-button::after {
    transition: transform 0.3s ease;
}

/* Form Styles */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(26, 92, 69, 0.1);
}

/* App Cards */
.app-card {
    border-radius: 20px;
    transition: all 0.3s ease;
}

.app-card:hover {
    transform: translateY(-10px);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(245, 184, 0, 0.1);
    border-radius: 50%;
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.3; }
}

/* Footer */
.footer {
    background: var(--primary-green-dark);
}

.hover-link {
    transition: all 0.3s ease;
}

.hover-link:hover {
    color: var(--accent-yellow) !important;
    padding-left: 5px;
}

.social-icons a {
    transition: all 0.3s ease;
    display: inline-block;
}

.social-icons a:hover {
    color: var(--accent-yellow) !important;
    transform: translateY(-3px);
}

/* Utility Classes */
.bg-primary-subtle {
    background: rgba(26, 92, 69, 0.1);
}

.bg-warning-subtle {
    background: rgba(245, 184, 0, 0.1);
}

.bg-success-subtle {
    background: rgba(40, 167, 69, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green-dark);
}

/* Loading Animation */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Typing Animation */
.typing-text {
    overflow: hidden;
    border-right: 3px solid var(--accent-yellow);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent-yellow); }
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

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

/* Slide Up Animation */
.slide-up {
    transform: translateY(50px);
    opacity: 0;
    animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Shake Animation (for buttons) */
.shake:hover {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Glow Effect */
.glow {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px var(--accent-yellow), 0 0 10px var(--accent-yellow);
    }
    to {
        box-shadow: 0 0 20px var(--accent-yellow), 0 0 30px var(--accent-yellow);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .display-3 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .display-6 {
        font-size: 1.3rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .gallery-item {
        height: 300px;
    }
    
    .icon-circle {
        width: 50px;
        height: 50px;
    }
    
    .icon-circle-lg {
        width: 60px;
        height: 60px;
    }
    
    /* Navbar mobile */
    .navbar-logo {
        height: 40px;
    }
    
    .navbar-collapse {
        background: var(--primary-green);
        padding: 15px;
        border-radius: 10px;
        margin-top: 10px;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .btn-download {
        margin-top: 15px;
        width: 100%;
        text-align: center;
    }
    
    /* Sections padding */
    section {
        padding: 40px 0 !important;
    }
    
    .container.py-5 {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
    
    /* Cards mobile */
    .card {
        margin-bottom: 15px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Footer mobile */
    .footer {
        text-align: center;
    }
    
    .footer .col-lg-3 {
        margin-bottom: 25px;
    }
    
    /* Buttons mobile */
    .hero-section .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .hero-section .d-flex.gap-3 {
        flex-direction: column;
        gap: 10px !important;
    }
    
    /* Text adjustments */
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    p {
        font-size: 0.95rem;
    }
    
    /* App section */
    .app-mockup {
        max-width: 200px;
        margin: 0 auto 20px;
    }
    
    #app {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    #app .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .app-card {
        margin-bottom: 20px;
    }
    
    .app-card .card-body {
        padding: 1.5rem !important;
    }
    
    .app-card h4 {
        font-size: 1.2rem;
    }
    
    .app-card .icon-circle-lg {
        width: 60px;
        height: 60px;
    }
    
    .app-card ul li {
        font-size: 0.9rem;
    }
    
    .app-card .btn-lg {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
    
    /* Contact form */
    .form-control-lg {
        font-size: 1rem;
        padding: 0.6rem 1rem;
    }
    
    /* FAQ */
    .accordion-button {
        font-size: 0.95rem;
        padding: 0.8rem 1rem;
    }
    
    .accordion-body {
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 70px;
        min-height: 100svh;
    }
    
    .display-3 {
        font-size: 1.7rem;
    }
    
    .display-5 {
        font-size: 1.3rem;
    }
    
    .btn-lg {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .gallery-item {
        height: 180px;
    }
    
    /* Gallery mobile full width */
    .gallery-mobile-img {
        height: 380px;
    }
    
    /* Smaller icons on mobile */
    .bi {
        font-size: 1rem;
    }
    
    .fs-1 {
        font-size: 2rem !important;
    }
    
    .fs-2 {
        font-size: 1.5rem !important;
    }
    
    /* Service cards */
    .service-card {
        padding: 1rem;
    }
    
    .service-card h4 {
        font-size: 1.1rem;
    }
    
    /* Scroll indicator */
    .scroll-indicator {
        margin-top: 30px;
    }
    
    /* Footer */
    .footer-logo {
        height: 50px;
    }
    
    /* CTA section */
    .cta-section {
        padding: 30px 0 !important;
    }
    
    .cta-section .btn {
        width: 100%;
    }
    
    /* App section mobile small */
    #app {
        display: block !important;
        visibility: visible !important;
        padding: 30px 0 !important;
    }
    
    #app .row {
        flex-direction: column;
    }
    
    #app .col-md-6 {
        width: 100%;
        max-width: 100%;
    }
    
    .app-card {
        margin-bottom: 25px;
        border-radius: 15px;
    }
}

/* Additional Fun Animations */
.wiggle:hover {
    animation: wiggle 0.5s ease-in-out;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* Counter Animation */
.counter {
    transition: all 0.3s ease;
}

/* Parallax Effect Class */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, var(--primary-green), var(--accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Floating Elements */
.floating {
    animation: floating 3s ease-in-out infinite;
}

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

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.ripple:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(40, 40);
        opacity: 0;
    }
}

/* Progress Bar Animation */
.progress-animated .progress-bar {
    animation: progressBar 2s ease-in-out;
}

@keyframes progressBar {
    from { width: 0; }
}

/* Card Flip Effect */
.card-flip {
    perspective: 1000px;
}

.card-flip:hover .card-inner {
    transform: rotateY(180deg);
}

.card-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

/* Smooth section backgrounds */
.bg-light {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%) !important;
}

/* Button Primary Custom */
.btn-primary {
    background: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-primary:hover {
    background: var(--primary-green-dark);
    border-color: var(--primary-green-dark);
}

.btn-success {
    background: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-success:hover {
    background: var(--primary-green-dark);
    border-color: var(--primary-green-dark);
}

.btn-warning {
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: #000;
}

.btn-warning:hover {
    background: var(--accent-yellow-light);
    border-color: var(--accent-yellow-light);
    color: #000;
}

/* Mouse Trail Effect (enabled via JS) */
.mouse-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-yellow);
    pointer-events: none;
    opacity: 0.5;
    z-index: 9999;
    transition: transform 0.1s ease;
}
