/* Custom Styles for CAD Drawing Services Landing Page */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.2;
    }
}

/* Hero section enhancements */
.hero-section {
    position: relative;
}

.hero-image-container {
    animation: float 6s ease-in-out infinite;
}

/* CTA Button styles */
.cta-button,
.cta-button-large {
    position: relative;
    overflow: hidden;
}

.cta-button::before,
.cta-button-large::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before,
.cta-button-large:hover::before {
    width: 300px;
    height: 300px;
}

/* Problem cards hover effect */
.problem-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.problem-card:hover {
    border-color: #726df2;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(114, 109, 242, 0.2);
}

/* Solution cards */
.solution-card {
    position: relative;
    overflow: hidden;
}

.solution-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    bottom: -50%;
    left: -50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.1));
    transform: rotate(45deg);
    transition: all 0.5s;
}

.solution-card:hover::after {
    top: -100%;
    right: -100%;
    bottom: -100%;
    left: -100%;
}

/* Service cards */
.service-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: scale(1.05) translateY(-10px);
}

/* Portfolio cards */
.portfolio-card {
    overflow: hidden;
}

.portfolio-image-container img {
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image-container img {
    transform: scale(1.1);
}

/* Process cards */
.process-card {
    position: relative;
}

.process-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #726df2, transparent);
}

.process-card:first-child::before {
    display: none;
}

@media (max-width: 768px) {
    .process-card::before {
        display: none;
    }
}

/* FAQ accordion */
.faq-card {
    transition: all 0.3s ease;
}

.faq-card:hover {
    transform: translateX(10px);
}

.faq-question {
    cursor: pointer;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    transition: max-height 0.3s ease-in-out;
}

/* Counter animation */
.counter {
    font-variant-numeric: tabular-nums;
}

/* Stat cards */
.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
}

/* Back to top button */
.back-to-top {
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* WhatsApp button pulse */
.whatsapp-button {
    animation: pulse-button 2s infinite;
}

@keyframes pulse-button {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(34, 197, 94, 0);
    }
}

/* Calendar container */
.calendar-container {
    min-height: 400px;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #726df2 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card shadows on scroll */
.card-shadow-on-scroll {
    transition: box-shadow 0.3s ease;
}

.card-shadow-on-scroll.in-view {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Pricing comparison pulse */
@keyframes savings-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Loading animation for images */
.portfolio-image-container {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.portfolio-image-container img {
    position: relative;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .cta-button-large {
        font-size: 1rem;
        padding: 1rem 2rem;
        white-space: nowrap;
    }
    
    .cta-button {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
    
    .whatsapp-button {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 56px;
        height: 56px;
    }
    
    .back-to-top {
        bottom: 1.5rem;
        right: 6rem;
        width: 48px;
        height: 48px;
    }
}

/* Accessibility improvements */
.cta-button:focus,
.cta-button-large:focus,
.whatsapp-button:focus,
.back-to-top:focus {
    outline: 3px solid #726df2;
    outline-offset: 3px;
}

/* Print styles */
@media print {
    .whatsapp-button,
    .back-to-top,
    header {
        display: none;
    }
}