:root {
    --brand-red: #CE1826; /* Logo Red */
    --brand-black: #111111;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #ffffff;
    --bg-alt: #f4f4f5;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

/* NAVIGATION */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-light);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px; 
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--brand-black);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--brand-red);
}

.nav-cta {
    background: var(--brand-red);
    color: #fff !important;
    padding: 10px 20px;
    transition: background 0.3s ease !important;
}

.nav-cta:hover {
    background: var(--brand-black) !important;
    color: #fff !important;
}

/* HERO SECTION */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('assets/hero-bg.webp') center/cover no-repeat;
    text-align: center;
    margin-top: 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 17, 17, 0.85); 
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    color: #fff;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
}

.highlight {
    color: var(--brand-red);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #f4f4f5;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    letter-spacing: 1px;
}

.primary-btn {
    background: var(--brand-red);
    color: #fff;
}

.primary-btn:hover {
    background: var(--brand-black);
}

.secondary-btn {
    background: transparent;
    color: var(--brand-black);
    border: 2px solid var(--brand-black);
}

.secondary-btn:hover {
    background: var(--brand-black);
    color: #fff;
}

/* SECTIONS */
.section {
    padding: 100px 20px;
}

.alt-bg {
    background-color: var(--bg-alt);
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 800;
    color: var(--brand-black);
    text-transform: uppercase;
}

.section-title.left-align {
    text-align: left;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* SERVICES GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: var(--bg-light);
    padding: 40px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    border-bottom: 4px solid var(--brand-red);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--brand-black);
}

/* SOFTWARE SECTION */
.software-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 30px;
}

.software-grid img {
    height: 80px; /* Adjust size based on your raw webp files */
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.software-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* PORTFOLIO / PROJECT CARDS (Matching your image) */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.project-info {
    padding: 25px;
    flex-grow: 1;
}

.project-info h3 {
    font-size: 1.3rem;
    color: var(--brand-black);
    margin-bottom: 10px;
    font-weight: 800;
}

.project-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ABOUT SECTION */
.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border: 1px solid var(--border-color);
    box-shadow: 15px 15px 0px var(--brand-red);
}

/* CONTACT FORM */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.form-msg {
    padding: 15px;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.form-success {
    background-color: #e6ffed;
    color: #1e7e34;
    border: 1px solid #1e7e34;
}

.form-error {
    background-color: #ffeef0;
    color: var(--brand-red);
    border: 1px solid var(--brand-red);
}

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

input, textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    color: var(--brand-black);
    outline: none;
    transition: border 0.3s;
    font-family: 'Montserrat', sans-serif;
}

input:focus, textarea:focus {
    border-color: var(--brand-red);
}

.submit-btn {
    width: 100%;
}

/* FOOTER */
footer {
    background: var(--brand-black);
    padding: 40px 20px;
    text-align: center;
    color: #a0aec0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--brand-red);
}

/* ANIMATIONS */
.fade-in, .slide-up {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-up {
    transform: translateY(40px);
}

.fade-in.appear, .slide-up.appear {
    opacity: 1;
    transform: translateY(0);
}

/* MOBILE RESPONSIVE */
.hamburger {
    display: none;
    cursor: pointer;
}

.line {
    width: 25px;
    height: 3px;
    background: var(--brand-black);
    margin: 5px;
    transition: all 0.3s;
}

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .about-container {
        flex-direction: column;
    }
    .about-image img {
        box-shadow: 10px 10px 0px var(--brand-red);
    }
    .software-grid img {
        height: 60px;
    }
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
}