/* Modern Hero Section */
.hero-section {
    position: relative;
    padding: 80px 0;  /* Reduced from 140px to 80px */
    margin-top: -10px; /* Brings it closer to the navbar */
    background: linear-gradient(135deg, #f5f7ff 0%, #e8f0ff 100%);
    overflow: hidden;
    z-index: 1;
}

.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-pattern.svg');
    background-size: 30px;
    opacity: 0.07;
    z-index: -1;
}

.hero-section:after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--primary-rgb), 0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: float-gradient 15s ease-in-out infinite;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 2.5rem; /* Slightly reduced font size */
    font-weight: 700;
    margin-bottom: 20px; /* Reduced from 25px */
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    animation: gradient-text 5s ease infinite;
}

.hero-section p {
    font-size: 1rem; /* Slightly reduced */
    margin-bottom: 25px; /* Reduced from 30px */
    color: var(--text-color);
    max-width: 90%;
    position: relative;
    animation: fade-in-up 1s ease-out;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    animation: fade-in-up 1s ease-out 0.3s backwards;
}

.hero-image {
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 15px 15px rgba(0,0,0,0.1));
    position: relative;
}

.hero-image:before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 80%);
    border-radius: 50%;
    animation: shadow-pulse 6s ease-in-out infinite;
}

/* Hero Shapes */
.hero-shape {
    position: absolute;
    z-index: 0;
    opacity: 0.6;
}

.hero-shape-1 {
    top: 20%;
    left: 5%;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: float-shape 8s ease-in-out infinite;
}

.hero-shape-2 {
    bottom: 15%;
    right: 10%;
    width: 35px;
    height: 35px;
    background: var(--secondary-color);
    border-radius: 8px;
    animation: float-shape 7s ease-in-out infinite 1s;
}

.hero-shape-3 {
    top: 60%;
    left: 15%;
    width: 25px;
    height: 25px;
    background: #4facfe;
    border-radius: 4px;
    transform: rotate(45deg);
    animation: float-shape 9s ease-in-out infinite 2s;
}

.hero-shape-4 {
    top: 30%;
    right: 20%;
    width: 40px;
    height: 40px;
    background: rgba(var(--primary-rgb), 0.5);
    border-radius: 12px;
    transform: rotate(15deg);
    animation: float-shape 10s ease-in-out infinite 1.5s;
}

.hero-shape-5 {
    bottom: 25%;
    left: 30%;
    width: 20px;
    height: 20px;
    background: #00c6ff;
    border-radius: 50%;
    animation: pulse-shape 4s ease-in-out infinite 0.5s;
}

