/* Add these new variables to the top of your style.css file for global use */
:root {
    --primary-color: #8C00FF; /* Primary: Purple */
    --secondary-color: #F80759; /* Secondary: Vibrant Pink */
    --accent-color-1: #00B8D9; /* Complementary: Cyan for vibrancy/contrast */
    --accent-color-2: #FFD700; /* Complementary: Gold for warmth/highlights */
    --dark-text-color: #1a1a1a; /* Darker text for readability */
    --light-text-color: #f0f0f0; /* Lighter text for dark backgrounds */
    --light-background: #fdfdff; /* Off-white for general backgrounds */
    --medium-gray: #e0e0e0; /* For borders, subtle separators */
    --dark-background: #2a0050; /* A darker shade of primary for backgrounds */
    --danger-color: #dc3545; /* Standard danger color */
    --success-color: #28a745; /* Standard success color */
    --warning-color: #ffc107; /* Standard warning color */
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--light-background); /* Use variable */
    color: var(--dark-text-color); /* Use variable */
    overflow-x: hidden;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between; /* Change from flex-start to space-between */
    align-items: center;
    padding: 20px 60px;
    background: #FFFFFF; /* Header background: White */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #EEEEEE;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: bold;
    color: var(--dark-text-color); /* Use variable */
}

.header-logo-img {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    content: url('assets/logo.png');
    object-fit: contain;
}

/* New Header Navigation Styles */
.main-nav {
    display: flex;
    justify-content: flex-end;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px; /* Space between nav items */
}

.main-nav a {
    color: var(--dark-text-color); /* Links are dark on white header */
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
    padding-bottom: 5px; /* Space for underline effect */

}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--primary-color); /* Primary color underline */
    transition: width 0.3s ease, left 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after { /* Add .active class for current page */
    width: 100%;
    left: 0;
    background: var(--secondary-color); /* Secondary color on hover/active */
}

.main-nav a:hover {
    color: var(--secondary-color); /* Secondary color on hover */
    transform: translateY(-2px);
}


/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 60px 60px;
    background: var(--light-background);
    text-align: center;
}

.hero-main-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 100px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.hero-content {
    flex: 1;
    max-width: 550px;
    text-align: left;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    font-weight: 400;
    font-family: 'DM Sans', sans-serif;
    color: var(--dark-text-color);
}

.hero-title .travel {
    color: var(--dark-text-color);
}

.hero-title .together {
    color: var(--secondary-color);
}

.hero-title .connect {
    color: var(--dark-text-color);
}

.hero-title .forever {
    color: var(--primary-color);
}

.hero-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #555555; /* Keep slightly lighter dark grey for description */
    font-family: 'DM Sans', sans-serif;
}

.hero-description a {
    color: var(--primary-color);
    text-decoration: underline;
}

.download-section {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    justify-content: flex-start;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'DM Sans', sans-serif;
    box-shadow: 0 4px 15px rgba(248, 7, 89, 0.3);
}

.download-btn:hover {
    background: #FF3F80; /* Lighter secondary on hover */
    border-color: #FF3F80;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(248, 7, 89, 0.4);
}

.download-icon {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--secondary-color);
}

.app-store-icon {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.route-decoration {
    position: relative;
    margin-top: 30px;
    width: 100%;
}

.route-line {
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 2px;
    position: relative;
    animation: lineGrow 2s ease 1s both;
}

.route-points {
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
}

.route-point {
    width: 10px;
    height: 10px;
    background: var(--secondary-color);
    border-radius: 50%;
    animation: pointPulse 2s ease infinite;
}

.route-point:nth-child(2) { animation-delay: 0.5s; }
.route-point:nth-child(3) { animation-delay: 1s; }

.hero-static-image {
    width: 450px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: block;
    object-fit: contain;
    object-position: center;
    margin-left: 50px;
    flex-shrink: 0;
    max-width: 50%;
    border: 1px solid #EEEEEE;
}

/* UI Showcase */
.ui-showcase {
    padding: 100px 60px;
    background: #F8F8F8;
    box-shadow: inset 0 8px 15px rgba(0,0,0,0.05);
    border-top: 1px solid #DDDDDD;
    border-bottom: 1px solid #DDDDDD;
}

.showcase-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--dark-text-color);
    font-family: 'DM Sans', sans-serif;
}

.showcase-subtitle {
    text-align: center;
    font-size: 18px;
    color: #555555;
    margin-bottom: 80px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'DM Sans', sans-serif;
}

.showcase-content-wrapper {
    display: flex;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: stretch;
    flex-wrap: wrap;
}

.showcase-left {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.image-text-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid #DDDDDD;
}

.left-hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.image-overlay-text-container {
    position: absolute;
    top: 120px;
    left: 0;
    width: 100%;
    padding: 0 30px;
    color: white;
    text-align: center;
    box-sizing: border-box;
    transition: background 0.3s ease;
}

