/* ==========================================================================
   JAYSUIT GLOBAL DESIGN SYSTEM (LOGO-SYNCED)
   ========================================================================== */

:root {
    /* Exact Brand Colors extracted from logo.png */
    --brand-indigo: #291A7B;
    --brand-blue: #0096D6;
    
    /* Functional Colors */
    --primary-color: var(--brand-indigo);
    --secondary-color: var(--brand-blue);
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-dark: #120A38;
    
    /* Brand Gradients */
    --gradient-primary: linear-gradient(135deg, var(--brand-indigo) 0%, var(--brand-blue) 100%);
    --gradient-hover: linear-gradient(135deg, #1c105c 0%, #007bb5 100%);
    
    /* UI Elements */
    --card-bg: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --border-radius-sm: 8px;
    --border-radius-md: 15px;
    --border-radius-lg: 20px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(41, 26, 123, 0.15);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   RESET & TYPOGRAPHY
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--brand-indigo);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.text-brand-blue { color: var(--brand-blue) !important; }
.text-brand-indigo { color: var(--brand-indigo) !important; }
.bg-corporate { background-color: var(--bg-dark); color: var(--text-light); }
.section-padding { padding: 5rem 0; }
p { color: var(--text-muted); }

/* ==========================================================================
   NAVIGATION & 3D FOLD ANIMATION
   ========================================================================== */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    padding: 0.8rem 0;
}

.navbar-brand .main-logo {
    height: 80px; 
    width: auto;
    object-fit: contain;
}

.nav-link-3d {
    position: relative;
    display: inline-block;
    perspective: 1000px;
    color: var(--brand-indigo) !important;
    font-weight: 700;
    padding: 0.5rem 1rem !important;
    text-transform: uppercase;
    font-size: 1rem;
    white-space: nowrap;
}

.nav-link-3d span {
    position: relative;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    transform-origin: 50% 50% -12px;
}

.nav-link-3d span::before {
    content: attr(data-text);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    color: var(--brand-blue);
    transform: rotateX(-90deg);
    transform-origin: top;
}

.nav-link-3d:hover span, 
.nav-link-3d.active span {
    transform: rotateX(90deg) translateY(-50%);
}

.dropdown-toggle::after {
    vertical-align: 0.155em;
    margin-left: 0.4em;
}

.dropdown-menu {
    border: none;
    border-radius: var(--border-radius-md);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    padding: 1rem 0;
    margin-top: 0;
    border-top: 3px solid var(--brand-blue);
}

.dropdown-item {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    padding: 0.7rem 1.5rem;
    transition: var(--transition-smooth);
}

.dropdown-item:hover {
    background-color: rgba(0, 150, 214, 0.08);
    color: var(--brand-blue);
    padding-left: 1.8rem;
}

.navbar-toggler {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.5rem;
}
.navbar-toggler:focus { box-shadow: none; }

.hamburger {
    width: 30px;
    height: 3px;
    background: var(--brand-indigo);
    display: block;
    position: relative;
    transition: var(--transition-smooth);
}
.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--brand-indigo);
    left: 0;
    transition: var(--transition-smooth);
}
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }
.navbar-toggler[aria-expanded="true"] .hamburger { background: transparent; }
.navbar-toggler[aria-expanded="true"] .hamburger::before { transform: rotate(45deg); top: 0; }
.navbar-toggler[aria-expanded="true"] .hamburger::after { transform: rotate(-45deg); bottom: 0; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary-3d {
    background: var(--gradient-primary);
    color: var(--bg-white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 20px rgba(0, 150, 214, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-primary-3d::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--brand-indigo);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease-in-out;
    border-radius: 50px;
}

.btn-primary-3d:hover {
    transform: translateY(-3px);
    color: var(--bg-white);
}

.btn-primary-3d:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* ==========================================================================
   HERO SLIDER - UPDATED HEIGHT & WIDTH
   ========================================================================== */
.hero-slider-section {
    padding-top: 80px; 
    position: relative;
    background-color: var(--bg-dark);
}

.hero-slider-section .carousel-item {
    height: 65vh; /* Reduced height so users see content below immediately */
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slider-section .carousel-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(41, 26, 123, 0.92) 0%, rgba(0, 150, 214, 0.75) 100%);
    z-index: 1;
}

.hero-slider-content {
    position: absolute;
    top: 50%;
    left: 60px;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
    padding: 0 1rem;
}

/* Let the text stretch further across the screen */
.hero-slider-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    font-weight: 400;
    max-width: 900px; /* Prevents text from being too long to read on ultrawide monitors */
}

