* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
                url('/static/drill_crane.avif');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    background-repeat: no-repeat;
}

.page-wrapper {
    display: flex;
    min-height: calc(100vh - 120px);
    max-width: 1400px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: #1a1a1a;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: bold;
}

.logo-link {
    display: block;
    text-decoration: none;
}

.logo {
    height: 80px;
    width: auto;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem;
    border-radius: 5px;
}

.lang-btn {
    padding: 0.5rem 1rem;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.lang-btn:hover {
    background-color: rgba(212, 165, 116, 0.3);
}

.lang-btn.active {
    background-color: #d4a574;
    color: #1a1a1a;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #d4a574;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #2a2a2a;
    padding: 2rem 0;
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
    overflow-y: auto;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
}

.sidebar-btn {
    display: block;
    padding: 1rem 1.5rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    border: 2px solid #d4a574;
    border-radius: 8px;
    margin: 0.5rem 1rem;
    transition: all 0.3s;
    text-align: center;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1), rgba(212, 165, 116, 0.05));
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sidebar-btn:hover {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.3), rgba(212, 165, 116, 0.15));
    border-color: #e6b885;
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(212, 165, 116, 0.4);
}

.sidebar-btn.active {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.4), rgba(212, 165, 116, 0.2));
    border-color: #d4a574;
    color: #d4a574;
    box-shadow: 0 4px 8px rgba(212, 165, 116, 0.5);
}

.main-content {
    flex: 1;
    min-width: 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('/static/drill_crane.avif');
    background-size: cover;
    background-position: center;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin: 0;
}

.hero-overlay {
    width: 100%;
    padding: 2rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #d4a574;
}

.hero-text {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #d4a574;
    color: #fff;
}

.btn-primary:hover {
    background-color: #c49563;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #1a1a1a;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #333;
    transform: translateY(-2px);
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background-color: #f4f4f4;
}

/* Image Frame Section */
.image-frame-section {
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.95);
}

.image-frame {
    max-width: 900px;
    margin: 0 auto;
    border: 8px solid #d4a574;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.about-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
    color: #555;
}

/* Services Preview */
.services-preview {
    padding: 4rem 0;
}

.services-preview h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #d4a574;
}

.service-card p {
    color: #666;
}

/* CTA Section */
.cta-section {
    background-color: #1a1a1a;
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Page Header */
.page-header {
    background-color: #1a1a1a;
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
}

/* Services Detail */
.services-detail {
    padding: 4rem 0;
}

.service-detail-card {
    background: #f9f9f9;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.service-detail-card h2 {
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.service-detail-card p {
    color: #666;
    font-size: 1.1rem;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h2,
.contact-form-container h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h3 {
    color: #d4a574;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
}

.contact-item a {
    color: #1a1a1a;
    text-decoration: none;
}

.contact-item a:hover {
    color: #d4a574;
}

/* Contact Form */
.contact-form {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4a574;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

.footer a {
    color: #d4a574;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
}

.flash-message {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

.flash-success {
    background-color: #4caf50;
    color: white;
}

.flash-error {
    background-color: #f44336;
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
    }
    
    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        flex-wrap: wrap;
    }
    
    .sidebar-btn {
        flex: 1 1 auto;
        min-width: 150px;
    }
    
    .nav-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}
