:root {
    --primary-blue: #0f2947;
    --secondary-blue: #1f5f8f;
    --accent-orange: #f97316;
    --accent-orange-dark: #e55c0d;
    --light-gray: #f8fafc;
    --medium-gray: #e2e8f0;
    --dark-gray: #334155;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-soft: 0 20px 60px rgba(15, 41, 71, 0.12);
    --shadow-card: 0 12px 35px rgba(15, 41, 71, 0.08);
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
}

.logo-img {
    max-height: 75px;
    width: auto;
    transition: max-height 0.3s ease;
}

.eyebrow,
.section-kicker {
    align-items: center;
    color: var(--accent-orange);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    gap: 0.5rem;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-kicker {
    display: flex;
    justify-content: center;
}

.navbar {
    backdrop-filter: blur(18px);
    background-color: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 8px 30px rgba(15, 41, 71, 0.06);
    padding: 0.85rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.96);
    padding: 0.5rem 0;
}

.navbar.scrolled .logo-img {
    max-height: 55px;
}

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

.navbar-nav .nav-link {
    color: var(--dark-gray);
    font-weight: 600;
    margin: 0 0.5rem;
    transition: color 0.3s, transform 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--accent-orange);
    transform: translateY(-1px);
}

.btn-primary {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
    font-weight: 800;
    padding: 0.72rem 1.55rem;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--accent-orange-dark);
    border-color: var(--accent-orange-dark);
    transform: translateY(-2px);
}

.btn-outline-light {
    border-radius: 999px;
    font-weight: 800;
    padding: 0.72rem 1.55rem;
}

.hero {
    align-items: center;
    background:
        linear-gradient(90deg, rgba(8, 24, 39, 0.98) 0%, rgba(15, 41, 71, 0.92) 48%, rgba(15, 41, 71, 0.48) 100%),
        url('https://images.unsplash.com/photo-1531482615713-2afd69097998?auto=format&fit=crop&w=1920&q=85') center / cover no-repeat;
    color: var(--white);
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    padding: 9rem 0 6rem;
    position: relative;
}

.hero::before {
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    content: '';
    height: 100%;
    left: 0;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
    position: absolute;
    top: 0;
    width: 100%;
}

.hero::after {
    background: linear-gradient(to bottom, transparent, rgba(248, 250, 252, 0.98));
    bottom: 0;
    content: '';
    height: 180px;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
}

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

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    letter-spacing: -0.05em;
    line-height: 1.02;
    margin-bottom: 1.5rem;
    max-width: 760px;
}

.hero p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 650px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-metrics {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 760px;
}

.hero-metrics div {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.hero-metrics strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1.1;
}

.hero-metrics span {
    color: rgba(255, 255, 255, 0.72);
    display: block;
    font-size: 0.82rem;
    margin-top: 0.35rem;
}

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

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

@keyframes slideLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatParticle1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.6; }
    25% { transform: translate(30px, -40px) rotate(90deg); opacity: 0.3; }
    50% { transform: translate(-20px, -80px) rotate(180deg); opacity: 0.7; }
    75% { transform: translate(40px, -40px) rotate(270deg); opacity: 0.4; }
}

@keyframes floatParticle2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.5; }
    33% { transform: translate(-40px, -60px) rotate(120deg); opacity: 0.3; }
    66% { transform: translate(30px, -30px) rotate(240deg); opacity: 0.6; }
}

@keyframes floatParticle3 {
    0%, 100% { transform: translate(0, 0); opacity: 0.4; }
    50% { transform: translate(50px, -50px); opacity: 0.7; }
}

@keyframes glowPulse {
    0%, 100% { text-shadow: 0 0 10px rgba(249, 115, 22, 0.3); }
    50% { text-shadow: 0 0 25px rgba(249, 115, 22, 0.6); }
}

@keyframes rippleEffect {
    to { transform: scale(4); opacity: 0; }
}

