/* Custom Styles for CTC Stack Landing Page */

:root {
    --primary: #ED6B2D;
    --secondary: #0F1B24;
    --accent: #FF8D29;
    --dark: #050505;
    --light: #F5F5F5;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Hero Section Refinements */
.hero-gradient {
    background: radial-gradient(circle at top right, rgba(225, 77, 42, 0.05), transparent),
                radial-gradient(circle at bottom left, rgba(0, 30, 108, 0.05), transparent);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Form Focus Effects */
input:focus, textarea:focus {
    box-shadow: 0 0 0 4px rgba(225, 77, 42, 0.1);
}

/* Logo Animation Placeholder */
@keyframes pulse-soft {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.6; }
}

.animate-pulse-soft {
    animation: pulse-soft 2s infinite ease-in-out;
}

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

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

.animate-float-delayed {
    animation: float 4s ease-in-out 2s infinite;
}

/* Custom Font Rendering */
.font-heading {
    letter-spacing: -0.02em;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }
}

/* Glassmorphism for Navigation */
header.bg-white\/90 {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.md\:hidden.fixed.bottom-6 {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Logo Slider Animation */
.logo-track {
    animation: scroll 40s linear infinite;
}

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

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

/* Horizontal Scroll Utilities */
.hide-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.hide-scrollbar::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.snap-x-mandatory {
    scroll-snap-type: x mandatory;
}

.snap-center {
    scroll-snap-align: center;
}

/* intl-tel-input adjustments */
.iti {
    width: 100% !important;
    display: block !important;
}

.iti__country-list {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    margin-top: 8px;
    padding: 8px 0;
    z-index: 100;
}

.iti__country {
    padding: 10px 15px;
    font-size: 14px;
}

.iti__flag-container {
    width: auto !important;
}

.iti__selected-flag {
    background-color: transparent !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
}

.iti--separate-dial-code .iti__selected-flag {
    background-color: rgba(0, 0, 0, 0.03) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    height: 100% !important;
}

/* Fix overlap and specificity */
.iti input[type="tel"] {
    width: 100% !important;
    margin: 0 !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}



/* Remove transition from phone input to avoid glitches with library-managed elements */
#phone {
    transition: none !important;
}
