/* =============================================
   CUSTOM ENHANCE CSS - IT-Era Software Company
   Color Palette: #2f318b, #9a338b, #dd4978, #ff7c60, #ffba55, #f9f871
   ============================================= */

:root {
    --primary: #2f318b;
    --primary-dark: #1e1f5e;
    --secondary: #9a338b;
    --secondary-light: #c44bb1;
    --accent1: #dd4978;
    --accent2: #ff7c60;
    --accent3: #ffba55;
    --accent4: #f9f871;
    --dark-bg: #0a0a1a;
    --glass-bg: rgba(255,255,255,0.1);
    --political-gold: #FFD700;
    --political-saffron: #FF9933;
    --legal-navy: #0F1535;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Space Grotesk', sans-serif;
    background: #ffffff;
    color: #1e1e2f;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Section Title */
.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent1));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    font-weight: 800;
}

/* Glowing Button */
.explore-btn {
    background: linear-gradient(95deg, #2f318b, #9a338b, #dd4978);
    background-size: 200% auto;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 60px;
    font-weight: 800;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(47,49,139,0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-top: 20px;
    cursor: pointer;
}

.explore-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(95deg, #dd4978, #ff7c60, #ffba55);
    transition: left 0.5s ease;
    z-index: -1;
    border-radius: 60px;
}

.explore-btn:hover::before {
    left: 0;
}

.explore-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 35px rgba(221,71,120,0.5);
    gap: 16px;
}

.explore-btn i {
    transition: transform 0.3s;
}

.explore-btn:hover i {
    transform: translateX(8px);
}

.btn-grad {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(47,49,139,0.3);
    cursor: pointer;
}

.btn-grad:hover {
    transform: translateY(-3px);
    background: linear-gradient(90deg, var(--secondary), var(--accent1));
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Premium Navigation */
.menu {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 8px 5%;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-area img {
    height: 52px;
    object-fit: contain;
    transition: transform 0.3s;
}

.logo-area img:hover {
    transform: scale(1.05);
}

.dropdown {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown > li {
    position: relative;
}

.dropdown > li > a {
    text-decoration: none;
    font-weight: 700;
    color: var(--primary);
    transition: 0.3s;
    padding: 12px 0;
    display: inline-block;
    position: relative;
}

.dropdown > li > a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    transition: width 0.3s ease;
    border-radius: 3px;
}

.dropdown > li > a:hover::after {
    width: 100%;
}

.dropdown > li > a:hover {
    color: var(--accent1);
}

.dropdown > li.active > a {
    color: var(--accent1);
}

.dropdown > li.active > a::after {
    width: 100%;
}

/* Sub Menu */
.sub-menu {
    position: absolute;
    top: 50px;
    left: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 40px rgba(0,0,0,0.15);
    border-radius: 24px;
    padding: 12px 0;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    z-index: 100;
    list-style: none;
    border: 1px solid rgba(255,255,255,0.2);
}

.has-submenu:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    top: 45px;
}

.sub-menu li a {
    display: block;
    padding: 12px 28px;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
}

.sub-menu li a:hover {
    background: linear-gradient(90deg, #f5f3ff, #fff);
    color: var(--primary);
    padding-left: 35px;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary);
}

/* Hero Swiper */
.hero-swiper {
    width: 100%;
    height: 90vh;
    min-height: 600px;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.slide-overlay {
    background: linear-gradient(120deg, rgba(0,0,0,0.75), rgba(0,0,0,0.4));
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-left: 8%;
    color: white;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.2rem;
    font-weight: 900;
    line-height: 1.1;
}

.hero-tag {
    background: linear-gradient(135deg, var(--accent3), var(--accent4));
    display: inline-block;
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 800;
    color: #1e1e2f;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: white;
    border-radius: 40px;
    padding: 40px 28px;
    box-shadow: 0 30px 50px -20px rgba(0,0,0,0.12);
    transition: all 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent1));
    transform: scaleX(0);
    transition: transform 0.5s;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 45px 60px -20px rgba(47,49,139,0.35);
}

.service-icon {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* Election Premium Section */
.election-premium {
    background: linear-gradient(135deg, #FFF5E6 0%, #FFE8CC 100%);
    border-radius: 70px;
    margin: 50px auto;
    padding: 70px 55px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 35px 60px rgba(0,0,0,0.1);
}

.election-premium::before {
    content: '⚡';
    position: absolute;
    bottom: -30px;
    right: -30px;
    font-size: 200px;
    opacity: 0.1;
    pointer-events: none;
}

.election-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
}

.election-left {
    flex: 1.2;
}

.election-badge {
    background: linear-gradient(135deg, #FF9933, #FFD700);
    display: inline-block;
    padding: 10px 28px;
    border-radius: 60px;
    font-weight: 800;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(255,153,51,0.3);
}

.election-left h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #D32F2F, #FF6F00, #F57C00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
}

.feature-tag {
    background: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    cursor: pointer;
}

.feature-tag:hover {
    transform: translateY(-3px);
    background: var(--primary);
    color: white;
}

/* Bar Council Premium */
.bar-premium {
    background: linear-gradient(135deg, #0F1535 0%, #1A237E 50%, #2F318B 100%);
    border-radius: 70px;
    margin: 50px auto;
    padding: 70px 55px;
    color: white;
    position: relative;
    overflow: hidden;
}

.bar-premium::before {
    content: '⚖️';
    position: absolute;
    top: -40px;
    left: -40px;
    font-size: 180px;
    opacity: 0.08;
    pointer-events: none;
}

.bar-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.bar-left {
    flex: 1.2;
}

.bar-badge {
    background: #FFC107;
    color: #1A237E;
    display: inline-block;
    padding: 10px 28px;
    border-radius: 60px;
    font-weight: 800;
    margin-bottom: 25px;
}

.bar-left h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #FFC107;
}

.service-icons {
    display: flex;
    gap: 30px;
    margin: 35px 0;
    flex-wrap: wrap;
}

.service-icon-item {
    background: rgba(255,255,255,0.12);
    padding: 14px 28px;
    border-radius: 60px;
    text-align: center;
    transition: 0.3s;
    font-weight: 600;
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.service-icon-item:hover {
    background: #FFC107;
    color: #1A237E;
    transform: translateY(-5px);
}

.position-card {
    background: rgba(255,255,255,0.08);
    border-radius: 32px;
    padding: 24px;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.position-card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.15);
}

/* Technology Showcase */
.tech-showcase {
    background: linear-gradient(135deg, #F8F9FF 0%, #F0F2FF 100%);
    border-radius: 70px;
    margin: 50px auto;
    padding: 70px 55px;
    text-align: center;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 50px;
}

.tech-item {
    background: white;
    padding: 16px 30px;
    border-radius: 60px;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    cursor: pointer;
}

.tech-item:hover {
    transform: translateY(-6px) scale(1.02);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 20px 30px rgba(47,49,139,0.25);
}

/* Footer Premium */
.footer-premium {
    background: linear-gradient(135deg, #0a0a1a, #12122f);
    color: #e0e0e0;
    padding: 70px 5% 40px;
    margin-top: 60px;
    position: relative;
}

.footer-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent1), var(--accent3));
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 50px;
}

.footer-col {
    flex: 1;
    min-width: 220px;
}

.footer-col h3 {
    color: var(--accent3);
    margin-bottom: 25px;
    font-size: 1.4rem;
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent3), var(--accent4));
    border-radius: 3px;
}

