/* Custom Background Gradient */
.bg-gradient {
    background: linear-gradient(180deg, #F58321 0%, #FFFFFF 100%);
    height: 100%;
    position: fixed;
    width: 100%;
}

/* Custom Button Styles */
.btn-primary {
    background-color: #F58321;
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-secondary {
    background-color: white;
    color: #F58321;
    border: 1px solid #F58321;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

.slide-up {
    animation: slideUp 0.8s ease-in-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-in-out;
}

/* Glow effect for dark mode buttons */
.glow-on-hover {
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(245, 131, 33, 0.5);
}

.glow-on-hover:before {
    content: '';
    background: linear-gradient(45deg, #ff7300, #F58321, #ff7300, #F58321);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(15px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
}

.glow-on-hover:hover:before {
    opacity: 1;
}

.glow-on-hover:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border-radius: 10px;
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

/* Keyframes */
/* Floating animations for parallax elements */
@keyframes float-slow {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes float-medium {
    0% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-15px) translateX(10px); }
    66% { transform: translateY(10px) translateX(-10px); }
    100% { transform: translateY(0px) translateX(0px); }
}

@keyframes float-fast {
    0% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-10px) translateX(5px); }
    50% { transform: translateY(0px) translateX(10px); }
    75% { transform: translateY(10px) translateX(5px); }
    100% { transform: translateY(0px) translateX(0px); }
}

@keyframes float-reverse {
    0% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    33% { transform: translateY(15px) translateX(-10px) rotate(5deg); }
    66% { transform: translateY(-10px) translateX(10px) rotate(-5deg); }
    100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Animation Classes */
.animate-float-slow {
    animation: float-slow 6s ease-in-out infinite;
}

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

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

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

.animate-fadeIn {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

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

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

::-webkit-scrollbar-thumb {
    background: #F58321;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e67615;
}

/* Hamburger Menu Styles */
.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: white;
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

#menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Custom Card Hover Effects */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card: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);
}

/* Section Transitions */
section {
    transition: background-color 0.5s ease;
}

/* Creative Brag Counter Section Styles */

/* Floating animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-5deg); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(10deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(15px) rotate(-8deg); }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.3; transform: scale(0.95); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

@keyframes rise-slow {
    0%, 100% { opacity: 0.2; height: 30%; }
    50% { opacity: 0.4; height: 70%; }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes gradient-x {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Apply animations */
.animate-float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

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

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

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

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

.animate-rise-slow {
    animation: rise-slow 8s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

.animate-gradient-x {
    background-size: 200% 200%;
    animation: gradient-x 8s ease infinite;
}

/* 3D Card Flip Effect */
.perspective-1000 {
    perspective: 1000px;
}

.counter-card-inner {
    position: relative;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.counter-card:hover .counter-card-inner {
    transform: rotateY(180deg);
}

.counter-front, .counter-back {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.backface-hidden {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.rotate-y-180 {
    transform: rotateY(180deg);
}

/* Counter Cards Specific Styles */
.counter-card {
    transition: all 0.5s ease;
}

.counter-card:hover {
    transform: translateY(-10px);
}

/* Hero Carousel Styles */
.hero-carousel-section {
    height: 80vh;
    min-height: 600px;
    max-height: 800px;
    position: relative;
}

/* Progress bar */
.hero-carousel-section #carousel-progress {
    height: 3px;
    background-color: #F58321;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 30;
    width: 0;
    transition: width 0.1s linear;
}

.hero-carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.hero-carousel-slides {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.45, 0, 0.25, 1);
    height: 100%;
}

.hero-carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.hero-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 1s ease;
}

.hero-carousel-slide.active img {
    transform: scale(1.05);
}

/* Slide content animations */
.slide-content {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-carousel-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    color: #F58321;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    z-index: 20;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.hero-carousel-btn:hover {
    background-color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.hero-carousel-btn:active {
    transform: scale(0.95);
}

.hero-carousel-indicators {
    display: flex;
    justify-content: center;
    z-index: 20;
}

.hero-carousel-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 0.35rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.hero-carousel-indicator.active {
    background-color: #F58321;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .hero-carousel-section {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .hero-carousel-indicator {
        width: 12px;
        height: 12px;
    }
}