.overlay-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.4;
    color: rgb(111, 21, 153); /* Adjust to a color variable if preferred, e.g., var(--primary-color) for a purple overlay */
    margin: 0;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

.showcase-right {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 600px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: #FFFFFF;
    padding: 30px;
    border: 1px solid #DDDDDD;
}

.phones-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 30px;
    justify-content: center;
    width: 100%;
}

.phone-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 1s ease;
}

.phone-mockup {
    width: 200px;
    height: 400px;
    background: linear-gradient(145deg, var(--medium-gray), #F0F0F0);
    border-radius: 30px;
    padding: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #CCCCCC;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(140, 0, 255, 0.1), transparent);
    transition: left 0.8s ease;
}

.phone-mockup:hover::before {
    left: 100%;
}

.phone-mockup:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(140, 0, 255, 0.2);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.screen-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.phone-label {
    margin-top: 15px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
    font-family: 'DM Sans', sans-serif;
}

/* Journey Flow */
.journey-flow {
    padding: 100px 60px;
    background: #F8F8F8;
    border-top: 1px solid #DDDDDD;
}

.flow-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 80px;
    color: var(--dark-text-color);
    font-family: 'DM Sans', sans-serif;
}

.flow-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    animation: fadeInUp 1s ease;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), #FF3F80);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    color: white;
}

.flow-step:hover .step-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(248, 7, 89, 0.3);
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-text-color);
    text-align: center;
    font-family: 'DM Sans', sans-serif;
}

.flow-arrow {
    position: absolute;
    right: -40px;
    top: 35px;
    font-size: 24px;
    color: var(--primary-color);
}

.flow-step:last-child .flow-arrow {
    display: none;
}

/* CTA Section */
.cta-section {
    padding: 100px 60px;
    background: linear-gradient(135deg, var(--primary-color), #A139FF);
    text-align: center;
    box-shadow: inset 0 8px 15px rgba(0,0,0,0.1);
}

.cta-title {
    font-size: 2.8rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: white;
    font-family: 'DM Sans', sans-serif;
}

.cta-description {
    font-size: 18px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'DM Sans', sans-serif;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-btn {
    background: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 16px 32px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: 'DM Sans', sans-serif;
    box-shadow: 0 4px 15px rgba(248, 7, 89, 0.3);
}

.cta-btn:hover {
    background: #FF3F80;
    border-color: #FF3F80;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(248, 7, 89, 0.4);
}

/* Animations */
@keyframes lineGrow {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes pointPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

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

/* Responsive */
@media (max-width: 1200px) {
    .hero-main-content {
        flex-direction: column;
        gap: 40px;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    .download-section {
        justify-content: center;
    }

    .hero-static-image {
        width: 80%;
        max-width: 400px;
        margin-left: 0;
    }

    .showcase-content-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .showcase-left, .showcase-right {
        min-width: unset;
        width: 100%;
    }

    .image-text-wrapper {
        height: auto;
        max-height: 500px;
    }

    .left-hero-image {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    .image-overlay-text-container {
        top: 20px;
        padding: 0 20px;
    }

    .overlay-text {
        font-size: 1.4rem;
    }

    .phones-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 40px;
    }

    .phone-mockup {
        width: 250px;
        height: 500px;
        padding: 15px;
    }

    .phone-label {
        margin-top: 25px;
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column; /* Stack logo and nav vertically */
        align-items: flex-start; /* Align items to the start */
        padding: 15px 20px;
    }

    .main-nav {
        margin-top: 15px; /* Space between logo and nav */
        width: 100%; /* Make nav take full width */
    }

    .main-nav ul {
        flex-direction: column; /* Stack nav links vertically */
        gap: 10px; /* Smaller gap for mobile nav */
        align-items: flex-start; /* Align links to the left */
    }

    .main-nav a {
        padding: 5px 0; /* Adjust padding for mobile links */
    }

    .hero-section {
        padding: 100px 20px 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-static-image {
        width: 90%;
    }

    .ui-showcase, .journey-flow, .cta-section {
        padding: 80px 20px;
    }

    .phones-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .flow-steps {
        flex-direction: column;
        gap: 40px;
    }

    .flow-arrow {
        display: none;
    }
}

/* --- Site Footer Styles (add to the end of your style.css) --- */
.site-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 20px;
    font-family: 'DM Sans', sans-serif;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: bold;
    color: white;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
}

.footer-nav a:hover {
    color: var(--accent-color-2); /* Gold accent for hover */
    transform: translateY(-2px);
}

.footer-social {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.footer-social img {
    width: 30px;
    height: 30px;
    /* This filter makes coloured icons white for dark backgrounds */
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.footer-social img:hover {
    transform: scale(1.1);
}

.footer-bottom {
    margin-top: 30px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-nav ul {
        flex-direction: column;
        gap: 15px;
    }
}