/* =========================================
   MODERN NAVBAR STYLES
   ========================================= */
html {
    font-size: 18px; /* Increased base font size for better visibility at 100% zoom */
    overflow-x: hidden;
}

.modern-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 15px 0; /* Reduced padding */
    transition: all 0.3s ease;
}

.modern-navbar .nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 40px; /* Increased padding */
    max-width: 1400px; /* Wider container */
    margin: 0 auto;
}

/* Brand Style */
.nav-brand {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem; /* Reduced from 2.5rem */
    font-weight: 700;
    color: #333;
    text-decoration: none !important;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #1c1c1c, #0804ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.nav-brand:hover {
    transform: scale(1.02);
}

/* Desktop Menu Links */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px; /* Reduced gap for better fit */
}

.nav-links li a {
    text-decoration: none;
    color: #444;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1rem; /* Reduced from 1.25rem */
    letter-spacing: 1.5px;
    position: relative;
    padding: 12px 0;
    transition: all 0.3s ease;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Social Icons */
.nav-social {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 15px; /* Reduced gap */
}

.nav-social li a {
    width: 45px; /* Reduced size */
    height: 45px; /* Reduced size */
    border-radius: 50%;
    background: #f8f9fa;
    color: #444;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem; /* Reduced font size */
    border: 1px solid rgba(0,0,0,0.05);
}

.nav-social li a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(8, 4, 255, 0.2);
    border-color: transparent;
}

/* Brand image sizing */
.nav-brand img {
    display: block;
    height: 48px;
    width: auto;
    object-fit: contain;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 991px) {
    .modern-navbar .nav-content {
        padding: 0 16px;
        gap: 8px;
    }
    .nav-links, .nav-social {
        display: none; /* Hidden by default on mobile, can be toggled via JS if needed, but for now using hover/click logic or simple stacking */
    }

    .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        padding: 0;
        width: 48px;
        height: 48px;
        z-index: 100000 !important; /* Extremely high z-index */
        cursor: pointer;
        position: relative;
        background-color: transparent;
        border: 1px solid rgba(0,0,0,0.1); /* Subtle border to see the hit area */
        border-radius: 4px;
    }
    
    .mobile-toggle i, .mobile-toggle svg {
        pointer-events: none; 
        font-size: 24px;
        color: #333 !important; /* Force color */
    }

    /* Ensure navbar is above everything */
    .modern-navbar {
        z-index: 99999 !important;
        background: white !important; /* Ensure background is opaque */
    }

    /* Simple Mobile Menu Dropdown (Active State) */
    .modern-navbar.active .nav-links {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        width: 100vw; /* Ensure full viewport width */
        margin: 0;
        background: #ffffff !important;
        padding: 20px 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        gap: 0; /* Remove gap, use padding on items */
        text-align: center;
        pointer-events: auto;
        max-height: 85vh;
        overflow-y: auto;
        z-index: 200000 !important; /* Ensure it's on top of everything */
        border-top: 1px solid rgba(0,0,0,0.05);
        opacity: 1 !important;
        visibility: visible !important;
    }

    .modern-navbar.active .nav-links li {
        width: 100%;
        display: block;
        border-bottom: 1px solid rgba(0,0,0,0.03);
    }

    .modern-navbar.active .nav-links li a {
        display: block;
        padding: 15px 20px;
        font-size: 1.1rem;
        color: #333 !important;
        text-decoration: none;
        width: 100%;
    }

    .modern-navbar.active .nav-links li a:hover {
        background-color: #f8f9fa;
        color: var(--primary-color) !important;
    }

    .modern-navbar.active .nav-social {
        display: flex;
        position: absolute;
        top: calc(100% + 200px); /* Adjust based on menu height */
        width: 100%;
        justify-content: center;
        background: white;
        padding-bottom: 20px;
    }
    
    .nav-brand img {
        height: 40px;
    }

    /* Better touch targets for mobile links */
    .modern-navbar.active .nav-links li a {
        padding: 15px 20px;
        display: block;
        width: 100%;
        font-size: 1.1rem;
    }
}

:root {
    --primary-color: #0804ff;
    --secondary-color: #ff0000;
    --accent-color: #ff0800;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
}

