/*
Theme Name: UPT Vector Theme
Description: Custom theme for UPT Vector website
Version: 1.0
Author: UPT Vector
*/

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    padding-top: 60px; /* Account for fixed header */
}

/* Header Styles */
.site-header {
    background-color: #fff;
    color: #333;
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    min-height: 50px;
}

/* Header scroll behavior */
.site-header.scrolled {
    padding: 0.3rem 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header.hidden {
    transform: translateY(-100%);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.site-logo {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.logo-image {
    height: 35px;
    width: auto;
    max-width: 150px;
}

.logo-text {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #666;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
    transform-origin: center;
}

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

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

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

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    /* Hide desktop navigation on mobile */
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        width: 25px;
        height: 25px;
    }
    
    .hamburger-line {
        height: 2px;
    }
    
    /* Show mobile navigation when menu is open */
    .main-navigation.mobile-menu-open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        max-height: 40vh;
        overflow-y: auto;
    }
    
    .main-navigation.mobile-menu-open {
        transform: translateY(0);
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        text-align: center;
        padding: 0.5rem 0;
        list-style: none;
        margin: 0;
    }
    
    .main-navigation a {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
        display: block;
        border-bottom: 1px solid #f0f0f0;
        text-decoration: none;
        color: #333;
        transition: all 0.2s ease;
    }
    
    .main-navigation a:hover {
        background-color: #f8f9fa;
        color: #ff6b35;
    }
    
    .main-navigation a:last-child {
        border-bottom: none;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* Tablet Navigation */
@media (max-width: 1024px) and (min-width: 769px) {
    .main-navigation ul {
        gap: 1.5rem;
    }
    
    .main-navigation a {
        font-size: 0.9rem;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
    max-height: 800px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-bg-image {
    width: 100%;
    height: 100%;
    max-height: 800px;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translateY(-50%);
    z-index: 2;
    max-width: 400px;
    max-height: 300px;
}

.hero-overlay-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    margin-top: 2rem;
}

.hero-cta {
    display: inline-block;
    background-color: #ff6b35;
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.hero-cta:hover {
    background-color: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* Responsive Hero Section */
@media (max-width: 768px) {
    .hero-section {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-overlay {
        max-width: 300px;
        max-height: 200px;
    }
    
    .hero-content {
        margin-top: 1rem;
    }
    
    .hero-cta {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Products Section */
.products-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

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

.product-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

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

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

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

.product-link {
    display: inline-block;
    background-color: #333;
    color: #fff;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.product-link:hover {
    background-color: #555;
}

/* News Section */
.news-section {
    padding: 4rem 0;
    background-color: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.news-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-excerpt {
    color: #666;
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

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

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.about-text p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

/* Footer */
.site-footer {
    background-color: #000;
    color: #fff;
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: #fff;
}

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

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

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #333;
    color: #ccc;
}

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

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #333;
    color: #fff;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #ff6b35;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 50px; /* Minimal padding for mobile */
    }
    
    .header-container {
        justify-content: space-between;
        align-items: center;
        height: 50px;
        padding: 0 10px;
    }
    
    .site-logo {
        flex: 1;
    }
    
    .logo-image {
        height: 30px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #555;
}

.btn-primary {
    background-color: #ff6b35;
}

.btn-primary:hover {
    background-color: #e55a2b;
}
