* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Only apply backdrop-filter when not capturing for puzzle */
body:not(.capturing-puzzle) header {
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        padding: 0.5rem 0;
    }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    background: none;
    border: 2px solid #4CAF50;
    color: #333;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.lang-btn:hover {
    background: #4CAF50;
    color: white;
    transform: translateY(-1px);
}

.lang-btn.active {
    background: #4CAF50;
    color: white;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4CAF50;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-right {
        flex-direction: column;
        gap: 1rem;
    }
    
    .language-switcher {
        order: -1;
    }
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #4CAF50;
}

.hero {
    background: 
        linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(102, 126, 234, 0.3)),
        linear-gradient(180deg, #87CEEB 0%, #4682B4 50%, #1E90FF 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 15px;
}

/* Only apply backdrop-filter when not capturing for puzzle */
body:not(.capturing-puzzle) .hero-content {
    backdrop-filter: blur(10px);
}

.brick-mosaic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20px, 1fr));
    grid-template-rows: repeat(auto-fit, minmax(20px, 1fr));
    gap: 2px;
    z-index: 1;
    opacity: 0.7;
}

.brick {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    cursor: move;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.brick:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.brick.dragging {
    opacity: 0.6;
    transform: scale(0.9) rotate(5deg);
    z-index: 100;
}

.brick.auto-animating {
    animation: randomMove 3s ease-in-out infinite;
    animation-delay: calc(var(--animation-delay) * 1s);
}

.draggable {
    cursor: move;
    transition: transform 0.2s ease;
}

.draggable:hover {
    transform: scale(1.02);
}

.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

.drag-placeholder {
    border: 2px dashed #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 10px;
}

@keyframes randomMove {
    0% { transform: translateX(0) translateY(0) rotate(0deg); }
    25% { transform: translateX(var(--random-x-1)) translateY(var(--random-y-1)) rotate(var(--random-rotation-1)); }
    50% { transform: translateX(var(--random-x-2)) translateY(var(--random-y-2)) rotate(var(--random-rotation-2)); }
    75% { transform: translateX(var(--random-x-3)) translateY(var(--random-y-3)) rotate(var(--random-rotation-3)); }
    100% { transform: translateX(0) translateY(0) rotate(0deg); }
}

.postit-contact {
    position: fixed;
    top: 180px;
    left: 15%;
    transform: rotate(-2deg);
    transform-origin: center center;
    width: 320px;
    background: #ffeb3b;
    padding: 20px;
    border-radius: 0 0 0 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 6px 20px rgba(0,0,0,0.1);
    z-index: 1002;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    transition: transform 0.3s ease;
    resize: both;
    overflow: auto;
    min-width: 250px;
    min-height: 200px;
    max-width: 600px;
    max-height: 500px;
}

.postit-contact:hover {
    transform: rotate(-2deg) scale(1.5);
}

.postit-contact.dragging {
    opacity: 1;
    transform: rotate(5deg) scale(0.95);
    z-index: 1003;
}

.postit-contact h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1rem;
    text-align: center;
}

.postit-contact input,
.postit-contact textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: none;
    background: rgba(255,255,255,0.7);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.postit-contact textarea {
    height: 60px;
    resize: none;
}

.postit-contact button {
    width: 100%;
    padding: 10px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.postit-contact button:hover {
    background: #45a049;
}

.postit-contact::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 20px;
    width: 20px;
    height: 20px;
    background: #ff6b6b;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}


.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-weight: bold;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    font-weight: 500;
}