/* Modern Header / Hero Section */
.hero {
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8)), url('../images/misc/Pic.jpg') right bottom no-repeat;
    background-size: cover;
    background-position: center;
    padding: 120px 0; /* Increased padding */
}

/* Professional Highlights Section */
.professional-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-bottom: 30px;
}

.professional-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #1c1c1c, #0804ff);
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.professional-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.professional-card:hover::before {
    height: 100%;
}

.professional-card:hover h3, 
.professional-card:hover p, 
.professional-card:hover .icon-box-modern i {
    color: #fff;
}

.icon-box-modern {
    width: 80px;
    height: 80px;
    background: rgba(8, 4, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.icon-box-modern i {
    font-size: 32px;
    color: #0804ff;
    transition: all 0.4s ease;
}

.professional-card:hover .icon-box-modern {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1) rotate(5deg);
}

.professional-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    transition: all 0.4s ease;
}

.professional-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
    font-size: 1.05rem;
    transition: all 0.4s ease;
}

/* Read More button hidden by default for desktop */
.professional-card .read-more-btn {
    display: none;
}

/* Mobile-only truncation and button visibility for Professional Highlights */
@media (max-width: 576px) {
    .professional-card p {
        display: -webkit-box;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .professional-card p.expanded {
        display: block;
        line-clamp: unset;
        -webkit-line-clamp: unset;
    }
    .professional-card .read-more-btn {
        display: flex;
        margin-top: 12px;
    }
}

.hero .inner {
    padding-top: 0;
    text-align: left;
}

.hero h1 {
    font-size: 4.5rem; /* Increased from 3.5rem */
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero h2 {
    font-size: 1.5rem; /* Increased from 1.2rem */
    font-weight: 600;
    color: var(--text-light);
    margin-top: 25px;
    line-height: 1.8;
    text-transform: uppercase;
    letter-spacing: 2.5px;
}

/* Modern Navigation */
.menu-button {
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* =========================================
   MODERN ABOUT SECTION
   ========================================= */
.modern-about-section {
    padding: 100px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

/* Left Side: Image */
.about-image-col {
    flex: 1;
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: rotate(-2deg);
    transition: all 0.3s ease;
    border: 5px solid white;
}

.image-wrapper:hover {
    transform: rotate(0deg) scale(1.02);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.image-backdrop {
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    background: var(--primary-color);
    z-index: -1;
    border-radius: 20px;
    opacity: 0.1;
}

/* Right Side: Content */
.about-text-col {
    flex: 1.2;
    background-image: url('../images/rough imgs/footer-page-bg-2.png');
    background-position: right 20% center;
    background-size: 150% auto;
    background-repeat: no-repeat;
    position: relative;
    padding: 0 !important;
    margin: 0;
}

.about-text-col * {
    position: relative;
    z-index: 2;
}

/* Remove padding from all child elements */
.about-text-col .section-title,
.about-text-col .about-divider,
.about-text-col .about-description,
.about-text-col .about-stats,
.about-text-col .social-engagement {
    padding: 0 !important;
    margin-left: 20px;
    margin-right: 20px;
}

.about-text-col .section-title {
    padding-top: 40px !important;
    margin-left: 40px;
    margin-right: 40px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #1a1a1a;
}

.innovative-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 30px;
    padding: 20px 20px 40px 20px; /* Extra bottom padding for hover effect */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.innovative-grid::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.innovative-grid {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.innovative-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    flex: 0 0 280px; /* Fixed width, no shrinking/growing */
    width: 280px;
    position: relative;
    overflow: hidden;
}

.innovative-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #1c1c1c, #0804ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.innovative-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(8, 4, 255, 0.15);
}

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

.icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #0804ff;
    transition: all 0.4s ease;
}

.innovative-card:hover .icon-box {
    background: linear-gradient(135deg, #0804ff 0%, #1c1c1c 100%);
    color: #fff;
    transform: rotateY(360deg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   ADVANCED HERO SECTION STYLES
   ========================================= */
.hero-advanced {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    color: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-advanced::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(8, 4, 255, 0.05) 0%, rgba(8, 4, 255, 0.1) 100%);
    clip-path: polygon(20% 0%, 100% 0, 100% 100%, 0% 100%);
}

.hero-content {
    z-index: 2;
    padding-right: 2rem;
}

/* Animated Typing Text */
.typing-container {
    font-size: 1.5rem;
    color: #6220fb;
    font-weight: 600;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    min-height: 40px;
}

.typing-text {
    border-right: 3px solid #6220fb;
    padding-right: 5px;
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: #6220fb; }
}

/* Hero Buttons */
.btn-glow {
    position: relative;
    padding: 12px 35px;
    background: linear-gradient(90deg, #0804ff, #6220fb);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(8, 4, 255, 0.5);
    display: inline-flex;
    align-items: center;
    border: none;
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(8, 4, 255, 0.7);
    color: #fff;
}

.btn-outline-glow {
    position: relative;
    padding: 12px 35px;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-outline-glow:hover {
    border-color: #6220fb;
    color: #6220fb;
    background: rgba(98, 32, 251, 0.1);
}

/* Hero Image Styling */
.hero-image-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-circle-bg {
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(98, 32, 251, 0.2) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.5; }
}

/* =========================================
   INNOVATIVE ACHIEVEMENTS CAROUSEL
   ========================================= */
.innovative-carousel-container {
    position: relative;
    width: 100%;
    padding: 0 50px; /* Space for buttons */
    margin: 40px 0;
}

.innovative-grid-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 20px 0 40px; /* Padding for shadow/hover effects */
}

.innovative-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    /* Ensure cards stay in a row */
    flex-wrap: nowrap;
    width: max-content; /* Allow track to grow horizontally */
}

/* Button Styles */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    color: var(--primary-color, #0804ff);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--primary-color, #0804ff);
    color: #fff;
    box-shadow: 0 8px 20px rgba(8, 4, 255, 0.3);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* Ensure cards have fixed width in carousel */
.innovative-track .innovative-card {
    flex: 0 0 300px;
    width: 300px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .innovative-carousel-container {
        padding: 0 44px;
    }
    
    .innovative-grid-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    
    .innovative-track {
        width: auto; /* Let it flow naturally for native scroll */
    }
    
    .innovative-track .innovative-card {
        scroll-snap-align: center;
    }
}

.hero-img-main {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    transition: all 0.5s ease;
}

.hero-img-main:hover {
    transform: scale(1.05) rotate(2deg);
    border-color: #6220fb;
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: #6220fb;
    top: -50px;
    left: -50px;
    animation: float-1 10s infinite alternate;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: #0804ff;
    bottom: 50px;
    right: 50px;
    animation: float-2 12s infinite alternate;
}

.shape-3 {
    width: 150px;
    height: 150px;
    border: 20px solid rgba(255,255,255,0.1);
    top: 20%;
    right: 30%;
    animation: float-3 8s infinite linear;
}

@keyframes float-1 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes float-2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50px, -50px); }
}

@keyframes float-3 {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Social Icons in Hero */
.hero-social {
    margin-top: 40px;
    display: flex;
    gap: 20px;
}

.hero-social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-social-link:hover {
    background: #6220fb;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(98, 32, 251, 0.4);
    color: #fff;
}

/* =========================================
   ABOUT FEATURES SECTION & STATS
   ========================================= */

/* Stats Row in About Section */
.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

/* Feature Cards Grid (Stacked Overlapping Layout) */
.about-features-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 80px 20px; /* Increased padding */
    margin-top: 30px;
    perspective: 1200px;
}

/* Feature Card Styling - Glassmorphism & Mesh Gradients */
.feature-card {
    background: rgba(255, 255, 255, 0.1); /* Fallback */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 
        -20px 0 40px rgba(0,0,0,0.1),
        inset 0 0 0 1px rgba(255,255,255,0.2); /* Glass border */
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: none;
    flex: 0 0 350px;
    width: 350px;
    height: 450px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-left: -60px; /* More overlap */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align top for better hierarchy */
    color: #fff;
}

/* Dynamic Mesh Backgrounds */
.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1), transparent 60%);
    z-index: 0;
    pointer-events: none;
}

