﻿/* General Styles */
body {
    background-color: #121212;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

/* Timeline Section */
.timeline-section {
    min-height: 100vh;
    align-content: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;   
    text-align: center;    
    width: 100%;
    aspect-ratio: 2.5 / 0.8;
    max-height: 60vh;
    margin: 0 auto;
    position: relative;
}

/* Media queries for different screen sizes */
@media (max-width: 768px) {
    .logo {
        aspect-ratio: 1.2 / 1;
        padding: 0.5rem;
        width: 95%;
    }
    
    .timeline-container {
        width: 100%;
    }

    /* Scale down text elements */
    h1 {
        font-size: 1.5rem !important;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    .display-2 {
        font-size: 2rem !important;
    }

    .display-7 {
        font-size: 1rem !important;
        line-height: 1.2rem !important;
    }

    .text-right, .text-left {
        padding-right: 20px !important;
        padding-left: 20px !important;
        padding-bottom: 50px !important;
    }

    .special {
        font-size: 0.9rem;
        margin-top: 25px;
    }

    .lead {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .logo {
        aspect-ratio: 1 / 1;
    }

    .progress-bar {
        font-size: 0.7rem;
    }

    /* Even smaller text for very small devices */
    h1 {
        font-size: 1.2rem !important;
    }

    .display-7 {
        font-size: 0.9rem !important;
        line-height: 1.1rem !important;
    }
}

@media screen and (max-width: 390px) {
    .logo {
        aspect-ratio: 0.8 / 1;
        padding: 0.25rem;
    }
}

/* Moving lines effect */
.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.1) 75%,
        transparent 75%,
        transparent
    );
    background-size: 20px 20px;
    animation: moveStripes 25s linear infinite;
}
.progress-bar:hover {
    box-shadow: 0 10px 20px rgb(0 0 0 / 88%);
    transform: scale(1.01);
}
/* Define the animation */
@keyframes moveStripes {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}
/* Timeline Container */
.timeline-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .timeline-container {
        width: 95%;
    }
}

/* Progress Bar Segments */
.progress-bar {
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    height: 100%;
}

/* Custom Popover Styling */
.popover.large-popover {
    max-width: 300px;
    padding: 1rem;
    font-size: 1.25rem;
    text-align: center;
    background-color: #212529;
    color: #fff;
    border: 1px solid #444;
    border-radius: 10px;
}

/* Optional: Popover Arrow Customization */
.popover.large-popover .popover-arrow {
    border-top-color: #212529;
}

/* Base feature box styling */
.feature-box {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 1s ease, transform 1s ease;
    font-size: 3rem;
    margin-bottom: 150px;
}

/* Animates into view */
.feature-box.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Align text left or right with bigger spacing */
.text-right {
    text-align: right;
    padding-right: 200px;
    padding-bottom:100px;
}

.text-left {
    text-align: left;
    padding-left: 200px;
    padding-bottom:100px;
}

/* Title Styling */
h1 {
    font-size: 2rem;
    font-weight: bold;
}

/* Paragraph Styling */
p {
    font-size: 1rem;
    line-height: 1;
}

.display-7{
    font-size: 1.5rem;
    line-height: 1.5rem;
}

/* Sidebar Nav Styling */
#sectionNav {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    padding: 15px;
    z-index: 100;
}

#sectionNav .nav-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    padding: 8px 12px;
    margin: 5px 0;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    position: relative;
    display: flex;
    align-items: center;
}

#sectionNav .nav-link::after {
    content: '';
    position: absolute;
    left: -15px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

#sectionNav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

#sectionNav .nav-link:hover::after {
    background: rgba(255, 255, 255, 0.8);
    width: 7px;
    height: 7px;
}

#sectionNav .nav-link.active {
    color: white;
}

#sectionNav .nav-link.active::after {
    background: white;
    width: 8px;
    height: 8px;
}

@media (max-width: 768px) {
    #sectionNav {
        display: none !important;
    }
}

#features{
    padding-right:0px;
    padding-left: 0px;
    margin-bottom: 0px !important;
}
.special{
    color: grey;
    margin-top: 50px;
}

/* Base Styling */
.feature-box {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.feature-box.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section-specific Adjustments */
#unique-selling-points .feature-box {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

#why-choose-uniwork {
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
}

/* Progress/Timeline Bar */
#timelineBar {
    width: 100%;
    height: 100% !important;
}

.tagline {
    font-size: 1.6rem;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 300;
    line-height: 1.6;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 1) 20%,
        rgba(255, 255, 255, 0.5) 40%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: wave 5s linear infinite;
}

.tagline .highlight {
    font-weight: 500;
    position: relative;
    color: #4CAF50;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
    animation: none;
}

