/*
Theme Name: SR Marking DNA Networking
Theme URI: https://www.srmarking.com
Author: SR Marking DNA Networking
Author URI: https://www.srmarking.com
Description: Tema WordPress elegan untuk SR Marking DNA Networking - Perusahaan perdagangan dan jasa dengan produk printer cerdas untuk produksi. Dilengkapi dengan homepage istimewa, form kontak terintegrasi email, dan struktur AIDA.
Version: 3.1
License: Proprietary
Text Domain: srmarking
Tags: responsive, custom-logo, custom-menu, customizer, featured-images, footer-widgets, homepage-template, elegan, profesional, email-integration
*/

/* ===== TABLE OF CONTENTS =====
1.  RESET & BASE
2.  WORDPRESS CORE FIXES
3.  GUTENBERG/EDITOR STYLES
4.  HEADER & NAVIGATION
5.  PRELOADER
6.  BUTTONS & UTILITY CLASSES
7.  HERO SECTION
8.  BRAND SECTION
9.  ABOUT SECTION
10. PRODUCTS SECTION
11. FEATURES SECTION
12. APPLICATIONS SECTION
13. TESTIMONIALS SECTION
14. WHY CHOOSE SECTION
15. CONTACT SECTION
16. STATUS MESSAGES & ALERTS
17. FOOTER
18. ANIMATIONS
19. RESPONSIVE DESIGN
============================= */

/* ===== 1. RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e67e22;
    --primary-dark: #d35400;
    --primary-light: #f39c12;
    --secondary-color: #667eea;
    --tertiary-color: #764ba2;
    --text-dark: #2c3e50;
    --text-light: #666;
    --text-muted: #999;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-sm: 0 5px 20px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --border-radius: 10px;
    --border-radius-sm: 5px;
    
    /* Status Colors */
    --success-color: #28a745;
    --success-light: #d4edda;
    --success-dark: #155724;
    --error-color: #dc3545;
    --error-light: #f8d7da;
    --error-dark: #721c24;
    --warning-color: #ffc107;
    --warning-light: #fff3cd;
    --warning-dark: #856404;
    --info-color: #17a2b8;
    --info-light: #d1ecf1;
    --info-dark: #0c5460;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
    color: var(--text-light);
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 2. WORDPRESS CORE FIXES ===== */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

.wp-caption {
    background: var(--bg-white);
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    clip: auto !important;
    clip-path: none;
    color: var(--text-dark);
    display: block;
    font-size: 14px;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ===== 3. GUTENBERG/EDITOR STYLES ===== */
.wp-block-button__link {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.wp-block-button__link:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--bg-white);
}

