/*
|--------------------------------------------------------------------------
| Custom Stylesheet
|--------------------------------------------------------------------------
|
| This file contains all the custom styles for the Digital Tonic website.
| It defines brand colors, utility classes, and component styles.
|
*/

/* -------------------------------
   1. Brand Variables
--------------------------------*/
:root {
    --brand: #FC990A;
    --brand-dark: #D87F09;
    --brand-light: #fff3e6;
    --text-dark: #111111;
    --text-muted: #666666;
    --surface-light: #F8F8F8;
    --surface-white: #ffffff;
}

/* -------------------------------
   2. Base & Typography
--------------------------------*/
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--surface-white);
    /* background: linear-gradient( #f8fafc, #ffe0a7, #f8fafc); */
}

/* -------------------------------
   3. Utility Classes
--------------------------------*/
.text-primary {
    color: var(--brand);
}

.text-muted {
    color: var(--text-muted);
}

.bg-primary {
    background-color: var(--brand);
}

.bg-light {
    background-color: var(--surface-light);
}

.bg-dark {
    background-color: var(--text-dark);
    color: var(--surface-white);
}

.section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 768px) {
    .section {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

/* -------------------------------
   4. Components (Buttons, Cards)
--------------------------------*/

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.25s ease;
}

.btn-primary {
    background-color: var(--brand);
    color: var(--surface-white);
    border: 2px solid var(--brand);
}

.btn-primary:hover {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    color: var(--brand);
    border: 2px solid var(--brand);
}

.btn-outline:hover {
    background-color: var(--brand);
    color: var(--surface-white);
}

/* Cards */
.card {
    background: var(--surface-white);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
    transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.08);
}

/* -------------------------------
   5. Specific Sections
--------------------------------*/
/* Testimonials Slider */
#testimonialsTrack {
    gap: 1rem;
}

#testimonialsTrack>div {
    min-width: 100%;
    flex-shrink: 0;
}

/* Mobile Menu Performance */
#mobileMenu {
    will-change: transform;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--surface-white);
}

footer a {
    color: #bbb;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--brand);
}

/* -------------------------------
   6. Animations
--------------------------------*/
.fade-in-up {
    animation: fadeInUp 0.8s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------------
   7. Responsive Overrides
--------------------------------*/
@media (max-width: 768px) {
    .hero-bg img {
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Portfolio Card Enhancements */
.group:hover img {
    transform: scale(1.1);
}

.group:hover h3 {
    color: var(--brand);
}

.group:hover .overlay {
    opacity: 1;
}

/* Smooth shadow hover */
.shadow-xl {
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.shadow-xl:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}


/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.8s ease forwards;
}

/* -------------------------------
           2. Custom Animations
        --------------------------------*/
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes backgroundPan {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* -------------------------------
           3. Utility & Component Styles
        --------------------------------*/
.animated-gradient {
    background: linear-gradient(135deg, #f8fafc, #f3f4f6, #e5e7eb);
    background-size: 200% 200%;
    animation: backgroundPan 15s ease infinite;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--surface-white);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.form-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(252, 153, 10, 0.3);
}

.submit-btn {
    display: inline-block;
    width: 100%;
    background: var(--brand);
    color: var(--surface-white);
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
    background-color: var(--brand-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* Animation class applied by JS */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Add these custom styles to your main CSS file for better organization */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes backgroundPan {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient {
    background: linear-gradient(135deg, #f8fafc, #f3f4f6, #e5e7eb);
    background-size: 200% 200%;
    animation: backgroundPan 15s ease infinite;
}

/* This class will be targeted by JS to trigger the animation */
.service-card {
    opacity: 0;
    /* Start hidden */
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Custom styles for animations and layout */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes backgroundPan {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient {
    background: linear-gradient(135deg, #f8fafc, #f3f4f6, #e5e7eb);
    background-size: 200% 200%;
    animation: backgroundPan 15s ease infinite;
}

.service-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}