/* Reset margin for first card */
.feature-card:first-child {
    margin-left: 0;
}

/* Hover Effects - Premium Feel */
.feature-card:hover {
    transform: translateY(-30px) scale(1.05) rotateX(5deg);
    z-index: 100;
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.4),
        inset 0 0 0 1px rgba(255,255,255,0.4);
    margin-right: 40px;
    margin-left: 10px;
}

.feature-card:hover ~ .feature-card {
    transform: translateX(60px) scale(0.95); /* Push others away more clearly */
    opacity: 0.8; /* Focus on hovered card */
}

/* Icon Circle Styling - Floating Glass */
.feature-card .icon-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 10px auto 30px; /* Centered with spacing */
    transition: all 0.5s ease;
    color: #fff;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    z-index: 2;
}

.feature-card:hover .icon-circle {
    transform: scale(1.1) rotate(10deg);
    background: rgba(255,255,255,0.25);
}

/* Advanced Gradients */
.feature-card.gradient-1 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); /* Cyan Blue */
}

.feature-card.gradient-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); /* Pink Purple */
}

.feature-card:nth-child(3) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); /* Emerald Teal */
}

/* Text Styling - Better Hierarchy */
.feature-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
    font-family: 'Playfair Display', serif;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
    letter-spacing: 0.5px;
}

