:root {
    --primary-blue: #0062ff;
    --dark-blue: #0a192f;
    --text-main: #1a1d23;
    --text-secondary: #4a5568;
    --bg-light: #f8fafc;
    --stroke: rgba(0, 0, 0, 0.08);
    --dot-red: #ff3e00;
    --text-dark: #1a1d23;
    --border-color: rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: #fff;
    scroll-behavior: smooth;
}

@media (max-width: 576px) {
    .process-card {
        padding: 20px 15px !important;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

/* Modal container with image and text */
.overlay-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1; /* Fill rest of height */
    width: 90%;
    padding-bottom: 40px;
}

/* Mobile version */
@media (max-width: 768px) {
    .overlay-container {
        justify-content: center;
        padding-bottom: 120px !important;
    }
	
    .overlay-img-box {
        align-items: center;
    }
	
	.modal-arrow .material-icons {
        font-size: 3rem; /* Smaller arrows */
    }
	
	.close-overlay {
        padding: 0px 0px !important;
		top: 16px !important;
		right: 16px !important;
    }
	
    .modal-arrow.is-visible {
        display: flex !important;
    }

    .modal-prev {
        left: 15% !important;
    }

    .modal-next {
        right: 15% !important;
    }
	

    /* Mobile dots */
    .overlay-dots {
        position: absolute !important;
        bottom: 45px !important;
        left: 0;
        width: 100% !important;
        margin: 0 !important;
        display: flex !important;
        justify-content: center !important;
        pointer-events: none;
    }
	
    .overlay-dot {
        pointer-events: auto; /* Clickable dots */
    }

    #overlay-img {
        max-height: 60vh !important;
    }
	
    .contact-avatar {
        width: 200px;
        height: 200px;
    }
    .contact-item {
        padding: 12px 15px;
    }
}

/* Smaller desktop --- */
@media (max-width: 1280px) {
    .modal-arrow {
        bottom: 30px !important;
        position: absolute !important;
        top: auto !important;
        transform: none !important;
        z-index: 10005;
        width: 50px !important;
        height: 50px !important;
        border-radius: 50% !important;
        align-items: center;
        justify-content: center;
		
    }
	
    .modal-arrow.is-visible {
        display: flex !important;
    }
}

@media (min-width: 992px) {
    .contact-content-col {
        padding-left: 40px !important; 
    }
}

::selection {
	background-color: var(--primary-blue);
    color: #ffffff;
}
::-moz-selection {
	background-color: var(--primary-blue);
    color: #ffffff;
}

/* Marker Stroke */
.marker-stroke {
    position: relative;
    font-weight: 700;
    z-index: 1;
    white-space: nowrap;
}
.marker-stroke::after {
    content: "";
    position: absolute;
    left: -2px;
    bottom: -4px; 
    width: 104%;
    height: 18%; 
    background-color: rgba(0, 98, 255, 0.2);
    z-index: -1;
    transform: rotate(-1.2deg);
    border-radius: 5px;
    clip-path: polygon(0% 15%, 15% 0%, 85% 10%, 100% 0%, 95% 85%, 80% 100%, 15% 90%, 0% 100%);
}

/* Navbar */
.navbar { 
    padding: 15px 0; 
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}
.navbar.navbar-scrolled {
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.98);
}

.jd-logo {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--text-dark) !important;
    position: relative;
    display: inline-block;
    text-decoration: none !important;
}

.jd-logo .dot {
    color: var(--primary);
    display: inline-block;
	transition: transform 0.4s ease-out, color 0.3s ease;
    transform: translateY(0);
}
.jd-logo:hover .dot {
    color: #ff3e00;
    transform: translateY(-1.0rem) scale(1.3);
}

/* Navbar Links */
.nav-link {
    font-weight: 500;
    color: var(--text-secondary) !important;
    margin-left: 15px;
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    transition: 0.2s ease;
}
.nav-link:hover {
    font-weight: 600 !important;
    color: var(--text-dark) !important;
}
.nav-link::after {
    display: block;
    content: attr(data-text);
    font-weight: 700;
    height: 0;
    overflow: hidden;
    visibility: hidden;
}
.nav-link.active {
    font-weight: 700 !important;
    color: var(--text-dark) !important;
}
.nav-link.active::before {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-blue);
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
}
.profile-image {
    width: 100%;
    max-width: 320px;
    border-radius: 300px;
    border: 1px solid var(--stroke);
}