@keyframes heroTextReveal {
    from { opacity: 0; transform: translateY(30px); filter: blur(8px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes shineSweep {
    0% { left: -100%; }
    100% { left: 200%; }
}

section {
    padding: 6rem 0;
}

.section-title {
    color: var(--primary-blue);
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.04em;
    margin: 0 auto 3rem;
    max-width: 820px;
    text-align: center;
}

.section-title::after {
    background: linear-gradient(90deg, var(--accent-orange), #fbbf24);
    border-radius: 999px;
    content: '';
    display: block;
    height: 4px;
    margin: 1rem auto;
    width: 80px;
}

.services,
.portfolio,
.final-cta {
    background-color: var(--light-gray);
}

.service-card,
.testimonial-card,
.contact-form {
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    height: 100%;
    padding: 2rem;
    transition: all 0.45s cubic-bezier(.2,.9,.2,1);
}

.service-card {
    text-align: left;
}

.service-card:hover,
.portfolio-item:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-10px);
}

.service-icon,
.contact-icon {
    align-items: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    display: flex;
    justify-content: center;
}

.service-icon {
    border-radius: 22px;
    font-size: 2rem;
    height: 80px;
    margin-bottom: 1.5rem;
    width: 80px;
}

.service-card h3 {
    color: var(--primary-blue);
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-muted);
}

.service-tag {
    background: #fff7ed;
    border-radius: 999px;
    color: #c2410c;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    margin-top: 0.5rem;
    padding: 0.35rem 0.75rem;
}

.services .row > div .service-card {
    opacity: 0;
    transform: translateX(-40px);
    transition: transform 0.6s cubic-bezier(.2,.9,.2,1), opacity 0.6s ease, box-shadow 0.45s cubic-bezier(.2,.9,.2,1);
    will-change: transform, opacity;
}

.services .row > div:nth-child(1) .service-card { transition-delay: 0s; }
.services .row > div:nth-child(2) .service-card { transition-delay: 0.08s; }
.services .row > div:nth-child(3) .service-card { transition-delay: 0.16s; }
.services .row > div:nth-child(4) .service-card { transition-delay: 0.24s; }

.services .row > div .service-card.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.services .row > div .service-card.animate-in:hover {
    transform: translateX(0) translateY(-10px);
}

.about-content {
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    display: flex;
    padding: 2rem;
}

.about-text {
    padding-right: 2rem;
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    align-items: flex-start;
    background: var(--light-gray);
    border-radius: var(--radius-md);
    display: flex;
    margin-bottom: 1rem;
    padding: 1rem;
}

.values-list i {
    color: var(--accent-orange);
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

.process {
    background: var(--white);
}

.process-step {
    background: #0f2947;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    color: var(--white);
    height: 100%;
    overflow: hidden;
    padding: 2rem;
    position: relative;
    transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s ease;
}

.process-step:hover {
    box-shadow: 0 25px 60px rgba(15, 41, 71, 0.25);
    transform: translateY(-8px);
}

.process-step:hover span {
    animation: glowPulse 2s ease-in-out infinite;
}

.process-step::after {
    background: rgba(249, 115, 22, 0.22);
    border-radius: 50%;
    content: '';
    height: 140px;
    position: absolute;
    right: -50px;
    top: -50px;
    width: 140px;
}

.process-step span {
    color: #fed7aa;
    display: inline-flex;
    font-weight: 900;
    letter-spacing: 0.12em;
    margin-bottom: 2.5rem;
}

.process-step h3 {
    font-size: 1.25rem;
}

.process-step p {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0;
}

.portfolio-item {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.portfolio-img {
    height: 250px;
    object-fit: cover;
    width: 100%;
}

.portfolio-overlay {
    align-items: center;
    background: linear-gradient(135deg, rgba(8, 24, 39, 0.92), rgba(249, 115, 22, 0.86));
    color: var(--white);
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    left: 0;
    opacity: 0;
    padding: 1.5rem;
    position: absolute;
    text-align: center;
    top: 0;
    transition: all 0.3s ease;
    width: 100%;
}

.portfolio-item:hover .portfolio-overlay,
.portfolio-item:focus-within .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    margin-bottom: 1.5rem;
}

.project-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover,
.project-card:focus-within {
    border-color: rgba(249, 115, 22, 0.35);
    box-shadow: var(--shadow-soft);
    transform: translateY(-8px);
}

.project-card-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.project-image {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    object-fit: cover;
    width: 100%;
}

.project-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.6rem;
}

.project-card-header i {
    color: var(--primary-blue);
    font-size: 1.35rem;
    opacity: 0.75;
}

.project-language {
    background: #fff7ed;
    border-radius: 999px;
    color: #c2410c;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 0.35rem 0.75rem;
}

.project-card h3 {
    color: var(--primary-blue);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.project-card p {
    color: var(--text-muted);
    flex: 1;
    margin-bottom: 1.5rem;
}

.project-actions,
.project-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.project-actions a,
.project-detail-button {
    align-items: center;
    background: transparent;
    border: 1px solid var(--medium-gray);
    border-radius: 999px;
    color: var(--primary-blue);
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 800;
    padding: 0.55rem 0.9rem;
    transition: all 0.3s ease;
}

.project-actions a:hover,
.project-actions a:focus,
.project-detail-button:hover,
.project-detail-button:focus {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

.project-modal-content {
    border: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.project-modal-image {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    margin-bottom: 1.5rem;
    object-fit: cover;
    width: 100%;
}

.project-modal-description {
    color: var(--primary-blue);
    font-size: 1.05rem;
    font-weight: 700;
}

.testimonial-card {
    margin: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-text::before {
    color: var(--accent-orange);
    content: '"';
    font-size: 3rem;
    left: -1rem;
    opacity: 0.3;
    position: absolute;
    top: -1rem;
}

.testimonial-author {
    align-items: center;
    display: flex;
}

.testimonial-avatar {
    border-radius: 50%;
    height: 50px;
    margin-right: 1rem;
    object-fit: cover;
    width: 50px;
}

.testimonial-info h5 {
    margin-bottom: 0.25rem;
}

.testimonial-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.form-label {
    color: var(--primary-blue);
    font-size: 0.88rem;
    font-weight: 800;
}

.form-control,
.form-select {
    border: 1px solid var(--medium-gray);
    border-radius: 12px;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 0.2rem rgba(249, 115, 22, 0.2);
}

.contact-info {
    padding-left: 2rem;
    position: sticky;
    top: 110px;
}

.contact-item {
    align-items: flex-start;
    display: flex;
    margin-bottom: 2rem;
}

.contact-icon {
    border-radius: 16px;
    flex-shrink: 0;
    font-size: 1.25rem;
    height: 50px;
    margin-right: 1rem;
    width: 50px;
}

.map-container {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    margin-top: 3rem;
    overflow: hidden;
}

.form-note {
    color: var(--text-muted);
    display: inline-block;
    font-size: 0.9rem;
    margin: 0 0 0 1rem;
}

.final-cta {
    padding: 4rem 0;
}

.final-cta-box {
    align-items: center;
    background:
        radial-gradient(circle at 90% 12%, rgba(249, 115, 22, 0.22), transparent 22%),
        linear-gradient(135deg, #081827, var(--primary-blue));
    border-radius: 32px;
    box-shadow: var(--shadow-soft);
    color: var(--white);
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    padding: 3rem;
}

.final-cta-box h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.04em;
    line-height: 1.05;
    max-width: 720px;
}

.final-cta-box p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0;
    max-width: 640px;
}

footer {
    background: #081827;
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-brand {
    display: inline-flex;
    margin-bottom: 1rem;
}

.footer-links h5 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

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

.footer-links li {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--accent-orange);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    display: inline-flex;
    height: 40px;
    justify-content: center;
    transition: all 0.3s;
    width: 40px;
}

.social-links a:hover,
.social-links a:focus {
    background: var(--accent-orange);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
    background: linear-gradient(90deg, var(--accent-orange), #fbbf24, var(--accent-orange));
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
    height: 3px;
    left: 0;
    position: fixed;
    top: 0;
    width: 0%;
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ===== HERO PARTICLES ===== */
.hero-particles {
    height: 100%;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 0;
}

.particle {
    border-radius: 50%;
    position: absolute;
    will-change: transform, opacity;
}

.particle:nth-child(1) {
    animation: floatParticle1 12s ease-in-out infinite;
    background: rgba(249, 115, 22, 0.25);
    height: 8px;
    left: 10%;
    top: 20%;
    width: 8px;
}

.particle:nth-child(2) {
    animation: floatParticle2 15s ease-in-out infinite;
    background: rgba(77, 164, 255, 0.2);
    height: 12px;
    left: 75%;
    top: 15%;
    width: 12px;
}

.particle:nth-child(3) {
    animation: floatParticle3 10s ease-in-out infinite;
    background: rgba(249, 115, 22, 0.15);
    height: 6px;
    left: 60%;
    top: 60%;
    width: 6px;
}

.particle:nth-child(4) {
    animation: floatParticle1 18s ease-in-out infinite reverse;
    background: rgba(255, 255, 255, 0.1);
    height: 14px;
    left: 30%;
    top: 70%;
    width: 14px;
}

.particle:nth-child(5) {
    animation: floatParticle2 14s ease-in-out infinite;
    background: rgba(251, 191, 36, 0.15);
    height: 10px;
    left: 85%;
    top: 40%;
    width: 10px;
}

.particle:nth-child(6) {
    animation: floatParticle3 16s ease-in-out infinite reverse;
    background: rgba(77, 164, 255, 0.12);
    height: 16px;
    left: 5%;
    top: 50%;
    width: 16px;
}

.particle:nth-child(7) {
    animation: floatParticle1 20s ease-in-out infinite;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 3px;
    height: 8px;
    left: 50%;
    top: 30%;
    transform: rotate(45deg);
    width: 8px;
}

.particle:nth-child(8) {
    animation: floatParticle2 13s ease-in-out infinite reverse;
    background: rgba(255, 255, 255, 0.08);
    height: 20px;
    left: 20%;
    top: 85%;
    width: 20px;
}

/* ===== CURSOR GLOW ===== */
.cursor-glow {
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    height: 350px;
    left: 50%;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease;
    width: 350px;
    z-index: 0;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
    will-change: opacity, transform;
}

.reveal.reveal-fade-up {
    transform: translateY(50px);
}

.reveal.reveal-fade-down {
    transform: translateY(-30px);
}

.reveal.reveal-slide-left {
    transform: translateX(-60px);
}

.reveal.reveal-slide-right {
    transform: translateX(60px);
}

.reveal.reveal-scale {
    transform: scale(0.85);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Stagger delays for grouped elements */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== HERO TEXT REVEAL ===== */
.hero-text-reveal {
    animation: heroTextReveal 0.9s var(--transition-smooth) both;
}

.hero-text-reveal:nth-child(1) { animation-delay: 0.1s; }
.hero-text-reveal:nth-child(2) { animation-delay: 0.3s; }
.hero-text-reveal:nth-child(3) { animation-delay: 0.5s; }
.hero-text-reveal:nth-child(4) { animation-delay: 0.7s; }
.hero-text-reveal:nth-child(5) { animation-delay: 0.9s; }

/* ===== WAVE DIVIDERS ===== */
.wave-divider {
    line-height: 0;
    margin-top: -1px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.wave-divider svg {
    display: block;
    height: 60px;
    width: 100%;
}

.wave-divider.wave-flip {
    transform: scaleY(-1);
    margin-top: 0;
    margin-bottom: -1px;
}

/* ===== ENHANCED SERVICE CARD HOVER ===== */
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
    transition: transform 0.4s var(--transition-bounce);
}

.service-card .service-icon {
    transition: transform 0.4s var(--transition-smooth);
}

/* Shine sweep on service cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    content: '';
    height: 100%;
    left: -100%;
    position: absolute;
    top: 0;
    width: 60%;
    transition: none;
}

.service-card:hover::after {
    animation: shineSweep 0.6s ease forwards;
}

/* ===== ENHANCED PROJECT CARD HOVER ===== */
.project-card .project-image {
    transition: transform 0.5s var(--transition-smooth);
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-card {
    overflow: hidden;
}

/* ===== BUTTON SHINE SWEEP ===== */
.btn-primary {
    overflow: hidden;
    position: relative;
}

.btn-primary::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    content: '';
    height: 100%;
    left: -100%;
    position: absolute;
    top: 0;
    width: 60%;
    transition: none;
}

.btn-primary:hover::after {
    animation: shineSweep 0.5s ease forwards;
}

/* ===== BUTTON RIPPLE ===== */
.btn-ripple-wave {
    animation: rippleEffect 0.6s ease-out;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    height: 20px;
    margin: -10px 0 0 -10px;
    pointer-events: none;
    position: absolute;
    transform: scale(0);
    width: 20px;
}

/* ===== ANIMATED GRADIENT CTA ===== */
.final-cta-box {
    background:
        radial-gradient(circle at 90% 12%, rgba(249, 115, 22, 0.22), transparent 22%),
        radial-gradient(circle at 10% 80%, rgba(77, 164, 255, 0.15), transparent 25%),
        linear-gradient(135deg, #081827, var(--primary-blue), #1a4a6e, var(--primary-blue), #081827);
    background-size: 100% 100%, 100% 100%, 300% 300%;
    animation: gradientShift 8s ease infinite;
}

/* ===== COUNTER ANIMATION ===== */
.hero-metrics .count-number {
    display: block;
    font-size: 1.35rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

/* ===== VALUES LIST ANIMATION ===== */
.values-list li {
    transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s ease;
}

.values-list li:hover {
    box-shadow: 0 8px 25px rgba(15, 41, 71, 0.1);
    transform: translateX(8px);
}

/* ===== CONTACT ITEM HOVER ===== */
.contact-item {
    border-radius: var(--radius-md);
    padding: 0.75rem;
    transition: background 0.3s ease, transform 0.3s var(--transition-smooth);
}

.contact-item:hover {
    background: var(--light-gray);
    transform: translateX(5px);
}

/* ===== NAVBAR ACTIVE LINK INDICATOR ===== */
.navbar-nav .nav-link {
    position: relative;
}

.navbar-nav .nav-link::after {
    background: var(--accent-orange);
    border-radius: 999px;
    bottom: -4px;
    content: '';
    height: 3px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%) scaleX(0);
    transition: transform 0.3s var(--transition-smooth);
    width: 20px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* ===== SOCIAL LINKS ENHANCED ===== */
.social-links a {
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    content: '';
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    transform: scale(0);
    transition: transform 0.3s var(--transition-smooth);
    width: 100%;
}

.social-links a:hover::before {
    transform: scale(1.5);
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }

    .about-text {
        margin-bottom: 2rem;
        padding-right: 0;
    }

    .contact-info {
        margin-top: 3rem;
        padding-left: 0;
        position: static;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .final-cta-box {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hero {
        background:
            linear-gradient(rgba(8, 24, 39, 0.9), rgba(15, 41, 71, 0.88)),
            url('https://images.unsplash.com/photo-1531482615713-2afd69097998?auto=format&fit=crop&w=1200&q=82') center / cover no-repeat;
        min-height: auto;
        padding: 7rem 0 4rem;
    }

    section {
        padding: 4rem 0;
    }

    .hero-actions,
    .hero-actions .btn {
        width: 100%;
    }

    .hero-actions .btn {
        justify-content: center;
    }

    .about-content,
    .contact-form,
    .final-cta-box {
        padding: 1.5rem;
    }

    .form-note {
        display: block;
        margin: 1rem 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .services .row > div .service-card {
        opacity: 1 !important;
        transform: none !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-text-reveal {
        animation: none !important;
        opacity: 1 !important;
    }

    .hero-particles,
    .cursor-glow,
    .scroll-progress {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .services .row > div .service-card {
        opacity: 1 !important;
        transform: none !important;
        transition-delay: 0s !important;
    }
}
