/* --- Modern Design System --- */
:root {
    --primary-modern: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-modern: #ec4899;
    --accent-modern: #8b5cf6;
    --bg-dark-modern: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-body);
    color: #334155;
    line-height: 1.7;
    background-color: #f8fafc;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #1e293b;
}

/* --- Smooth Scroll & Selection --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

::selection {
    background: var(--primary-modern);
    color: white;
}

/* --- Navigation & Topbar --- */
.navbar {
    backdrop-filter: blur(15px);
    background: rgba(15, 23, 42, 0.8) !important;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.navbar-brand h1, .navbar-brand span {
    font-size: 1.75rem !important;
    letter-spacing: -1px;
}

.nav-link {
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 1rem 1.25rem !important;
    position: relative;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff !important;
}

.sticky-top.navbar .nav-link {
    color: #ffffff !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 20px;
    left: 1.25rem;
    background: var(--primary-modern);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 2.5rem);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.navbar-toggler .fa-bars {
    color: #fff;
}

/* --- Hero Section --- */
.carousel-caption {
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.9) 100%) !important;
}

.carousel-item img {
    filter: brightness(0.6) contrast(1.1);
    height: 100vh;
    object-fit: cover;
}

.display-1 {
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .display-1 {
        font-size: 3rem;
    }
}

/* --- Fact Cards --- */
.facts .bg-primary {
    background: linear-gradient(135deg, var(--primary-modern), var(--primary-dark)) !important;
    height: 160px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2rem !important;
    transition: var(--transition-smooth);
}

.facts .bg-light {
    background: #ffffff !important;
    height: 160px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2rem !important;
    transition: var(--transition-smooth);
}

.facts .row > div:first-child .bg-primary {
    border-radius: 30px 0 0 30px !important;
}

.facts .row > div:last-child .bg-primary {
    border-radius: 0 30px 30px 0 !important;
}

.facts .shadow {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 991px) {
    .facts .shadow {
        border-radius: 24px !important;
        margin-bottom: 1.5rem;
    }
}

/* --- Section Headers --- */
.section-title h5 {
    color: var(--primary-modern) !important;
    letter-spacing: 3px;
    font-weight: 700;
}

.section-title h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

/* --- Modern Cards (Service, Team, etc.) --- */
.service-item, .website-card, .team-item {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 24px !important;
    padding: 2.5rem 2rem;
    transition: var(--transition-smooth);
    box-shadow: var(--card-shadow);
}

.service-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-modern);
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.15);
}

.service-icon {
    width: 70px !important;
    height: 70px !important;
    background: linear-gradient(135deg, var(--primary-modern), var(--accent-modern)) !important;
    border-radius: 20px !important;
    margin-bottom: 2rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

/* --- Images & Containers --- */
.rounded {
    border-radius: 24px !important;
}

img.rounded {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
}

/* --- Gradient Text --- */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-modern), var(--secondary-modern));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* --- Contact Section --- */
#contact .bg-primary {
    background: linear-gradient(135deg, var(--primary-modern), var(--primary-dark)) !important;
    border-radius: 30px;
}

.form-control {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-modern);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: #fff;
}

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-modern), var(--primary-dark));
    border: none;
    border-radius: 14px;
    padding: 14px 32px;
    font-weight: 600;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-modern));
}


/* --- Footer Modernization --- */
.footer {
    background-color: var(--bg-dark-modern) !important;
    color: #94a3b8;
    position: relative;
    padding-top: 5rem;
    padding-bottom: 2rem;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--glass-border), transparent);
}

.footer-brand h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.footer-about-text {
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
    color: #fff !important;
}

.footer h3::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: var(--primary-modern);
    bottom: 0;
    left: 0;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a i {
    font-size: 0.8rem;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-modern);
    transform: translateX(5px);
}

.footer-links a:hover i {
    transform: translateX(3px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.footer-contact-item i {
    color: var(--primary-modern);
    margin-right: 15px;
    font-size: 1.1rem;
    margin-top: 3px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 2rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #fff;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    background: var(--primary-modern);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    margin-top: 3rem;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary-modern);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .footer {
        padding-top: 3rem;
    }

    .footer h3 {
        margin-top: 2rem;
    }
}

/* --- Website Preview Cards (Portfolio) --- */
.website-card {
    border-radius: 24px !important;
    overflow: hidden;
    position: relative;
    background: #fff;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid #f1f5f9 !important;
    box-shadow: var(--card-shadow) !important;
    padding: 0 !important;
}

.website-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.15) !important;
}

.website-preview {
    position: relative;
    height: 330px;
    overflow: hidden;
    background: #f8f9fa;
}