/* ===== 4. HEADER & NAVIGATION ===== */
.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.header-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header-hidden {
    transform: translateY(-100%);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo {
    max-height: 50px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.site-title span {
    color: var(--primary-color);
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-navigation a:hover,
.main-navigation a.active {
    color: var(--primary-color);
}

.main-navigation a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

/* Dropdown */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    min-width: 200px;
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 999;
    flex-direction: column;
    gap: 0;
}

.main-navigation ul li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul ul li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
}

.main-navigation ul ul li:last-child {
    border-bottom: none;
}

.main-navigation ul ul a {
    padding: 0.75rem 1rem;
    width: 100%;
}

.main-navigation ul ul ul {
    top: 0;
    left: 100%;
    transform: translateX(-10px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    transition: var(--transition);
    padding: 0.5rem;
}

.menu-toggle:hover {
    color: var(--primary-color);
}

/* Fallback Menu */
.primary-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    text-decoration: none;
    transition: var(--transition);
}

.primary-menu a:hover {
    color: var(--primary-color);
}

/* ===== 5. PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ===== 6. BUTTONS & UTILITY CLASSES ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--bg-white);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline-light {
    border: 2px solid var(--bg-white);
    color: var(--bg-white);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--bg-white);
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-block {
    display: block;
    width: 100%;
}

.text-center {
    text-align: center;
}

.section-header {
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(230, 126, 34, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== 7. HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    background: var(--bg-gradient);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 60px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.hero-subtitle {
    display: inline-block;
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--bg-white);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    color: var(--bg-white);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== 8. BRAND SECTION ===== */
.brand-section {
    padding: 50px 0;
    background: var(--bg-light);
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    align-items: center;
}

.brand-item {
    text-align: center;
    color: var(--text-light);
    font-weight: 600;
    transition: var(--transition);
}

.brand-item:hover {
    transform: translateY(-5px);
    color: var(--primary-color);
}

.brand-item i {
    display: block;
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* ===== 9. ABOUT SECTION ===== */
.about-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.about-content h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vision-mission-box {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.vision-mission-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.vision-mission-box h4 {
    color: var(--text-dark);
    margin: 25px 0 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vision-mission-box h4:first-of-type {
    margin-top: 0;
}

.vision-mission-box h4 i {
    color: var(--primary-color);
}

.vision-mission-box ul {
    list-style: none;
}

.vision-mission-box li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
}

.vision-mission-box li i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* ===== 10. PRODUCTS SECTION ===== */
.products-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.product-icon {
    width: 80px;
    height: 80px;
    background: rgba(230, 126, 34, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.product-card:hover .product-icon {
    background: var(--primary-color);
}

.product-card:hover .product-icon i {
    color: var(--bg-white);
}

.product-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.product-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.product-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.product-features {
    list-style: none;
    text-align: left;
    margin: 25px 0;
}

.product-features li {
    margin-bottom: 10px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-features i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* ===== 11. FEATURES SECTION ===== */
.features-section {
    padding: 60px 0;
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ===== 12. APPLICATIONS SECTION ===== */
.applications-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.app-item {
    background: var(--bg-white);
    padding: 15px;
    text-align: center;
    border-radius: var(--border-radius-sm);
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.app-item:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ===== 13. TESTIMONIALS SECTION ===== */
.testimonials-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 15px;
}

.testimonial-text {
    color: var(--text-light);
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author i {
    font-size: 3rem;
    color: var(--primary-color);
}

.testimonial-author h5 {
    color: var(--text-dark);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.testimonial-author p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ===== 14. WHY CHOOSE SECTION ===== */
.why-choose-section {
    padding: 80px 0;
    background: var(--bg-gradient);
    color: var(--bg-white);
}

.why-choose-section .section-tag {
    background: rgba(255,255,255,0.2);
    color: var(--bg-white);
}

.why-choose-section .section-title {
    color: var(--bg-white);
}

.choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.benefits-list {
    margin: 40px 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.benefit-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(10px);
}

.benefit-icon-small {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 50px;
    text-align: center;
}

.benefit-item h4 {
    color: var(--bg-white);
    margin-bottom: 5px;
}

.benefit-item p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0;
}

.choose-image {
    text-align: center;
}

.choose-image i {
    color: rgba(255,255,255,0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ===== 15. CONTACT SECTION ===== */
.contact-section {
    padding: 80px 0;
    background: var(--bg-light);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 30px;
}

.contact-item p,
.contact-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 0;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-form-wrapper {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1.2em;
}

/* ===== 16. STATUS MESSAGES & ALERTS ===== */
/* Status Message Container */
.status-message {
    max-width: 800px;
    margin: 0 auto 30px auto;
    padding: 15px 20px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.5s ease;
    position: relative;
    box-shadow: var(--shadow-sm);
}

/* Success Message */
.status-message.success {
    background: var(--success-light);
    color: var(--success-dark);
    border: 1px solid var(--success-color);
    border-left: 5px solid var(--success-color);
}

.status-message.success::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
    color: var(--success-color);
}

/* Error Message */
.status-message.error {
    background: var(--error-light);
    color: var(--error-dark);
    border: 1px solid var(--error-color);
    border-left: 5px solid var(--error-color);
}

.status-message.error::before {
    content: '\f00d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
    color: var(--error-color);
}

/* Warning Message */
.status-message.warning {
    background: var(--warning-light);
    color: var(--warning-dark);
    border: 1px solid var(--warning-color);
    border-left: 5px solid var(--warning-color);
}

.status-message.warning::before {
    content: '\f071';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
    color: var(--warning-color);
}

/* Info Message */
.status-message.info {
    background: var(--info-light);
    color: var(--info-dark);
    border: 1px solid var(--info-color);
    border-left: 5px solid var(--info-color);
}

.status-message.info::before {
    content: '\f05a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
    color: var(--info-color);
}

/* Close Button for Status Message */
.status-message .close-btn {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
    transition: var(--transition);
}

.status-message .close-btn:hover {
    opacity: 1;
}

/* Form Validation Alerts */
.contact-form .error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: -15px;
    margin-bottom: 15px;
    padding-left: 10px;
}

.contact-form input.error,
.contact-form textarea.error,
.contact-form select.error {
    border-color: var(--error-color);
    background: var(--error-light);
}

.contact-form input.success,
.contact-form textarea.success,
.contact-form select.success {
    border-color: var(--success-color);
    background: var(--success-light);
}

/* Loading State for Submit Button */
.btn-primary.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-primary.loading i {
    animation: spin 1s linear infinite;
}

/* Animation for Status Message */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 17. FOOTER ===== */
.site-footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 60px 0 30px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-widget h3,
.footer-widget h4 {
    color: var(--bg-white);
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3::after,
.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-widget a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ===== 18. ANIMATIONS ===== */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 19. RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-grid,
    .choose-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .products-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .applications-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .brand-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    /* Mobile Navigation */
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        box-shadow: var(--shadow-md);
        z-index: 1000;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul,
    .primary-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .main-navigation li,
    .primary-menu li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .main-navigation a,
    .primary-menu a {
        padding: 15px 20px;
        display: block;
    }
    
    .main-navigation ul ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        background: var(--bg-light);
        padding-left: 20px;
    }
    
    .main-navigation ul li:hover > ul {
        display: block;
    }
    
    .main-navigation ul ul ul {
        left: 0;
        transform: none;
    }
    
    /* Layout */
    .hero-section {
        margin-top: 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .products-grid,
    .testimonials-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-info,
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .benefit-icon-small {
        margin-bottom: 5px;
    }
    
    .status-message {
        margin: 0 15px 20px 15px;
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-tag {
        font-size: 12px;
        padding: 4px 12px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .applications-grid {
        grid-template-columns: 1fr;
    }
    
    .brand-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        padding: 30px 20px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .contact-item i {
        margin-bottom: 5px;
    }
    
    .status-message {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .status-message .close-btn {
        display: none;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .hero-section,
    .brand-section,
    .preloader,
    .contact-section,
    .site-footer,
    .status-message,
    .btn,
    .menu-toggle {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
        padding: 20px;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}