.hero-slider-content h1 {
    color: var(--bg-white);
    font-size: clamp(2.2rem, 2.5vw, 3.8rem) !important;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 6px;
}
.carousel-indicators .active {
    background-color: var(--brand-blue);
    transform: scale(1.3);
}

/* ==========================================================================
   CARDS (SERVICES & FEATURES)
   ========================================================================== */
.premium-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    border-bottom: 4px solid transparent;
    height: 100%;
}

.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--brand-blue);
}

.icon-box {
    width: 65px;
    height: 65px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    background: rgba(0, 150, 214, 0.1);
    color: var(--brand-indigo);
    transition: var(--transition-smooth);
}

.premium-card:hover .icon-box {
    background: var(--brand-blue);
    color: var(--bg-white);
}

/* ==========================================================================
   FEATURED PROJECTS (PORTFOLIO)
   ========================================================================== */
.portfolio-item {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    background: var(--card-bg);
    transition: var(--transition-smooth);
    height: 100%;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.portfolio-img-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.portfolio-img-wrapper i {
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img-wrapper i {
    transform: scale(1.2);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   TESTIMONIALS (3-in-a-row Slider)
   ========================================================================== */
.testimonial-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    height: 100%;
    border: 1px solid rgba(0, 150, 214, 0.1);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-card i.fa-quote-left {
    font-size: 2.5rem;
    color: var(--brand-blue);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.testimonial-card p {
    flex-grow: 1;
    font-style: italic;
}

.testimonial-author h5 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--brand-blue);
    font-weight: 600;
}

#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
    width: 5%;
}

#testimonialCarousel .carousel-control-prev-icon,
#testimonialCarousel .carousel-control-next-icon {
    filter: invert(18%) sepia(80%) saturate(2250%) hue-rotate(248deg) brightness(85%) contrast(100%);
}

/* ==========================================================================
   CTA & FOOTER (WITH AI TREND PATTERNS & HIGH CONTRAST)
   ========================================================================== */
.cta-section {
    position: relative;
    background: var(--gradient-primary);
    overflow: hidden;
    color: #ffffff;
}

.cta-section::before, .footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.08) 2px, transparent 3px),
        radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.08) 2px, transparent 3px),
        linear-gradient(45deg, transparent 49%, rgba(255,255,255,0.03) 50%, transparent 51%);
    background-size: 80px 80px, 120px 120px, 60px 60px;
    z-index: 0;
    pointer-events: none;
}

.ai-bg-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.05);
    z-index: 0;
    pointer-events: none;
}
.ai-bg-icon.brain { top: 10%; right: 5%; font-size: 15rem; transform: rotate(15deg); }
.ai-bg-icon.network { bottom: -5%; left: -2%; font-size: 20rem; transform: rotate(-10deg); }

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section p.high-contrast-text {
    color: #ffffff !important;
    font-weight: 500;
    opacity: 1;
}

.footer {
    position: relative;
    background: var(--brand-indigo);
    color: #ffffff;
    padding: 5rem 0 2rem;
    overflow: hidden;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer h5 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer p, 
.footer span, 
.footer a,
.footer-bottom p {
    color: #f8fafc !important;
}

.footer a {
    text-decoration: none;
    transition: var(--transition-smooth);
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer a:hover {
    color: var(--brand-blue) !important;
    transform: translateX(5px);
    opacity: 1;
}

.social-icons a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: var(--transition-smooth);
}

.social-icons a:hover {
    background: var(--brand-blue);
    transform: translateY(-3px) translateX(0);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.95rem;
}

/* ==========================================================================
   UTILITIES & RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--bg-white);
        padding: 1rem;
        border-radius: var(--border-radius-md);
        box-shadow: var(--shadow-md);
        margin-top: 1rem;
    }
    .nav-link-3d { margin: 0.5rem 0; }
}