.feature-card p {
    color: rgba(255,255,255,0.95);
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 0;
    text-align: center;
    position: relative;
    z-index: 2;
    font-weight: 400;
}

/* Hide scrollbar styles (no longer needed but harmless to keep empty) */
.about-features-grid::-webkit-scrollbar { display: none; }

/* New Section Header Styles */
.features-header {
    margin: 60px 0 40px;
    text-align: center;
}

.features-header .section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.features-header .section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.highlight {
    color: #6220fb;
    position: relative;
    display: inline-block;
}

/* Innovative Header Styles */
.innovative-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.innovative-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0804ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Playfair Display', serif;
    position: relative;
    display: inline-block;
}

.innovative-title::after {
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, #0804ff, #6220fb);
    margin: 10px auto 0;
    border-radius: 2px;
}

.innovative-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 500;
}

/* Scroll Animation for Cards */
@keyframes continuousScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-280px * 6 - 30px * 6)); } /* Adjust based on content width */
}

/* Entrance Animation */
@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.innovative-card {
    /* Existing styles... */
    background: #fff;
    border-radius: 20px;
    padding: 40px 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    flex: 0 0 280px;
    width: 280px;
    position: relative;
    overflow: hidden;
    
    /* Animation */
    animation: slideInFromRight 0.8s ease-out forwards;
    opacity: 0; /* Start hidden */
}

.innovative-card:nth-child(1) { animation-delay: 0.1s; }
.innovative-card:nth-child(2) { animation-delay: 0.2s; }
.innovative-card:nth-child(3) { animation-delay: 0.3s; }
.innovative-card:nth-child(4) { animation-delay: 0.4s; }
.innovative-card:nth-child(5) { animation-delay: 0.5s; }
.innovative-card:nth-child(6) { animation-delay: 0.6s; }

/* ... previous styles ... */

/* =========================================
   Patent Section Modernization
   ========================================= */

/* Section Header */
.portfolio .content-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0804ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Playfair Display', serif;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.portfolio .content-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0804ff, #6220fb);
    border-radius: 2px;
}

/* Filters */
.portfolio #portfolio-flters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
    padding: 0;
}

.portfolio #portfolio-flters li {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    padding: 12px 30px;
    color: #555;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    cursor: pointer;
    margin: 0;
    height: auto;
    line-height: normal;
}

.portfolio #portfolio-flters li:hover,
.portfolio #portfolio-flters li.filter-active {
    background: linear-gradient(135deg, #6220fb 0%, #0804ff 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(98, 32, 251, 0.3);
    border-color: transparent;
}

/* Portfolio Cards */
.portfolio .portfolio-item {
    margin-bottom: 40px;
    perspective: 1000px;
    padding: 15px;
}

.portfolio .portfolio-item figure {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 420px;
    position: relative;
    border: none;
    display: flex;
    flex-direction: column;
}

