@import "../inter/inter.css";

:root {
    --primary-gradient: linear-gradient(135deg, #081354 0%, #7e6a87 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --tertiary-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --tertiary-gradient: linear-gradient(135deg, #149cb7 0%, #02ccd6 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    --purple-blue: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --team-gradient: linear-gradient(135deg, #2c3e50 0%, #667eea 100%);
    --faq-gradient: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --teal-color: #20b2aa;
    --size: clamp(21rem, 1rem + 0vmin, 60rem);
    --gap: calc(var(--size) / 20);
    --duration: 60s;
    --scroll-start: 0;
    --scroll-end: calc(-100% - var(--gap));
}

.logo {
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: left center;
    height: 3rem;
    width: 7.5rem;
    background-image: url(/img/ttwn-white-logo.png), none;
    display: inline-block;
    font: 0 / 0 "a";
    color: rgba(0, 0, 0, 0) !important;
    }

body {
    font-family: Inter, sans-serif;
    font-feature-settings: 'liga' 1, 'calt' 1; /* fix for Chrome */
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #081354;
}
@supports (font-variation-settings: normal) {
  body { font-family: InterVariable, sans-serif; }
}


.gradient-bg {
    background: var(--primary-gradient);
}

.gradient-text {
    background: var(--tertiary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section {
    background: var(--primary-gradient);

    /* min-height: 70vh */
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 100px 0;
}

.image-grid {
    position: relative;
    height: 70vh;
}

.grid-item {
    position: absolute;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-item-1 {
    top: 10%;
    right: 5%;
    width: 250px;
    height: 150px;
}

.grid-item-2 {
    top: 30%;
    right: 30%;
    width: 200px;
    height: 120px;
}

.grid-item-3 {
    top: 50%;
    right: 10%;
    width: 220px;
    height: 140px;
}

.grid-item-4 {
    top: 70%;
    right: 25%;
    width: 180px;
    height: 110px;
}

.grid-item-5 {
    top: 85%;
    right: 5%;
    width: 200px;
    height: 120px;
}

.stat-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 20px;

    /* text-align: center; */
    color: white;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.btn-primary-custom {
    background: var(--tertiary-gradient);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;

    /* text-transform: uppercase; */
    letter-spacing: 1px;
    transition: all 0.3s ease;
    color: #ffffff;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    color: #00f1fe;
}

.section-padding {
    padding: 100px 0;
}

.influence-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.feature-card {
    text-align: center;
    padding: 40px 20px;

    /* background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); */
    transition: transform 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;

    /* background: var(--tertiary-gradient); */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.stats-section {
    background: var(--primary-gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-bg {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>');
}

.case-study-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 350px;
}

.case-study-card:hover {
    transform: translateY(-10px);
}

.case-study-content {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.case-study-1 {
    background: var(--tertiary-gradient);
    color: white;
}

.case-study-2 {
    background: var(--primary-gradient);
    color: white;
}

.case-study-3 {
    background: var(--tertiary-gradient);
    color: white;
}

.case-study-4 {
    background: var(--secondary-gradient);
    color: white;
}

.cta-section {
    background: var(--primary-gradient);
    color: white;
}

.logo-section {
    background: var(--tertiary-gradient);
    padding: 20px 0;
}

.partner-logo {
    height: 40px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
}

.navbar-custom {
    background: rgb(7, 19, 83);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.navbar-brand,
.nav-link {
    color: white !important;
}

.nav-link:hover {
    color: #f0f0f0 !important;
}

footer {
    background: var(--primary-gradient);
    background: rgb(7, 19, 83);
    color: white;
    padding: 40px 0 20px;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

.floating:nth-child(2) {
    animation-delay: -1s;
}

.floating:nth-child(3) {
    animation-delay: -2s;
}

@media (max-width: 768px) {
    .hero-content {
        padding: 50px 0;
    }

    .image-grid {
        display: none;
    }

    .grid-item {
        position: relative;
        width: 100% !important;
        height: 200px !important;
        margin-bottom: 20px;
    }
}

.container-scroll {
    display: flex;
    width: 100%;
    height: 90vh;
    gap: 14px;
    padding: 0px;
}

.column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
}

.scroll-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: scrollUp 20s linear infinite;
}

.column:nth-child(2) .scroll-content {
    animation: scrollDown 25s linear infinite;
    animation-delay: -5s;
}

.image-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;

    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-card:hover {
    transform: scale(1.05) rotateY(5deg);

    /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); */
}

.image-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
                rgba(255, 255, 255, 0.1) 0%, 
                transparent 50%, 
                rgba(255, 255, 255, 0.1) 100%);
    z-index: 1;
}

/* Different gradient backgrounds for each card type */
.card-highway {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-traffic {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.card-dashboard {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.card-runner {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.card-crowd {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.card-driver {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    text-align: center;
    color: white;
}

.card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.card-subtitle {
    font-size: 16px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.icon {
    font-size: 48px;
    margin-bottom: 20px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes scrollUp {
    0% {
        transform: translateY(100vh);
    }

    100% {
        transform: translateY(-100%);
    }
}

@keyframes scrollDown {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100vh);
    }
}

/* Floating animation for some elements */
.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto;
    }

    .column {
        height: 50vh;
    }

    .image-card {
        min-height: 200px;
    }

    .card-title {
        font-size: 20px;
    }

    .card-subtitle {
        font-size: 14px;
    }
}

/* Additional visual effects */
.glow {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1), 
                        0 0 40px rgba(255, 255, 255, 0.05);
}

.pulse {
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.what-we-do-section {
    background: #f8f9fa;
}

.video-container {
    position: relative;
    border-radius: 60px;
    overflow: hidden;

    /* box-shadow: 0 20px 40px rgba(0,0,0,0.15); */
    /* background: linear-gradient(45deg, #667eea, #764ba2); */
    padding: 2px;
}

.video-inner {
    /* background: #000; */
    border-radius: 60px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('/img/soundwave.jpg');
    background-size: cover;
    background-position: center;
}

.video-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    /* background: rgba(0,0,0,0.4); */
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.play-button:hover {
    transform: scale(1.1);
    background: white;
}

.play-button i {
    color: #667eea;
    font-size: 1.5rem;
    margin-left: 4px;
}

/* .stat-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
} */
.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #071252;
    margin-bottom: 10px;
}

.operations-section {
    background: white;
}

.service-card {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 15px;

    /* box-shadow: 0 10px 30px rgba(0,0,0,0.1); */
    transition: transform 0.3s ease;
    height: 100%;
    border: .5px solid #e1e1e1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: #667eea;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;

    /* background: var(--tertiary-gradient); */
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    color: #20b2aa;
}

.team-section {
    background: var(--team-gradient);
    color: white;
}

.team-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.15);
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: var(--tertiary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: bold;
}

.team-social {
    margin-top: 20px;
}

.team-social a {
    color: rgba(255,255,255,0.7);
    font-size: 1.2rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.team-social a:hover {
    color: white;
}

.cta-section {
    background: var(--tertiary-gradient);
    color: white;
}

footer {
    background: var(--primary-gradient);
    color: white;
    padding: 40px 0 20px;
}

.breadcrumb-text {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

@media (max-width: 768px) {
    .hero-content {
        padding: 80px 0 40px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .video-inner {
        height: 250px;
    }

    .play-button {
        width: 60px;
        height: 60px;
    }
}

///
.contact-section {
    padding: 80px 0;
    background: white;
}

.section-badge {
    background: var(--teal-color);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.contact-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.contact-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.form-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-control,
.form-select {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--teal-color);
    box-shadow: 0 0 0 3px rgba(32, 178, 170, 0.1);
}

.role-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.role-option {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #374151;
}

.role-option:hover {
    border-color: var(--teal-color);
    background: rgba(32, 178, 170, 0.05);
}

.role-option.selected {
    border-color: var(--teal-color);
    background: rgba(32, 178, 170, 0.1);
    color: var(--teal-color);
}

.form-check-input:checked {
    background-color: var(--teal-color);
    border-color: var(--teal-color);
}

.btn-submit {
    background: var(--teal-color);
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background: #1a9999;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(32, 178, 170, 0.3);
}

.faq-section {
    background: var(--faq-gradient);
    padding: 80px 0;
    color: white;
}

.faq-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.faq-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.faq-header {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.faq-header:hover {
    background: rgba(255, 255, 255, 0.1);
}

.faq-content {
    padding: 0 25px 20px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    display: none;
}

.faq-content.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.faq-toggle {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-toggle.rotated {
    transform: rotate(45deg);
}

.footer {
    background: var(--primary-blue);
    color: white;
    padding: 40px 0;
}

.footer-brand {
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    text-decoration: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

footer a, .ot-sdk-show-settings {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-left: 1rem;
    cursor: pointer;
}
footer a:hover, .ot-sdk-show-settings:hover {
    color: white;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .contact-title,
    .faq-title {
        font-size: 2.5rem;
    }

    .form-container {
        padding: 30px 20px;
    }

    .role-options {
        grid-template-columns: 1fr;
    }
}


.marquee {
    display: flex;
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    gap: var(--gap);
    -webkit-mask-image: linear-gradient(
    var(--mask-direction, to right),
    hsl(0 0% 0% / 0),
    hsl(0 0% 0% / 1) 20%,
    hsl(0 0% 0% / 1) 80%,
    hsl(0 0% 0% / 0)
  );
    mask-image: linear-gradient(
    var(--mask-direction, to right),
    hsl(0 0% 0% / 0),
    hsl(0 0% 0% / 1) 20%,
    hsl(0 0% 0% / 1) 80%,
    hsl(0 0% 0% / 0)
  );
}

.marquee__group {
    flex-shrink: 0;
    display: flex;
    //: center;
    //: space-around;
    gap: var(--gap);
    min-width: 100%;
    -webkit-animation: scroll-x var(--duration) linear infinite;
    animation: scroll-x var(--duration) linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .marquee__group {
        -webkit-animation-play-state: paused;
        animation-play-state: paused;
    }
}

.marquee--vertical {
    --mask-direction: to bottom;
}

.marquee--vertical,
.marquee--vertical .marquee__group {
    flex-direction: column;
}

.marquee--vertical .marquee__group {
    -webkit-animation-name: scroll-y;
    animation-name: scroll-y;
}

.marquee--reverse .marquee__group {
    animation-direction: reverse;
    -webkit-animation-delay: -3s;
    animation-delay: -3s;
}

@-webkit-keyframes scroll-x {
    from {
        transform: translateX(var(--scroll-start));
    }

    to {
        transform: translateX(var(--scroll-end));
    }
}

@keyframes scroll-x {
    from {
        transform: translateX(var(--scroll-start));
    }

    to {
        transform: translateX(var(--scroll-end));
    }
}

@-webkit-keyframes scroll-y {
    from {
        transform: translateY(var(--scroll-start));
    }

    to {
        transform: translateY(var(--scroll-end));
    }
}

@keyframes scroll-y {
    from {
        transform: translateY(var(--scroll-start));
    }

    to {
        transform: translateY(var(--scroll-end));
    }
}

/* Element styles */
.marquee img {
    display: grid;
    place-items: center;
    width: var(--size);
    fill: var(--color-text);
    background: var(--color-bg-accent);
    //aspect-ratio: 3/2;
    //: calc(var(--size) / 10);
    //: 0.5rem;
}

.marquee--vertical img {
    aspect-ratio: 1;
    width: calc(var(--size) / 1.1);
    //padding: calc(var(--size) / 6);
    border-radius: 20px;
}

/* Parent wrapper */
.wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    margin: auto;
    max-width: 100vw;
}

.wrapper--vertical {
    flex-direction: row;
    height: 90vh;
}

@-webkit-keyframes fade {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes fade {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@media (max-width:991px) {
    #marquee-scroll {
        display: none;
    }
}


#mobile-visual {
    display: flex;
    background-image: url(/img/mobile-visual.png);
    background-size: cover;
    min-height: 140px;
    /* min-height: 156px; */
    margin-bottom: 15px;
    border-radius: .4rem;
    padding: 2.5rem;
    background-position-x: center;
}

@media (max-width:991px) {
    #marquee-scroll {
        display: none;
    }
}

@media (min-width:992px) {
    #mobile-visual {
        display: none;
    }
}
