/* Global Styles */
:root {
    --primary: #2D3142;
    --secondary: #4F5D75;
    --accent: #EF8354;
    --light: #F8F8F8;
    --border: #ddd;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);
    --transition: all 0.2s ease;
    --text-primary: var(--primary);
    --text-secondary: var(--secondary);
    --surface: #f9f9f9;
    --bg-light: #f5f5f5;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--primary);
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Common Components */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.flex-column {
    display: flex;
    flex-direction: column;
}

/* Button Styles */
.cta-button {
    background-color: var(--accent);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    border: none;
    outline: none;
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Header */
header {
    background-color: var(--primary);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 1.25rem 0;
    box-shadow: var(--shadow-md);
}

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

.logo {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    color: #EF8354;
}

.header-title {
    text-align: center;
    color: white;
}

.header-title h2 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.header-title h3 {
    font-size: 1.1rem;
    opacity: 0.9;
}

nav {
    margin-left: auto;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav ul li {
    display: flex;
    align-items: center;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    height: 100%;
    transition: color 0.2s ease;
}

nav ul li a:hover {
    color: #EF8354;
}

nav ul li a.active {
    color: #EF8354;
}

/* Login Button in Navigation */
nav ul li button.cta-button {
    margin: 0;
    padding: 8px 20px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
}

nav ul li a.cta-button:hover {
    color: white;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 60;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary);
    z-index: 55;
    padding-top: 100px;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    flex-direction: column;
    gap: 30px;
    padding: 40px 20px;
    text-align: center;
}

.mobile-nav ul li a {
    font-size: 1.2rem;
    padding: 15px 0;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(45, 49, 66, 0.92), rgba(45, 49, 66, 0.92)), url('../images/radio-handheld-min.png') center/cover no-repeat;
    color: white;
    padding: 160px 0 100px;
    position: relative;
}

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

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

.hero-qr {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.qr-code {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    background: white;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
}

.qr-code:hover {
    transform: rotate(0deg) scale(1.05);
}

.handwritten-text {
    font-family: 'Kalam', cursive;
    font-size: 24px;
    color: #EF8354;
    font-weight: 600;
    transform: rotate(-8deg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.hand-arrow {
    position: absolute;
    top: -10px;
    right: -20px;
    transform: rotate(15deg);
    z-index: 1;
}

.hand-arrow svg {
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 60px;
    line-height: 1.5;
}

.hero .subtitle {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.hero .subtitle-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 500;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    transition: transform 0.3s ease;
    font-size: 1.05rem;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.hero .subtitle-item:hover {
    transform: translateY(-2px);
}

.hero .subtitle-item i {
    color: var(--accent);
    font-size: 1.2rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 0px;
    opacity: 0.9;
}

/* Facts Section */
.facts-section {
    padding: 80px 0;
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.4rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--secondary);
    max-width: 800px;
    margin: 0 auto;
}

.facts-carousel {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.facts-track {
    display: flex;
    transition: transform 0.5s ease;
}

.fact-card {
    flex: 0 0 100%;
    padding: 20px;
    opacity: 0.5;
    transform: scale(0.9);
    transition: all 0.5s ease;
}

.fact-card.active {
    opacity: 1;
    transform: scale(1);
}

.fact-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.fact-content h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.fact-content blockquote {
    font-style: italic;
    color: var(--secondary);
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 3px solid var(--accent);
}

.fact-source {
    font-size: 0.9rem;
    color: var(--secondary);
}

.fact-source a {
    color: var(--accent);
    text-decoration: none;
}

.fact-source a:hover {
    text-decoration: underline;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.prev-btn, .next-btn {
    background: var(--accent);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.prev-btn:hover, .next-btn:hover {
    background: #d56f40;
}

.carousel-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 0px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--secondary);
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    opacity: 1;
    background: var(--accent);
}

/* How It Works Section */
.story {
    padding: 80px 0;
    background: var(--bg-light);
}

.story-steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
}

.step {
    flex: 1;
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

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

.step-number {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: bold;
}

.step-content h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.step-content p {
    color: var(--secondary);
    font-size: 1.1rem;
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    text-align: center;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

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

.benefit-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(239, 131, 84, 0.1);
    border-radius: 50%;
    display: flex
;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--accent);
    font-size: 1.5rem;
}

.benefit-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.benefit-card p {
    color: var(--secondary);
    font-size: 1.1rem;
}

/* CTA Section */
.cta {
    padding: 120px 0;
    background: var(--primary);
    color: white;
}

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

.cta-text {
    flex: 1;
    text-align: left;
}

.cta-image {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.radio-image {
    width: 320px;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transform: rotate(3deg);
    transition: transform 0.3s ease;
}

.radio-image:hover {
    transform: rotate(0deg) scale(1.02);
}

.cta h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
}

.cta p {
    margin: 30px 0 50px 0;
    font-size: 1.2rem;
    opacity: 0.9;
}

.cta .cta-button {
    background: var(--accent);
    color: white;
}

.cta .cta-button:hover {
    background: #d56f40;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 600;
}

.footer-logo span {
    color: var(--accent);
}

.footer-info p {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
    font-size: 1.1rem;
}

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

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* Responsive Design */
@media (min-width: 768px) {
    .fact-card {
        flex: 0 0 50%;
    }
}

@media (min-width: 1024px) {
    .fact-card {
        flex: 0 0 33.333%;
    }
}

@media (max-width: 799px) {
    .header-content {
        justify-content: space-between;
        align-items: center;
    }

    nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-header-right {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .mobile-app-login {
        display: block !important;
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .hero-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

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

    .hero .subtitle {
        justify-content: center;
    }

    .qr-code {
        width: 150px;
        height: 150px;
    }

    .handwritten-text {
        font-size: 20px;
    }

    .hand-arrow {
        top: -5px;
        right: -15px;
    }

    .hand-arrow svg {
        width: 50px;
        height: 35px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .fact-content {
        padding: 20px;
    }

    .fact-content h3 {
        color: var(--text-primary);
        margin-bottom: 1rem;
        font-size: 1.2rem;
        font-weight: 600;
    }

    .story-steps {
        flex-direction: column;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .cta-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .cta-text {
        text-align: center;
    }

    .radio-image {
        width: 280px;
        height: 320px;
        border: 2px solid white;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .cta-button {
        width: 100%;
    }

    .subtitle-item {
        flex-direction: column;
        text-align: center;
    }

    .radio-image {
        width: 260px;
        height: 260px;
        border: 2px solid white;
    }

    .cta h2 {
        font-size: 1.8rem;
    }

    .cta p {
        font-size: 1rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--accent);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    color: var(--primary);
    margin-bottom: 10px;
}

.modal-header p {
    color: var(--secondary);
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.social-btn:hover {
    background: var(--bg-light);
}

.social-btn.google {
    color: #DB4437;
}

.social-btn.github {
    color: #333;
}

.divider {
    text-align: center;
    position: relative;
    margin: 25px 0;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background-color: var(--border);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background-color: white;
    padding: 0 15px;
    color: var(--secondary);
    font-size: 0.9rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--primary);
    font-weight: 500;
}

.form-group input {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--accent);
    outline: none;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
}

.forgot-password {
    color: var(--accent);
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-submit {
    background-color: var(--accent);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.login-submit:hover {
    background-color: #d56f40;
}

.modal-footer {
    text-align: center;
    margin-top: 25px;
    color: var(--secondary);
}

.modal-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* Custom animations and transitions */
.hero .subtitle-item {
    transition: transform 0.3s ease;
}

.hero .subtitle-item:hover {
    transform: translateY(-2px);
}

/* Custom component styles that extend Tailwind */
.cta-button {
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Custom modal animations */
@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content {
    animation: modalSlideIn 0.3s ease;
}

/* Custom hover effects */
.benefit-card {
    transition: transform 0.3s ease;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Custom focus styles */
input:focus, 
textarea:focus, 
select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(239, 131, 84, 0.2);
}

/* Custom selection color */
::selection {
    background: rgba(239, 131, 84, 0.2);
    color: #2D3142;
}

/* Custom placeholder styles */
::placeholder {
    color: #9CA3AF;
    opacity: 1;
}

/* Custom backdrop filter for modals */
.modal {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Custom text selection */
.logo span {
    color: #EF8354;
}

/* Custom hover states */
nav ul li a:hover {
    color: #EF8354;
}

/* Custom active states */
nav ul li a.active {
    color: #EF8354;
}
nav {}
/* Custom focus ring */
.cta-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(239, 131, 84, 0.3);
}

/* Custom transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Hide preview toggle on training page */
.app-training #preview-toggle {
    display: none;
}

#how-it-works input::placeholder,
#how-it-works textarea::placeholder {
  font-style: italic;
}

/* Training Section Development Overlay */
#how-it-works {
    position: relative;
    transition: all 0.3s ease;
}

/* Modal QR Code Styles */
.modal-qr-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.modal-qr-section .qr-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.qr-code-modal {
    width: 150px;
    height: 150px;
    border-radius: 15px;
    background: white;
    padding: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.qr-code-modal:hover {
    transform: rotate(0deg) scale(1.05);
}

.handwritten-text-modal {
    font-family: 'Kalam', cursive;
    font-size: 20px;
    color: #EF8354;
    font-weight: 600;
    transform: rotate(-6deg);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.hand-arrow-modal {
    position: absolute;
    top: -8px;
    right: -15px;
    transform: rotate(12deg);
    z-index: 1;
}

.hand-arrow-modal svg {
    filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.2));
    width: 50px;
    height: 35px;
}

/* Industry Button Styles */
.industry-btn {
    background: white;
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
    opacity: 0.6;
    pointer-events: none;
}

.industry-btn:hover:not(.disabled) {
    background: var(--primary);
    color: white;
}

.industry-btn.active {
    background: var(--primary);
    color: white;
}

.industry-btn.disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

.industry-btn.disabled:hover {
    background: #f5f5f5;
    color: #999;
} 