/* =========================================
   CSS Variables (Brand Colors & Settings)
   ========================================= */
:root {
    --primary-gradient: linear-gradient(135deg, #4F46E5 0%, #9333EA 100%);
    --bg-dark-1: #F4F7F6;
    --bg-dark-2: #FFFFFF;
    --text-light: #1A1A1A;
    --text-muted: #6B7280;
    --accent-glow: #7C3AED;
    --glass-bg: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.08);
}

/* =========================================
   Global Reset & Layout Fixes
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html, body {
    overflow-x: hidden; /* Prevents mobile horizontal scrolling */
    width: 100%;
}

body {
    background-color: var(--bg-dark-1);
    color: var(--text-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   Typography & Utilities
   ========================================= */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================
   Navbar Styling (Glassmorphism)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    background: transparent;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Default Logo (for light backgrounds) */
.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.logo span {
    color: #9333EA;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* Default Nav Links (for light backgrounds) */
.nav-links a {
    position: relative;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #4F46E5 !important;
    text-shadow: none !important;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

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

/* Default Button */
.navbar .btn-outline {
    border-color: rgba(0,0,0,0.2);
    color: var(--text-light);
}

/* =========================================
   Navbar Dark Variant (For Dark Hero Sections)
   ========================================= */
.navbar.navbar-dark:not(.scrolled) {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.navbar.navbar-dark:not(.scrolled) .logo {
    color: #ffffff;
}
.navbar.navbar-dark:not(.scrolled) .nav-links a {
    color: rgba(255,255,255,0.85);
}
.navbar.navbar-dark:not(.scrolled) .btn-outline {
    border-color: rgba(255,255,255,0.3);
    color: #ffffff;
}
.navbar.navbar-dark:not(.scrolled) .mobile-menu-btn::before,
.navbar.navbar-dark:not(.scrolled) .mobile-menu-btn::after,
.navbar.navbar-dark:not(.scrolled) .mobile-menu-btn span {
    background: #ffffff;
}

/* =========================================
   Scrolled States
   ========================================= */
.navbar.scrolled .logo {
    color: var(--text-light);
}
.navbar.scrolled .nav-links a {
    color: var(--text-muted);
}
.navbar.scrolled .btn-outline {
    border-color: rgba(0,0,0,0.2);
    color: var(--text-light);
}
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    cursor: pointer;
}

.btn-outline {
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--text-light);
    background: transparent;
}

.btn-outline:hover {
    border-color: #9333EA;
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.2);
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(79, 70, 229, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-light);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: radial-gradient(circle at center, var(--bg-dark-1) 0%, var(--bg-dark-2) 100%);
    overflow: hidden; /* Ensures glow effect doesn't break layout */
}

.glow-bg {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.3;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: #4F46E5;
}

.glow-2 {
    bottom: 10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: #9333EA;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
    position: relative;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #9333EA;
    border-radius: 50%;
    box-shadow: 0 0 10px #9333EA;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero-description {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    align-items: center;
    gap: 30px;
}

.stat h3 {
    font-size: 24px;
    color: var(--text-light);
}

.stat p {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

/* Hero Visual / Glass Card */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.glass-card {
    width: 450px;
    height: 300px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1), inset 0 0 0 1px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.glass-card:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
}

.card-header {
    padding: 15px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    gap: 8px;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #FF5F56; }
.yellow { background: #FFBD2E; }
.green { background: #27C93F; }

.card-body {
    padding: 30px;
    position: relative;
}

.code-line {
    height: 10px;
    background: var(--glass-border);
    border-radius: 5px;
    margin-bottom: 15px;
}

.w-75 { width: 75%; }
.w-50 { width: 50%; }
.w-90 { width: 90%; }
.w-40 { width: 40%; }
.mt-2 { margin-top: 30px; }

/* =========================================
   Floating Tech Elements (Hero Section)
   ========================================= */
.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--bg-dark-1);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: float 4s ease-in-out infinite;
    z-index: 5;
}

/* Icons with specific Brand Colors & Delay for natural floating */
.float-1 { top: -20px; left: -20px; color: #61DAFB; animation-delay: 0s; } /* React */
.float-2 { bottom: -20px; right: -15px; color: #3776AB; animation-delay: 2s; } /* Python */
.float-3 { top: -30px; right: 30px; color: #777BB4; animation-delay: 1s; } /* PHP */
.float-4 { bottom: 40px; left: -30px; color: #F7DF1E; animation-delay: 3s; } /* JavaScript */
.float-5 { bottom: -30px; left: 40%; color: #00758F; animation-delay: 1.5s; } /* MySQL */

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* =========================================
   Responsive Design (Fully Fixed for Mobile)
   ========================================= */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }
    
    .hero-content {
        max-width: 100%;
    }

    .hero h1 { font-size: 42px; }
    
    .hero-btns { justify-content: center; }
    
    .trust-indicators { justify-content: center; }

    .hero-visual { 
        justify-content: center; 
        width: 100%;
    }
    
    .glass-card { 
        transform: none; 
        width: 100%; 
        max-width: 380px; 
        height: auto;
        min-height: 250px;
    }
    .glass-card:hover { transform: translateY(-5px); }
    
    .nav-links, .nav-actions .btn-outline { display: none; }
    .mobile-menu-btn { display: block; }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    /* Shrinking Glow Effects for Mobile */
    .glow-1 { width: 300px; height: 300px; top: -5%; left: -20%; }
    .glow-2 { width: 250px; height: 250px; bottom: 5%; right: -15%; }

.floating-element {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }
    .float-1 { top: -10px; left: -10px; }
    .float-2 { bottom: -10px; right: -10px; }
    .float-3 { top: -15px; right: 15px; }
    .float-4 { bottom: 20px; left: -15px; }
    .float-5 { bottom: -15px; left: 35%; }
}

@media (max-width: 576px) {
    .hero h1 { 
        font-size: 32px; 
    }
    
    /* Buttons pasapasi (Side-by-side) */
    .hero-btns { 
        flex-direction: row; 
        justify-content: center;
        gap: 10px;
    }
    
    .btn { 
        width: auto; 
        padding: 10px 16px; 
        font-size: 13px; 
    }
    
    /* Counters pasapasi (Side-by-side) */
    .trust-indicators { 
        flex-direction: row; 
        justify-content: center;
        gap: 20px; 
    }
    
    .stat h3 {
        font-size: 20px; 
    }
    
    .stat p {
        font-size: 10px;
    }

    .stat-divider { 
        display: block; 
        height: 35px;
    }

    .card-body {
        padding: 20px;
    }
}









/* =========================================
   Section General Styles
   ========================================= */
.text-center {
    text-align: center;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-description {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* =========================================
   Services Section Layout
   ========================================= */
.services {
    padding: 100px 0;
    background-color: var(--bg-dark-1);
    position: relative;
    border-top: 1px solid var(--glass-border);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* =========================================
   Animated Border Service Cards
   ========================================= */
.service-card {
    position: relative;
    background: var(--bg-dark-2);
    border-radius: 16px;
    padding: 40px 30px;
    z-index: 1;
    overflow: hidden;
    transition: transform 0.4s ease;
    /* Box-shadow removed to let the animated border shine cleanly */
}

/* Base Hover Transform */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1), 0 0 20px rgba(79, 70, 229, 0.2);
}

/* Outer spinning gradient (The "Light") */
.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent, 
        transparent, 
        transparent, 
        #4F46E5, /* Brand Primary Blue */
        #9333EA, /* Brand Cyan */
        transparent
    );
    animation: rotate-border 4s linear infinite;
    z-index: -2;
    opacity: 0.3; /* ALWAYS ON: Idle obosthay halka animation cholbe */
    transition: opacity 0.4s ease;
}

/* Hover korle light animation ON FULL Brightness */
.service-card:hover::before {
    opacity: 1; /* Glow full bright hoye jabe */
}

/* Inner dark background (Covers the middle, exposes the edge) */
.service-card::after {
    content: '';
    position: absolute;
    inset: 2px; /* 2px gap rakhlam, jeta glowing border hisebe kaj korbe */
    background: var(--bg-dark-2);
    border-radius: 14px; 
    z-index: -1;
    transition: background 0.4s ease;
}

/* Hover korle card er vetore soft glow asbe */
.service-card:hover::after {
    background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.05), var(--bg-dark-2) 60%);
}

/* Keyframes for spinning border */
@keyframes rotate-border {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* =========================================
   Service Content & Icons
   ========================================= */
.service-icon {
    width: 60px;
    height: 60px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #9333EA;
    margin-bottom: 24px;
    transition: 0.4s ease;
    position: relative; /* z-index theke bachate */
    z-index: 2; 
}

.service-card h3, .service-card p {
    position: relative; /* Text jeno glow er upore thake */
    z-index: 2;
}

.service-card:hover .service-icon {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.service-card p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

/* =========================================
   Responsive for Services Section
   ========================================= */
@media (max-width: 768px) {
    .services {
        padding: 80px 0;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .services {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: 1fr; /* Mobile e 1 ta kore card dekhabe */
    }

    .service-card {
        padding: 30px 20px;
    }
}



/* =========================================
   Portfolio Section
   ========================================= */
.portfolio {
    padding: 100px 0;
    background-color: var(--bg-dark-2); /* Alternate dark background */
    border-top: 1px solid var(--glass-border);
}

/* Filter Buttons */
.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

/* Portfolio Card */
.portfolio-card {
    background: var(--bg-dark-1);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 0 20px rgba(79, 70, 229, 0.1);
    border-color: rgba(79, 70, 229, 0.3);
}

/* Portfolio Image & Overlay */
.portfolio-img {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img img {
    transform: scale(1.1); /* Zoom effect on hover */
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.view-btn {
    background: var(--primary-gradient);
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transform: translateY(20px);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.portfolio-card:hover .view-btn {
    transform: translateY(0);
}

/* Portfolio Info */
.portfolio-info {
    padding: 25px;
}

.project-category {
    font-size: 13px;
    color: #9333EA;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: inline-block;
}

.portfolio-info h3 {
    font-size: 22px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.portfolio-info p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}


@media (max-width: 768px) {

    
    .portfolio {
        padding: 80px 0;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 576px) {

    
    .portfolio {
        padding: 60px 0;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr; /* Mobile e 1 ta kore project dekhabe */
    }

    .portfolio-filter {
        gap: 10px;
    }

    .filter-btn {
        padding: 6px 16px;
        font-size: 13px;
    }
}





/* =========================================
   Contact & CTA Section
   ========================================= */
.contact {
    padding: 100px 0;
    background-color: var(--bg-dark-1);
    position: relative;
    border-top: 1px solid var(--glass-border);
    overflow: hidden;
}

.contact-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

/* Contact Info Left Side */
.contact-info {
    flex: 1;
    max-width: 500px;
}

.contact-info h2 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.detail-icon {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #9333EA;
    transition: 0.3s ease;
}

.detail-item:hover .detail-icon {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

.detail-item h4 {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 5px;
}

.detail-item p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Contact Form Right Side */
.contact-form-container {
    flex: 1;
    position: relative;
    max-width: 550px;
}

.form-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(79, 70, 229, 0.2), transparent 70%);
    filter: blur(50px);
    z-index: 0;
}

.glass-form {
    background: var(--bg-dark-2);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.glass-form h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-light);
}

/* Floating Label Inputs */
.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 15px 15px 15px 15px;
    font-size: 16px;
    color: var(--text-light);
    outline: none;
    transition: 0.3s ease;
}

.input-group select {
    appearance: none;
    cursor: pointer;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: #4F46E5;
    background: rgba(79, 70, 229, 0.05);
}

.input-group label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: var(--text-muted);
    font-size: 16px;
    pointer-events: none;
    transition: 0.3s ease;
}

/* The Magic of Floating Label */
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    background: var(--bg-dark-2);
    padding: 0 5px;
    color: #9333EA;
}

.w-100 {
    width: 100%;
    justify-content: center;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: #E5E7EB; /* Extra dark for footer */
    padding: 60px 0 30px;
    border-top: 1px solid var(--glass-border);
}

.justify-center {
    justify-content: center;
    margin-bottom: 20px;
}

.footer-text {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 400px;
    margin: 0 auto 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
    color: rgba(209, 213, 219, 0.5);
    font-size: 13px;
}




@media (max-width: 992px) {

    
    .contact-wrapper {
        flex-direction: column;
        gap: 50px;
    }

    .contact-info, .contact-form-container {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 576px) {

    
    .contact {
        padding: 60px 0;
    }

    .contact-info h2 {
        font-size: 36px;
    }

    .glass-form {
        padding: 25px;
    }
}


/* =========================================
   Page Header (For Inner Pages)
   ========================================= */
.page-header {
    padding: 160px 0 80px;
    background-color: var(--bg-dark-1);
    position: relative;
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
}

.relative { position: relative; }
.z-1 { z-index: 1; }

/* =========================================
   Team Section (Fixed Image Rotation)
   ========================================= */
.team-section {
    padding: 100px 0;
    background-color: var(--bg-dark-2);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.team-card {
    background: var(--bg-dark-1);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: rgba(79, 70, 229, 0.4);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1), 0 0 20px rgba(79, 70, 229, 0.15);
}

/* 
   New Structure for Glowing Image Border 
   Image won't rotate, only the light behind it will.
*/
.team-img-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 25px;
    border-radius: 50%;
    z-index: 1;
}

/* The spinning gradient light */
.team-img-wrapper::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: conic-gradient(
        transparent, 
        transparent, 
        transparent, 
        #4F46E5, 
        #9333EA, 
        transparent
    );
    animation: rotate-border 4s linear infinite;
    z-index: -2;
    opacity: 0.5; /* Always slightly visible */
    transition: opacity 0.4s ease;
}

/* Dark cover to make it a border */
.team-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-dark-1);
    border-radius: 50%;
    z-index: -1;
}

.team-card:hover .team-img-wrapper::before {
    opacity: 1; /* Glows brighter on hover */
}

/* The actual static image */
.team-img-wrapper img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid transparent; /* Keeps image inside perfectly */
    z-index: 1;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: grayscale(20%); /* Slightly muted for cyberpunk feel */
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.05); /* Slight zoom, no rotation */
    filter: grayscale(0%); /* Full color on hover */
}

