/* Variables and Global Styles */
:root {
    --primary-bg: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --card-bg: #f8f9fc;
    --border-color: #eaeaea;
    --blue-gradient: linear-gradient(90deg, rgba(133, 177, 255, 1) 2%, rgba(0, 81, 255, 1) 46%, rgba(133, 177, 255, 1) 100%);
    --blue-solid: #85b1ff;
    --nav-bg: #f3f4f6; /* Light gray for the pill navigation */
    --theme-gradient-button: linear-gradient(89.58deg, #3186FF .28%, #346BF0 44.45%, #4EA0FF 99.55%);
}

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

body {
    font-family: 'Google Sans', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography & Utility */
.highlight {
    background: var(--blue-solid);
    background: var(--blue-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Floating Navigation Bar (Pill shaped) */
.floating-nav {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 600px;
    display: flex;
    justify-content: center;
}

.nav-container {
    background-color: var(--nav-bg);
    padding: 0.5rem;
    border-radius: 50px;
    display: flex;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0,0,0,0.02);
}

.nav-item {
    background: transparent;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-item:hover {
    color: var(--text-main);
}

.nav-item.active {
    background: var(--blue-gradient);
    color: white;
    box-shadow: 0 4px 10px rgba(30, 144, 255, 0.3);
}

/* Page Sections */
.page-section {
    display: none;
    min-height: 100vh;
    padding-top: 8rem;
    padding-bottom: 4rem;
    animation: fadeIn 0.4s ease-in-out;
}

.page-section.active-section {
    display: block;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--blue-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--blue-solid);
    color: var(--blue-solid);
}

/* Hero / Home Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    min-height: calc(100vh - 12rem);
}

.hero-content {
    flex: 1;
}

.greeting {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.name {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.role {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.bio {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.skills-container {
    margin-bottom: 2.5rem;
}

.skills-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.expertise-tag {
    position: relative;
    padding: 0.7rem 1.4rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    z-index: 1;
}

.expertise-tag i {
    color: var(--blue-solid);
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.expertise-tag::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--theme-gradient-button);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    border-radius: 100px;
}

.expertise-tag:hover {
    color: #ffffff;
    transform: translateY(-3px) scale(1.03);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(52, 107, 240, 0.3);
}

.expertise-tag:hover::before {
    opacity: 1;
}

.expertise-tag:hover i {
    color: #ffffff;
    transform: rotate(10deg) scale(1.2);
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.image-wrapper {
    width: 400px;
    height: 400px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transform: rotate(3deg);
    transition: transform 0.4s ease;
}

.image-wrapper:hover {
    transform: rotate(0deg) scale(1.02);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Services, Projects & Process Section */
.service-card:hover, .project-card:hover {
    transform: translateY(-5px);
    border-color: var(--blue-solid) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

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

.gradient-btn {
    background: var(--theme-gradient-button);
    color: #ffffff !important;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.gradient-btn i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.project-card:hover .gradient-btn {
    box-shadow: 0 4px 15px rgba(52, 107, 240, 0.4);
    transform: translateY(-2px);
}

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

.project-card:hover .project-icon {
    transform: scale(1.15) rotate(8deg);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.process-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center top, rgba(50, 125, 250, 0.15), transparent 60%);
    pointer-events: none;
}

.process-step .step-number {
    background: var(--blue-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blob {
    position: absolute;
    width: 450px;
    height: 450px;
    background: var(--blue-gradient);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    z-index: 1;
    filter: blur(40px);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Pricing Section */
.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.pricing-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem 2rem;
    width: calc(50% - 1rem);
    min-width: 300px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: rgba(30, 144, 255, 0.3);
}

.pricing-card.popular {
    border: 2px solid var(--blue-solid);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(30, 144, 255, 0.1);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue-gradient);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(30, 144, 255, 0.3);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.plan-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    min-height: 50px;
}

.features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: var(--text-main);
}

.features li::before {
    content: "✓";
    color: var(--blue-solid);
    font-weight: bold;
    margin-right: 10px;
    background: rgba(30, 144, 255, 0.1);
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
}

.plan-btn {
    width: 100%;
}

.hidden-plan {
    display: none;
}

.hidden-plan.show {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

.view-more-container {
    width: 100%;
    text-align: center;
    margin-top: 3rem;
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 4rem;
    background: white;
    border-radius: 24px;
    padding: 4rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.info-card .icon {
    font-size: 2rem;
    background: var(--card-bg);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.info-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

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

.contact-form {
    flex: 1.5;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--card-bg);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-solid);
    background: white;
    box-shadow: 0 0 0 4px rgba(30, 144, 255, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 2rem;
    }
    
    .bio {
        margin: 0 auto 2.5rem;
    }

    .skills-grid {
        justify-content: center;
    }

    .cta-group {
        justify-content: center;
    }

    .pricing-card {
        width: calc(50% - 1rem);
    }
    
    .contact-content {
        flex-direction: column;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .name {
        font-size: 3.5rem;
    }
    
    .role {
        font-size: 1.5rem;
    }

    .image-wrapper {
        width: 300px;
        height: 300px;
    }

    .blob {
        width: 350px;
        height: 350px;
    }

    .pricing-card {
        width: 100%;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }

    .floating-nav {
        width: 95%;
    }
    
    .nav-item {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 3rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.modal-step.active {
    display: block;
}

.step-indicator {
    font-size: 0.9rem;
    color: var(--blue-solid);
    font-weight: 700;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.modal-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

.modal-input:focus {
    outline: none;
    border-color: var(--blue-solid);
    background: white;
}

.modal-select {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
    appearance: none;
    cursor: pointer;
}

.modal-btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-btn {
    flex: 1;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    background: transparent;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    border-color: var(--blue-solid);
    background: rgba(30, 144, 255, 0.05);
}

/* Trust Section */
.trust-section {
    margin-top: -2rem;
    padding-bottom: 4rem;
}

.trust-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tech-stack-banner {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    overflow: hidden;
}

.tech-stack-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.tech-marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.tech-marquee::before, .tech-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50px;
    height: 100%;
    z-index: 2;
}
.tech-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--card-bg), transparent);
}
.tech-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--card-bg), transparent);
}

.tech-marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.tech-marquee-content img {
    height: 40px;
    margin-right: 3rem;
    vertical-align: middle;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
}

.tech-marquee-content img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

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

@media (max-width: 768px) {
    .trust-stats {
        gap: 1.5rem;
    }
    .stat-value {
        font-size: 1.5rem;
    }
}

/* Animated Send Message Button */
.send-msg-btn {
  --primary: var(--blue-solid);
  --neutral-1: #f7f8f7;
  --neutral-2: #e7e7e7;
  --radius: 14px;

  cursor: pointer;
  border-radius: var(--radius);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  border: none;
  box-shadow: 0 0.5px 0.5px 1px rgba(255, 255, 255, 0.2),
    0 10px 20px rgba(0, 0, 0, 0.2), 0 4px 5px 0px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  min-width: 200px;
  padding: 20px;
  height: 68px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-style: normal;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  background: white; /* to ensure it has a base */
  width: 100%; /* fit form */
  margin-top: 1rem;
}
.send-msg-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 1px 2px rgba(255, 255, 255, 0.3),
    0 15px 30px rgba(0, 0, 0, 0.3), 0 10px 3px -3px rgba(0, 0, 0, 0.04);
}
.send-msg-btn:active {
  transform: scale(1);
  box-shadow: 0 0 1px 2px rgba(255, 255, 255, 0.3),
    0 10px 3px -3px rgba(0, 0, 0, 0.2);
}
.send-msg-btn:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 2.5px solid transparent;
  background: linear-gradient(var(--neutral-1), var(--neutral-2)) padding-box,
    linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45))
      border-box;
  z-index: 0;
  transition: all 0.4s ease;
}
.send-msg-btn:hover::after {
  transform: scale(1.05, 1.1);
  box-shadow: inset 0 -1px 3px 0 rgba(255, 255, 255, 1);
}
.send-msg-btn::before {
  content: "";
  inset: 7px 6px 6px 6px;
  position: absolute;
  background: linear-gradient(to top, var(--neutral-1), var(--neutral-2));
  border-radius: 30px;
  filter: blur(0.5px);
  z-index: 2;
}
.send-msg-btn .state p {
  display: flex;
  align-items: center;
  justify-content: center;
}
.send-msg-btn .state .icon {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  transform: scale(1.25);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.send-msg-btn .state .icon svg {
  overflow: visible;
}

/* Outline */
.send-msg-btn .outline {
  position: absolute;
  border-radius: inherit;
  overflow: hidden;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  inset: -2px -3.5px;
}
.send-msg-btn .outline::before {
  content: "";
  position: absolute;
  inset: -100%;
  background: conic-gradient(
    from 180deg,
    transparent 60%,
    white 80%,
    transparent 100%
  );
  animation: spin 2s linear infinite;
  animation-play-state: paused;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.send-msg-btn:hover .outline {
  opacity: 1;
}
.send-msg-btn:hover .outline::before {
  animation-play-state: running;
}

/* Letters */
.send-msg-btn .state p span {
  display: block;
  opacity: 0;
  animation: slideDown 0.8s ease forwards calc(var(--i) * 0.03s);
}
.send-msg-btn:hover p span {
  opacity: 1;
  animation: wave 0.5s ease forwards calc(var(--i) * 0.02s);
}
.send-msg-btn.is-sent p span {
  opacity: 1;
  animation: disapear 0.6s ease forwards calc(var(--i) * 0.03s);
}
@keyframes wave {
  30% { opacity: 1; transform: translateY(4px) translateX(0) rotate(0); }
  50% { opacity: 1; transform: translateY(-3px) translateX(0) rotate(0); color: var(--primary); }
  100% { opacity: 1; transform: translateY(0) translateX(0) rotate(0); }
}
@keyframes slideDown {
  0% { opacity: 0; transform: translateY(-20px) translateX(5px) rotate(-90deg); color: var(--primary); filter: blur(5px); }
  30% { opacity: 1; transform: translateY(4px) translateX(0) rotate(0); filter: blur(0); }
  50% { opacity: 1; transform: translateY(-3px) translateX(0) rotate(0); }
  100% { opacity: 1; transform: translateY(0) translateX(0) rotate(0); }
}
@keyframes disapear {
  from { opacity: 1; }
  to { opacity: 0; transform: translateX(5px) translateY(20px); color: var(--primary); filter: blur(5px); }
}

/* Plane */
.send-msg-btn .state--default .icon svg {
  animation: land 0.6s ease forwards;
}
.send-msg-btn:hover .state--default .icon {
  transform: rotate(45deg) scale(1.25);
}
.send-msg-btn.is-sent .state--default svg {
  animation: takeOff 0.8s linear forwards;
}
.send-msg-btn.is-sent .state--default .icon {
  transform: rotate(0) scale(1.25);
}
@keyframes takeOff {
  0% { opacity: 1; }
  60% { opacity: 1; transform: translateX(70px) rotate(45deg) scale(2); }
  100% { opacity: 0; transform: translateX(160px) rotate(45deg) scale(0); }
}
@keyframes land {
  0% { transform: translateX(-60px) translateY(30px) rotate(-50deg) scale(2); opacity: 0; filter: blur(3px); }
  100% { transform: translateX(0) translateY(0) rotate(0); opacity: 1; filter: blur(0); }
}

/* Contrail */
.send-msg-btn .state--default .icon:before {
  content: "";
  position: absolute;
  top: 50%;
  height: 2px;
  width: 0;
  left: -5px;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.5));
}
.send-msg-btn.is-sent .state--default .icon:before {
  animation: contrail 0.8s linear forwards;
}
@keyframes contrail {
  0% { width: 0; opacity: 1; }
  8% { width: 15px; }
  60% { opacity: 0.7; width: 80px; }
  100% { opacity: 0; width: 160px; }
}

/* States */
.send-msg-btn .state {
  padding-left: 29px;
  z-index: 2;
  display: flex;
  position: relative;
}
.send-msg-btn .state--default span:nth-child(5) {
  margin-right: 5px;
}
.send-msg-btn .state--sent {
  display: none;
}
.send-msg-btn .state--sent svg {
  transform: scale(1.25);
  margin-right: 8px;
}
.send-msg-btn.is-sent .state--default {
  position: absolute;
}
.send-msg-btn.is-sent .state--sent {
  display: flex;
}
.send-msg-btn.is-sent .state--sent span {
  opacity: 0;
  animation: slideDown 0.8s ease forwards calc(var(--i) * 0.2s);
}
.send-msg-btn.is-sent .state--sent .icon svg {
  opacity: 0;
  animation: appear 1.2s ease forwards 0.8s;
}
@keyframes appear {
  0% { opacity: 0; transform: scale(4) rotate(-40deg); color: var(--primary); filter: blur(4px); }
  30% { opacity: 1; transform: scale(0.6); filter: blur(1px); }
  50% { opacity: 1; transform: scale(1.2); filter: blur(0); }
  100% { opacity: 1; transform: scale(1); }
}
