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

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2c3e50;
    --accent-color: #1e3a5f;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --industrial-blue: #1e3a5f;
    --steel-gray: #4a4a4a;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@400;500;700&family=Roboto+Condensed:wght@300;400;700&family=Roboto+Mono:wght@400;500&display=swap');

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

/* Header */
.header {
    background-image: url('img/static/header.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 4rem 0 3rem;
    box-shadow: var(--shadow);
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.88) 0%, rgba(44, 62, 80, 0.88) 100%);
    z-index: 1;
}

.header .container {
    position: relative;
    z-index: 2;
}

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

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 6rem;
    font-weight: 400;
    margin-bottom: 0.3rem;
    letter-spacing: 12px;
    color: var(--white);
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    line-height: 1;
}

.tagline-wrapper {
    margin-bottom: 2.5rem;
    position: relative;
}

.tagline {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--white);
    background-color: var(--industrial-blue);
    padding: 0.4rem 2rem;
    margin: 0;
    display: inline-block;
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
}

.typing-container {
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    font-family: 'Roboto Mono', monospace;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.typing-text {
    min-width: 20px;
}

.cursor {
    animation: blink 1s step-end infinite;
    margin-left: 3px;
    color: var(--industrial-blue);
    font-weight: 700;
}

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

.header-divider {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    margin: 2.5rem auto;
    position: relative;
}

.header-divider::before,
.header-divider::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.header-divider::before {
    left: -12px;
}

.header-divider::after {
    right: -12px;
}

.header-info {
    margin-bottom: 2rem;
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.85;
    line-height: 1.8;
}

.header-info p {
    margin: 0.3rem 0;
}

.header-contact {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    font-size: 0.9rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
    position: relative;
}

.contact-label {
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    font-weight: 500;
}

.contact-item span:not(.contact-label) {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 300;
    color: var(--white);
}

.contact-item a {
    font-family: 'Roboto Condensed', sans-serif;
    color: var(--white);
    text-decoration: none;
    font-weight: 300;
    transition: all 0.3s ease;
    position: relative;
}

.contact-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--industrial-blue);
    transition: width 0.3s ease;
}

.contact-item a:hover {
    color: var(--industrial-blue);
}

.contact-item a:hover::after {
    width: 100%;
}

/* Portfolio Section */
.portfolio {
    padding: 4rem 0;
    background: var(--bg-color);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

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

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.product-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.product-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-contact {
    background: var(--steel-gray);
    color: var(--white);
    width: 100%;
    text-align: center;
    border: 2px solid var(--steel-gray);
    margin-top: auto;
}

.btn-contact:hover {
    background: var(--industrial-blue);
    border-color: var(--industrial-blue);
    transform: scale(1.02);
}

.btn-contact:active {
    background: var(--industrial-blue);
    border-color: var(--industrial-blue);
}

.btn-primary {
    background: var(--steel-gray);
    color: var(--white);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: 2px solid var(--steel-gray);
}

.btn-primary:hover {
    background: var(--industrial-blue);
    border-color: var(--industrial-blue);
    transform: scale(1.05);
}

.btn-primary:active {
    background: var(--industrial-blue);
    border-color: var(--industrial-blue);
}

/* Custom Request Card */
.custom-request {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 2rem;
    box-shadow: var(--shadow-lg);
}

.custom-request h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.custom-request p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-contact a {
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.3s ease;
}

.footer-contact a:hover {
    border-color: var(--white);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-links .separator {
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        min-height: 450px;
        padding: 3rem 0 2rem;
    }

    .logo {
        font-size: 3.5rem;
        letter-spacing: 6px;
        text-shadow: 
            2px 2px 4px rgba(0, 0, 0, 0.8);
    }

    .tagline {
        font-size: 0.85rem;
        letter-spacing: 3px;
        padding: 0.3rem 1.5rem;
    }

    .typing-container {
        font-size: 1rem;
        height: 45px;
    }

    .header-divider {
        width: 150px;
        height: 3px;
    }

    .header-contact {
        gap: 2rem;
        font-size: 0.85rem;
    }

    .header-info {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .custom-request {
        padding: 2rem;
    }

    .custom-request h3 {
        font-size: 1.5rem;
    }

    .custom-request p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 2rem 0 1.5rem;
        min-height: 420px;
    }

    .logo {
        font-size: 2.5rem;
        letter-spacing: 4px;
        text-shadow: 
            2px 2px 4px rgba(0, 0, 0, 0.8);
    }

    .tagline {
        font-size: 0.7rem;
        letter-spacing: 2px;
        padding: 0.3rem 1rem;
    }

    .typing-container {
        font-size: 0.85rem;
        height: 40px;
    }

    .header-contact {
        flex-direction: column;
        gap: 1.5rem;
        font-size: 0.8rem;
    }

    .contact-label {
        font-size: 0.65rem;
    }

    .header-info {
        font-size: 0.85rem;
    }

    .header-divider {
        width: 120px;
        height: 3px;
        margin: 2rem auto;
    }

    .header-divider::before,
    .header-divider::after {
        width: 6px;
        height: 6px;
    }

    .header-divider::before {
        left: -10px;
    }

    .header-divider::after {
        right: -10px;
    }

    .portfolio {
        padding: 2rem 0;
    }

    .product-image {
        height: 200px;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--white);
    font-size: 50px;
    font-weight: 300;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--industrial-blue);
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--white);
    padding: 20px 0;
    font-size: 1.2rem;
    font-family: 'Roboto Condensed', sans-serif;
}

.product-image {
    cursor: zoom-in;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.product-card:hover .product-image {
    opacity: 0.9;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease forwards;
}
