@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
    background-color: #f8fafc;
}

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

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

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

.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.grid-item {
    transition: all 0.3s ease;
}

.grid-item:hover {
    transform: scale(1.03);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #667eea;
    transition: width 0.3s ease;
}

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

.design-card {
    perspective: 1000px;
}

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

.design-card:hover .design-inner {
    transform: rotateY(10deg);
}

.mobile-menu {
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu:not(.active) {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
}

#back-to-top {
    border-radius: 5px !important;
}

body[data-theme="dark"] {
    background-color: #181825 ;
    color: #f3f4f6;
}

body[data-theme="dark"] .bg-white,
body[data-theme="dark"] .bg-gray-50 {
    background-color: #232336 !important;
}

body[data-theme="dark"] .text-gray-800,
body[data-theme="dark"] .text-gray-700,
body[data-theme="dark"] .text-gray-600 {
    color: #e5e7eb !important;
}

body[data-theme="dark"] .bg-purple-600 {
    background-color: #7c3aed !important;
}

body[data-theme="dark"] .border-gray-300 {
    border-color: #44446a !important;
}

body[data-theme="dark"] .shadow-lg,
body[data-theme="dark"] .shadow-2xl {
    box-shadow: 0 4px 32px 0 rgba(0,0,0,0.7) !important;
}

body[data-theme="dark"] .bg-gradient-to-r {
    background: linear-gradient(135deg, #232336 0%, #181825 100%) !important;
}

.theme-toggle {
    position: fixed;
    bottom: 6rem;
    right: 18px;
    z-index: 50;
    background: #fff;
    color: #7c3aed;
    border: none;
    border-radius: 9999px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 12PX 15PX !important;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.3s, transform 0.2s, filter 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1), transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.theme-toggle.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.theme-toggle:hover {
    background: #ede9fe;
    color: #5b21b6;
    box-shadow: 0 8px 24px rgba(124,58,237,0.15);
    transform: translateY(-4px) scale(1.05);
    -webkit-transform: translateY(-4px) scale(1.05);
    -moz-transform: translateY(-4px) scale(1.05);
    -ms-transform: translateY(-4px) scale(1.05);
    -o-transform: translateY(-4px) scale(1.05);
}

body[data-theme="dark"] .theme-toggle {
    background: #232336;
    color: #fff;
}

body[data-theme="dark"] .theme-toggle:hover {
    background: #312e81;
    color: #a78bfa;
    box-shadow: 0 8px 24px rgba(167,139,250,0.15);
    transform: translateY(-4px) scale(1.05);
}

body[data-theme="dark"] .gradient-text,
body[data-theme="dark"] .text-transparent {
    background: linear-gradient(135deg, #a78bfa 0%, #818cf8 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
}

/* About Us cards scroll animation */
.about-card-init {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

.about-card-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Our Expertise cards scroll animation (different style) */
.expertise-card-init {
    opacity: 0;
    transform: translateX(-60px) rotateY(8deg) scale(0.96);
    transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
}

.expertise-card-visible {
    opacity: 1;
    transform: translateX(0) rotateY(0deg) scale(1);
}

/* Our Services cards scroll animation (different style) */
.services-card-init {
    opacity: 0;
    transform: scale(0.92) rotateZ(6deg);
    transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
}

.services-card-visible {
    opacity: 1;
    transform: scale(1) rotateZ(0deg);
}

body[data-theme="dark"] .bg-purple-100 {
    background-color: #3b2562 !important;
}

body[data-theme="dark"] .text-purple-800 {
    color: #c7b6fa !important;
}

/* Thumbnails cards scroll animation (unique style) */
.thumbnails-card-init {
    opacity: 0;
    transform: translateY(60px) scale(0.92) rotateZ(-8deg);
    transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1), transform 0.9s cubic-bezier(0.4,0,0.2,1);
}

.thumbnails-card-visible {
    opacity: 1;
    transform: translateY(0) scale(1) rotateZ(0deg);
}

body[data-theme="dark"] input,
body[data-theme="dark"] textarea {
    background-color: #181825 !important;
    color: #e5e7eb !important;
    border-color: #44446a !important;
}

body[data-theme="dark"] input::placeholder,
body[data-theme="dark"] textarea::placeholder {
    color: #a1a1aa !important;
    opacity: 1;
}

body[data-theme="dark"] .focus\:ring-purple-500:focus {
    box-shadow: 0 0 0 2px #7c3aed !important;
}

body[data-theme="dark"] .text-green-600 {
    color: #6ee7b7 !important;
}