/* Root Variables - Corporate Memphis Color Palette */
:root {
    --primary-dark: #2d2d2d;
    --primary-brown: #8b7355;
    --accent-yellow: #d4a574;
    --accent-mustard: #c9a961;
    --background-light: #faf8f5;
    --background-white: #ffffff;
    --text-dark: #3a3a3a;
    --text-light: #6b6b6b;
    --shadow: rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Header & Navigation */
header {
    background-color: var(--background-white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-dark);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-brown);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--background-light) 0%, #f5f0e8 100%);
    padding: 6rem 0 8rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration img {
    width: 100%;
    max-width: 500px;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

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

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 6rem;
    font-weight: bold;
    color: var(--primary-dark);
    letter-spacing: 2px;
    margin-bottom: 1rem;
    line-height: 1;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--primary-brown);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--primary-brown);
    font-weight: 400;
    margin-bottom: 3rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Responsive Hero Section */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-illustration img {
        max-width: 400px;
    }
    
    .hero {
        padding: 4rem 0 6rem;
    }
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s ease, 
                color 0.3s ease, 
                transform 0.3s ease, 
                box-shadow 0.3s ease,
                border-color 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-brown);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3);
}

.btn-primary:hover {
    background-color: #6f5c47;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(139, 115, 85, 0.3);
}

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

.btn-secondary:hover {
    background-color: var(--primary-brown);
    color: white;
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Features Section */
.features {
    padding: 6rem 0;
    background-color: var(--background-white);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-illustration {
    width: 280px;
    height: 280px;
    margin-bottom: 2rem;
}

.feature-illustration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    line-height: 1;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-align: left;
}

.feature-title-right {
    text-align: right;
}

.feature-details {
    text-align: left;
}

.feature-details-right {
    text-align: right;
}

.feature-details h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.feature-details p {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 400;
    line-height: 1.4;
}

/* Center Feature - Mobile App */
.feature-center {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-illustration-phone {
    width: 350px;
    height: auto;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    /* Clip the image with a consistent rounded rectangle */
    overflow: hidden;
    --phone-radius: 45px; /* default, tuned for 350px width */
    border-radius: var(--phone-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.feature-illustration-phone img {
    width: 100%;
    height: auto;
    /* Let the wrapper handle the rounding and shadow to avoid distortion */
    border-radius: 0;
    box-shadow: none;
    /* Remove inline-image baseline gap that shows as a bottom banner */
    display: block;
}

.feature-content-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    z-index: 2;
    pointer-events: none;
}

.walk-illustration {
    width: 100%;
    height: auto;
}

/* About Section */
.about {
    padding: 6rem 0;
    background-color: var(--background-light);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.about-content > p {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.about-feature-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--background-white);
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease;
}

.about-feature-item {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.about-feature-item:hover {
    box-shadow: 0 20px 40px var(--shadow);
}

.about-feature-item h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.about-feature-item p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background-color: var(--background-white);
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-text {
    text-align: left;
}

.contact-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 5%;
    top: -120px;
    z-index: 10;
}

.contact-illustration img {
    width: 100%;
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

.contact h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.contact p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Tech Details Section */
.TechDetails {
    padding: 6rem 0;
    background-color: var(--background-light);
    position: relative;
}

.TechDetails h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.TechDetails-content {
    background-color: rgb(60, 51, 33);
    padding: 1rem;
    border-radius: 1rem;
}

.Code-Language {
    padding-bottom: .5rem;
}

.Code-Language p{
    color: rgb(166, 166, 166);
    font-size: .82rem;
}

.TechDetails-items p{
    color: rgb(210, 206, 191);
    font-size: 1rem;
    line-height: 1.6;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--background-light);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-note p {
    font-size: 0.9rem;
    color: var(--background-light);
    font-style: italic;
}

.footer-credits {
    text-align: right;
}

.footer-credits p {
    font-size: 0.95rem;
    color: var(--background-light);
    margin: 0.2rem 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .feature-grid {
        gap: 2rem;
    }
    
    .feature-illustration {
        width: 220px;
        height: 220px;
    }
    
    .feature-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 4.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .feature-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .feature-title,
    .feature-title-right {
        text-align: left;
    }
    
    .feature-details,
    .feature-details-right {
        text-align: left;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-text {
        text-align: center;
    }
    
    .contact-illustration {
        position: static;
        margin-top: 1.5rem;
    }
    
    .contact-illustration img {
        max-width: 200px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-credits {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .hero {
        padding: 3rem 0 4rem;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .hero-illustration img {
        max-width: 350px;
    }
    
    .cta-buttons {
        gap: 1rem;
    }
    
    .btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .feature-illustration-phone {
        width: 280px;
        /* Scale corner radius with the smaller width */
        --phone-radius: 36px;
    }
    
    .contact h2 {
        font-size: 2.5rem;
    }
    
    .contact p {
        font-size: 1.1rem;
    }
    
    .contact-illustration img {
        max-width: 180px;
    }
    
    .contact {
        padding: 4rem 0;
    }
    
    .contact-content {
        gap: 2rem;
    }
    
    .container {
        padding: 0 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero {
        padding: 2rem 0 3rem;
    }
    
    .hero-content {
        gap: 1.5rem;
    }
    
    .hero-illustration img {
        max-width: 280px;
    }
    
    .cta-buttons {
        margin-top: 1.5rem;
        gap: 0.8rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 250px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    nav {
        padding: 1rem 1.5rem;
    }
    
    .feature-title {
        font-size: 2.5rem;
    }
    
    .feature-details h3 {
        font-size: 1.2rem;
    }
    
    .feature-details p {
        font-size: 1rem;
    }
    
    .contact h2 {
        font-size: 2rem;
    }
    
    .contact p {
        font-size: 1rem;
    }
    
    .contact-illustration img {
        max-width: 150px;
    }
    
    .contact {
        padding: 3rem 0 2.5rem;
    }
    
    .contact-content {
        gap: 1rem;
    }

    /* Tighter phones may render a bit smaller; gently reduce radius */
    .feature-illustration-phone {
        --phone-radius: 32px;
    }
}

/* Extra Small Devices (phones < 375px) */
@media (max-width: 375px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-tagline {
        font-size: 0.9rem;
    }
    
    .hero-illustration img {
        max-width: 240px;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .contact h2 {
        font-size: 1.8rem;
    }
    
    .contact p {
        font-size: 0.95rem;
    }
    
    .contact-illustration img {
        max-width: 130px;
    }
    
    .contact {
        padding: 2.5rem 0 2rem;
    }
    
    .contact-content {
        gap: 0.8rem;
    }
    
    .container {
        padding: 0 0.8rem;
    }

    /* Extra small devices: slightly smaller radius for visual parity */
    .feature-illustration-phone {
        --phone-radius: 28px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: fadeInUp 0.6s ease-out;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}
