
/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f6f9;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Color Variables */
:root {
    --primary-color: #0056b3; /* Tech Blue */
    --secondary-color: #00a8e8; /* Light Blue */
    --dark-bg: #1a1a2e;
    --light-bg: #ffffff;
    --text-color: #333;
    --light-text: #f4f4f4;
    --border-color: #ddd;
}

/* Header & Navigation */
header {
    background-color: var(--light-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

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

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-color);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--light-bg);
    color: var(--primary-color);
    border-radius: 30px;
    font-weight: bold;
    border: 2px solid transparent;
    transition: all 0.3s;
    position: relative; /* Add position relative for button layering */
    z-index: 2; /* Ensure buttons above stretched link */
}

.btn:hover {
    background-color: transparent;
    color: var(--light-text);
    border-color: var(--light-text);
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: transparent;
}

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

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

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    position: relative; /* Enable stretched link container */
}

.product-card:hover {
    transform: translateY(-10px);
    cursor: pointer; /* Indicate clickable */
}

.product-image {
    height: 200px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Solutions */
.solutions-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.solution-item {
    display: flex;
    align-items: center;
    gap: 40px;
    background: var(--light-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative; /* Enable stretched link container if needed */
}

.solution-item:nth-child(even) {
    flex-direction: row-reverse;
}

.solution-icon {
    flex: 0 0 150px;
    height: 150px;
    background: #e0f0ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
}

.solution-content {
    flex: 1;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--light-text);
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

/* Form */
.contact-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #f8f9fa;
    background-clip: padding-box;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, background-color 0.15s;
    font-family: inherit;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: var(--secondary-color);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.15);
}

.form-control::placeholder {
    color: #adb5bd;
    opacity: 1;
}

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

.contact-form h3 {
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.contact-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 14px 20px;
    font-size: 1.1rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0, 86, 179, 0.2);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.3s;
    margin-top: 10px;
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 86, 179, 0.25);
}

.required-star {
    color: #e74c3c;
    margin-left: 4px;
}

/* Stretched Link Utility */
.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

/* News Item Clickable */
.news-item {
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}
.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    cursor: pointer;
}

/* =========================================
   Responsive & Mobile Styles
   ========================================= */

/* Navbar Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Start off-screen */
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
        z-index: 2001; /* Higher than overlay */
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding: 50px 0;
        gap: 20px;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        padding: 10px;
        font-size: 1.1rem;
        width: 100%;
    }

    .nav-links.open {
        right: 0;
    }
    
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 998;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .nav-overlay.show {
        display: block;
        opacity: 1;
    }
}

/* Solutions Responsive */
@media (max-width: 768px) {
    .solution-item {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .solution-item:nth-child(even) {
        flex-direction: column;
    }

    .solution-icon {
        margin-bottom: 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

/* General Mobile Tweaks */
@media (max-width: 576px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .footer-content {
        gap: 30px;
    }
}
