/* Auto Industries - Professional Railway Solutions Website */
/* Inspired by Paragon Products clean, solutions-focused design */

/* === CSS RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #c41e3a;
    --dark-red: #8b1a2e;
    --light-gray: #f5f5f5;
    --medium-gray: #666;
    --dark-gray: #333;
    --white: #ffffff;
    --border-gray: #ddd;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-red);
    font-size: 2.5rem;
}

/* === HEADER & NAVIGATION === */
.header {
    background: var(--white);
    border-bottom: 3px solid var(--primary-red);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo a {
    display: block;
    line-height: 0;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo a:hover .logo-img {
    opacity: 0.8;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    color: var(--primary-red);
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.tagline {
    font-size: 0.9rem;
    color: var(--medium-gray);
    font-style: italic;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 2px;
}

/* === HERO SECTION === */
.hero {
    background: linear-gradient(90deg, #3e258f 0%, var(--dark-red) 50%, var(--primary-red) 100%);
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-red);
}

.btn-primary:hover {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-red);
}

/* === VALUE PROPOSITION === */
.value-prop {
    background: var(--light-gray);
    padding: 3rem 0;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.value-item h3 {
    color: var(--primary-red);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.value-item p {
    color: var(--medium-gray);
    font-weight: 500;
}

/* === INDUSTRIES SECTION === */
.industries {
    padding: 5rem 0;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.industry-card {
    padding: 2rem;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    background: var(--white);
    transition: all 0.3s ease;
}

.industry-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--primary-red);
}

.industry-card h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.industry-card p {
    margin-bottom: 1rem;
    color: var(--medium-gray);
}

.link-arrow {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.link-arrow:hover {
    color: var(--dark-red);
}

/* === PRODUCTS OVERVIEW === */
.products-overview {
    background: var(--light-gray);
    padding: 5rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-category {
    background: var(--white);
    padding: 2rem;
    border-left: 4px solid var(--primary-red);
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.product-category:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-category h4 {
    color: var(--dark-red);
    margin-bottom: 0.5rem;
}

.product-category p {
    color: var(--medium-gray);
    font-size: 0.95rem;
}

/* === NEWS SECTION === */
.news {
    padding: 5rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-item {
    padding: 2rem;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    background: var(--white);
    position: relative;
    transition: all 0.3s ease;
}

.news-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-item h3 {
    color: var(--dark-red);
    margin-bottom: 1rem;
}

.news-item p {
    color: var(--medium-gray);
    margin-bottom: 1rem;
}

.news-item .date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-red);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* === CTA SECTION === */
.cta {
    background: linear-gradient(90deg, #3e258f 0%, var(--dark-red) 50%, var(--primary-red) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

.cta h2,
.cta p,
.cta .hero-buttons {
    position: relative;
    z-index: 1;
}

.cta h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* === FOOTER === */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255,255,255,0.7);
}

.footer-bottom a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--primary-red);
}

/* === RESPONSIVE === */

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .industry-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Landscape / Small Tablet */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 100;
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav a {
        padding: 0.8rem 0;
        border-bottom: 1px solid var(--border-gray);
        border-left: none;
    }
    
    .nav a:last-child {
        border-bottom: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .logo {
        gap: 0.8rem;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .tagline {
        font-size: 0.8rem;
    }
    
    .hero {
        padding: 3rem 1.5rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .value-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .industry-grid,
    .products-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta {
        padding: 3rem 1.5rem;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
    
    .cta p {
        font-size: 1.1rem;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .header-content {
        padding: 0.8rem 0;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .logo {
        gap: 0.6rem;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .tagline {
        font-size: 0.75rem;
    }
    
    .hero {
        padding: 2.5rem 1rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    
    .value-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .value-item h3 {
        font-size: 1.5rem;
    }
    
    .value-item p {
        font-size: 0.9rem;
    }
    
    .industry-card,
    .news-item,
    .product-category {
        padding: 1.5rem;
    }
    
    .industry-card h3,
    .news-item h3 {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }
    
    .cta {
        padding: 2.5rem 1rem;
    }
    
    .cta h2 {
        font-size: 1.6rem;
    }
    
    .cta p {
        font-size: 1rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-col {
        text-align: center;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .logo-img {
        height: 30px;
    }
    
    .logo h1 {
        font-size: 1rem;
    }
    
    .tagline {
        font-size: 0.7rem;
    }
    
    .hero-content h2 {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}
