/* ==========================================
   Tradons Technology - Main Styles
   ========================================== */

/* Root Variables */
:root {
    --primary-color: #e30613;
    --secondary-color: #54565a;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-color: #333333;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Prevent scrolling when preloader is active */
body.loading {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: darken(var(--primary-color), 10%);
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loader {
    text-align: center;
    position: relative;
}

.loader-logo {
    width: 150px;
    margin-bottom: 30px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    border: 3px solid var(--light-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Show only spinner if logo fails to load */
.loader-logo[style*="display: none"] + .loader-spinner {
    margin-top: 0;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98);
}

.navbar-brand .logo {
    height: 50px;
    transition: var(--transition);
}

.navbar.scrolled .logo {
    height: 40px;
}

.navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 0.25rem;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
    background: rgba(227, 6, 19, 0.05);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 0.5rem;
    padding: 0.5rem;
    margin-top: 0.5rem;
    animation: dropdownSlide 0.3s ease;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.dropdown-header {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
}

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

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(84, 86, 90, 0.8) 50%, rgba(227, 6, 19, 0.7) 100%);
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Hero SVG Elements */
.hero-svg-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    opacity: 0.5;
}

.element-1 {
    top: 10%;
    left: 10%;
    animation: float 20s ease-in-out infinite;
}

.element-2 {
    top: 20%;
    right: 15%;
    animation: float 25s ease-in-out infinite reverse;
}

.element-3 {
    bottom: 20%;
    left: 20%;
    animation: float 30s ease-in-out infinite;
}

.element-4 {
    bottom: 30%;
    right: 10%;
    animation: float 22s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(10px) rotate(180deg);
    }
    75% {
        transform: translateY(-10px) rotate(270deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-icon {
    color: white;
    opacity: 0.7;
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover:before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: darken(var(--secondary-color), 10%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-outline-light {
    border-color: white;
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--dark-color);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 2rem auto;
    border-radius: 2px;
}

/* About Section */
.about-content {
    padding: 2rem 0;
}

.about-subtitle {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 0.5rem;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.experience-number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
}

.experience-text {
    font-size: 0.875rem;
}

/* Products Section */
.products-category {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    color: var(--dark-color);
}

.category-icon {
    margin-right: 1rem;
    color: var(--primary-color);
}

.product-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.product-card:hover:before {
    transform: translateX(0);
}

.product-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

.product-icon img {
    max-height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.product-card:hover .product-icon img {
    transform: scale(1.1);
}

.product-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.product-description {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.product-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.product-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Features Section */
.feature-box {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-box:hover .feature-icon-box {
    transform: rotate(360deg);
}

.feature-icon-box {
    display: inline-block;
    margin-bottom: 1.5rem;
    transition: transform 0.6s ease;
}

.feature-box h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-box p {
    color: var(--text-color);
}

/* AI Projects Section */
.ai-project-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,249,250,0.9) 100%);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 1.5rem;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.ai-project-card:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(227,6,19,0.05) 0%, transparent 70%);
    transform: rotate(45deg);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.ai-project-card:hover:before {
    opacity: 1;
}

.ai-project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.ai-icon-wrapper {
    margin-bottom: 2rem;
    position: relative;
}

.ai-icon-wrapper svg {
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

.ai-project-title {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.ai-project-description {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.ai-features {
    list-style: none;
    padding: 0;
    text-align: left;
}

.ai-features li {
    padding: 0.5rem 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.feature-bullet {
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* AI Animations */
.rotate-animation {
    animation: rotate 10s linear infinite;
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

.scan-animation {
    animation: scan 3s ease-in-out infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes scan {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-5px); }
}

/* Contact Section */
.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.info-item {
    display: flex;
    align-items: start;
    margin-bottom: 2rem;
}

.info-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    margin-right: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.info-item h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.info-item p {
    margin: 0;
    color: var(--text-color);
}

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

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

/* Contact Form */
.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

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

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-check {
    display: flex;
    align-items: start;
}

.form-check-input {
    margin-right: 0.5rem;
    margin-top: 0.25rem;
}

.form-check-label {
    font-size: 0.875rem;
    color: var(--text-color);
}

/* Map */
.map-container {
    margin-top: 3rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

#map {
    width: 100%;
    height: 400px;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    margin-top: 80px;
}

.footer-top {
    padding: 60px 0 40px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1.5rem;
}

.footer-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 10px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.newsletter-form {
    margin-top: 1rem;
}

.newsletter-form .input-group {
    display: flex;
}

.newsletter-form .form-control {
    border-radius: 0.5rem 0 0 0.5rem;
    border: none;
    flex: 1;
}

.newsletter-form .btn {
    border-radius: 0 0.5rem 0.5rem 0;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
}

.copyright {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.company-info {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: darken(var(--primary-color), 10%);
    transform: translateY(-5px);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-color);
    color: white;
    padding: 1.5rem 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1050;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-content {
    flex: 1;
}

.cookie-content p {
    margin: 0;
    margin-bottom: 0.5rem;
}

.cookie-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
}

/* Modals */
.modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
}

.product-detail h4 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.product-detail h4:first-child {
    margin-top: 0;
}

.product-detail ul {
    list-style: none;
    padding-left: 0;
}

.product-detail ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.product-detail ul li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.gdpr-content {
    line-height: 1.8;
}

.gdpr-content h4 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.gdpr-content h5 {
    color: var(--dark-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.gdpr-content ul {
    margin-left: 1.5rem;
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-light {
    background-color: var(--light-color) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}