/* --- Global Reset & Modern Tokens --- */
:root {
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.6);
    --accent-blue: #38bdf8;
    --accent-cyan: #06b6d4;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Form Submission Confirmation Toasts --- */
.toast {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 2000;
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, fadeOut 0.4s ease 5s forwards;
}

.success-toast {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    color: #34d399;
}

.error-toast {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #f87171;
}

@keyframes slideInRight {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    to { transform: translateY(-20px); opacity: 0; visibility: hidden; }
}

/* --- Navigation Bar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 20px;
}

.logo {
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i { color: var(--accent-blue); }
.logo span { color: var(--accent-cyan); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-blue);
}

/* --- Hero Slider --- */
.hero-slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #050b18;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 6s ease-in-out;
}

.slide.active .slide-bg { transform: scale(1); }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.65));
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 850px;
    padding: 0 20px;
}

.slide-tag {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent-cyan);
    font-weight: 700;
    margin-bottom: 16px;
    transform: translateY(-25px);
    opacity: 0;
    transition: all 0.8s ease 0.3s;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ffffff, #cbd5e1, var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateY(25px);
    opacity: 0;
    transition: all 0.8s ease 0.5s;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    transform: translateY(25px);
    opacity: 0;
    transition: all 0.8s ease 0.7s;
}

.hero-buttons {
    transform: translateY(25px);
    opacity: 0;
    transition: all 0.8s ease 0.9s;
}

.slide.active .slide-tag, .slide.active .hero-content h1, .slide.active .hero-content p, .slide.active .hero-buttons {
    transform: translateY(0);
    opacity: 1;
}

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dot.active, .dot:hover {
    background: var(--accent-blue);
    width: 32px;
    border-radius: 6px;
}

/* --- Section Structural Framework --- */
.services-section, .products-section, .contact-section {
    padding: 100px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.section-title {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 60px;
    font-size: 1.05rem;
}

.btn {
    display: inline-block;
    padding: 13px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary { background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan)); color: #0f172a; border: none;}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(6, 182, 212, 0.35); }
.btn-secondary { background: rgba(255, 255, 255, 0.03); color: #fff; border: 1px solid var(--glass-border); margin-left: 16px; }

/* --- Services Grid --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 32px; }
.service-card { background: var(--bg-card); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--glass-border); border-radius: 16px; padding: 45px 35px; transition: transform 0.3s ease, border-color 0.3s ease; }
.service-card:hover { transform: translateY(-6px); border-color: var(--accent-blue); }
.service-icon { font-size: 2.4rem; color: var(--accent-blue); margin-bottom: 22px; }
.service-card h3 { margin-bottom: 14px; font-size: 1.35rem; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }

/* --- Product Categories --- */
.product-tabs { display: flex; justify-content: center; gap: 14px; margin-bottom: 45px; flex-wrap: wrap; }
.tab-btn { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--glass-border); color: var(--text-muted); padding: 10px 22px; border-radius: 30px; cursor: pointer; font-weight: 600; transition: all 0.25s ease; font-size: 0.9rem; }
.tab-btn.active, .tab-btn:hover { background: var(--accent-blue); color: #0f172a; border-color: var(--accent-blue); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 30px; }
.product-item { background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: 16px; overflow: hidden; transition: transform 0.3s ease; }
.product-item img { width: 100%; height: 200px; object-fit: cover; border-bottom: 1px solid var(--glass-border); }
.product-info { padding: 22px; }
.category-tag { display: inline-block; font-size: 0.72rem; text-transform: uppercase; color: var(--accent-cyan); font-weight: 700; margin-bottom: 10px; }
.product-info h3 { font-size: 1.15rem; margin-bottom: 8px; }
.product-info p { color: var(--text-muted); font-size: 0.9rem; }

/* --- Contact & Lead Capture Box --- */
.contact-box { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-border); border-radius: 24px; overflow: hidden; }
.contact-info { padding: 55px; background: rgba(56, 189, 248, 0.02); display: flex; flex-direction: column; justify-content: center; }
.contact-info h2 { font-size: 2.1rem; margin-bottom: 22px; }
.info-details p { margin-bottom: 18px; display: flex; align-items: center; gap: 14px; color: var(--text-muted); }
.info-details p i { color: var(--accent-blue); }
.contact-form { padding: 55px; border-left: 1px solid var(--glass-border); }
.form-group { margin-bottom: 22px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 15px; background: rgba(15, 23, 42, 0.6); border: 1px solid var(--glass-border); border-radius: 8px; color: #fff; outline: none; font-size: 0.95rem; transition: border-color 0.3s ease;}
.form-group select option { background-color: var(--bg-dark); color: #fff; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent-blue); }
.btn-block { width: 100%; text-align: center; }

/* --- Integrated Textual Footer Component --- */
footer {
    padding: 40px 20px;
    background: #090d16;
    border-top: 1px solid var(--glass-border);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-quick-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.action-link-text {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.action-link-text:hover {
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.divider {
    color: rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    user-select: none;
}

.copyright-text {
    color: rgba(148, 163, 184, 0.6);
    font-size: 0.85rem;
}

/* --- Hamburger Menu Logic --- */
.menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 6px; }
.menu-toggle .bar { width: 24px; height: 2px; background-color: #fff; transition: all 0.3s ease; }

@media(max-width: 992px) {
    .contact-box { grid-template-columns: 1fr; }
    .contact-form { border-left: none; border-top: 1px solid var(--glass-border); }
}

@media(max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: #0f172a; flex-direction: column; padding: 24px; gap: 20px; border-bottom: 1px solid var(--glass-border); }
    .nav-links.active { display: flex; }
    .menu-toggle { display: flex; }
    .hero-content h1 { font-size: 2.4rem; }
    .hero-buttons { display: flex; flex-direction: column; max-width: 280px; margin: 0 auto; }
    .btn-secondary { margin-left: 0; margin-top: 15px; }
    .contact-info, .contact-form { padding: 35px; }
    
    .footer-quick-links { flex-direction: column; gap: 12px; }
    .divider { display: none; }
}