/* Custom CSS Styles */

:root {
    --primary-color: #16a34a;
    --secondary-color: #22c55e;
    --dark-bg: #1f2937;
    --light-text: #f3f4f6;
    --transition-speed: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* WhatsApp Button Styles */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 40;
    text-decoration: none;
}

.whatsapp-button:hover {
    background-color: #20ba5a;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
    transform: scale(1.1);
}

.whatsapp-button:active {
    transform: scale(0.95);
}

.whatsapp-button svg {
    width: 24px;
    height: 24px;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .whatsapp-button {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .whatsapp-button svg {
        width: 22px;
        height: 22px;
    }
}

/* Carousel Images */
.carousel-image {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    animation-duration: 0.8s;
}

.carousel-image.active {
    opacity: 1;
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* Buttons */
.btn {
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all var(--transition-speed);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-transparent {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all var(--transition-speed);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-transparent:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
}

/* Navigation */
nav {
    transition: all var(--transition-speed);
}

nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

nav a:hover::after {
    width: 100%;
}

/* Carousel Dots */
.carousel-dot {
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-speed);
}

.carousel-dot.active {
    background-color: white !important;
    transform: scale(1.3);
}

.carousel-dot:hover {
    transform: scale(1.2);
}

/* Hero Section */
#home {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
}

/* Responsive Typography */
@media (max-width: 768px) {
    h2 {
        font-size: 2.25rem;
    }

    h4 {
        font-size: 1.125rem;
    }

    p {
        font-size: 0.875rem;
    }

    .btn {
        padding: 10px 24px;
        font-size: 14px;
    }
}

/* Link Styles */
a {
    color: inherit;
    text-decoration: none;
}

/* Footer Links */
footer a {
    transition: color var(--transition-speed);
}

footer a:hover {
    color: var(--secondary-color);
}

/* Scroll to Top Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: slideUp 0.6s ease-out;
}

/* Card Hover Effects */
.card {
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Scroll Animation for Cards */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popUp {
    from {
        opacity: 0;
        transform: scale(0.6) translateY(40px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.scroll-animate-card {
    opacity: 0;
    transform: scale(0.6) translateY(40px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-animate-card.visible {
    animation: popUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Remove animation delays for pop effect */
.scroll-animate-card:nth-child(1) {
    animation-delay: 0s;
}

.scroll-animate-card:nth-child(2) {
    animation-delay: 0s;
}

.scroll-animate-card:nth-child(3) {
    animation-delay: 0s;
}

.scroll-animate-card:nth-child(4) {
    animation-delay: 0s;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .scroll-animate-card {
        animation: none;
        opacity: 0;
        transform: scale(0.6) translateY(40px);
    }

    .scroll-animate-card:nth-child(1) {
        animation-delay: 0s;
    }

    .scroll-animate-card:nth-child(2) {
        animation-delay: 0s;
    }

    .scroll-animate-card:nth-child(3) {
        animation-delay: 0s;
    }

    .scroll-animate-card:nth-child(4) {
        animation-delay: 0s;
    }

    .scroll-animate-card.visible {
        animation: popUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }
}

/* Form Styles */
#enquiry-form {
    background-color: white;
}

/* Web3Forms Contact Form Styles */
#contact-form {
    background-color: white;
}

#contact-form .form-group {
    margin-bottom: 0;
}

#contact-form input,
#contact-form textarea {
    font-family: inherit;
    background-color: white;
    color: #111827;
}

#contact-form input:placeholder-shown,
#contact-form textarea:placeholder-shown {
    color: #9ca3af;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: #9ca3af;
}

/* Input Focus States */
#contact-form input:focus,
#contact-form textarea:focus {
    background-color: #f9fafb;
    border-color: var(--primary-color);
}

/* Label Styles */
#contact-form label {
    color: #111827;
    font-weight: 600;
}

/* Form Animation */
#contact-form {
    animation: slideUp 0.6s ease-out;
}

/* Messages Container - Success/Error */
.messages {
    min-height: 20px;
    margin-bottom: 16px;
}

.messages.show {
    display: block;
}

.messages.success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    animation: slideInUp 0.3s ease-out;
}

.messages.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    animation: slideInUp 0.3s ease-out;
}

.messages.error::before {
    content: "✗ ";
    font-weight: bold;
}

.messages.success::before {
    content: "✓ ";
    font-weight: bold;
}

/* Button Loading State */
#contact-form button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#contact-form button[type="submit"]:disabled::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