/* Social Icons overlay on image */
.team-social {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85); /* Dark blur */
    backdrop-filter: blur(3px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-card:hover .team-social {
    opacity: 1; /* Fades in cleanly instead of sliding up from outside */
}

.team-social a {
    width: 35px;
    height: 35px;
    background: var(--primary-gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
    transform: scale(0.5); /* Starts small */
}

.team-card:hover .team-social a {
    transform: scale(1); /* Pops up gracefully */
}

.team-social a:hover {
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.6);
    background: #9333EA;
}

.team-info h3 {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.designation {
    display: block;
    font-size: 14px;
    color: #9333EA;
    font-weight: 600;
    margin-bottom: 15px;
}

.team-info p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}



@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 60px;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}



/* =========================================
   Case Studies Listing Page
   ========================================= */
.case-studies-list {
    padding: 80px 0 120px;
    background-color: var(--bg-dark-2);
}

.case-study-card {
    display: flex;
    background: var(--bg-dark-1);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    margin-bottom: 50px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.case-study-card:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 70, 229, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 0 20px rgba(79, 70, 229, 0.1);
}

/* Image Side */
.case-img-container {
    flex: 0 0 45%; /* Image takes 45% of width */
    position: relative;
    overflow: hidden;
}

.case-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-study-card:hover .case-img-container img {
    transform: scale(1.05);
}

