/* 
==================================================
SECTION SPECIFIC STYLES
==================================================
*/

/* Navbar */
.navbar-custom {
    padding: 1.25rem 0;
    transition: var(--transition-smooth);
    background-color: #fff;
}

.navbar-custom.scrolled {
    background-color: #fff;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

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

.navbar-custom .nav-link {
    color: var(--color-text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition-smooth);
}

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

/* Keep Bootstrap navbar menu visible despite Tailwind's .collapse utility */
.navbar-custom .navbar-collapse {
    visibility: visible;
}

@media (min-width: 992px) {
    .navbar-custom .navbar-collapse.collapse {
        display: flex !important;
    }
}

/* Hero Section */
.hero-section {
    padding: 160px 0 100px;
    min-height: 100vh;
    background: radial-gradient(circle at top right, rgba(1, 112, 185, 0.05) 0%, rgba(250, 250, 250, 0) 60%);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    max-width: 500px;
}

@media (max-width: 991px) {
    .hero-title { font-size: 2.8rem; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 2.2rem; }
    .hero-section { padding: 120px 0 80px; min-height: auto; }
}

/* Hero Visuals */
.hero-image-wrapper {
    width: 100%;
    height: 450px;
    perspective: 1000px;
}

.hero-bg-shape {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, rgba(1, 112, 185, 0) 100%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(40px);
    z-index: 1;
}

/* Hero Showcase Elements */
.hero-dashboard {
    border-radius: 16px;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-dashboard {
    transform: rotateY(0) rotateX(0);
}

.hero-mobile-app {
    transform: rotateY(-10deg) rotateX(5deg) translateZ(50px);
    transition: transform 0.6s ease;
}

.hero-image-wrapper:hover .hero-mobile-app {
    transform: rotateY(0) rotateX(0) translateZ(0);
}

.hero-image-wrapper > .premium-card {
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover > .premium-card {
    transform: rotateY(0) rotateX(0);
}

.floating-card {
    animation: float 6s ease-in-out infinite;
}

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

.floating-card-2 {
    bottom: 20%;
    right: -10%;
    animation-delay: 2s;
}

.floating-card-3 {
    animation-delay: 1.5s;
}

.floating-card-4 {
    animation-delay: 2.5s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 768px) {
    .floating-card-1 { left: 0; }
    .floating-card-2 { right: 0; }
}

/* Trusted Section */
.trusted-section {
    background-color: rgba(15, 23, 42, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    position: relative;
    overflow: hidden;
}

.trusted-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

.trusted-section .container {
    position: relative;
    z-index: 2;
}

.partners-label-wrapper {
    z-index: 10;
}

.partners-overlap-label {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    background-color: #FCFCFD;
    color: #1E293B;
    padding: 4px 20px;
    white-space: nowrap;
}

.trusted-section .text-secondary.small {
    color: #94A3B8 !important;
}

.marquee-wrapper {
    overflow: hidden;
    width: 100%;
}

.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
}

.marquee-item {
    flex-shrink: 0;
    padding: 0 40px;
    color: #E2E8F0;
    font-weight: 700;
    font-size: 1.5rem;
    filter: grayscale(100%);
    transition: var(--transition-smooth);
    cursor: default;
    white-space: nowrap;
}

.marquee-item:hover {
    color: #FFFFFF;
    filter: grayscale(0%);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Services */
.bg-light {
    background-color: var(--color-bg) !important;
}

/* Projects */
.bg-gradient-light {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.project-card {
    transition: var(--transition-smooth);
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-img {
    transition: var(--transition-smooth);
    overflow: hidden;
}

.project-card:hover .project-img {
    transform: scale(1.02);
}

.project-link i {
    transition: transform 0.3s ease;
}

.project-card:hover .project-link i {
    transform: translateX(5px);
}

/* Process Timeline */
.process-icon {
    width: 80px;
    height: 80px;
    border: 2px solid var(--color-border);
    transition: var(--transition-smooth);
}

.process-step:hover .process-icon {
    transform: scale(1.1);
    border-color: var(--color-primary);
    box-shadow: 0 10px 20px rgba(1, 112, 185, 0.15) !important;
}

@media (min-width: 768px) {
    .process-step::after {
        content: '';
        position: absolute;
        top: 40px;
        left: 50%;
        width: 100%;
        height: 2px;
        background-color: var(--color-border);
        z-index: 1;
    }
    .col-md-2:last-child .process-step::after {
        display: none;
    }
}

/* Custom Accordion */
.custom-accordion .accordion-collapse {
    visibility: visible;
}

.custom-accordion .accordion-button:not(.collapsed) {
    color: var(--color-primary);
    background-color: var(--color-card-bg);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

.custom-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

.custom-accordion .accordion-button::after {
    background-size: 1rem;
}

/* Footer */
.footer-links a {
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--color-primary) !important;
    padding-left: 5px;
}

/* 
==================================================
PREMIUM PROJECT CARDS
==================================================
*/
.project-card {
    transition: var(--transition-smooth);
    border-radius: var(--radius-lg) !important;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover) !important;
    border-color: rgba(1, 112, 185, 0.2) !important;
}

.bg-gradient-primary { background: linear-gradient(135deg, var(--color-primary) 0%, transparent 100%); }
.bg-gradient-success { background: linear-gradient(135deg, var(--bs-success) 0%, transparent 100%); }

.project-img-bg {
    transition: all 0.6s ease;
}

.project-card:hover .project-img-bg {
    opacity: 0.15 !important;
    transform: scale(1.1);
}

.premium-mockup, .premium-mockup-mobile {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .premium-mockup {
    transform: translateY(0) scale(1.02) !important;
}

.project-card:hover .premium-mockup-mobile {
    transform: translateY(-12px) translateX(-6px) !important;
}

.project-link i {
    transition: transform 0.4s ease;
}

.project-link:hover i {
    transform: translateX(4px);
}

/* 
==================================================
BENTO GRID SYSTEM
==================================================
*/
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-large {
        grid-column: span 2;
    }
}

@media (min-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
    .bento-large {
        grid-column: span 2;
        grid-row: span 2;
    }
}

.bento-card {
    transition: var(--transition-smooth);
    border-radius: var(--radius-lg) !important;
    height: 100%;
}

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

.icon-box-bento {
    width: 64px;
    height: 64px;
    transition: var(--transition-smooth);
}

.bento-card:hover .icon-box-bento {
    transform: scale(1.1) rotate(5deg);
}

/* 
==================================================
PREMIUM CTA SECTION
==================================================
*/
.cta-premium-card {
    background-color: var(--color-primary);
    border-radius: var(--radius-lg) !important;
}

.cta-bg {
    background: radial-gradient(120% 120% at 50% -20%, #005A9C 0%, var(--color-primary) 50%, #003055 100%);
}

.cta-grid {
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.blur-shape {
    filter: blur(80px);
    opacity: 0.5;
}

.cta-shape-1 {
    width: 400px;
    height: 400px;
    background: #00B4DB;
    top: -100px;
    left: -100px;
}

.cta-shape-2 {
    width: 500px;
    height: 500px;
    background: #000046;
    bottom: -150px;
    right: -100px;
}

.cta-floating-element {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    top: 20%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
    border-radius: var(--radius-md) !important;
}

.cta-floating-sphere {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.2) 20%, rgba(255,255,255,0.05) 60%, transparent 100%);
    box-shadow: inset -20px -20px 40px rgba(0,0,0,0.2), 0 20px 40px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
    bottom: 20%;
    left: 15%;
    animation: float 8s ease-in-out infinite reverse;
}

.cta-btn-primary {
    transition: var(--transition-smooth);
}

.cta-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(255, 255, 255, 0.3), 0 10px 10px -5px rgba(255, 255, 255, 0.1) !important;
}

.cta-btn-primary i {
    transition: transform 0.4s ease;
}

.cta-btn-primary:hover i {
    transform: translateX(4px);
}

/* 
==================================================
PREMIUM FOOTER
==================================================
*/
.footer-link-hover {
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-link-hover:hover {
    color: var(--color-primary) !important;
    transform: translateX(4px);
}

.social-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-btn:hover {
    background-color: var(--color-primary) !important;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(1, 112, 185, 0.2);
}

/* 
==================================================
PREMIUM BACKGROUND SYSTEM OVERRIDES
==================================================
*/

/* Subtle Global Grid & Noise */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
    background-image: 
        linear-gradient(to right, rgba(0,0,0,0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,0,0,0.015) 1px, transparent 1px);
    background-size: 50px 50px;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Alternate Section Backgrounds */
#home { background-color: #FCFCFD !important; background-image: none !important; }
#services { background-color: #FFFFFF !important; }
#projects { background-color: #F8FAFC !important; }
#about { background-color: #FFFFFF !important; }
#process { background-color: #FCFCFD !important; }
#testimonials { background-color: #FFFFFF !important; }
#faq { background-color: #F8FAFC !important; }
footer { background-color: #F8FAFC !important; }

/* Subtle Section Separators */
section, footer {
    border-bottom: 1px solid #EEF2F7 !important;
    border-top: none !important;
}

/* Fix Hero Light Effect */
.hero-bg-shape {
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%) !important;
    opacity: 0.03 !important;
    filter: blur(80px) !important;
    width: 600px !important;
    height: 600px !important;
}

/* Ensure navbar retains its solid white background cleanly */
.navbar-custom.scrolled {
    background-color: #fff !important;
    border-bottom: 1px solid rgba(0,0,0,0.02);
}

/* 
==================================================
SERVICE MODAL STYLING
==================================================
*/

/* Consistent 32px padding inside all service modals */
[id^="serviceModal"] .modal-content {
    padding: 32px;
}

/* Header: zero internal padding so title sits flush with modal-content padding */
[id^="serviceModal"] .modal-header {
    padding: 0 0 16px 0;
}

/* Body: zero internal padding so content sits flush with modal-content padding */
[id^="serviceModal"] .modal-body {
    padding: 0;
}

/* Larger, bolder modal title */
[id^="serviceModal"] .modal-title {
    font-size: 2rem;
    font-weight: 800;
}

/* Increased gap between description paragraph and bullet list */
[id^="serviceModal"] .modal-body p {
    margin-bottom: 24px;
}

/* Bullet list styling: solid circle markers, colored primary blue */
[id^="serviceModal"] .modal-body ul {
    list-style-type: disc;
    padding-left: 1.25rem;
    margin-bottom: 0;
}

[id^="serviceModal"] .modal-body ul li {
    margin-bottom: 12px;
    line-height: 1.6;
}

[id^="serviceModal"] .modal-body ul li:last-child {
    margin-bottom: 0;
}

[id^="serviceModal"] .modal-body ul li::marker {
    color: var(--color-primary);
    font-size: 1rem;
}
