/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
 */
:root {
    --brand: #FF7425;
    --focus-ring: #FF7425;
}

.focus\:border-myorange:focus {
  border-color: #FF7425; /* your custom orange */
}
.bg-myorange {
  background-color: #FF7425;
}
/* Hover background custom color */
.bg-myorange:hover {
  background-color: #e6651a;
}
#portfolio-modal-intro a:hover {
	color:var(--brand);
}

/* #portfolio-modal-intro p , #portfolio-modal-solution p {
	margin-bottom: 1rem;
}
 */

* {
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Make in-page anchors land below fixed header */
section[id],
header[id],
main[id],
div[id] {
    scroll-margin-top: 6.5rem;
}

/* WCAG: always-visible keyboard focus (override utility classes) */
:where(a, button, input, textarea, select, summary, [role="button"], [tabindex]):focus-visible {
    outline: 3px solid var(--focus-ring) !important;
    outline-offset: 3px !important;
}

/* Improve focus on dark backgrounds */
:where(.bg-black, .bg-\[\#0B0B0B\]) :where(a, button, input, textarea, select, summary, [role="button"], [tabindex]):focus-visible {
    outline-color: #ffffff !important;
}

/* Skip link (keyboard) */
.skip-link {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 9999;
    padding: 0.75rem 1rem;
    background: #ffffff;
    color: #111827;
    border: 2px solid var(--brand);
    transform: translateY(-200%);
    transition: transform 0.2s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
}

.hero-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-content-wrapper {
    position: relative;
    z-index: 3;
}

.btn-primary {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 116, 37, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 116, 37, 0.6);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu {
    transition: all 0.3s ease;
}

#back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top:hover {
    transform: translateY(-3px);
}

#main-nav {
    transition: transform 0.3s ease-in-out;
}

#main-nav.nav-hidden {
    transform: translateY(-100%);
}

.text-carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.text-carousel {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item {
    position: absolute;
    width: 100%;
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: carousel 9s infinite;
    padding: 0 1rem;
    white-space: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
}

.carousel-item:hover {
    text-decoration: underline;
}

.carousel-arrow {
    color: var(--brand);
    font-weight: 700;
}

.carousel-item:nth-child(1) {
    animation-delay: 0s;
}

.carousel-item:nth-child(2) {
    animation-delay: 2.7s;
}

.carousel-item:nth-child(3) {
    animation-delay: 5.4s;
}

@keyframes carousel {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    3% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    28% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    33% {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }
    33.01%, 100% {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
}

/* Project Cards */
.project-card {
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
	transition: all 0.3s ease;
}

/* .project-card:hover .aspect-video {
    background-color: #e5e7eb;
} */

/* Service Cards */
.service-card {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.service-card:hover,
.service-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
    border-color: rgba(255, 116, 37, 0.55);
}

/* About Us focus cards (Microsoft / Enterprise / Python / Ecommerce) */
.about-focus-card {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease;
}

.about-focus-card:hover,
.about-focus-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(255, 116, 37, 0.55);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

/* Technology stack items (Stack highlights + View full stack) */
#technology [title],
#technology details .border.border-gray-200.bg-gray-50.p-3 {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

#technology [title]:hover,
#technology details .border.border-gray-200.bg-gray-50.p-3:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 116, 37, 0.70);
    background-color: rgba(255, 116, 37, 0.08);
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.10);
}

/* Modal scrolling (mobile-friendly) */
.modal-scroll {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Reduced motion: stop auto animations and hover movement */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .btn-primary:hover,
    .project-card:hover,
    .service-card:hover,
    .about-focus-card:hover,
    #technology [title]:hover,
    #technology details .border.border-gray-200.bg-gray-50.p-3:hover,
    #back-to-top:hover {
        transform: none !important;
    }

    .text-carousel-container {
        height: auto !important;
    }

    .text-carousel {
        display: block !important;
        height: auto !important;
    }

    .carousel-item {
        position: static !important;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        display: block !important;
        padding: 0.25rem 0 !important;
    }
}

.wpcf7-submit {
	    cursor: pointer;
}
.wpcf7-spinner {
    position: absolute;
    bottom: -25px;
	margin:0 !important;
}