.case-glow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, transparent, var(--bg-dark-1));
    z-index: 1;
}

/* Content Side */
.case-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.case-content h2 {
    font-size: 28px;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Challenge & Solution Block */
.case-summary {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.02);
    border-left: 3px solid #4F46E5;
    padding: 20px;
    border-radius: 0 12px 12px 0;
}

.summary-block h4 {
    color: #9333EA;
    font-size: 16px;
    margin-bottom: 5px;
}

.summary-block p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

.mt-3 { margin-top: 20px; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.page-link:hover, .page-link.active {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
}


@media (max-width: 992px) {
    
    .case-study-card {
        flex-direction: column; /* Stack image and text */
    }

    .case-img-container {
        flex: none;
        height: 250px; /* Fixed height for image on mobile */
    }

    .case-glow {
        background: linear-gradient(to bottom, transparent, var(--bg-dark-1));
    }

    .case-content {
        padding: 30px 20px;
    }
}




/* =========================================
   Single Portfolio Page Styles
   ========================================= */

/* Header Area */
.single-project-header {
    padding: 140px 0 60px;
    background-color: var(--bg-dark-1);
    position: relative;
    border-bottom: 1px solid transparent;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 40px;
    transition: color 0.3s;
}

.back-link:hover {
    color: #9333EA;
}

.project-title-area h1 {
    font-size: 46px;
    font-weight: 800;
    color: var(--text-light);
    margin: 15px 0 25px;
    max-width: 900px;
    line-height: 1.2;
}

.project-lead {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 800px;
    line-height: 1.7;
}

/* Main Visual & Floating Info Card */
.project-visual {
    background-color: var(--bg-dark-1);
    padding-bottom: 80px;
}

.main-image-container {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: visible; /* To let the info card overflow */
}

.main-image-container > img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.quick-info-card {
    position: absolute;
    bottom: -40px;
    right: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 30px 40px;
    border-radius: 16px;
    display: flex;
    gap: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    z-index: 5;
}

.info-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-item span {
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.info-item strong {
    color: var(--text-light);
    font-size: 16px;
}

/* Details Section Grid */
.project-details {
    padding: 100px 0;
    background-color: var(--bg-dark-2);
}

.project-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

/* Left Content Story */
.project-story h3 {
    font-size: 26px;
    color: var(--text-light);
    margin-top: 40px;
    margin-bottom: 20px;
}

.project-story h3:first-child {
    margin-top: 0;
}

.project-story p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Check List */
.custom-check-list {
    list-style: none;
    margin: 30px 0;
}

.custom-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
}

.custom-check-list li i {
    color: #9333EA;
    font-size: 18px;
    margin-top: 3px;
}

/* Gallery Images */
.project-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 50px;
}

