/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --text-color: #333;
    --background-color: #ffffff;
    --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Header */
header {
    background: var(--primary-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1.5rem 2.5rem;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 55px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Navigation Social Links */
.nav-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-social-link {
    color: white;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    font-size: 1rem;
}

.nav-social-link:hover {
    transform: translateY(-3px);
}

.nav-social-link:hover i.fa-facebook-f {
    color: #1877f2;
}

.nav-social-link:hover i.fa-instagram {
    color: #e4405f;
}

.nav-social-link:hover i.fa-linkedin-in {
    color: #0077b5;
}

/* Main Content */
main {
    margin-top: 100px;
    min-height: calc(100vh - 100px);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('https://source.unsplash.com/1600x900/?industry');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 6rem 2rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero p {
    font-size: 1.2rem;
}

/* Products Section */
.products {
    padding: 4rem 2rem;
}

.products h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-content {
    padding: 1.5rem;
}

.product-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-content p {
    color: #666;
    margin-bottom: 1.5rem;
}

.learn-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.learn-more:hover {
    background: #2980b9;
}

/* Document Viewer Section */
.document-viewer {
    padding: 4rem 1rem;
    background-color: #f8f9fa;
    width: 100%;
    overflow-x: hidden;
}

.document-viewer .container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.document-frame {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    position: relative;
    width: 100%;
    overflow: hidden;
}

.document-frame iframe {
    width: 100%;
    height: 800px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.document-viewer h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 2rem;
    position: relative;
}

.document-viewer h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 1rem auto;
}

.download-link {
    text-align: center;
    margin-top: 1.5rem;
}

.download-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.download-link a:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.download-link i {
    font-size: 1.2rem;
}

/* Responsive design for document viewer */
@media (max-width: 768px) {
    .document-viewer {
        padding: 2rem 0.5rem;
    }
    
    .document-frame {
        padding: 0.5rem;
        margin: 0 -0.5rem;
        border-radius: 0;
    }
    
    .document-frame iframe {
        height: 600px;
        border-radius: 0;
        transform: scale(1);
        -webkit-transform: scale(1);
        transform-origin: 0 0;
        -webkit-transform-origin: 0 0;
    }

    .document-viewer h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .download-link a {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .document-frame iframe {
        height: 500px;
    }
    
    .document-viewer {
        padding: 1.5rem 0.3rem;
    }
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

/* Contact Page Styles */
.contact {
    padding: 6rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    padding: 2rem;
}

.contact-info {
    padding: 2rem;
}

.contact-info h2,
.contact-form h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.info-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
}

.info-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

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

.info-item p {
    color: #666;
    line-height: 1.6;
}

.info-item a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.contact-form {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #2980b9;
}

/* Responsive Design for Contact Page */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact {
        padding: 6rem 1rem 2rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .nav-links a {
        display: block;
        padding: 0.5rem;
    }

    .nav-social {
        margin-top: 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        margin-bottom: 1.5rem;
    }

    .logo-container img {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .product-card img {
        height: 200px;
    }

    .logo-container img {
        height: 45px;
    }
}

/* Social Media Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 5px;
}

.social-link i {
    font-size: 1.5rem;
    width: 25px;
    text-align: center;
}

.social-link span {
    font-size: 0.95rem;
}

/* Social media specific colors on hover */
.social-link:hover {
    transform: translateX(5px);
}

.social-link:hover i.fa-facebook {
    color: #1877f2;
}

.social-link:hover i.fa-instagram {
    color: #e4405f;
}

.social-link:hover i.fa-linkedin {
    color: #0077b5;
}

/* Responsive adjustments for social links */
@media (max-width: 768px) {
    .social-links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .social-link {
        flex: 0 0 auto;
    }
}

/* Hide upload section by default */
.upload-section {
    display: none;
}

/* Show upload section when admin is logged in */
.upload-section.show {
    display: block;
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Remove admin button styles */
.admin-button-container,
.admin-btn {
    display: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1001;
}

.modal-content {
    background: white;
    margin: 15% auto;
    padding: 20px;
    width: 300px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #333;
}

.modal h2 {
    color: #4a90e2;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #4a90e2;
    outline: none;
}

.modal button[type="submit"] {
    width: 100%;
    padding: 10px;
    background: linear-gradient(45deg, #4a90e2, #357abd);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modal button[type="submit"]:hover {
    background: linear-gradient(45deg, #357abd, #4a90e2);
    transform: translateY(-2px);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .logo-container {
        margin-bottom: 1rem;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.5rem;
        width: 100%;
    }

    .nav-social {
        margin-top: 1rem;
    }

    /* Content adjustments for mobile */
    .hero {
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .products {
        padding: 2rem 1rem;
    }

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

    .product-card {
        margin: 0 auto;
        max-width: 400px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .product-card img {
        height: 200px;
    }

    .nav-social {
        gap: 1rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 0.5rem;
    }

    .nav-links a {
        display: block;
        padding: 0.5rem;
    }

    .nav-social {
        margin-top: 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .product-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .product-card img {
        height: 200px;
    }
}

/* Scroll to Top Button */
#scrollToTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    transition: background-color 0.3s;
}

#scrollToTop:hover {
    background-color: var(--accent-color);
}

/* Slide Up Button */
.slide-up-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.slide-up-btn:hover {
    background-color: var(--accent-color);
}

.slide-up-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.slide-up-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.animate-text {
    opacity: 0;
    transform: translateY(20px);
    animation-fill-mode: forwards;
}

.animate-1 {
    animation: fadeInSlide 1s ease-out 0.5s forwards;
}

.animate-2 {
    animation: fadeInSlide 1s ease-out 1s forwards;
}

@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle {
    margin-top: 10px;
}

.welcome-text {
    font-size: 0.9rem;
    font-family: 'Arial', 'Helvetica Neue', sans-serif;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.2;
}
