/* ================================================
   Anant Groups - Custom Styles
   ================================================ */

/* ================================================
   Root Variables
   ================================================ */
:root {
    --primary-color: #c89462;
    --secondary-color: #418f8f;
    --accent-color: #e0cfbb;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

/* ================================================
   Global Styles
   ================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #b38354;
    border-color: #b38354;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(200, 148, 98, 0.3);
}

.btn-outline-secondary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(65, 143, 143, 0.3);
}

/* ================================================
   Navigation
   ================================================ */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand .brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-primary);
}

.navbar-brand img {
    transition: var(--transition);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Remove default Bootstrap dropdown caret */
.dropdown-toggle::after {
    display: none;
}

/* Dropdown icon animation */
.dropdown-toggle .bi-chevron-down {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle .bi-chevron-down,
.dropdown-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

/* ================================================
   Dropdown Menu Custom Styles
   ================================================ */
.dropdown-menu-custom {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 1rem;
    min-width: 280px;
    margin-top: 0 !important;
    z-index: 1050;
    display: none;
}

.dropdown-menu-custom.show {
    display: block;
}

/* Add invisible bridge between nav-link and dropdown to prevent gap */
.dropdown-menu-custom::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.dropdown-menu-custom .dropdown-item {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
    font-weight: 500;
}

.dropdown-menu-custom .dropdown-item:hover {
    background-color: var(--accent-color);
    color: var(--dark-color);
    transform: translateX(5px);
}

.dropdown-menu-custom .dropdown-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.dropdown-menu-custom .dropdown-divider {
    margin: 0.75rem 0;
    opacity: 0.2;
}

/* Dropdown hover for desktop */
@media (min-width: 992px) {
    .dropdown:hover > .dropdown-menu {
        display: block;
        animation: fadeInDown 0.3s ease-in-out;
    }
    
    .dropdown > .dropdown-toggle:active {
        pointer-events: none;
    }
    
    /* Keep dropdown open when hovering over it */
    .dropdown-menu:hover {
        display: block;
    }
}

/* Dropdown fade in animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================
   Modern Hero Section
   ================================================ */
.hero-section-modern {
    position: relative;
    padding: 120px 0 0;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(200, 148, 98, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 148, 98, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.hero-section-modern::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(200, 148, 98, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-section-modern::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(65, 143, 143, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.min-vh-100 {
    min-height: 100vh;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--dark-color);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #6c757d;
    max-width: 600px;
}

.hero-cta .btn {
    font-weight: 600;
    border-radius: 12px;
    transition: var(--transition);
}

.hero-clients {
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.client-logo-placeholder {
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-color);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 600px;
    z-index: 1;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 6s ease-in-out infinite;
    z-index: 3;
}

.floating-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.floating-card h4 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: var(--dark-color);
}

.floating-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.card-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: 5%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 10%;
    left: 10%;
    animation-delay: 4s;
}

.hero-main-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    z-index: 2;
}

.hero-main-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.visual-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(200, 148, 98, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 4s ease-in-out infinite;
}

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

/* Stats Bar */
.stats-bar {
    background: white;
    border-radius: 20px;
    padding: 3rem 0;
    margin: -50px 1rem 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.95rem;
    color: #6c757d;
    font-weight: 500;
}

/* ================================================
   Animations
   ================================================ */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ================================================
   Section Utilities
   ================================================ */
.py-6 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

.mb-6 {
    margin-bottom: 6rem !important;
}

.section-label .badge {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-soft-primary {
    background-color: rgba(200, 148, 98, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(200, 148, 98, 0.2);
}

.badge-soft-secondary {
    background-color: rgba(65, 143, 143, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(65, 143, 143, 0.2);
}

/* ================================================
   Value Proposition Section
   ================================================ */
.value-prop-section {
    background: white;
}

.value-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid #f0f0f0;
    transition: var(--transition);
    height: 100%;
}

.value-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color) 0%, rgba(200, 148, 98, 0.3) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scale(1.1);
}

.value-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.value-card:hover .value-icon i {
    color: white;
}

.btn-link-arrow {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-link-arrow:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* ================================================
   Modern Services Section
   ================================================ */
.services-section-modern {
    position: relative;
}

.service-card-modern {
    height: 100%;
    transition: var(--transition);
    position: relative;
}

.service-card-inner {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    border: 2px solid #f0f0f0;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card-modern:hover .service-card-inner {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

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

.service-icon-modern {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(200, 148, 98, 0.1) 0%, rgba(65, 143, 143, 0.1) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.service-card-modern:hover .service-icon-modern {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scale(1.1) rotate(5deg);
}

.service-icon-modern i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card-modern:hover .service-icon-modern i {
    color: white;
}

/* Service Icon Large - For Single Page Sections */
.service-icon-large {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(200, 148, 98, 0.1) 0%, rgba(65, 143, 143, 0.1) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.service-icon-large:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.service-icon-large i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Services Page Sections */
#waf, #vulnerability-assessment, #siem-monitoring, 
#f5-solutions, #web-development, #graphics-design,
#enterprise-security, #cloud-security, #application-security {
    position: relative;
}

#waf::before, #siem-monitoring::before, #web-development::before,
#enterprise-security::before, #application-security::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 148, 98, 0.2), transparent);
}

/* ================================================
   Technology Partners Section
   ================================================ */
.tech-partners-section {
    background: white;
}

.tech-category-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    border: 2px solid #f0f0f0;
    height: 100%;
    transition: var(--transition);
}

.tech-category-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.tech-badges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-badge-modern {
    display: inline-block;
    background: linear-gradient(135deg, rgba(200, 148, 98, 0.08) 0%, rgba(65, 143, 143, 0.08) 100%);
    color: var(--dark-color);
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.tech-badge-modern:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(200, 148, 98, 0.3);
}

/* ================================================
   Expertise Section
   ================================================ */
.expertise-section {
    position: relative;
}

.expertise-category {
    transition: var(--transition);
}

.expertise-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.tech-badge {
    background-color: var(--accent-color);
    color: var(--dark-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.tech-badge:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(200, 148, 98, 0.3);
}

/* ================================================
   Why Choose Us Section
   ================================================ */
.feature-box {
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.feature-box:hover .feature-icon {
    transform: rotate(360deg);
}

.feature-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

/* ================================================
   Contact Section
   ================================================ */
.contact-form-wrapper {
    border: 2px solid var(--accent-color);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(200, 148, 98, 0.25);
}

.contact-info-card {
    transition: var(--transition);
    border: 1px solid transparent;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--accent-color);
}

/* ================================================
   Footer
   ================================================ */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

footer .social-links a {
    transition: var(--transition);
}

footer .social-links a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

footer a:hover {
    color: var(--primary-color) !important;
}

.newsletter-form .btn-primary {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* ================================================
   Responsive Design
   ================================================ */
@media (max-width: 991.98px) {
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .hero-section-modern {
        padding: 80px 0 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-subtitle {
        text-align: center;
        margin: 0 auto 2rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-clients {
        text-align: center;
    }
    
    .hero-visual {
        height: 400px;
        margin-top: 3rem;
    }
    
    .floating-card {
        padding: 1rem;
    }
    
    .floating-card h4 {
        font-size: 1.25rem;
    }
    
    .hero-main-visual {
        width: 280px;
        height: 280px;
    }
    
    .stats-bar {
        margin: 3rem 1rem 0;
        padding: 2rem 0;
    }
    
    .stat-number {
        font-size: 2.25rem;
    }
}

@media (max-width: 767.98px) {
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-visual {
        height: 350px;
    }
    
    .hero-main-visual {
        width: 220px;
        height: 220px;
    }
    
    .floating-card {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .floating-card i {
        font-size: 1.75rem;
    }
    
    .floating-card h4 {
        font-size: 1.1rem;
    }
    
    .card-1 {
        top: 5%;
        left: 0;
    }
    
    .card-2 {
        top: 60%;
        right: 0;
    }
    
    .card-3 {
        bottom: 5%;
        left: 0;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .py-6 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    
    .service-icon-modern,
    .feature-icon,
    .value-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon-modern i,
    .feature-icon i,
    .value-icon i {
        font-size: 1.75rem;
    }
    
    .service-card-inner {
        padding: 2rem;
    }
}

@media (max-width: 575.98px) {
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .tech-badge,
    .tech-badge-modern {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    .client-logo-placeholder {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .stats-bar {
        padding: 1.5rem 0;
    }
}

/* ================================================
   Utility Classes
   ================================================ */
.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.rounded-custom {
    border-radius: 15px;
}

section {
    scroll-margin-top: 80px;
}

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



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

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