.project-gallery img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

/* Right Sidebar Tech Stack */
.project-sidebar {
    position: sticky;
    top: 100px;
}

.tech-card {
    background: var(--bg-dark-1);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
}

.tech-card h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-light);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
}

.tech-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 16px;
}

.tech-item i {
    color: #4F46E5;
    font-size: 20px;
    width: 25px;
    text-align: center;
}

/* Next Project Section */
.next-project {
    padding: 80px 0;
    background-color: var(--bg-dark-1);
    border-top: 1px solid var(--glass-border);
}

.next-project p {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    margin-bottom: 15px;
}

.next-project a {
    text-decoration: none;
}

.next-project h2 {
    font-size: 36px;
    color: var(--text-light);
    transition: 0.3s ease;
}

.next-project h2:hover {
    color: #9333EA;
}

@media (max-width: 992px) {

    
    .project-content-grid {
        grid-template-columns: 1fr; /* Stack layout on tablet/mobile */
        gap: 40px;
    }
    
    .project-sidebar {
        position: relative;
        top: 0;
    }
    
    .quick-info-card {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 20px;
        flex-wrap: wrap;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .project-title-area h1 {
        font-size: 32px;
    }
    
    .project-gallery {
        grid-template-columns: 1fr; /* 1 image per row */
    }
}


/* =========================================
   About Us Page Styles
   ========================================= */

/* About Content Layout */
.about-content {
    padding: 100px 0;
    background-color: var(--bg-dark-2);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* About Visual (Left) */
.about-visual {
    position: relative;
}

.about-visual img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.stats-card {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: rgba(255, 255, 255, 0.85);
    padding: 25px 35px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 5;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
}

.stat-text {
    color: var(--text-muted);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.float-anim {
    animation: float 5s ease-in-out infinite;
}

/* About Text (Right) */
.about-text h2 {
    font-size: 40px;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.2;
}

.about-text p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.mission-vision {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mv-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.mv-icon {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #9333EA;
    flex-shrink: 0;
}

.mv-box h4 {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.mv-box p {
    margin-bottom: 0;
    font-size: 14px;
}

/* =========================================
   Why Choose Us Section
   ========================================= */
.why-choose-us {
    padding: 100px 0;
    background-color: var(--bg-dark-1);
    border-top: 1px solid var(--glass-border);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: var(--bg-dark-2);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.4s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    border-color: rgba(79, 70, 229, 0.3);
}

.benefit-card i {
    font-size: 40px;
    color: #4F46E5;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.benefit-card p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}


@media (max-width: 992px) {
    
    .about-grid {
        grid-template-columns: 1fr; /* Stack layout on tablet/mobile */
        gap: 60px;
    }
    
    .stats-card {
        right: 20px; /* Adjust placement on smaller screens */
        bottom: -20px;
    }
}

/* =========================================
   Mini CTA (Bottom of Pages) - FIXED
   ========================================= */
.cta-mini {
    padding: 80px 0;
    background: linear-gradient(to right, rgba(79, 70, 229, 0.05), rgba(147, 51, 234, 0.05));
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

/* Flexbox use kora holo jate overlap na hoy */
.cta-mini .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cta-mini h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.3;
}

.cta-mini p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 16px;
    max-width: 600px;
}

.cta-mini .btn {
    position: relative;
    z-index: 5;
    margin-top: 10px;
}

/* Mobile Responsive Fix for CTA */
@media (max-width: 576px) {
    .cta-mini {
        padding: 60px 0;
    }
    .cta-mini h2 {
        font-size: 26px;
    }
}



/* =========================================
   Blog Listing Page
   ========================================= */
.blog-section {
    padding: 80px 0 120px;
    background-color: var(--bg-dark-2);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.blog-card {
    background: var(--bg-dark-1);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(79, 70, 229, 0.4);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1), 0 0 20px rgba(79, 70, 229, 0.15);
}

/* Blog Image */
.blog-img-link {
    display: block;
    width: 100%;
}

.blog-img-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.08); /* Zoom effect on hover */
}

.blog-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-gradient);
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

/* Dark overlay gradient to make it look premium */
.blog-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, var(--bg-dark-1), transparent);
    z-index: 1;
}

