/* Font Face Declarations */
@font-face {
    font-family: 'Quicksand';
    src: url('fonts/quicksand-v20-latin-regular.woff2') format('woff2'),
         url('fonts/quicksand-v20-latin-regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('fonts/nunito-sans-v19-latin-regular.woff2') format('woff2'),
         url('fonts/nunito-sans-v19-latin-regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables for Modern Theming */
:root {
    --primary-color: #58b030;
    --primary-dark: #4a9a28;
    --primary-light: #6bc73e;
    --secondary-color: #303030;
    --text-color: #646464;
    --text-light: #888;
    --bg-white: #ffffff;
    --bg-light: #f8f8f8;
    --border-color: #eee;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

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

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

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 35px;
    line-height: 45px;
    color: rgb(48, 48, 48);
    margin-bottom: 1rem;
}


h4 {
    font-size: 1.125rem;
}

p {
    margin-bottom: 1rem;
}

a[href^="tel:"],
a[href^="mailto:"] {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

a[href^="tel:"]:hover,
a[href^="mailto:"]:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.email-noscript {
    display: inline-block;
    margin-left: 0.25rem;
    color: var(--text-color);
    font-weight: 600;
}

.accent {
    color: var(--primary-color);
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Divider */
.divider {
    display: flex;
    gap: 6px;
    margin: 1.5rem 0 3rem 0;
}

.divider.center {
    justify-content: center;
}

.divider span {
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
    transition: var(--transition);
}

.divider-one {
    width: 50px;
}

.divider-two {
    width: 30px;
}

.divider-three {
    width: 15px;
}

/* Header - WEISSER HINTERGRUND */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header.scrolled {
    padding: 0.75rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

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

.logo img {
    height: 45px;
    width: auto;
    transition: var(--transition);
    image-orientation: none;
}

.header.scrolled .logo img {
    height: 40px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.highlight::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.highlight {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

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

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

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

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-lg);
}

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

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

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding-top: 80px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero h1 {
    margin-bottom: 2rem;
    text-align: center;
}

.hero-text {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 550px;
    text-align: left;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.hero-text p {
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    line-height: 1.4;
    color: rgb(48, 48, 48);
    margin-bottom: 1rem;
}

.hero-text p:first-child {
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    line-height: 1.4;
    color: rgb(48, 48, 48);
    font-weight: 600;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(88, 176, 48, 0.3);
    margin-top: 1rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(88, 176, 48, 0.4);
}

/* Abgerundeter Divider wie im Original */
.hero-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    line-height: 0;
    overflow: hidden;
}

.hero-divider svg {
    width: 100%;
    height: 120px;
    display: block;
}

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

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

.about-logo {
    max-width: 220px;
    margin-bottom: 1.5rem;
}

.locations {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.locations h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.location-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.location-icon {
    font-size: 1.25rem;
}

/* Map Markers */
.about-map {
    position: relative;
    border-radius: var(--border-radius);
    overflow: visible;
    box-shadow: var(--shadow-md);
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

.map-marker {
    position: absolute;
    cursor: pointer;
    z-index: 10;
}

.marker-circle {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(88, 176, 48, 0.4);
    position: relative;
    transition: var(--transition);
}

.marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-color);
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

.map-marker:hover .marker-circle {
    transform: scale(1.2);
}

.marker-aachen {
    top: 48%;
    left: 10%;
}

.marker-munich {
    top: 84%;
    left: 67%;
}

.marker-stuttgart {
    top: 75%;
    left: 36%;
}

.marker-content {
    position: absolute;
    background: white;
    padding: 1.25rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    transform: translateY(-10px);
    z-index: 100;
}

.marker-aachen .marker-content,
.marker-stuttgart .marker-content {
    left: 35px;
    top: -10px;
}

.marker-munich .marker-content {
    right: 35px;
    top: -10px;
}

.map-marker:hover .marker-content,
.map-marker:focus .marker-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.marker-content img {
    max-width: 100px;
    margin-bottom: 0.75rem;
}

.marker-content h4 {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.marker-content p {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0;
}

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

.services-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.services-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-content {
    position: relative;
    z-index: 2;
}

.services-content h1 {
    color: white;
    text-align: center;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
}

/* Abgerundeter Divider für Services */
.services-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
    overflow: hidden;
    z-index: 3;
}

.services-divider svg {
    width: 100%;
    height: 120px;
    display: block;
}

.services-grid {
    padding: 6rem 0;
    background: var(--bg-white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(88, 176, 48, 0.9), rgba(107, 199, 62, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-icon {
    font-size: 3rem;
    transform: scale(0.5);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-icon {
    transform: scale(1);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-content h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.portfolio-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: auto;
    color: var(--text-color);
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    transition: var(--transition);
}

.read-more:hover {
    gap: 0.75rem;
    color: var(--primary-dark);
}

/* Jobs Section */
.jobs {
    position: relative;
    padding: 6rem 0 8rem;
    background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url('images/Baureinigung.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.jobs .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.jobs-card {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 16px;
    max-width: 640px;
    width: 100%;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(4px);
    position: relative;
    z-index: 1;
}

.jobs-card h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.jobs-card .divider {
    justify-content: center;
    margin-bottom: 2rem;
}

.jobs-card p {
    color: var(--secondary-color);
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.7;
}

.jobs-card a {
    font-weight: 700;
}

/* Abgerundeter Divider für Jobs */
.jobs-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.jobs-divider svg {
    width: 100%;
    height: 120px;
    display: block;
}

/* Legal Page */
.legal-page {
    padding-top: 120px;
    background: var(--bg-light);
}

.legal-hero {
    background: linear-gradient(135deg, rgba(88, 176, 48, 0.12), rgba(88, 176, 48, 0.05));
    padding: 4rem 0;
    text-align: center;
}

.legal-hero h1 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.legal-hero p {
    margin: 0;
    color: var(--text-light);
}

.legal-content {
    padding: 4rem 0 6rem;
}

.legal-block {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.legal-block h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.legal-block p,
.legal-block li {
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.legal-block a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.legal-block a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

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

.contact .section-title {
    text-align: center;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: fit-content;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: var(--transition);
}

.info-item:hover {
    background-color: rgba(88, 176, 48, 0.03);
    transform: translateX(4px);
}

.info-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
    transition: var(--transition);
}

.location-icon {
    color: #e74c3c;
    opacity: 0.8;
}

.phone-icon {
    color: #27ae60;
    opacity: 0.8;
}

.email-icon {
    color: #3498db;
    opacity: 0.8;
}

.info-item:hover .info-icon {
    opacity: 1;
    transform: scale(1.1);
}

.fax-info {
    color: #7f8c8d;
    font-size: 0.95rem;
}

.info-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.info-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-color);
    margin: 0;
}

.info-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.info-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.info-item h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.info-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.info-item a {
    text-decoration: none;
    transition: var(--transition);
}

.info-item a:hover {
    color: var(--primary-dark);
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    background-color: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(88, 176, 48, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.form-explanation {
    margin: 1.5rem 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-light);
}

.form-explanation a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.form-explanation a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(88, 176, 48, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(88, 176, 48, 0.4);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 3rem 0 2rem;
    color: rgba(255, 255, 255, 0.8);
}

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

.footer-left {
    order: 1;
    font-size: 0.8rem;
}

.footer-left p {
    font-size: 0.8rem;
    margin: 0;
}

.footer-right {
    order: 2;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-right a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.footer-right .current {
    color: var(--primary-color);
    font-weight: 700;
    pointer-events: none;
}

.footer-right a:hover {
    color: var(--primary-color);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(88, 176, 48, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(88, 176, 48, 0.4);
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 6rem 2rem 2rem;
        transition: var(--transition);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
    
    .main-nav a {
        font-size: 1.1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-right {
        justify-content: center;
    }
    
    .hero-text {
        padding: 2rem;
    }
    
    .jobs-frame {
        padding: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-text {
        padding: 1.5rem;
    }
    
    .jobs-frame {
        padding: 1.5rem;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .back-to-top,
    .mobile-menu-toggle {
        display: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}