.website-preview iframe {
    width: 125%;
    height: 125%;
    border: none;
    pointer-events: none;
    transform: scale(0.8);
    transform-origin: top left;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.website-preview iframe.loaded {
    display: block;
    opacity: 1;
}

.website-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.website-preview.loading-iframe img {
    opacity: 0.3;
}

.website-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 50%, transparent 100%);
    z-index: 2;
    transition: opacity 0.3s ease;
}

.website-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-modern), var(--accent-modern));
    color: #fff;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    font-size: 20px;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.website-content {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
    color: #fff;
    z-index: 3;
}

.website-content h3 {
    margin: 0;
    font-weight: 800;
    font-size: 1.4rem;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.website-content span {
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* --- Filter Buttons --- */
.filter-btns .btn {
    border-radius: 12px;
    padding: 10px 25px;
    font-weight: 600;
    transition: var(--transition-smooth);
    margin: 5px;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #64748b;
}

.filter-btns .btn:hover, .filter-btns .btn.active {
    background: var(--primary-modern);
    color: #fff;
    border-color: var(--primary-modern);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

/* --- Skeleton Loader --- */
.skeleton {
    background: linear-gradient(110deg, #f1f5f9 8%, #f8fafc 18%, #f1f5f9 33%);
    border-radius: 24px;
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
}

@keyframes shine {
    to { background-position-x: -200%; }
}

/* --- Carousel Animations --- */
.carousel-caption h1 {
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}


.carousel-caption .gradient-text {
    display: inline-block;
    padding: 0 10px;
}

/* Facts Section Enhancements */
.fact-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 35px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.fact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.03) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.fact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.2);
}

.fact-card:hover::before {
    opacity: 1;
}

.fact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-modern), var(--accent-modern));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
    transition: transform 0.4s ease;
}

.fact-card:hover .fact-icon {
    transform: scale(1.1) rotate(5deg);
}

.fact-content {
    padding-left: 25px;
    z-index: 1;
}

.fact-content h5 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    margin-bottom: 5px;
    color: #64748b;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
}


.fact-content .h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0;
    font-size: 2.5rem;
    line-height: 1;
}

/* Service Item Redesign */
.service-item {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-modern), var(--accent-modern));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.1);
}

.service-item:hover::after {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--primary-modern) !important;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.service-icon i {
    color: var(--primary-modern) !important;
}

.service-item:hover .service-icon {
    background: linear-gradient(135deg, var(--primary-modern), var(--accent-modern));
    color: #ffffff !important;
    transform: rotate(10deg);
}

.service-item:hover .service-icon i {
    color: #ffffff !important;
}

.service-item h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1e293b;
}

.service-item p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-item .btn {
    width: 45px;
    height: 45px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.service-item:hover .btn {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mobile Responsiveness Fixes --- */
@media (max-width: 991.98px) {
    .navbar {
        padding: 15px 25px !important;
    }
    
    .navbar-brand span {
        font-size: 1.3rem !important;
    }
    
    .nav-link::after {
        display: none;
    }
}

@media (max-width: 767.98px) {
    /* Hero Slider Mobile Fix */
    .carousel-item {
        height: 500px;
        min-height: 500px;
    }
    
    .carousel-item img {
        height: 100%;
        object-fit: cover;
    }
    
    .display-1 {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }
    
    .carousel-caption h5 {
        font-size: 0.9rem !important;
        letter-spacing: 2px;
    }
    
    .carousel-caption .btn {
        padding: 12px 25px !important;
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .carousel-caption .d-flex {
        flex-direction: column !important;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .carousel-caption .d-flex .btn {
        margin-right: 0 !important;
        width: 100%;
    }

    /* Facts Mobile Fix */
    .fact-card {
        padding: 25px;
    }
    
    .fact-content .h1 {
        font-size: 2rem;
    }

    /* Section Spacing */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    /* Footer Mobile Fix */
    .footer {
        text-align: center;
        padding-top: 50px;
    }
    
    .footer-brand {
        display: inline-block;
        margin-bottom: 20px;
    }
    
    .social-links {
        justify-content: center;
        margin-bottom: 30px;
    }
    
    .footer h3 {
        margin-top: 30px;
        margin-bottom: 20px;
        font-size: 1.3rem;
    }
    
    .footer-contact-item {
        justify-content: center;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-bottom {
        margin-top: 50px;
        padding: 30px 0;
    }
    
    .footer-bottom .text-md-end {
        text-align: center !important;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .carousel-item {
        height: 450px;
    }
    
    .display-1 {
        font-size: 1.8rem !important;
    }
}

/* --- Tech Stack Card Styling --- */
.bg-light-modern {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}