.portfolio .portfolio-item figure:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* Card Image */
.portfolio .portfolio-item figure img {
    height: 55%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio .portfolio-item figure:hover img {
    transform: scale(1.1);
    opacity: 1;
}

/* Card Content (Title & Details) */
.portfolio .portfolio-item figure .portfolio-title {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 45%;
    background: white;
    padding: 25px;
    opacity: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: left;
    transform: none;
    color: #1a1a1a;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    z-index: 2;
}

.portfolio .portfolio-item figure .portfolio-title:hover {
    color: #0804ff;
    text-decoration: none;
    top: auto;
}

.portfolio .portfolio-item figure .portfolio-title span {
    font-size: 0.85rem;
    color: #666;
    margin-top: 15px;
    display: block;
    font-weight: 400;
    border-top: 1px solid #eee;
    padding-top: 15px;
    line-height: 1.6;
}

/* Action Buttons (Eye/Link) */
.portfolio .portfolio-item figure .link-preview,
.portfolio .portfolio-item figure .link-details {
    top: 20px;
    opacity: 0;
    transform: translateY(-20px);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio .portfolio-item figure .link-preview i,
.portfolio .portfolio-item figure .link-details i {
    color: #1a1a1a;
    font-size: 18px;
    padding: 0;
    transition: color 0.3s ease;
}

.portfolio .portfolio-item figure .link-preview {
    left: auto;
    right: 70px;
}

.portfolio .portfolio-item figure .link-details {
    left: auto;
    right: 15px;
    transition-delay: 0.1s;
}

.portfolio .portfolio-item figure:hover .link-preview,
.portfolio .portfolio-item figure:hover .link-details {
    opacity: 1;
    transform: translateY(0);
}

.portfolio .portfolio-item figure .link-preview:hover,
.portfolio .portfolio-item figure .link-details:hover {
    background: #0804ff;
    transform: translateY(-3px);
}

.portfolio .portfolio-item figure .link-preview:hover i,
.portfolio .portfolio-item figure .link-details:hover i {
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .portfolio .portfolio-item figure {
        height: auto;
        min-height: 400px;
    }
    
    .portfolio .portfolio-item figure img {
        height: 250px;
    }
    
    .portfolio .content-header h2 {
        font-size: 2.2rem;
    }
}

/* Removed conflicting animation to ensure visibility */
.about-features-grid .feature-card {
    opacity: 1; 
    transform: translateX(0);
}

/* =========================================
   FEEDBACK SECTION STYLES
   ========================================= */
.feedback-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1c1c1c, #2d2d2d);
    color: white;
    position: relative;
    overflow: hidden;
}

/* Animated background shapes */
.feedback-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(98, 32, 251, 0.1) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    animation: float 10s infinite ease-in-out;
}

.feedback-section::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(98, 32, 251, 0.1) 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
    border-radius: 50%;
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    50% { transform: translate(20px, 20px); }
    100% { transform: translate(0, 0); }
}

.feedback-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

/* Modern Card Styles */
.card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(98, 32, 251, 0.5);
}

.card__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(98, 32, 251, 0.2);
    color: #cfbaf0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(98, 32, 251, 0.3);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6220fb, #9c27b0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(98, 32, 251, 0.3);
    border: 2px solid rgba(255,255,255,0.1);
}

.card__title {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.card__description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 20px;
}

