/* ============= VARIABLES & RESET ============= */
:root {
    --primary-color: #2b6cb0;
    --accent-color: #ff523b;
    --light-bg: #f8f9fa;
    --dark-text: #555;
    --border-color: #e0e0e0;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll; /* Always show scrollbar to prevent layout shift */
}

body {
    font-family: 'Rubik', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    padding-top: 60px; /* Account for fixed navbar */
}

/* ============= TYPOGRAPHY ============= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-text);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

/* ============= NAVBAR ============= */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
}

.logo-img {
    max-width: 150px;
    height: auto;
}

.nav-link {
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 10px;
    color: #333 !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 2px;
}

/* ============= BUTTONS ============= */
.btn1, .btn0 {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #ff523b, #ff6b5b);
    color: white;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(255, 82, 59, 0.3);
}

.btn1:hover,
.btn0:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 82, 59, 0.4);
}

.btn1:active,
.btn0:active {
    transform: translateY(0);
}

/* ============= HERO SECTION ============= */
.main {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url("./img/desk.jpg") center/cover no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-top: 60px;
}

.main h1 {
    color: white;
    font-size: 3.5rem;
    line-height: 1.3;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ============= SECTION TITLES ============= */
.title {
    text-align: center;
    margin: 60px auto 80px;
    position: relative;
    padding-bottom: 20px;
    font-size: 2rem;
    color: var(--dark-text);
}

.title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: var(--accent-color);
    border-radius: 3px;
}

/* ============= CARDS ============= */
.card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    object-fit: cover;
    height: 200px;
}

.card-title {
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.card-text {
    color: #777;
    font-size: 0.95rem;
}

.card-link {
    color: var(--primary-color);
    font-weight: 600;
}

.card-link:hover {
    color: var(--accent-color);
}

/* ============= PRODUCT CARDS ============= */
.prod {
    padding: 20px;
    text-align: center;
}

.prod a {
    color: inherit;
    transition: all var(--transition);
    display: block;
}

.prod a:hover {
    transform: scale(1.02);
}

.prod h6 {
    font-size: 1.3rem;
    margin: 15px 0 10px;
    color: var(--dark-text);
}

.prod p {
    color: #777;
    font-size: 0.95rem;
    line-height: 1.5;
}

.img-luid {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ============= FORMS ============= */
.form-mid {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-mid input,
.form-mid textarea {
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    color: var(--dark-text);
    padding: 12px 15px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition);
}

.form-mid textarea {
    resize: none;
    min-height: 140px;
}

.form-mid input:focus,
.form-mid textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
}

/* ============= FOOTER ============= */
.footer {
    background-color: var(--light-bg);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
}

.footer h3 {
    margin-bottom: 15px;
    color: var(--dark-text);
}

.footer p {
    color: #777;
    font-size: 0.95rem;
}

.img-logo-contatct {
    max-width: 140px;
    height: auto;
}

.copyright {
    color: #999;
    font-size: 0.9rem;
    margin-top: 20px;
}

/* ============= GOOGLE MAP ============= */
.mapouter,
.gmap_canvas {
    position: relative;
    width: 100%;
    height: 400px;
}

.gmap_canvas {
    overflow: hidden;
    background: none !important;
}

/* ============= RESPONSIVENESS ============= */
@media (max-width: 768px) {
    .main h1 {
        font-size: 2rem;
    }

    .btn1, .btn0 {
        width: 100%;
        padding: 15px 20px;
    }

    .title {
        font-size: 1.5rem;
        margin: 40px auto 60px;
    }

    .form-mid {
        padding: 2rem;
    }

    .img-logo-contatct {
        max-width: 100px;
    }
}

@media (max-width: 576px) {
    .main h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .title {
        font-size: 1.3rem;
    }

    .card {
        margin-bottom: 20px;
    }
}