/* Custom Styles for IIAM Dark Theme */

:root {
    --primary-color: #C7B88E;
    --bg-dark: #000000;
    --bg-gray: #111111;
    --text-light: #ffffff;
    --text-gray: #cccccc;
    --border-color: #333333;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

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

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

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

/* Hero Carousel Styles */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    object-fit: cover;
}

.hero-slide.active {
    opacity: 1;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #C7B88E;
    border-color: #C7B88E;
}

.carousel-dot:hover {
    border-color: #C7B88E;
    transform: scale(1.2);
}


/* Navigation hover effects */
nav a {
    position: relative;
    transition: all 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #C7B88E;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Hero section animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

/* Button hover effects */
.btn-primary {
    background: linear-gradient(135deg, #C7B88E 0%, #b8a67d 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Feature cards hover effect */
.feature-card {
    transition: all 0.3s ease;
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(199, 184, 142, 0.1) 0%, rgba(199, 184, 142, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(199, 184, 142, 0.1);
}

/* Testimonial cards */
.testimonial-card {
    transition: all 0.3s ease;
    position: relative;
}

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

/* Form styling */
.form-input {
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
}

.form-input:focus {
    border-color: #C7B88E;
    box-shadow: 0 0 0 2px rgba(199, 184, 142, 0.2);
    background: rgba(0, 0, 0, 0.9);
}

/* Pricing cards */
.pricing-card {
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(199, 184, 142, 0.1);
}

/* Mobile menu animation */
.mobile-menu-enter {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gradient backgrounds */
.hero-gradient {
    background: linear-gradient(135deg, #000000 0%, #111111 50%, #000000 100%);
}

.section-gradient {
    background: linear-gradient(135deg, #111111 0%, #000000 100%);
}

/* Text shadows for better readability */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Hero text shadows */
.hero-content h1 {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.4);
}

.hero-content {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Custom border radius */
.border-radius-custom {
    border-radius: 12px;
}

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

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

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

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

/* Newsletter floating animations */
@keyframes float-1 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

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

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

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

@keyframes pulse-slow-reverse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

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

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

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

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

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

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.loading {
    animation: pulse 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.125rem;
    }

    .feature-card {
        margin-bottom: 1rem;
    }
}

/* Focus states for accessibility */
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #C7B88E;
    outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
* {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Custom icon colors */
.fas,
.fab {
    transition: color 0.3s ease;
}

.social-icon:hover .fab {
    color: #C7B88E;
    transform: scale(1.1);
}

/* Testimonials Carousel Styling */
.testimonials-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 500px;
}

.testimonials-wrapper {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    flex: 0 0 100%; /* Each slide takes full width of container */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.testimonial-card {
    transition: all 0.3s ease;
    position: relative;
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(199, 184, 142, 0.3);
    border-radius: 20px;
    padding: 3rem 2rem;
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #C7B88E;
    box-shadow: 0 20px 40px rgba(199, 184, 142, 0.3);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(199, 184, 142, 0.08) 0%, rgba(199, 184, 142, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.testimonial-card:hover::before {
    opacity: 1;
}

/* Navigation buttons styling */
.testimonial-prev,
.testimonial-next {
    z-index: 10;
    transition: all 0.3s ease;
}

.testimonial-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background: #C7B88E !important;
}

/* Animation for testimonials */
.testimonial-card.animate-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Testimonial image styling */
.testimonial-card img {
    transition: transform 0.3s ease;
}

.testimonial-card:hover img {
    transform: scale(1.05);
}

/* Responsive adjustments for carousel */
@media (max-width: 768px) {
    .testimonial-prev,
    .testimonial-next {
        display: none; /* Hide arrows on mobile for cleaner look */
    }

    .testimonial-card {
        padding: 2rem 1.5rem;
    }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #C7B88E;
    color: #000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(199, 184, 142, 0.3);
}
