/* ============================================
   Perth Mobile Apps - Static HTML CSS
   Design: Modern Minimalism with Tech Precision
   Colors: Slate Blue (#1F3A5F), Teal (#00D9FF)
   ============================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    color: #1A1F2E;
    background-color: #F7F9FC;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: #1F3A5F;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #00D9FF;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Navigation Bar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #E8EEF5;
    height: 4rem;
    display: flex;
    align-items: center;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1F3A5F;
    font-family: 'Sora', sans-serif;
    flex-shrink: 0;
}

.navbar-links {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .navbar-links {
        display: flex;
    }
}

.navbar-links a {
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-links a:hover {
    color: #00D9FF;
}

.navbar-phone {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #00D9FF;
    color: #1A1F2E;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.navbar-phone:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 6px -1px rgba(0, 217, 255, 0.3);
    color: black;
}

@media (min-width: 1024px) {
    .navbar-phone {
        display: flex;
    }
}

.phone-icon {
    font-size: 1rem;
}

.phone-number {
    white-space: nowrap;
}

/* Hero Section */
.hero {
    padding: 5rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-text {
    animation: fadeInUp 0.6s ease-out;
    text-align: center;
}

@media (min-width: 768px) {
    .hero-text {
        text-align: left;
    }
}

.hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1A1F2E;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

.gradient-text {
    background: linear-gradient(135deg, #1F3A5F 0%, #00D9FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #5A6B7F;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        width: auto;
    }
}

.hero-buttons .btn {
    width: 100%;
    text-align: center;
}

@media (min-width: 640px) {
    .hero-buttons .btn {
        width: auto;
    }
}

.hero-stats {
    display: flex;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #E8EEF5;
    justify-content: space-around;
}

@media (min-width: 768px) {
    .hero-stats {
        justify-content: flex-start;
        gap: 2rem;
    }
}

.stat {
    flex: 1;
    text-align: center;
}

@media (min-width: 768px) {
    .stat {
        text-align: left;
    }
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1F3A5F;
    font-family: 'Sora', sans-serif;
}

.stat-label {
    font-size: 0.875rem;
    color: #5A6B7F;
    margin-top: 0.25rem;
}

.hero-image {
    display: block;
    width: 100%;
    max-width: 24rem;
    margin: 0 auto;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

@media (min-width: 1024px) {
    .hero-image {
        max-width: none;
        margin: 0;
    }
}

.hero-three-wrap {
    position: relative;
    isolation: isolate;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 1rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 22% 18%, rgba(95, 233, 255, 0.22) 0%, rgba(95, 233, 255, 0) 38%),
        radial-gradient(circle at 78% 85%, rgba(63, 132, 255, 0.2) 0%, rgba(63, 132, 255, 0) 42%),
        linear-gradient(160deg, #081423 0%, #0A1D33 45%, #102745 100%);
    box-shadow: 0 24px 34px -12px rgba(9, 20, 38, 0.58);
}

.hero-three-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(147, 219, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(147, 219, 255, 0.08) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.75) 42%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

#hero-threejs {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

#hero-threejs canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.65rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Manrope', sans-serif;
}

.btn-primary {
    background-color: #1F3A5F;
    color: #F7F9FC;
}

.btn-primary:hover {
    box-shadow: 0 10px 15px -3px rgba(31, 58, 95, 0.2);
    transform: scale(1.02);
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-secondary {
    background-color: #E8EEF5;
    color: #1A1F2E;
    border: 1px solid #D1D9E3;
}

.btn-secondary:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

.btn-accent {
    background-color: #00D9FF;
    color: #1A1F2E;
}

.btn-accent:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 217, 255, 0.2);
    transform: scale(1.02);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Button Links */
.btn[href] {
    display: inline-block;
    text-align: center;
}


/* Problem Section */
.problem-section {
    background-color: #F0F4F9;
    padding: 4rem 0;
}

.section-text-center {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.section-text-center h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    color: #1A1F2E;
}

@media (min-width: 768px) {
    .section-text-center h2 {
        font-size: 3rem;
    }
}

.section-text-center p {
    font-size: 1.125rem;
    color: #5A6B7F;
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    color: #1A1F2E;
}

@media (min-width: 768px) {
    .section-header h2 {
        font-size: 3rem;
    }
}

.section-header p {
    font-size: 1.125rem;
    color: #5A6B7F;
    max-width: 32rem;
    margin: 0 auto;
}

/* Services Section */
.services-section {
    padding: 4rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: white;
    border: 1px solid #E8EEF5;
    border-radius: 0.75rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: #00D9FF;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #1A1F2E;
}

.service-card p {
    color: #5A6B7F;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-list {
    list-style: none;
    font-size: 0.875rem;
}

.service-list li {
    color: #5A6B7F;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.phone-link {
    color: #00D9FF;
    font-weight: 600;
    transition: all 0.3s ease;
}

.phone-link:hover {
    color: #1F3A5F;
    text-decoration: underline;
}

.service-list li:before {
    content: "â€¢";
    color: #00D9FF;
    position: absolute;
    left: 0;
}

/* Process Section */
.process-section {
    background-color: #F0F4F9;
    padding: 4rem 0;
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.process-step {
    background-color: white;
    border: 1px solid #E8EEF5;
    border-radius: 0.75rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.process-step:hover {
    border-color: #00D9FF;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00D9FF;
    font-family: 'Sora', sans-serif;
    margin-bottom: 1rem;
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #1A1F2E;
}

.process-step p {
    color: #5A6B7F;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
    padding: 4rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background-color: white;
    border: 1px solid #E8EEF5;
    border-radius: 0.75rem;
    padding: 2rem;
}

.stars {
    color: #00D9FF;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.testimonial-text {
    color: #1A1F2E;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 700;
    color: #1F3A5F;
    font-family: 'Sora', sans-serif;
}

.testimonial-role {
    font-size: 0.875rem;
    color: #5A6B7F;
}

/* FAQ Section */
.faq-section {
    background-color: #F0F4F9;
    padding: 4rem 0;
}

.faq-list {
    max-width: 48rem;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border: 1px solid #E8EEF5;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #F7F9FC;
}

.faq-question span:first-child {
    font-weight: 600;
    color: #1F3A5F;
    font-family: 'Sora', sans-serif;
}

.faq-toggle {
    font-size: 1.5rem;
    color: #1F3A5F;
    transition: transform 0.3s ease;
}

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: #5A6B7F;
    line-height: 1.8;
}

.faq-answer.active {
    display: block;
}

.faq-toggle.active {
    transform: rotate(45deg);
}

/* CTA Section */
.cta-section {
    background-color: #1F3A5F;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: white;
}

@media (min-width: 768px) {
    .cta-section h2 {
        font-size: 3rem;
    }
}

.cta-section p {
    font-size: 1.125rem;
    max-width: 32rem;
    margin: 0 auto 2rem;
    opacity: 0.9;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    width: 100%;
    max-width: 32rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
        width: auto;
        max-width: none;
    }
}

.cta-buttons .btn {
    width: 100%;
}

@media (min-width: 640px) {
    .cta-buttons .btn {
        width: auto;
    }
}

/* Footer */
.footer {
    background-color: #1A1F2E;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-section h3,
.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    font-size: 0.875rem;
    opacity: 0.75;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    opacity: 0.75;
}

.footer-section a {
    color: white;
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
    color: #00D9FF;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    opacity: 0.75;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-text-center h2 {
        font-size: 1.75rem;
    }

    .cta-section h2 {
        font-size: 1.75rem;
    }

    .hero-stats {
        flex-direction: row;
        gap: 1rem;
        justify-content: space-around;
    }

    .hero-text {
        text-align: center;
    }

    .section-text-center {
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}



/* Mobile Burger Menu */
.navbar-burger {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #D5DEE9;
    border-radius: 0.5rem;
    background: #FFFFFF;
    color: #1F3A5F;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.25rem;
    cursor: pointer;
    transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
    position: relative;
    z-index: 160;
}

.navbar-burger:hover {
    border-color: #00D9FF;
    background-color: #F7FBFF;
}

.navbar-burger-line {
    display: block;
    width: 1.125rem;
    height: 2px;
    background-color: currentColor;
    transition: transform 0.3s ease, opacity 0.25s ease;
    transform-origin: center;
}

body.mobile-nav-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .navbar {
        z-index: 150;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .navbar-content {
        position: relative;
        z-index: 151;
    }

    .navbar-logo {
        position: relative;
        z-index: 161;
    }

    .navbar-burger {
        display: inline-flex;
    }

    .navbar-links {
        position: fixed;
        inset: 0;
        width: 100vw;
        min-height: 100vh;
        height: 100dvh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 1rem;
        padding: calc(6.5rem + env(safe-area-inset-top, 0px)) 1.25rem calc(2rem + env(safe-area-inset-bottom, 0px));
        margin: 0;
        box-sizing: border-box;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        background: rgba(26, 31, 46, 0.96);
        backdrop-filter: blur(8px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-1.25rem) scale(0.98);
        transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
        z-index: 140;
    }

    .navbar-links a {
        color: #FFFFFF;
        display: block;
        width: min(24rem, calc(100vw - 2.5rem));
        padding: 0.95rem 1rem;
        border-radius: 0.75rem;
        text-align: center;
        font-size: clamp(1.55rem, 5vw, 1.95rem);
        font-weight: 700;
        line-height: 1.25;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.14);
    }

    .navbar-links a:hover {
        color: #FFFFFF;
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.28);
    }

    .navbar-phone {
        position: fixed;
        inset: auto auto calc(1.5rem + env(safe-area-inset-bottom, 0px)) 50%;
        top: auto;
        right: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        width: min(24rem, calc(100vw - 2.5rem));
        max-width: 24rem;
        padding: 0.95rem 1rem;
        border-radius: 0.75rem;
        font-size: clamp(1.55rem, 5vw, 1.95rem);
        font-weight: 700;
        line-height: 1.25;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate(-50%, 1rem) scale(0.98);
        transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
        z-index: 145;
    }

    .navbar-content.menu-open .navbar-links {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
        padding-bottom: calc(7.25rem + env(safe-area-inset-bottom, 0px));
        transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0s;
    }

    .navbar-content.menu-open .navbar-logo {
        color: #FFFFFF;
    }

    .navbar-content.menu-open .navbar-phone {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate(-50%, 0) scale(1);
        transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0s;
    }

    .navbar-content.menu-open .navbar-burger {
        color: #FFFFFF;
        border-color: rgba(255, 255, 255, 0.55);
        background-color: rgba(255, 255, 255, 0.08);
    }

    .navbar-content.menu-open .navbar-burger-line:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .navbar-content.menu-open .navbar-burger-line:nth-child(2) {
        opacity: 0;
    }

    .navbar-content.menu-open .navbar-burger-line:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
}

@media (min-width: 768px) {
    body.mobile-nav-open {
        overflow: visible;
    }

    .navbar-burger {
        display: none;
    }

    .navbar-links {
        position: static;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        backdrop-filter: none;
    }

    .navbar-phone {
        position: static;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }
}