@keyframes wave {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Add responsive font sizes */
@media (max-width: 768px) {
    .tagline {
        font-size: 1.6rem;
        line-height: 1.4;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .tagline {
        font-size: 1.2rem;
        line-height: 1.3;
        padding: 0 10px;
    }
}

.tech-stack-container {
    background: linear-gradient(to right, rgba(18, 18, 18, 0.95), rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 0.95));
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    width: 100%;
}

.tech-stack-scroll {
    display: flex;
    animation: scroll 20s linear infinite;
    justify-content: space-around;
    width: 200%;
    padding: 0;
}

.tech-logo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.tech-logo img {
    height: 60px;
    width: auto;
    filter: grayscale(100%) brightness(1.5);
    transition: filter 0.3s ease;
}

.tech-logo img:hover {
    filter: grayscale(0%) brightness(1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Contact Form Styling */
#contact {
    background: linear-gradient(to bottom, rgba(18, 18, 18, 0.95), rgba(28, 28, 28, 0.95));
    color: white;
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

#contactForm {
    background-color: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#contactForm:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

#contactForm .form-control {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contactForm .form-control:focus {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.05);
}

#contactForm .form-label {
    color: rgba(255, 255, 255, 0.7);
}

#contactForm .btn-success {
    padding: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.2s ease;
}

#contactForm .btn-success:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Placeholder color */
#contactForm .form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #contactForm {
        padding: 1.5rem !important;
    }
}

/* Button states and animations */
.dot-animation {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    height: 20px;
}

.dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0);
    } 
    40% { 
        transform: scale(1);
    }
}

/* Success check animation */
.success-text {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button transition */
#submitBtn span {
    transition: opacity 0.3s ease;
}

#submitBtn .d-none {
    opacity: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Form states */
#contactForm {
    position: relative;
    min-height: 400px;
}

.form-content, .loading-state, .success-state {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.loading-state, .success-state {
    background: rgba(255, 255, 255, 0.95);
}

/* Loading animation */
.dot-container {
    display: flex;
    gap: 20px;
}

.dot {
    width: 20px;
    height: 20px;
    background: #198754;  /* Bootstrap success color */
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.24s; }
.dot:nth-child(3) { animation-delay: -0.16s; }
.dot:nth-child(4) { animation-delay: -0.08s; }

@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0);
    } 
    40% { 
        transform: scale(1);
    }
}

/* Success checkmark */
.success-checkmark {
    font-size: 80px;
    color: #198754;
    animation: checkmarkAppear 0.5s ease-out forwards;
}

@keyframes checkmarkAppear {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Utility class */
.d-none {
    display: none !important;
    opacity: 0;
}

.overlaySection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loading animation */
.overlaySectionContentDots {
    display: flex;
    gap: 30px;
}

.dot {
    width: 25px;
    height: 25px;
    background: #198754;
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;
    box-shadow: 0 0 10px rgba(25, 135, 84, 0.3);
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.24s; }
.dot:nth-child(3) { animation-delay: -0.16s; }
.dot:nth-child(4) { animation-delay: -0.08s; }

@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0);
    } 
    40% { 
        transform: scale(1.2);
    }
}

/* Pure CSS Checkmark */
.checkmark {
    width: 80px;
    height: 80px;
    display: block;
    stroke-width: 4;
    stroke: #198754;
    stroke-miterlimit: 10;
}

.checkmark__check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

/* Utility class */
.d-none {
    display: none !important;
}

.fade-out {
    opacity: 0 !important;
}

/* Add this to your existing CSS */
@media (max-width: 768px) {
    #sectionNav {
        display: none !important;
    }
}

.feature-box h1 i {
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.feature-box:hover h1 i {
    opacity: 1;
    transform: scale(1.1);
}

.mobile-nav {
position: fixed;
top: 0;
left: 0;
right: 0;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
z-index: 1000;
border-bottom: 1px solid rgba(0,0,0,0.1);
}

.mobile-nav-scroll {
display: flex;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
scrollbar-width: none; /* Firefox */
padding: 0.5rem;
}

.mobile-nav-scroll::-webkit-scrollbar {
display: none; /* Chrome, Safari */
}

.mobile-nav .nav-link {
white-space: nowrap;
padding: 0.5rem 1rem;
color: #333;
text-decoration: none;
transition: color 0.3s;
}

.mobile-nav .nav-link.active {
color: #007bff;
font-weight: 500;
}

/* Adjust main content padding for mobile nav */
@media (max-width: 767.98px) {
body {
    padding-top: 3rem;
}
}

.partner-logo {
transition: opacity 0.3s ease;
}

.partner-link:hover .partner-logo {
opacity: 0.8;
}

.partners-section {
background: linear-gradient(to bottom, #1a1a1a, #2d2d2d);
}
.btn-purple {
    background-color: #6f42c1;
    color: white;
}

.btn-purple:hover {
    background-color: #5e35b1;
    color: white;
}

.btn-olive {
    background-color: #bbc167;
    color: white;
}

.btn-olive:hover {
    background-color: #a9af5c;
    color: white;
}