/* Blog Content */
.blog-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 15px;
}

.blog-meta i {
    color: #9333EA;
}

.blog-title-link {
    text-decoration: none;
    display: block;
    margin-bottom: 15px;
}

.blog-title-link h3 {
    font-size: 20px;
    color: var(--text-light);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-title-link:hover h3 {
    color: #9333EA;
}

.blog-content p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4F46E5;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: #9333EA;
}

.read-more:hover i {
    transform: translateX(5px);
}


/* =========================================
   Single Blog Page Styles
   ========================================= */

/* Header Area */
.single-blog-header {
    padding: 140px 0 60px;
    background-color: var(--bg-dark-1);
    border-bottom: 1px solid var(--glass-border);
}

.blog-category-badge {
    display: inline-block;
    background: var(--primary-gradient);
    color: #fff;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.blog-title-area h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 900px;
    line-height: 1.3;
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-meta img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #9333EA;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    color: var(--text-light);
    font-size: 16px;
}

.author-info span {
    color: var(--text-muted);
    font-size: 13px;
}

/* Layout Grid */
.blog-content-wrapper {
    padding: 80px 0;
    background-color: var(--bg-dark-2);
}

.blog-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

/* Left Side: Article Content */
.article-hero-img {
    margin-bottom: 40px;
}