.card__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.card__price {
    color: #6220fb;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.star-rating {
    color: #ffd700;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Glow Effect */
.card__glow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 50% 0%, rgba(98, 32, 251, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card:hover .card__glow {
    opacity: 1;
}

/* =========================================
   RESPONSIVE HERO SECTION UPDATES
   ========================================= */

@media (max-width: 991px) {
    .hero-advanced {
        padding-top: 140px; /* More space for navbar */
        padding-bottom: 60px;
        text-align: center;
        height: auto;
        min-height: auto;
        display: block; /* Reset flex to block to allow normal flow */
    }

    .hero-advanced .container {
        position: relative;
        z-index: 5;
    }

    .hero-advanced .row {
        flex-direction: column; 
    }

    /* Override inline styles if necessary */
    .hero-advanced .items-center {
        justify-content: center;
    }

    .hero-content {
        padding-right: 0;
        margin-top: 40px;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
        line-height: 1.2;
    }
    
    .hero-content h3 {
        font-size: 1.5rem;
    }

    .typing-container {
        justify-content: center;
        margin: 0 auto 25px auto;
    }

    .hero-social {
        justify-content: center;
        margin-top: 30px;
    }

    .btn-group {
        justify-content: center;
        display: flex;
        gap: 15px;
    }

    /* Hero Image */
    .hero-image-container {
        margin-bottom: 20px;
        justify-content: center;
        margin-top: 30px;
    }
    
    .hero-img-main {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }
    
    .hero-circle-bg {
        width: 340px;
        height: 340px;
        left: 50%;
        transform: translateX(-50%);
        top: 20px;
    }
    
    /* Adjust floating shapes for mobile */
    .floating-shape {
        opacity: 0.05;
    }
}

@media (max-width: 576px) {
    .hero-advanced {
        padding-top: 120px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        padding: 0 15px;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .btn-glow, .btn-outline-glow {
        width: 100%;
        justify-content: center;
    }

    .hero-img-main {
        width: 240px;
        height: 240px;
    }
    
    .hero-circle-bg {
        width: 280px;
    height: 280px;
}
}

/* Extra mobile optimizations for Innovative Achievements */
@media (max-width: 576px) {
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .innovative-header {
        text-align: center;
        margin-bottom: 20px;
    }
    .innovative-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }
    .innovative-subtitle {
        font-size: 0.95rem;
        color: #666;
        max-width: 90%;
        margin: 0 auto;
    }
    .innovative-grid-wrapper {
        padding: 10px 0 20px;
    }
    .innovative-track {
        gap: 20px;
    }
    .innovative-track .innovative-card {
        flex: 0 0 260px;
        width: 260px;
        padding: 24px 18px;
    }
    .innovative-card .icon-box {
        width: 60px;
        height: 60px;
        font-size: 28px;
        margin-bottom: 18px;
    }
    .innovative-card .stat-number {
        font-size: 2rem;
    }
    .innovative-card .stat-label {
        font-size: 0.95rem;
    }
}

/* Consultancy: hide read more by default on desktop */
.consultancy-card-premium .read-more-btn {
    display: none;
}

/* Consultancy mobile clamp + show button */
@media (max-width: 576px) {
    .consultancy-card-premium .project-description {
        display: -webkit-box;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .consultancy-card-premium .project-description.expanded {
        display: block;
        line-clamp: unset;
        -webkit-line-clamp: unset;
    }
    .consultancy-card-premium .project-details {
        display: none;
    }
    .consultancy-card-premium.expanded .project-details {
        display: block;
    }
    .consultancy-card-premium .read-more-btn {
        display: inline-flex;
        margin-top: 10px;
        width: auto;
        padding: 8px 16px;
        font-size: 0.9rem;
        border-radius: 18px;
        align-self: center;
    }
    .consultancy-card-premium .card-body-premium {
        padding: 1.2rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* =========================================
   RESPONSIVE ABOUT SECTION UPDATES
   ========================================= */

@media (max-width: 991px) {
    .modern-about-section {
        padding: 60px 0;
    }

    .about-grid {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 40px;
    }

    .about-image-col, 
    .about-text-col {
        flex: none;
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
    }

    .image-wrapper {
        max-width: 500px;
        margin: 0 auto;
        transform: none;
        width: 100%;
    }

    .image-wrapper:hover {
        transform: none;
    }

    .about-text-col {
        text-align: center;
        background-image: none;
    }

    .about-text-col .section-title,
    .about-text-col .about-divider,
    .about-text-col .about-description,
    .about-text-col .about-stats {
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .about-text-col .section-title {
        padding-top: 0 !important;
        font-size: 2.5rem;
    }

    .about-divider {
        margin: 20px auto !important;
    }

    .about-stats {
        justify-content: center;
        margin-top: 30px;
    }
}

@media (max-width: 576px) {
    .modern-about-section {
        padding: 40px 0;
    }

    .about-text-col .section-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .about-stats {
        gap: 20px;
    }
    
    .stat-item {
        flex: 1 1 100px;
    }
}
