/* Welcome to The Corporation - Retro Corporate Styling */

/* CSS Variables for Easy Theming */
:root {
    --bg-main: #f3f3f3;
    --panel: #e8e4db;
    --accent: #292972;
    --border: #cfd8e2;
    --highlight: #ffc44d;
    --text-main: #1c1c1c;
    --text-secondary: #666666;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.2);
    --gradient-main: linear-gradient(135deg, #e8e4db 0%, #f3f3f3 100%);
    --gradient-button: linear-gradient(135deg, #292972 0%, #292972 100%);
    --gradient-button-hover: linear-gradient(135deg, #4246c2 0%, #4246c2 100%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: "Tahoma", "Verdana", sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100vw;
}

/* CRT Texture Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px
        );
    pointer-events: none;
    z-index: 1000;
    opacity: 0.3;
}

/* Navigation Bar */
.nav-bar {
    background: var(--gradient-main);
    border-bottom: 2px solid var(--border);
    box-shadow: 0 2px 4px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #292972;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 1px;
}

.logo img {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    gap: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: var(--accent);
    color: white;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-link.external::after {
    content: '↗';
    margin-left: 5px;
    font-size: 12px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.hero-parallax-image {
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 200%;
    will-change: transform;
}

.hero-parallax-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.crt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.1) 2px,
            rgba(0, 0, 0, 0.1) 4px
        ),
        radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-tagline {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-login {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 4px var(--shadow);
}

.btn-primary {
    background: var(--gradient-button);
    color: white;
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background: var(--gradient-button-hover);
    box-shadow: 0 4px 8px var(--shadow-dark);
    transform: translateY(-1px);
}

.btn-primary:active {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
}

.btn-secondary {
    background: var(--panel);
    color: var(--text-main);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.btn-login {
    background: var(--gradient-button);
    color: white;
    border: 2px solid var(--accent);
    width: 100%;
    padding: 10px;
    font-size: 14px;
}

.btn-login:hover {
    background: var(--gradient-button-hover);
    box-shadow: 0 4px 8px var(--shadow-dark);
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
}

/* Override max-width for purchase page to use full width */
.main-content.purchase-page {
    max-width: 100%;
    margin: 0;
    padding: 40px 0;
}

.content-section {
    margin-bottom: 40px;
}

/* Panels */
.panel {
    background: var(--gradient-main);
    border: 1px solid var(--border);
    border-radius: 0;
    box-shadow: 0 4px 8px var(--shadow);
    overflow: hidden;
}

.panel-header {
    background: var(--accent);
    color: white;
    padding: 15px 20px;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 1px;
}

.panel-content {
    padding: 20px;
}

.panel-content p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

/* Carousel */
.carousel-section {
    margin: 40px 0;
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border: 2px solid var(--border);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 8px var(--shadow);
}

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

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Testimonial Overlay */
.testimonial-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 30px 20px 20px;
    color: white;
}

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

.testimonial-content blockquote {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 10px;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.testimonial-content cite {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.5px;
    opacity: 0.9;
    text-transform: uppercase;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.carousel-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 0;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* About Page */
.about-page {
    padding: 20px;
}

.about-content {
    max-width: none;
    padding: 0;
}

.content-block {
    margin-bottom: 0;
}

.image-block {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    margin: 0;
}

.image-block:not(:first-child) {
    height: 46.875vh;
    min-height: 312px;
}

.parallax-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.parallax-image {
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 200%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    will-change: transform;
}

.parallax-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.text-block {
    padding: 20px 20px;
    background: var(--bg-primary);
    margin: 0;
}

.text-block .info-section {
    margin-bottom: 40px;
}

.text-block .info-section:last-child {
    margin-bottom: 0;
}

.window-container {
    max-width: 1000px;
    margin: 0 auto;
}

.window {
    background: var(--gradient-main);
    border: 2px solid var(--border);
    border-radius: 0;
    box-shadow: 0 8px 16px var(--shadow-dark);
    overflow: hidden;
}

.window-header {
    background: var(--accent);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 0;
    cursor: pointer;
}

.control.minimize { background: #ffc44d; }
.control.maximize { background: #4caf50; }
.control.close { background: #f44336; }

.window-title {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
}

.window-content {
    padding: 30px;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.info-section {
    margin-bottom: 30px;
}

.info-section h2 {
    color: var(--accent);
    font-size: 18px;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.info-section p {
    margin-bottom: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.info-section ul {
    margin-left: 20px;
    color: var(--text-secondary);
}

.info-section li {
    margin-bottom: 8px;
}

.book-mockup {
    position: relative;
    text-align: center;
}

.book-mockup img {
    width: 100%;
    max-width: 300px;
    border-radius: 0;
    box-shadow: 0 4px 8px var(--shadow);
}

.mockup-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    border-radius: 0;
    text-align: center;
}

.mockup-overlay h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.mockup-overlay p {
    font-size: 12px;
    opacity: 0.9;
}

.action-section {
    text-align: center;
    margin-top: 40px;
}

/* Portal Page */
.portal-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    padding: 15px;
}

/* Purchase Page */
.purchase-page {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 20px;
    max-width: 100%;
    width: 100%;
}

.purchase-container {
    width: 70%;
    max-width: 100%;
    margin: 0 auto;
}

/* Purchase Window - Separate from portal login window */
.purchase-window {
    background: var(--gradient-main);
    border: 2px solid var(--border);
    border-radius: 0;
    box-shadow: 0 8px 16px var(--shadow-dark);
    padding: 30px;
    width: 100%;
}

.purchase-header {
    text-align: center;
    margin-bottom: 40px;
}

.purchase-header h1 {
    color: var(--accent);
    font-size: 28px;
    margin-bottom: 10px;
    letter-spacing: 1px;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
}

.purchase-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    font-style: italic;
}

.purchase-content {
    width: 100%;
}

.portal-container {
    width: 100%;
    max-width: 500px;
}

/* Portal Login Window - Separate from purchase window */
.login-window {
    background: var(--gradient-main);
    border: 2px solid var(--border);
    border-radius: 0;
    box-shadow: 0 8px 16px var(--shadow-dark);
    padding: 20px;
}

.login-header {
    text-align: center;
    margin-bottom: 15px;
}

.login-icon {
    margin-bottom: 8px;
}

.login-icon img {
    width: 40px;
    height: 40px;
}

.login-header h1 {
    color: var(--accent);
    font-size: 16px;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 11px;
}

.login-form {
    margin-bottom: 15px;
    padding: 0 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
    color: var(--text-main);
    font-size: 13px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 2px solid var(--border);
    border-radius: 0;
    font-family: inherit;
    font-size: 13px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(73, 123, 170, 0.1);
}

.form-group input:disabled {
    background: #f5f5f5;
    color: var(--text-secondary);
    cursor: not-allowed;
}

.login-footer {
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.warning-text {
    color: var(--text-secondary);
    font-size: 11px;
    margin-bottom: 4px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading-overlay.active {
    display: flex;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 0;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
}

.loading-dots {
    animation: blink 1s infinite;
}

/* Error Page */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.error-container {
    width: 100%;
    max-width: 600px;
}

.error-window {
    background: var(--gradient-main);
    border: 2px solid #f44336;
    border-radius: 0;
    box-shadow: 0 8px 16px var(--shadow-dark);
    overflow: hidden;
}

.error-header {
    background: #f44336;
    color: white;
    padding: 20px;
    text-align: center;
}

.error-icon {
    margin-bottom: 15px;
}

.warning-icon {
    font-size: 48px;
    animation: blink 1s infinite;
}

.error-header h1 {
    font-size: 24px;
    letter-spacing: 1px;
}

.error-content {
    padding: 30px;
}

.error-message h2 {
    color: #f44336;
    font-size: 20px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.error-message p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.error-message ul {
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.error-message li {
    margin-bottom: 5px;
}

.error-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.error-footer {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
}

.error-code {
    font-family: monospace;
    background: #f5f5f5;
    padding: 5px 10px;
    border-radius: 0;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--gradient-main);
    border-top: 2px solid var(--border);
    padding: 20px;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer p {
    color: var(--text-secondary);
    font-size: 14px;
}

.status {
    color: #4caf50;
    font-weight: bold;
}

.status.error {
    color: #f44336;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--gradient-main);
    border: 2px solid var(--border);
    border-radius: 0;
    box-shadow: 0 8px 16px var(--shadow-dark);
    max-width: 400px;
    width: 90%;
    overflow: hidden;
}

.modal-header {
    background: var(--accent);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 16px;
    letter-spacing: 1px;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 20px;
    text-align: center;
}

.modal-body p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Responsive Design - Mobile First Approach */
/* Base font size for mobile */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* Mobile styles (max-width: 767px) */
@media (max-width: 767px) {
    /* Prevent horizontal overflow */
    * {
        max-width: 100%;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    /* Navigation */
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 12px 15px;
        gap: 12px;
    }
    
    .logo {
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    
    .logo img {
        width: 28px;
        height: 28px;
        margin-right: 8px;
    }
    
    .nav-links {
        margin-top: 0;
        gap: 0;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 13px;
        flex: 1 1 auto;
        text-align: center;
        min-width: 80px;
    }
    
    /* Hero Section */
    .hero {
        height: 50vh;
        min-height: 300px;
        max-height: 400px;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 15px;
        padding: 0 10px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .hero-tagline {
        font-size: 0.95rem;
        margin-bottom: 20px;
        padding: 0 15px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    /* Main Content */
    .main-content {
        padding: 20px 15px;
        max-width: 100%;
    }
    
    .content-section {
        margin-bottom: 30px;
    }
    
    /* Panels */
    .panel-header {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .panel-content {
        padding: 15px;
    }
    
    .panel-content p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* Buttons */
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 13px;
        width: 100%;
        max-width: 300px;
    }
    
    /* Carousel */
    .carousel-container {
        max-width: 100%;
    }
    
    .carousel-slide img {
        height: 250px;
    }
    
    .carousel-controls {
        padding: 0 10px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .testimonial-overlay {
        padding: 15px 12px 12px;
    }
    
    .testimonial-content blockquote {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .testimonial-content cite {
        font-size: 11px;
    }
    
    /* About Page */
    .about-page {
        padding: 15px;
    }
    
    .window-container {
        max-width: 100%;
    }
    
    .window-header {
        padding: 12px 15px;
    }
    
    .window-title {
        font-size: 16px;
    }
    
    .window-content {
        padding: 20px 15px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .image-block {
        height: 35vh;
        min-height: 200px;
    }
    
    .image-block:not(:first-child) {
        height: 30vh;
        min-height: 180px;
    }
    
    .text-block {
        padding: 20px 15px;
    }
    
    .info-section {
        margin-bottom: 25px;
    }
    
    .info-section h2 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .info-section p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 12px;
    }
    
    .info-section ul {
        margin-left: 15px;
        font-size: 14px;
    }
    
    .info-section li {
        margin-bottom: 6px;
    }
    
    .parallax-image {
        background-attachment: scroll;
    }
    
    /* Portal Page */
    .portal-page {
        padding: 15px;
        min-height: auto;
    }
    
    .portal-container {
        max-width: 100%;
        width: 100%;
    }
    
    .login-window {
        padding: 20px 15px;
    }
    
    .login-header h1 {
        font-size: 14px;
    }
    
    .login-subtitle {
        font-size: 10px;
    }
    
    .login-form {
        padding: 0 5px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group label {
        font-size: 12px;
    }
    
    .form-group input {
        padding: 8px;
        font-size: 14px;
    }
    
    .btn-login {
        padding: 10px;
        font-size: 13px;
    }
    
    /* Purchase Page */
    .purchase-page {
        padding: 20px 15px;
        min-height: auto;
    }
    
    .purchase-container {
        width: 100%;
        max-width: 100%;
    }
    
    .purchase-window {
        padding: 20px 15px;
    }
    
    .purchase-header h1 {
        font-size: 22px;
    }
    
    .purchase-subtitle {
        font-size: 14px;
    }
    
    /* Footer */
    .footer {
        padding: 15px;
    }
    
    .footer p {
        font-size: 12px;
        line-height: 1.5;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        max-width: 350px;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-header h3 {
        font-size: 14px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-body p {
        font-size: 13px;
    }
    
    /* Error Page */
    .error-actions {
        flex-direction: column;
    }
    
    .error-header h1 {
        font-size: 20px;
    }
    
    .error-message h2 {
        font-size: 18px;
    }
    
    .error-message p {
        font-size: 14px;
    }
}

/* Tablet styles (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .nav-container {
        padding: 0 20px;
    }
    
    .hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .main-content {
        padding: 30px 20px;
    }
    
    .purchase-container {
        width: 85%;
    }
    
    .image-block {
        height: 50vh;
        min-height: 350px;
    }
    
    .image-block:not(:first-child) {
        height: 40vh;
        min-height: 280px;
    }
}

/* Very small screens (max-width: 480px) */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    .nav-container {
        padding: 10px 12px;
    }
    
    .logo {
        font-size: 12px;
    }
    
    .logo img {
        width: 24px;
        height: 24px;
        margin-right: 6px;
    }
    
    .nav-link {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 70px;
    }
    
    .hero {
        height: 45vh;
        min-height: 250px;
        max-height: 350px;
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .hero-tagline {
        font-size: 0.85rem;
    }
    
    .main-content {
        padding: 15px 12px;
    }
    
    .panel-header {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .panel-content {
        padding: 12px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .window-content {
        padding: 15px 12px;
    }
    
    .login-window {
        padding: 15px 12px;
    }
    
    .purchase-window {
        padding: 15px 12px;
    }
    
    .footer {
        padding: 12px;
    }
    
    .footer p {
        font-size: 11px;
    }
}

/* Desktop styles (1024px+) */
@media (min-width: 1024px) {
    .purchase-container {
        width: 70%;
    }
}

/* Print Styles */
@media print {
    .nav-bar,
    .footer,
    .carousel-controls,
    .modal {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        height: auto;
        min-height: auto;
    }
}