@keyframes float-shape {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10px, 10px) rotate(5deg);
    }
    50% {
        transform: translate(0, 20px) rotate(0deg);
    }
    75% {
        transform: translate(-10px, 10px) rotate(-5deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes pulse-shape {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes shadow-pulse {
    0% {
        opacity: 0.3;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.2;
        transform: translateX(-50%) scale(0.8);
    }
    100% {
        opacity: 0.3;
        transform: translateX(-50%) scale(1);
    }
}

@keyframes float-shape {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10px, 10px) rotate(5deg);
    }
    50% {
        transform: translate(0, 20px) rotate(0deg);
    }
    75% {
        transform: translate(-10px, 10px) rotate(-5deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes pulse-bg {
    0% {
        opacity: 0.03;
    }
    50% {
        opacity: 0.07;
    }
    100% {
        opacity: 0.03;
    }
}

@keyframes float-gradient {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-5%, -5%);
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes gradient-text {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.5px;
    font-weight: 600;
    text-align: center;
}

h1 {
    font-size: 2rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.1rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

/* Modern Cards */
.service-card, .industry-card, .testimonial-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
    text-align: center;
    padding: 30px 25px;
    background: #fff;
    margin-bottom: 25px;
    position: relative;
}

.service-card:hover, .industry-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    background: linear-gradient(to bottom, #fff, #f9f9ff);
}

.service-icon, .industry-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 22px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-icon:after, .industry-icon:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-100%);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon:after, 
.industry-card:hover .industry-icon:after {
    transform: translateX(0);
}

.service-card:hover .service-icon, 
.industry-card:hover .industry-icon {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Enhanced Icon Animations */
.service-icon, .industry-icon, .contact-icon {
    transition: all 0.4s ease;
}

.social-links a:hover i {
    transform: translateY(-3px);
    color: var(--primary-color);
}

.footer-contact i {
    display: inline-block;
    margin-right: 8px;
}

.footer-contact p:hover i {
    transform: scale(1.2);
    color: var(--primary-color);
}

/* Glassmorphism Effect */
.testimonial-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Modern Buttons */
.btn {
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.btn:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    z-index: -1;
}

.btn:hover:before {
    width: 100%;
}

/* Animated Background for CTA */
.cta-section {
    position: relative;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    padding: 80px 0;
    overflow: hidden;
}

.cta-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/wave.svg');
    background-size: cover;
    opacity: 0.1;
    animation: wave 15s linear infinite;
}

@keyframes wave {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100% 0;
    }
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* WhatsApp Button Animation */
.whatsapp-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Enhanced Icon Animations */
.service-icon, .industry-icon, .contact-icon {
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.service-card:hover .service-icon, 
.industry-card:hover .industry-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.social-links a:hover i {
    transform: translateY(-5px) scale(1.2);
    color: var(--primary-color);
}

.footer-contact i {
    display: inline-block;
    margin-right: 8px;
}

.footer-contact p:hover i {
    transform: scale(1.3) rotate(15deg);
    color: var(--primary-color);
}

/* Pulsating Icons */
.region-item i {
    animation: pulse-icon 2s infinite;
    display: inline-block;
}

.region-item:nth-child(2) i {
    animation-delay: 0.5s;
}

.region-item:nth-child(3) i {
    animation-delay: 1s;
}

.region-item:nth-child(4) i {
    animation-delay: 1.5s;
}

@keyframes pulse-icon {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

/* Rotating Icons for Stats */
.stat-item:hover h3 {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Additional card centering */
.service-card h3, .industry-card h3, .testimonial-card h3,
.service-card p, .industry-card p, .testimonial-card p,
.service-card a, .industry-card a {
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;

}

.industry-link {
    display: inline-block;
    margin: 0 auto;
}

/* Card Heading Enhancements */
.service-card h3,
.industry-card h3,
.testimonial-author h4,
.region-item h3,
.stat-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    position: relative;
    padding-bottom: 10px;
    letter-spacing: 0.5px;
    text-align: center;
}

.service-card h3::after,
.industry-card h3::after,
.testimonial-author h4::after,
.region-item h3::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color, #3498db), var(--secondary-color, #2ecc71));
    transition: width 0.3s ease;
}

.service-card:hover h3::after,
.industry-card:hover h3::after,
.testimonial-card:hover .testimonial-author h4::after,
.region-item:hover h3::after {
    width: 60px;
}

/* Make service cards more compact */
.service-card {
    padding: 1.5rem;
}

.service-card .service-icon {
    margin-bottom: 1rem;
}

/* Make industry cards more compact */
.industry-card {
    padding: 1.25rem;
}

.industry-card .industry-icon {
    margin-bottom: 0.75rem;
}

/* Make testimonial cards more compact */
.testimonial-card {
    padding: 1.25rem;
}

.testimonial-content p {
    margin-bottom: 1rem;
}

/* Stats alignment fix */
.stat-item {
    text-align: center;
    margin-bottom: 30px;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
    text-align: center;
}

.stat-item p {
    font-size: 1rem;
    color: var(--text-color);
    margin: 0 auto;
    max-width: 80%;
    text-align: center;
}

/* Center text in region coverage items */
.region-coverage .region-item p {
    text-align: center;
    margin: 0 auto;
}

.region-coverage .region-item h3 {
    text-align: center;
}

.region-item {
    margin-bottom: 1.25rem;
}

/* Add subtle text shadow for depth */
.section-title h2,
.service-card h3,
.industry-card h3,
.testimonial-author h4,
.region-item h3 {
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

/* Interactive India Map Styling */
/* Keep these basic map container styles */
.india-map-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.india-map {
    position: relative;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background-color: #f8f9fa;
}

/* Remove all these SVG-specific styles */

/* Enhanced region items */
.region-item {
    background-color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 5px solid transparent;
}

.region-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.region-item[data-region="north"] {
    border-left-color: #FF5722;
}

.region-item[data-region="south"] {
    border-left-color: #4CAF50;
}

.region-item[data-region="east"] {
    border-left-color: #2196F3;
}

.region-item[data-region="west"] {
    border-left-color: #9C27B0;
}

.region-item.active {
    background-color: rgba(var(--primary-rgb), 0.05);
}

.region-item h3 i {
    margin-right: 10px;
    transition: all 0.3s ease;
}

.region-item[data-region="north"] h3 i {
    color: #FF5722;
}

.region-item[data-region="south"] h3 i {
    color: #4CAF50;
}

.region-item[data-region="east"] h3 i {
    color: #2196F3;
}

.region-item[data-region="west"] h3 i {
    color: #9C27B0;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .india-map svg {
        height: 300px;
        width: auto;
        max-width: 100%;
    }
}

/* Map wrapper for positioning */
.map-wrapper {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    /*border: 3px solid #2196F3;*/
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Capital labels styling - Enhanced for better visibility */
.capital-label {
    position: absolute;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.9); /* More opaque background */
    border: 1.0px solid #2196F3; /* Thicker border */
    border-radius: 4px;
    padding: 3px 6px; /* Slightly larger padding */
    font-size: 10px; /* Increased font size */
    font-weight: bold;
    color: #000; /* Darker text color */
    text-align: center;
    pointer-events: none;
    transition: all 0.3s ease;
    opacity: 0.9; /* Higher default opacity */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Stronger shadow */
    z-index: 10; /* Ensure labels appear above the map */
    text-shadow: 0px 0px 2px white; /* Text shadow for better readability */
}

.capital-label.active {
    transform: translate(-50%, -50%) scale(1.3); /* Larger scale on active */
    background-color: white;
    opacity: 1;
    z-index: 20; /* Higher z-index when active */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

/* Region-specific capital styling */
.north-capital.active {
    color: #FF5722;
    border-color: #FF5722;
}

.south-capital.active {
    color: #4CAF50;
    border-color: #4CAF50;
}

.east-capital.active {
    color: #2196F3;
    border-color: #2196F3;
}

.west-capital.active {
    color: #9C27B0;
    border-color: #9C27B0;
}

/* Region overlays for highlighting */
.region-overlays {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
}

.region-overlay {
    position: absolute;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.region-overlay.active {
    border: 2px solid rgba(255, 255, 255, 0.7);
}

/* Position and shape each region overlay */
.north-overlay {
    top: 10%;
    left: 20%;
    width: 40%;
    height: 30%;
    clip-path: polygon(0 50%, 50% 0, 100% 30%, 80% 100%, 20% 100%);
}

.north-overlay.active {
    background-color: rgba(255, 87, 34, 0.3);
}

.south-overlay {
    bottom: 10%;
    left: 25%;
    width: 30%;
    height: 35%;
    clip-path: polygon(50% 0, 100% 30%, 80% 100%, 20% 100%, 0 30%);
}

.south-overlay.active {
    background-color: rgba(76, 175, 80, 0.3);
}

.east-overlay {
    top: 30%;
    right: 20%;
    width: 30%;
    height: 40%;
    clip-path: polygon(0 20%, 100% 0, 100% 100%, 30% 100%, 0 70%);
}

.east-overlay.active {
    background-color: rgba(33, 150, 243, 0.3);
}

.west-overlay {
    top: 40%;
    left: 15%;
    width: 30%;
    height: 35%;
    clip-path: polygon(30% 0, 100% 20%, 100% 80%, 50% 100%, 0 70%, 0 30%);
}

.west-overlay.active {
    background-color: rgba(156, 39, 176, 0.3);
}

/* Hover effects for capital labels */
.capital-label:hover {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
    z-index: 10;
}

/* Animation for capital labels */
@keyframes pulse-capital {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.capital-label.active {
    animation: pulse-capital 2s infinite;
}