.footer-col p {
    margin: 15px 0;
    line-height: 1.7;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
    margin: 10px 0;
}

.footer-col a:hover {
    color: var(--accent3);
    transform: translateX(8px);
}

.social-links {
    display: flex;
    gap: 18px;
    margin-top: 25px;
}

.social-links a {
    background: rgba(255,255,255,0.08);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--accent3);
    color: #1e1e2f;
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 50px;
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* Modal Styles */
#dynamicModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 950px) {
    .dropdown {
        display: none;
        flex-direction: column;
        background: white;
        padding: 25px;
        border-radius: 32px;
        margin-top: 15px;
        width: 100%;
    }
    
    .dropdown.active {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        display: none;
        background: transparent;
    }
    
    .has-submenu:hover .sub-menu {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .election-premium,
    .bar-premium,
    .tech-showcase {
        padding: 40px 25px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(221,71,120,0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(221,71,120,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(221,71,120,0);
    }
}

.btn-grad:focus, .explore-btn:focus {
    animation: pulse 1s;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary), var(--accent1));
}

/* Loading Spinner */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#status {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Additional styles for About Page */
.page-title-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-title-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(15deg);
    pointer-events: none;
}

.page-title {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 15px;
    font-weight: 800;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.breadcrumb a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--accent3);
}

.breadcrumb .separator {
    margin: 0 10px;
    color: var(--accent3);
}

.breadcrumb .current {
    color: var(--accent4);
}

/* About Hero Section */
.about-hero-section {
    padding: 80px 0;
    background: white;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent3), var(--accent4));
    padding: 5px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-title {
    font-size: 2.8rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.about-title .highlight {
    color: var(--accent1);
    position: relative;
    display: inline-block;
}

.about-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    border-radius: 3px;
}

.about-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

.stats-container {
    display: flex;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Space Grotesk', sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 20px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    animation: float 3s ease-in-out infinite;
}

.experience-card {
    top: 20px;
    right: -20px;
}

.projects-card {
    bottom: 40px;
    left: -20px;
    animation-delay: 1.5s;
}

/* Value Cards Hover */
.value-card, .service-offer-card, .choose-card, .mission-card, .vision-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover, .service-offer-card:hover, .choose-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(0,0,0,0.1);
}