/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #8FA8AE;
    --color-secondary: #425363;
    --color-accent: #A90101;
    --color-white: #ffffff;
    --color-light-gray: #f5f5f5;
    --color-dark: #2c2c2c;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* Header and Navigation */
header {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    min-height: 50px;
    gap: 10px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 60px);
    flex-shrink: 1;
    min-width: 0;
}

.logo svg {
    width: 30px;
    height: 30px;
    fill: var(--color-white);
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--color-accent);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: 2px solid transparent;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition);
    outline: none;
}

.mobile-menu-toggle:focus {
    border-color: rgba(255, 255, 255, 0.5);
    outline: 2px solid rgba(255, 255, 255, 0.3);
    outline-offset: 2px;
}

.mobile-menu-toggle:active {
    background-color: rgba(255, 255, 255, 0.1);
}


.mobile-menu-toggle svg {
    width: 28px;
    height: 28px;
    fill: var(--color-white);
    stroke: var(--color-white);
}

/* Banner Section */
.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(66, 83, 99, 0.7), rgba(143, 168, 174, 0.7));
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.banner-content {
    text-align: center;
    color: var(--color-white);
    z-index: 1;
    padding: 2rem;
    max-width: 800px;
}

.banner-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--color-accent);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-accent);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: var(--transition);
    border: 2px solid var(--color-accent);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* Main Content */
main {
    padding: 4rem 0;
}

.section {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--color-accent);
}

/* Services/Products Grid */
.services-grid,
.products-grid,
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card,
.product-card,
.gallery-item {
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.service-card:hover,
.product-card:hover,
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-card img,
.product-card img,
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: #e0e0e0;
    display: block;
}

.service-card-content,
.product-card-content {
    padding: 1.5rem;
}

.service-card h3,
.product-card h3 {
    color: var(--color-secondary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p,
.product-card p {
    color: #666;
    line-height: 1.8;
}

/* Icons */
.icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
    stroke: var(--color-accent);
    stroke-width: 2;
    fill: none;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.about-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    background-color: #e0e0e0;
}

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: var(--color-light-gray);
    border-radius: 10px;
}

.contact-item h3 {
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.contact-item p,
.contact-item a {
    color: #666;
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--color-accent);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-light-gray);
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.map-container {
    margin-top: 3rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: var(--color-white);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--color-white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    header {
        padding: 0.6rem 0;
    }

    .container {
        padding: 0 15px;
    }

    nav {
        min-height: 48px;
        gap: 8px;
    }

    .mobile-menu-toggle {
        display: flex;
        min-width: 40px;
        min-height: 40px;
        padding: 5px;
    }

    .mobile-menu-toggle svg {
        width: 26px;
        height: 26px;
    }

    .logo {
        font-size: 1.2rem;
        gap: 6px;
        max-width: calc(100% - 50px);
    }

    .logo svg {
        width: 24px;
        height: 24px;
    }

    .nav-menu {
        position: fixed;
        top: 58px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 58px);
        background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 1.5rem;
        padding-bottom: 2rem;
        padding-left: 0;
        padding-right: 0;
        transition: var(--transition);
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
        list-style: none;
    }

    .nav-menu a {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
        display: block;
        width: calc(100% - 2rem);
        margin: 0 auto;
        max-width: 300px;
        border-radius: 5px;
        transition: var(--transition);
    }

    .nav-menu a:hover,
    .nav-menu a:focus {
        background-color: rgba(255, 255, 255, 0.1);
        outline: 2px solid rgba(255, 255, 255, 0.3);
        outline-offset: -2px;
    }

    .nav-menu a:active {
        background-color: rgba(255, 255, 255, 0.2);
    }

    .nav-menu a::after {
        display: none;
    }

    .banner-content h1 {
        font-size: 2rem;
    }

    .banner-content p {
        font-size: 1.2rem;
    }

    .banner {
        height: 400px;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .products-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    header {
        padding: 0.55rem 0;
    }

    nav {
        min-height: 46px;
    }

    .logo {
        font-size: 1.1rem;
        gap: 6px;
    }

    .logo svg {
        width: 22px;
        height: 22px;
    }

    .mobile-menu-toggle {
        min-width: 38px;
        min-height: 38px;
    }

    .mobile-menu-toggle svg {
        width: 24px;
        height: 24px;
    }

    .nav-menu {
        top: 56px;
        height: calc(100vh - 56px);
    }

    .nav-menu a {
        font-size: 0.98rem;
        padding: 0.7rem 1.25rem;
    }
}

@media screen and (max-width: 320px) {
    header {
        padding: 0.5rem 0;
    }

    .container {
        padding: 0 10px;
    }

    nav {
        min-height: 44px;
        gap: 6px;
    }

    .logo {
        font-size: 0.95rem;
        gap: 5px;
        max-width: calc(100% - 45px);
    }

    .logo svg {
        width: 20px;
        height: 20px;
    }

    .mobile-menu-toggle {
        padding: 4px;
        min-width: 36px;
        min-height: 36px;
    }

    .mobile-menu-toggle svg {
        width: 22px;
        height: 22px;
    }

    .nav-menu {
        top: 54px;
        height: calc(100vh - 54px);
        padding-top: 1rem;
        padding-bottom: 1.5rem;
        padding-left: 0;
        padding-right: 0;
    }

    .nav-menu li {
        margin: 0.4rem 0;
    }

    .nav-menu a {
        font-size: 0.95rem;
        padding: 0.6rem 1rem;
        width: calc(100% - 1.5rem);
        max-width: 280px;
        margin: 0 auto;
    }

    .banner {
        height: 300px;
    }

    .banner-content h1 {
        font-size: 1.5rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* AI/ML Theme Enhancements */
.ai-pattern {
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(143, 168, 174, 0.1) 10px,
        rgba(143, 168, 174, 0.1) 20px
    );
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: var(--color-white);
    padding: 1.5rem 2rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: none;
    animation: slideUp 0.5s ease;
}

.cookie-banner.show {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 250px;
}

.cookie-banner-text p {
    margin: 0;
    line-height: 1.6;
}

.cookie-banner-text a {
    color: var(--color-white);
    text-decoration: underline;
    transition: var(--transition);
}

.cookie-banner-text a:hover {
    color: var(--color-accent);
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border: 2px solid var(--color-white);
    background: transparent;
    color: var(--color-white);
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: var(--transition);
    font-size: 1rem;
}

.cookie-btn:hover {
    background: var(--color-white);
    color: var(--color-secondary);
}

.cookie-btn.accept {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.cookie-btn.accept:hover {
    background: #c41e1e;
    border-color: #c41e1e;
}

@media screen and (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
}

