/* ========================================
   S.S.G. Weaving Engineering - Custom CSS
   Brand Colors: Purple #6B2D8B, Gold #D4A017
   ======================================== */

:root {
    --primary: #6B2D8B;
    --primary-dark: #4A1F61;
    --secondary: #D4A017;
    --secondary-light: #F0C040;
    --bg-cream: #F5F0E8;
    --bg-dark: #2C1A3E;
    --text-dark: #1a1a2e;
    --text-muted: #666;
    --white: #ffffff;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    color: var(--text-dark);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

section { padding: 80px 0; }

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    margin-bottom: 15px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 50px;
}

/* ---- Navbar ---- */
.navbar {
    background: var(--bg-dark) !important;
    padding: 12px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-text .brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: 2px;
    line-height: 1;
}

.brand-logo-text .brand-sub {
    font-size: 0.75rem;
    color: var(--white);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.brand-logo-text .brand-tagline {
    font-size: 0.6rem;
    color: #ccc;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 18px !important;
    border-radius: 4px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary) !important;
    background: rgba(212,160,23,0.1);
}

.navbar-toggler {
    border-color: var(--secondary);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(212,160,23,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---- Hero Section ---- */
.hero-section {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 50%, var(--primary-dark) 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212,160,23,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212,160,23,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-badge {
    display: inline-block;
    background: rgba(212,160,23,0.2);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--secondary);
}

.hero-desc {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 35px;
    max-width: 500px;
}

.btn-primary-custom {
    background: var(--secondary);
    color: var(--bg-dark);
    padding: 14px 35px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary-custom:hover {
    background: var(--secondary-light);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212,160,23,0.4);
}

.btn-outline-custom {
    background: transparent;
    color: var(--white);
    padding: 13px 35px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid rgba(255,255,255,0.5);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline-custom:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}

.stat-item .stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
}

.stat-item .stat-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-machine-img {
    width: 100%;
    max-width: 550px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ---- Features Section ---- */
.features-section {
    background: var(--bg-cream);
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    transition: all 0.3s;
    height: 100%;
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(107,45,139,0.15);
    border-bottom-color: var(--secondary);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--secondary);
}

.feature-card h5 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ---- Products Section ---- */
.products-section {
    background: white;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
    border: 1px solid rgba(107,45,139,0.1);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(107,45,139,0.2);
}

.product-card-img {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--bg-dark), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

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

.product-card-img .product-type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary);
    color: var(--bg-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.product-card-body {
    padding: 25px;
}

.product-card-body h5 {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.product-card-body .model-name {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.spec-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.spec-list li {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spec-list li i {
    color: var(--secondary);
    font-size: 0.7rem;
}

.btn-view-product {
    background: var(--primary);
    color: white;
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.btn-view-product:hover {
    background: var(--secondary);
    color: var(--bg-dark);
}

/* ---- CTA Banner ---- */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--bg-dark) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(212,160,23,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 35px;
}

/* ---- About Page ---- */
.about-hero {
    background: linear-gradient(135deg, var(--bg-dark), var(--primary));
    padding: 100px 0 80px;
    color: white;
}

.about-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.about-hero p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
}

.breadcrumb-custom a { color: var(--secondary); }
.breadcrumb-custom span { color: rgba(255,255,255,0.6); }

.about-content h3 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.about-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 15px;
}

.highlight-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 40px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 150px;
    color: rgba(212,160,23,0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.highlight-box p {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.8;
    color: rgba(255,255,255,0.95);
}

.highlight-box .author {
    color: var(--secondary);
    font-weight: 700;
    font-style: normal;
    margin-top: 15px;
}

.stat-box {
    background: white;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    border-top: 4px solid var(--secondary);
}

.stat-box .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-box .label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    height: 100%;
}

.info-card .icon-wrap {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.info-card h6 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 5px;
}

.info-card p, .info-card a {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ---- Products Page ---- */
.page-hero {
    background: linear-gradient(135deg, var(--bg-dark), var(--primary));
    padding: 80px 0 60px;
    color: white;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-hero p {
    color: rgba(255,255,255,0.8);
}

.filter-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 50px;
}

.filter-tab {
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-tab.active,
.filter-tab:hover {
    background: var(--primary);
    color: white;
}

/* ---- Product Detail Page ---- */
.product-detail-hero {
    background: linear-gradient(135deg, var(--bg-dark), var(--primary));
    padding: 80px 0;
    color: white;
}

.product-detail-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.spec-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}

.spec-table-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 20px 25px;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.spec-table table {
    width: 100%;
}

.spec-table td {
    padding: 14px 25px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.spec-table td:first-child {
    color: var(--primary);
    font-weight: 600;
    width: 40%;
    background: #fafafa;
}

.spec-table td:last-child {
    color: var(--text-dark);
}

.model-tabs .nav-link {
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    margin-right: 10px;
    font-weight: 600;
    padding: 10px 20px;
}

.model-tabs .nav-link.active {
    background: var(--primary);
    color: white;
}

/* ---- Contact Page ---- */
.contact-form-wrap {
    background: white;
    border-radius: 15px;
    padding: 45px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.contact-form-wrap h3 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 30px;
}

.form-control, .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(107,45,139,0.1);
}

.form-label {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 14px 40px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107,45,139,0.4);
}

.contact-info-card {
    background: linear-gradient(135deg, var(--primary), var(--bg-dark));
    border-radius: 15px;
    padding: 40px 35px;
    color: white;
    height: 100%;
}

.contact-info-card h3 {
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--secondary);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-item .icon {
    width: 45px;
    height: 45px;
    background: rgba(212,160,23,0.2);
    border: 1px solid rgba(212,160,23,0.4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h6 {
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item p, .contact-item a {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

.map-section {
    background: var(--bg-cream);
    padding: 60px 0;
}

.map-section .map-wrap {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    height: 400px;
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.alert-success-custom {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: none;
}

/* ---- Footer ---- */
footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0 25px;
}

.footer-brand .brand-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: 2px;
}

.footer-brand .brand-sub {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-top: 15px;
    line-height: 1.7;
}

footer h6 {
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 10px; }
footer ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}
footer ul li a:hover { color: var(--secondary); padding-left: 5px; }
footer ul li a i { font-size: 0.6rem; }

.footer-contact p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact i {
    color: var(--secondary);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    margin-top: 40px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

.footer-bottom span { color: var(--secondary); }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ---- AOS Animations ---- */
[data-aos] { transition-duration: 0.8s; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-stats { gap: 20px; flex-wrap: wrap; }
    .stat-item .stat-num { font-size: 2rem; }
    .contact-form-wrap { padding: 30px 20px; }
    .section-title { font-size: 1.8rem; }
    .cta-section h2 { font-size: 1.8rem; }
}
