/* Custom Styles for Twomonk Technologies */

:root {
    --navy: #002D5B;
    --teal: #00A99D;
    --offwhite: #F8F9FA;
}

/* Responsive Typography */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

/* Texture Pattern Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/asfalt-dark.png');
    opacity: 0.03;
    pointer-events: none;
    z-index: 10;
}

/* Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-active {
    opacity: 1 !important;
    transform: translate(0) !important;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 45, 91, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Enhanced Card Hover */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 169, 157, 0.3);
}

.hover-lift:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.25), 0 0 20px rgba(212, 175, 55, 0.1);
}

/* Glow Effect */
.glow-on-hover:hover {
    box-shadow: 0 0 20px rgba(0, 169, 157, 0.4);
}

/* Menu Overlay Transitions */
#menu-overlay {
    transition: all 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

#menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Custom Selection Color */
::selection {
    background: var(--teal);
    color: white;
}

/* Canvas responsiveness */
#dots-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Parallax Background Helper */
.parallax-bg {
    background-attachment: fixed;
    will-change: transform;
}

/* 3D Expertise Cards */
.expertise-card {
    perspective: 1000px;
    height: 320px;
    position: relative;
}

.expertise-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    transform-style: preserve-3d;
    border-radius: 1.5rem;
}

.expertise-card:hover .expertise-inner {
    transform: rotateY(180deg);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.25);
}

.expertise-front,
.expertise-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}

.expertise-front {
    background-color: white;
    z-index: 2;
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Overlay removed for clarity - using text shadows for readability instead */

.expertise-front i,
.expertise-front h3 {
    text-shadow: 0 0 10px rgba(255, 255, 255, 1), 0 0 20px rgba(255, 255, 255, 0.5);
    font-weight: 700;
}

.expertise-front>* {
    position: relative;
    z-index: 2;
}

.expertise-back {
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
    color: white;
    transform: rotateY(180deg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.expertise-back h3 {
    color: white !important;
    margin-bottom: 0.75rem;
}

.expertise-back p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.875rem;
    line-height: 1.5;
}

.tech-stack {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

/* Mobile Specific Adjustments */
@media (max-width: 1024px) {
    .sidebar-hidden {
        display: none !important;
    }
}

/* Logo Scroll Animation */
.logo-slider {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
    background: transparent;
}

.logo-slider::before,
.logo-slider::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 15%;
    z-index: 2;
    pointer-events: none;
}

.logo-slider::before {
    left: 0;
    top: 0;
    background: transparent;
}

.logo-slider::after {
    right: 0;
    top: 0;
    background: transparent;
}

.logo-track {
    display: flex;
    width: calc(250px * 10);
    animation: scroll 30s linear infinite;
}

.logo-track:hover {
    animation-play-state: paused;
}

.logo-item {
    width: 250px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}

.logo-item img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.5s ease;
}

.logo-item:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 5));
    }
}

@media (max-width: 640px) {
    .px-mobile {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    .whatsapp-btn {
        left: 1.5rem !important;
        bottom: 2rem !important;
    }

    #home {
        min-height: 50vh !important;
        background-size: cover !important;
        background-position: center !important;
    }
}