/* Cards */
.process-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--stroke);
    cursor: default;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.process-card:hover {
	border-color: rgba(98, 98, 98, 0.2);
    box-shadow: inset 0 0 10px rgba(0, 98, 255, 0.05);
}

.process-icon {
    width: 44px;
    height: 44px;
    background: rgba(0, 98, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    margin-bottom: 16px;
    transition: background 0.3s ease;
}

.process-icon i {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-size: 24px;
}

/* Case Study & Badges */
.case-study {
    padding: 40px 0;
}
.badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}
.rounded-lg { border-radius: 20px !important; }

.case-study-gallery {
    position: relative;
    width: 100%;
}

.gallery-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
    border: 1px solid var(--border-color);
	background: #fff;
    transition: border-color 0.3s ease;
}

/* Gallery shadow */
.gallery-img-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    pointer-events: none; /* Allow click propagation */
    box-shadow: inset 0 0 0px rgba(255, 255, 255, 0);
    transition: box-shadow 0.3s ease;
    z-index: 1;
}

.gallery-img-wrapper:hover {
    border-color: rgba(0, 98, 255, 0.7);
}

.gallery-img-wrapper:hover::after {
    box-shadow: inset 0 0 25px rgba(255, 255, 255, 0.7);
}

.gallery-img {
    display: none;
    width: 100%;
    height: auto;
    cursor: zoom-in;
}

.gallery-img.active {
    display: block;
    animation: fadeEffect 0.3s ease-in-out; /* */
}

/* Carousel Track */
.gallery-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.gallery-slider-img {
    min-width: 100%;
    height: auto;
	max-height: 420px;
	object-fit: cover;
    cursor: zoom-in;
}

.gallery-top-img-align {
	object-fit: contain !important;
}

@keyframes fadeEffect {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Slider gallery arrows */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 1.0);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.1s ease, background-color 0.1s ease;
    cursor: pointer;
    z-index: 2;
}

.gallery-img-wrapper:hover .gallery-arrow {
    opacity: 1;
}

.gallery-arrow:hover {
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.prev-arrow { left: 15px; }
.next-arrow { right: 15px; }

/* Slider dots */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d1d5db;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s;
}

.gallery-dot:hover {
    background-color: #9ca3af;
    transform: scale(1.2);
}

.gallery-dot.active {
    background-color: var(--primary-blue);
}

/* Back to top button */
#btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
	display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transform: scale(0); 
    pointer-events: none;
    transition: transform 0.2s linear, opacity 0.2s linear, visibility 0.2s linear !important;
}
#btn-back-to-top.visible {
	opacity: 1;
    transform: scale(1);
    pointer-events: all;
}
#btn-back-to-top:focus, #btn-back-to-top:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Utility */
.underline-short {
    width: 40px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 2px;
    margin-top: 15px;
}
.underline-short-modal {
    width: 40px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 2px;
    margin-bottom: 16px;
}
.font-weight-800 { font-weight: 800; }
.btn-primary { transition: none !important; }
.btn-primary:hover { transition: none !important; }
.btn-primary .material-icons { font-size: 20px; transition: none !important; }

/* Fullscreen image overlay / Modal */
.modal-viewport {
    width: 80vw;
    height: 70vh;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.modal-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-out;
    align-items: center;
}

.modal-track img {
    min-width: 80vw;
    max-height: 70vh;
    object-fit: contain;
    padding: 0 20px;
}

.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(100px);
    display: none;
    z-index: 2000;
    justify-content: center;
    align-items: center;
	
    flex-direction: column; 
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
	overflow: hidden;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    height: 90%;
    cursor: default;
}

#overlay-caption {
    color: var(--text-main);
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 0.5px;
    transition: opacity 0.4s ease-in-out;
}

#overlay-img {
    max-width: 100%;
	max-height: calc(100vh - 250px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transition: opacity 0.4s ease-in-out;
}

/* Disable border-dots selection on click */
.gallery-dot, 
.overlay-dot, 
.gallery-arrow, 
.modal-arrow,
.close-overlay {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

/* Modal navigation elements */
.close-overlay {
	align-self: flex-end;
    padding: 20px 40px;
    padding-bottom: 0px !important;
    position: sticky;
	
    right: 16px;
    color: #000;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: opacity 0.2s, color 0.2s;
    z-index: 2001;
}

.close-overlay .material-icons {
    font-size: 3rem !important;
    font-weight: normal;
}

.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #000;
    cursor: pointer;
    padding: 20px;
    z-index: 2001;
    transition: opacity 0.2s, transform 0.2s;
}

