:root {
    --grami-primary: #2563eb;
    --grami-primary-dark: #1d4ed8;
    --grami-dark: #1e293b;
}

.text-muted-light {
    color: rgba(255, 255, 255, 0.7);
}

body {
    scroll-behavior: smooth;
}

.navbar {
    transition: background-color 0.3s ease;
    margin-bottom: 0 !important;
}

.navbar-nav .nav-link {
    font-size: 1.05rem;
}

#heroCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    opacity: 0.6;
    border: none;
}

#heroCarousel .carousel-indicators button.active {
    opacity: 1;
}

.modal-header {
    border-bottom: none;
}

.modal-footer {
    border-top: none;
}

.service-card .bi-arrow-right {
    transition: transform 0.3s ease;
}

.service-card:hover .bi-arrow-right {
    transform: translateX(5px);
}

.navbar.scrolled {
    background-color: var(--grami-dark) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-section {
    background: var(--grami-dark);
    position: relative;
    overflow: hidden;
}

.hero-section .carousel-item {
    min-height: 80vh;
}

.hero-section .carousel-item > div {
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-section {
    background: var(--grami-primary);
}

.stats-section i {
    opacity: 0.8;
}

.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
}

.bg-gradient-services {
    background: linear-gradient(135deg, var(--grami-dark) 0%, var(--grami-primary-dark) 100%);
}

.platform-visual {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.why-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.accordion-item {
    border: none;
    margin-bottom: 10px;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    background: white;
    font-weight: 600;
    color: var(--grami-dark);
}

.accordion-button:not(.collapsed) {
    background: rgba(37, 99, 235, 0.05);
    color: var(--grami-primary);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-body {
    background: white;
}

.btn-primary {
    background: var(--grami-primary);
    border-color: var(--grami-primary);
}

.btn-primary:hover {
    background: var(--grami-primary-dark);
    border-color: var(--grami-primary-dark);
}

a.text-primary:hover {
    color: var(--grami-primary-dark) !important;
}

footer a:hover {
    color: white !important;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

footer h5, footer h6 {
    color: white !important;
}

footer ul.list-unstyled li {
    color: rgba(255, 255, 255, 0.8);
}

footer .bi {
    color: rgba(255, 255, 255, 0.8);
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Hero Animations */
.hero-section h1 {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-section p {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-section .btn {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

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

/* Stats Counter Animation */
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    display: inline-block;
}

/* Service Card Enhanced Hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--grami-primary), var(--grami-primary-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card {
    position: relative;
}

.service-icon {
    transition: transform 0.3s ease, background 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    background: rgba(37, 99, 235, 0.2);
}

/* Platform Feature Hover */
.platform-visual {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platform-visual:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.2);
}

/* Why Us Icon Pulse */
.why-icon {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

/* Contact Card Hover */
.contact-icon {
    transition: transform 0.3s ease;
}

.contact-icon:hover {
    transform: rotate(10deg) scale(1.1);
}

/* FAQ Accordion Animation */
.accordion-button::after {
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

/* Button Ripple Effect */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:active::after {
    width: 300px;
    height: 300px;
}

/* Navbar Link Animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--grami-primary);
    transition: width 0.3s ease, left 0.3s ease;
}

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

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

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

/* Pulse Animation */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.pulse {
    animation: pulse 2s infinite;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 0;
    }
    
    .hero-section .carousel-item {
        min-height: auto;
    }
    
    .hero-section .carousel-item > div {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .platform-visual {
        min-height: 250px;
        margin-top: 2rem;
    }
}