.cta-button {
    display: inline-block;
    background: #fff;
    color: #4CAF50;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.services {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.95);
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-icon i {
    width: 3rem;
    height: 3rem;
    stroke-width: 1.5;
    color: #667eea;
}

.service-card h3 {
    color: #4CAF50;
    margin-bottom: 1rem;
}

.about {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.skill-tag {
    background: #4CAF50;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    transform-origin: center center;
}

.skill-tag:hover {
    transform: scale(1.3);
}

.contact {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.95);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #4CAF50;
}

.projects {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-link {
    display: block;
    background: #f8f9fa;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s ease;
}

.project-link:hover {
    background: #e9ecef;
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Backend Baukasten Overlay Styles */
.baukasten-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.baukasten-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 2rem;
    width: 90vw;
    height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #4CAF50;
    position: relative;
}

.overlay-header h2 {
    color: #333;
    margin: 0;
    font-size: 2rem;
    flex: 1;
    text-align: center;
    padding-left: 40px; /* Account for close button width */
}

.close-overlay {
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
    position: absolute;
    left: 0;
    top: 0;
}

.close-overlay:hover {
    background: #ff3742;
    transform: scale(1.1);
}

.baukasten-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.module-category h3 {
    color: #4CAF50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(45deg, #4CAF50, #66BB6A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.module-grid.cross-cutting {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.module-block {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: move;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.module-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #4CAF50;
}

.module-block.dragging {
    opacity: 0.7;
    transform: rotate(5deg) scale(0.95);
    z-index: 1000;
}

.module-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.module-icon i {
    width: 2.5rem;
    height: 2.5rem;
    stroke-width: 1.5;
    color: #667eea;
}

.module-block h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: center;
    font-weight: 600;
}

.module-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.module-block li {
    background: rgba(76, 175, 80, 0.1);
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    border-left: 3px solid #4CAF50;
    transition: all 0.2s ease;
}

.module-block li:hover {
    background: rgba(76, 175, 80, 0.2);
    transform: translateX(5px);
}

.architecture-playground {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
}

.architecture-playground h3 {
    color: white;
    text-align: center;
    margin-bottom: 1rem;
}

.playground-area {
    background: rgba(255, 255, 255, 0.9);
    border: 3px dashed #4CAF50;
    border-radius: 15px;
    min-height: 200px;
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
    justify-content: center;
    transition: all 0.3s ease;
}

.playground-area.drag-over {
    background: rgba(76, 175, 80, 0.2);
    border-color: #2E7D32;
    transform: scale(1.02);
}

.playground-hint {
    color: #666;
    text-align: center;
    font-style: italic;
    margin: 0;
    align-self: center;
}

.playground-module {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    min-width: 150px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: move;
    transition: all 0.3s ease;
}

.playground-module:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.playground-module .module-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.playground-module h5 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.backend-baukasten-card {
    cursor: pointer !important;
}

.backend-baukasten-card:hover {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
}

/* Puzzle Effect Styles */
.page-frozen {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

.puzzle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
}

.puzzle-piece {
    position: absolute;
    background-size: cover;
    background-repeat: no-repeat;
    border: 2px solid #333;
    transition: all 0.1s ease-out;
    cursor: grab;
}

.puzzle-piece.scattered {
    animation: scatterPiece 2s ease-out forwards;
}

.puzzle-piece.returning {
    animation: returnPiece 1s ease-in-out forwards;
}

@keyframes scatterPiece {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(var(--scatter-x), var(--scatter-y)) rotate(var(--scatter-rotation));
        opacity: 0.8;
    }
}

