/* AppCraft Mobile - Dark Theme Redesign */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
    background-color: #000000;
    color: #ffffff;
}

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar - Dark Theme */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #111111;
}

::-webkit-scrollbar-thumb {
    background: #f97316;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ea580c;
}

/* Focus Styles */
input:focus,
textarea:focus,
button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.3);
}

/* Link Hover Effects */
a {
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Card Hover Effects */
.hover-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hover-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.2);
}

/* Flip Card Styles */
.flip-card {
    perspective: 1000px;
    position: relative;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    width: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotateY(180deg);
}

/* Expandable Card Styles */
.expandable-card {
    transition: all 0.4s ease;
}

.expandable-card.expanded {
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.3);
}

.expandable-content {
    animation: slideDown 0.4s ease-out;
    overflow: hidden;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        max-height: 1000px;
        transform: translateY(0);
    }
}

/* Fade In Animations */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Button Styles */
button,
.bg-orange-500,
.border-orange-500 {
    transition: all 0.3s ease;
    cursor: pointer;
}

.bg-orange-500:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

.border-orange-500:hover {
    background-color: rgba(249, 115, 22, 0.1);
}

/* Image Effects */
img {
    transition: transform 0.4s ease;
}

.group:hover img {
    transform: scale(1.05);
}

/* Form Elements - Dark Theme */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    transition: all 0.3s ease;
    background-color: #1a1a1a;
    color: #ffffff;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    background-color: #222222;
    border-color: #f97316;
}

input[type="checkbox"] {
    cursor: pointer;
    accent-color: #f97316;
}

/* Cookie Popup Animation */
#cookiePopup {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Menu Animation */
#mobileMenu {
    transition: all 0.3s ease-in-out;
    animation: slideDown 0.3s ease-out;
}

/* Header Backdrop Blur */
header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Gradient Animation for Hero */
.bg-gradient-to-br {
    background-size: 200% 200%;
    transition: transform 0.1s ease-out;
}

/* Card Border Glow Effect */
.bg-gray-900:hover {
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.15);
}

/* Stats Counter Animation */
.counted .text-5xl {
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Team Member Hover */
.text-center.group:hover .w-48 {
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.4);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .flip-card-inner {
        transform: none !important;
    }
    
    .flip-card.flipped .flip-card-back {
        position: relative;
        transform: none;
        display: block;
    }
    
    .flip-card.flipped .flip-card-front {
        display: none;
    }
}

/* Loading State for Forms */
button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Form Validation Styles */
.border-red-500 {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Smooth Transitions for All Interactive Elements */
button,
a,
input,
textarea,
select {
    transition: all 0.3s ease;
}

/* Print Styles */
@media print {
    header,
    footer,
    #cookiePopup,
    #burgerMenu {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
    }
}

/* Text Selection */
::selection {
    background-color: #f97316;
    color: #000000;
}

::-moz-selection {
    background-color: #f97316;
    color: #000000;
}

/* Accessibility - Focus Visible */
*:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

/* Performance Optimization */
.bg-gradient-to-br,
.flip-card-inner,
.expandable-content {
    will-change: transform;
}

/* Additional Hover Effects for Cards */
.border-gray-800:hover {
    border-color: #f97316;
    transition: border-color 0.3s ease;
}

/* Orange Glow Effect */
.bg-orange-500 {
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
}

.bg-orange-500:hover {
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.5);
}