.article-hero-img img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.rich-text-content {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.8;
}

.lead-text {
    font-size: 22px;
    color: var(--text-light);
    font-weight: 300;
    margin-bottom: 40px;
}

.rich-text-content h2 {
    font-size: 28px;
    color: var(--text-light);
    margin: 40px 0 20px;
}

.rich-text-content h3 {
    font-size: 22px;
    color: var(--text-light);
    margin: 30px 0 15px;
}

.rich-text-content p {
    margin-bottom: 20px;
}

.rich-text-content blockquote {
    font-style: italic;
    font-size: 20px;
    color: #9333EA;
    border-left: 4px solid #9333EA;
    padding: 20px 0 20px 30px;
    background: rgba(147, 51, 234, 0.05);
    margin: 40px 0;
    border-radius: 0 12px 12px 0;
}

/* Code Snippet Box */
.code-block {
    background: #0B0F1A;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin: 30px 0;
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111827;
    padding: 10px 20px;
    border-bottom: 1px solid var(--glass-border);
}

.code-header span {
    color: var(--text-muted);
    font-size: 14px;
    font-family: monospace;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    transition: 0.3s;
}

.copy-btn:hover { color: #9333EA; }

.code-block pre {
    padding: 20px;
    overflow-x: auto;
    font-family: monospace;
    font-size: 14px;
    color: #A3BE8C; /* Code green tint */
}

/* Article Footer */
.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.tags {
    display: flex;
    gap: 10px;
}

.tags span {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 13px;
    color: var(--text-muted);
}

.share-article {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-light);
}