@keyframes returnPiece {
    0% {
        transform: translate(var(--scatter-x), var(--scatter-y)) rotate(var(--scatter-rotation));
        opacity: 0.8;
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
}

@keyframes puzzleBreak {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.page-breaking {
    animation: puzzleBreak 0.5s ease-in-out;
}

/* Timer Countdown Overlay */
.timer-overlay {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 20px;
    border-radius: 15px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    z-index: 9999;
    border: 2px solid rgba(255, 255, 255, 0.2);
    min-width: 250px;
    transition: all 0.3s ease;
}

/* Only apply backdrop-filter when not capturing for puzzle */
body:not(.capturing-puzzle) .timer-overlay {
    backdrop-filter: blur(10px);
}

.timer-overlay.hidden {
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
}

.timer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.timer-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.timer-label {
    font-size: 12px;
    opacity: 0.8;
}

/* Default: show desktop labels, hide mobile labels */
.timer-label-desktop {
    display: inline;
}

.timer-label-mobile {
    display: none;
}

.timer-value {
    font-weight: bold;
    font-size: 16px;
    color: #4CAF50;
}

.timer-value.warning {
    color: #FF9800;
}

.timer-value.danger {
    color: #f44336;
    animation: pulse-timer 1s infinite;
}

@keyframes pulse-timer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.timer-toggle {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.timer-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
    position: relative;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.6);
}

.chatbot-toggle.active {
    background: linear-gradient(135deg, #f44336, #e57373);
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

.chatbot-window.visible {
    display: flex;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-header {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.chatbot-title {
    flex: 1;
}

.chatbot-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chatbot-title p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    animation: fadeInMessage 0.3s ease-out;
}

@keyframes fadeInMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.bot {
    background: white;
    color: #333;
    align-self: flex-start;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.message.user {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    align-self: flex-end;
}

.message.typing {
    background: white;
    color: #666;
    align-self: flex-start;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4CAF50;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.chatbot-input {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
    align-items: center;
}

.chatbot-input input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.chatbot-input input:focus {
    border-color: #4CAF50;
}

.chatbot-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
}

.chatbot-send:hover {
    transform: scale(1.1);
}

.chatbot-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.suggestion-chip {
    background: #e3f2fd;
    color: #1976d2;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-chip:hover {
    background: #1976d2;
    color: white;
}

/* Enhanced Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Chatbot mobile */
    .chatbot-window {
        width: 300px;
        height: 450px;
    }
    
    .chatbot-container {
        bottom: 15px;
        right: 15px;
    }
    
    /* Navigation mobile */
    .nav-links {
        display: none;
    }
    
    .nav-right {
        gap: 1rem;
    }
    
    .language-switcher {
        gap: 0.3rem;
    }
    
    .lang-btn {
        padding: 0.2rem 0.6rem;
        font-size: 0.8rem;
        min-height: 36px;
    }

    /* Typography mobile */
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin: 1rem 0;
    }

    /* Grid layouts mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Service cards mobile */
    .service-card {
        padding: 1.5rem;
        margin: 0.5rem 0;
    }
    
    .service-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .service-icon i {
        width: 2.5rem;
        height: 2.5rem;
    }

    /* Skills tags mobile */
    .skills {
        justify-content: center;
        text-align: center;
    }
    
    .skill-tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
        margin: 0.2rem;
    }

    /* Overlay content mobile */
    .overlay-content {
        margin: 1rem;
        padding: 1rem;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }

    /* Module grids mobile */
    .module-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .module-grid.cross-cutting {
        grid-template-columns: 1fr;
    }
    
    .module-block {
        padding: 1rem;
    }
    
    .module-icon {
        font-size: 2rem;
    }
    
    .module-icon i {
        width: 2rem;
        height: 2rem;
    }

    /* PostIt mobile */
    .postit-contact {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
        margin: 2rem auto;
        max-width: 90vw;
    }

    /* Timer overlay mobile - compact corner version */
    .timer-overlay {
        top: 70px; /* Below fixed header */
        right: 10px;
        bottom: auto;
        padding: 4px 8px;
        font-size: 10px;
        min-width: auto;
        border-radius: 8px;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
        z-index: 1000; /* Below header but above content */
    }
    
    .timer-item {
        margin-bottom: 2px;
        padding: 1px 0;
        border-bottom: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 1px;
    }
    
    .timer-label {
        font-size: 8px;
        opacity: 0.7;
        line-height: 1;
    }
    
    .timer-label-desktop {
        display: none;
    }
    
    .timer-label-mobile {
        display: inline;
    }
    
    .timer-value {
        font-size: 10px;
        font-weight: bold;
        line-height: 1;
    }
    
    .timer-toggle {
        top: 2px;
        right: 2px;
        width: 16px;
        height: 16px;
        font-size: 12px;
    }

    /* Touch-friendly buttons */
    .cta-button,
    button {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Disable drag effects on mobile */
    .draggable {
        cursor: default !important;
    }
    
    .draggable[draggable="true"] {
        -webkit-user-drag: none;
        -khtml-user-drag: none;
        -moz-user-drag: none;
        -o-user-drag: none;
        user-drag: none;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .overlay-content {
        margin: 5px;
        padding: 0.5rem;
    }
    
    .module-block {
        padding: 0.75rem;
    }
    
    .chatbot-window {
        width: calc(100vw - 20px);
        height: 400px;
    }
    
    /* Ultra-compact timer for small screens */
    .timer-overlay {
        top: 5px;
        right: 5px;
        padding: 2px 4px;
        font-size: 8px;
        border-radius: 4px;
    }
    
    .timer-label {
        font-size: 7px;
    }
    
    .timer-value {
        font-size: 8px;
    }
    
    .timer-toggle {
        width: 12px;
        height: 12px;
        font-size: 10px;
        top: 1px;
        right: 1px;
    }
}

/* PWA Install Button Styles */
.pwa-install-btn {
    position: fixed;
    top: 50%;
    right: -200px; /* Hidden initially */
    transform: translateY(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px 0 0 25px;
    padding: 15px 25px 15px 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    z-index: 1600;
    transition: all 0.3s ease;
    min-height: 48px;
    white-space: nowrap;
}

.pwa-install-btn.show {
    right: 0;
    animation: slideInFromRight 0.5s ease-out;
}

.pwa-install-btn:hover {
    transform: translateY(-50%) translateX(-10px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.pwa-install-btn:active {
    transform: translateY(-50%) translateX(0);
}

@keyframes slideInFromRight {
    0% {
        right: -200px;
        opacity: 0;
    }
    100% {
        right: 0;
        opacity: 1;
    }
}

/* PWA Install Button - Mobile Adjustments */
@media (max-width: 768px) {
    .pwa-install-btn {
        top: auto;
        bottom: 150px; /* Above user story and chatbot */
        right: -180px;
        left: auto;
        transform: none;
        border-radius: 25px 0 0 25px;
        padding: 12px 20px 12px 25px;
        font-size: 14px;
    }
    
    .pwa-install-btn.show {
        right: 0;
    }
    
    .pwa-install-btn:hover {
        transform: translateX(-8px);
    }
    
    .pwa-install-btn:active {
        transform: translateX(0);
    }
}

@media (max-width: 480px) {
    .pwa-install-btn {
        bottom: 140px;
        padding: 10px 15px 10px 20px;
        font-size: 13px;
    }
}


/* Mobile User Story Styles */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

.mobile-user-story-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    z-index: 1500;
    transition: all 0.3s ease;
    min-height: 48px;
}

.mobile-user-story-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.mobile-user-story-btn:active {
    transform: translateY(0);
}

.mobile-user-story-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-user-story-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-user-story-content {
    background: white;
    border-radius: 15px;
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    max-width: 500px;
    max-height: 700px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.7) translateY(50px);
    transition: all 0.3s ease;
}

.mobile-user-story-overlay.active .mobile-user-story-content {
    transform: scale(1) translateY(0);
}

.mobile-user-story-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-user-story-header h2 {
    margin: 0;
    font-size: 1.4rem;
}

.close-mobile-user-story {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-mobile-user-story:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-user-story-content form {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: bold;
    color: #333;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
    padding-top: 10px;
}

.form-actions button {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
}

.cancel-btn {
    background: #f5f5f5;
    color: #666;
}

.cancel-btn:hover {
    background: #e0e0e0;
}

.submit-btn {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

/* Mobile responsive adjustments for User Story */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block;
    }
    
    .mobile-user-story-btn {
        bottom: 80px; /* Above chatbot */
        left: 15px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* Adjust chatbot position to make room for user story button */
    .chatbot-container {
        bottom: 15px;
        right: 15px;
    }
    
    .mobile-user-story-content {
        width: calc(100vw - 10px);
        height: calc(100vh - 10px);
        border-radius: 10px;
    }
    
    .mobile-user-story-header {
        padding: 15px;
    }
    
    .mobile-user-story-header h2 {
        font-size: 1.2rem;
    }
    
    .mobile-user-story-content form {
        padding: 15px;
        gap: 15px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .mobile-user-story-content {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        max-width: none;
        max-height: none;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions button {
        width: 100%;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover effects that don't work on touch */
    .service-card:hover,
    .skill-tag:hover,
    .module-block:hover {
        transform: none;
    }
    
    /* Make touch targets larger */
    .nav-links a,
    .lang-btn,
    button,
    .cta-button {
        min-height: 48px;
        padding: 1rem;
    }
    
    /* Remove hover cursor on touch devices */
    .service-card,
    .skill-tag,
    .module-block {
        cursor: default;
    }
    
    .mobile-user-story-btn:hover {
        transform: none;
    }
}