.modal-arrow .material-icons {
    font-size: 4rem;
}

.modal-prev { left: 2%; }
.next-arrow, .modal-next { right: 2%; }

.close-overlay:hover, 
.modal-arrow:hover { 
    opacity: 0.5;
}

/* Modal dots */
.overlay-dots {
    display: flex;
	justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.overlay-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d1d5db;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.overlay-dot.active {
    background-color: var(--primary-blue);
}


/* Contact */
.contact-avatar {
    width: 100%;
    max-width: 320px;
    height: auto;
    object-fit: cover;
    border-radius: 300px;
    background-color: white;
    border: 1px solid var(--stroke);
	
}

.contact-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.contact-avatar-wrapper::before {
    content: "";
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    background: var(--primary-blue);
    opacity: 0.1;
    border-radius: 30px;
    z-index: -1;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    background: white;
    border: 1px solid var(--stroke);
    border-radius: 16px;
    text-decoration: none !important;
    color: inherit;
    transition: all 0.3s ease;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 98, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    transition: background 0.3s ease;
}

.contact-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--text-secondary);
}

.contact-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.contact-item:hover {
    border-color: rgba(98, 98, 98, 0.2);
    box-shadow: inset 0 0 10px rgba(0, 98, 255, 0.05);
}

/* LinkedIn link */
.linkedin-link {
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
    transition: color 0.3s ease;
}

.linkedin-link:hover {
    box-shadow: 0 1px 0 0 #000;
    color: #000;
}

/* Copy button */
.copy-btn {
    margin-left: auto;
    background: transparent;
    border: none;
	color: #868e96;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    position: relative;
    outline: none !important;
}

.contact-item:hover .copy-btn {
    opacity: 1;
}

.copy-btn:hover {
    color: #495057;
    background-color: rgba(0, 0, 0, 0.05);
}

/* Tooltip copied */
.copy-tooltip {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.copy-tooltip.show {
    opacity: 1;
}

/* Footer */
.footer {
    background-color: var(--dark-blue);
    color: #fff;
    padding: 100px 0 50px;
}

.footer-link {
    color: white !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-arrow {
    font-size: 18px;
    color: var(--primary-blue);
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.footer-link:hover {
    color: white !important;
	font-weight: 700;
}

.footer-link:hover .footer-arrow {
    transform: translateX(4px);
}

/* Footer logo */
.jd-logo.footer-logo-massive {
    font-size: 6rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.07) !important;
    text-decoration: none !important;
    line-height: 0.8;
    display: inline-block;
    position: relative;
    transition: color 0.5s ease;
    user-select: none;
    cursor: pointer;
}

/* Logo dot */
.jd-logo.footer-logo-massive .dot {
    color: var(--primary-blue);
    display: inline-block;
    opacity: 0.4;
    transition: transform 0.5s ease-out, color 0.5s ease, opacity 0.5s ease;
    transform: translateY(0);
}

.jd-logo.footer-logo-massive:hover {
    color: rgba(255, 255, 255, 0.15);
}

.jd-logo.footer-logo-massive:hover .dot {
    color: #ff3e00;
    opacity: 1;
    transform: translateY(-3.5rem);
}

/* Mobile responsive */
@media (max-width: 991px) {
    .jd-logo.footer-logo-massive {
        font-size: 4.5rem;
    }
    .jd-logo.footer-logo-massive:hover .dot {
        transform: translateY(-2.5rem);
    }
	
	.nav-link {
		margin-left: 0px;
		margin-top: 12px
	}
		
	.nav-link::after {
		display: block;
		content: '';
	}
}

/* Case studies spacing */
.project-section {
    padding-top: 64px;
    padding-bottom: 64px;
}

@media (max-width: 768px) {
    .project-section {
        padding-top: 50px;
        padding-bottom: 50px;
    }
}

.contact-icon {
    display: flex;
}

@media (max-width: 640px) {
    .contact-icon {
        display: none;
    }
	
	.contact-value {
        font-size: 0.9rem;
    }
	
	.modal-arrow {
        bottom: 70px !important;
    }
}

/* Hide arrows in gallery previews */
@media (max-width: 960px) {
    .case-study-gallery .gallery-arrow {
        display: none !important;
    }
}