.share-article a {
    color: var(--text-muted);
    font-size: 18px;
    transition: 0.3s;
}

.share-article a:hover { color: #4F46E5; }

/* Right Side: Sidebar Widgets */
.sidebar-widget {
    background: var(--bg-dark-1);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
}

/* Sidebar Search */
.sidebar-search {
    display: flex;
    position: relative;
}

.sidebar-search input {
    width: 100%;
    background: var(--bg-dark-2);
    border: 1px solid var(--glass-border);
    padding: 12px 15px;
    border-radius: 8px;
    color: var(--text-light);
    outline: none;
}

.sidebar-search button {
    position: absolute;
    right: 5px;
    top: 5px;
    height: calc(100% - 10px);
    width: 40px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
}

/* Sidebar Recent Posts */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    text-decoration: none;
    align-items: center;
}

.recent-post-item img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
}

.recent-post-item h4 {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.recent-post-item:hover h4 { color: #9333EA; }

.recent-post-item span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Sidebar Categories */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 16px;
    transition: 0.3s;
}

.category-list a:hover { color: #9333EA; }

.category-list span {
    background: var(--glass-bg);
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 12px;
}


@media (max-width: 992px) {
    
    .blog-layout-grid {
        grid-template-columns: 1fr; /* Stack layout on tablet/mobile */
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .blog-title-area h1 {
        font-size: 32px;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(147, 51, 234, 0.1);
    background: linear-gradient(to bottom, var(--glass-bg), rgba(79, 70, 229, 0.05));
}
.tech-logos i {
    text-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.tech-logos i:hover {
    transform: scale(1.15) translateY(-5px);
    text-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* =========================================
   Mega Menu Styling
   ========================================= */
.dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: -200px; /* Center align roughly */
    width: 650px;
    background: #FFFFFF;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 25px;
}

.dropdown-wrapper:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.mega-column h4 {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 8px;
}

.mega-column h4 i {
    color: #4F46E5;
}

.mega-column a {
    display: block !important;
    color: var(--text-muted) !important; 
    font-size: 14px !important;
    padding: 6px 0 !important;
    font-weight: 400 !important;
    text-decoration: none;
    transition: 0.3s;
    text-shadow: none !important;
}

.mega-column a:hover {
    color: #4F46E5 !important;
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .mega-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 10px;
    }
    .mega-menu-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
.mega-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}
.nav-links a:hover, .nav-links a.active {
    color: #4F46E5 !important;
    text-shadow: none !important;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}
/* =========================================
   Premium Mobile Menu
   ========================================= */
@media (max-width: 768px) {
    .nav-links {
        display: flex !important; /* override the display:none */
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%; /* hide initially */
        width: 100%;
        max-width: 350px;
        height: 100vh;
        overflow-y: auto;
        padding-bottom: 100px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        padding: 80px 30px;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 990; /* just below navbar which should be 1000 */
        justify-content: flex-start;
        align-items: flex-start;
        gap: 20px;
    }
    
    .nav-links.mobile-active {
        right: 0;
    }

    .nav-links a {
        font-size: 20px !important;
        font-weight: 600;
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    /* Active menu item mobile */
    .nav-links a::after {
        display: none; /* Hide desktop underline on mobile */
    }

    .nav-links a:hover, .nav-links a.active {
        padding-left: 10px;
        background: transparent;
    }

    .dropdown-wrapper {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        height: auto;
    }
    
    .dropbtn {
        width: 100%;
        justify-content: space-between;
    }

    .mega-menu {
        display: none;
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background: rgba(147, 51, 234, 0.03);
        padding: 15px;
        border-radius: 8px;
        margin-top: 10px;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    .dropdown-wrapper:hover .mega-menu, 
    .dropdown-wrapper.active .mega-menu {
        display: block;
    }
    
    .mega-menu-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .mega-column h4 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    /* Hamburger to Cross animation */
    .mobile-menu-btn {
        z-index: 1001;
        position: relative;
        width: 30px;
        height: 24px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        background: transparent !important;
    }
    
    .mobile-menu-btn i {
        display: none; /* Hide old fontawesome icon */
    }

    .mobile-menu-btn::before,
    .mobile-menu-btn::after,
    .mobile-menu-btn span {
        content: '';
        display: block;
        width: 100%;
        height: 3px;
        background: var(--text-light); border-radius: 3px;
        transition: all 0.3s ease;
    }

    .mobile-menu-btn.active::before {
        transform: translateY(10.5px) rotate(45deg);
    }
    
    .mobile-menu-btn.active::after {
        transform: translateY(-10.5px) rotate(-45deg);
    }
    
    .mobile-menu-btn.active span {
        opacity: 0;
    }
}

/* =========================================
   Premium Footer
   ========================================= */
.footer-premium {
    background: #0A0F1E;
    color: #9CA3AF;
    padding-top: 80px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
}

.brand-col .logo {
    color: #fff;
    margin-bottom: 20px;
    display: inline-flex;
}

.footer-desc {
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 16px;
}

.social-links-premium {
    display: flex;
    gap: 15px;
}

.social-links-premium a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.social-links-premium a:hover {
    background: var(--primary-gradient);
    transform: translateY(-3px);
}

.footer-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-gradient);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #9CA3AF;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-contact li i {
    color: #4F46E5;
    font-size: 18px;
}

.footer-bottom {
    background: #050811;
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-title, .footer-desc, .footer-contact li {
        text-align: center;
        justify-content: center;
    }
    .brand-col .logo, .social-links-premium {
        justify-content: center;
    }
    .footer-links { text-align: center; }
}

/* Upcoming Badge in Mega Menu */
.badge-upcoming {
    font-size: 10px;
    padding: 2px 6px;
    background: #FFF7ED;
    color: #C2410C;
    border: 1px solid #FFEDD5;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    vertical-align: middle;
}
.upcoming-link {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}
.upcoming-link:hover .badge-upcoming {
    background: #C2410C;
    color: #FFF;
}
