/* ==== CSS RESET ==== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ==== DESIGN TOKENS ==== */
:root {
    /* Colors - Light, Modern Theme */
    --primary: #0077b6;         /* A very trustworthy blue */
    --primary-dark: #023e8a;
    --primary-light: #caf0f8;
    
    --secondary: #e85d04;       /* Energetic orange for industry/machinery */
    --secondary-hover: #dc2f02;

    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #e9ecef;

    --text-dark: #2b2d42;
    --text-regular: #4a4e69;
    --text-light: #8d99ae;
    
    --white: #ffffff;

    /* Typography */
    --font-main: 'Outfit', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 24px rgba(0,0,0,0.12);
    --shadow-hover: 0 16px 32px rgba(0,119,182,0.15);

    /* Transitions */
    --transition: all 0.3s ease;
}

/* ==== BASE TYPOGRAPHY & LAYOUT ==== */
body {
    font-family: var(--font-main);
    color: var(--text-regular);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.section {
    padding: 100px 0;
}

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

.text-center {
    text-align: center;
}

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

/* ==== BUTTONS ==== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 15px;
}

.btn-large {
    padding: 16px 36px;
    font-size: 18px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(0,119,182,0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,119,182,0.4);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
    backdrop-filter: blur(5px);
}

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

.btn-outline-white {
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    border-color: var(--white);
}

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

/* ==== HEADER / NAVBAR ==== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    padding: 15px 0;
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

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

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

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

.logo-text.white {
    color: var(--white);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

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

.nav-links li a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-links li a:not(.btn):hover::after,
.nav-links li a:not(.btn).active::after {
    width: 100%;
    color: var(--primary);
}

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

.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--text-dark);
    background: none;
    border: none;
    cursor: pointer;
}

/* ==== HERO SECTION ==== */
.hero {
    position: relative;
    padding: 180px 0 120px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient to make white text and UI visible over light image, but keeping logic light */
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 100%);
}

.hero-content {
    max-width: 700px;
    animation: fadeInUp 1s ease-out;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    color: var(--text-regular);
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* ==== SECTION HEADERS ==== */
.section-title {
    font-size: 40px;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
}

.section-header p {
    font-size: 18px;
    max-width: 600px;
    margin: 20px auto 60px;
}

/* ==== SERVICES SECTION ==== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    background-color: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--bg-gray);
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.service-img {
    height: 220px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-icon {
    position: absolute;
    top: 190px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-md);
    z-index: 2;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--secondary);
    transform: rotateY(180deg);
}

.service-icon i {
    transition: transform 0.5s ease;
}

.service-card:hover .service-icon i {
    transform: rotateY(-180deg); /* Counter rotate icon */
}

.service-content {
    padding: 40px 30px 30px;
}

.service-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.service-content p {
    color: var(--text-regular);
    font-size: 16px;
}

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

.about-content {
    flex: 1;
}

.about-content .section-title {
    display: block;
    text-align: left;
}

.about-content .section-title::after {
    left: 0;
    transform: none;
}

.about-content p {
    font-size: 18px;
    margin-bottom: 24px;
}

.features-list {
    margin-top: 32px;
}

.features-list li {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.features-list li i {
    color: var(--secondary);
    font-size: 20px;
}

.about-image {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--primary);
    color: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2;
    border: 4px solid var(--white);
    animation: float 4s ease-in-out infinite;
}

.experience-badge .number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
}

/* ==== CONTACT SECTION ==== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--bg-gray);
}

.contact-info-panel {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}

.contact-info-panel::before {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.contact-info-panel h3 {
    color: var(--white);
    font-size: 28px;
    margin-bottom: 20px;
}

.contact-info-panel p {
    font-size: 16px;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.9);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    z-index: 10;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-list li i {
    font-size: 24px;
    color: var(--secondary);
    margin-top: 2px;
}

.info-list li div strong {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

.info-list li div span {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
}

.contact-form-panel {
    padding: 50px;
    background-color: var(--white);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group.row {
    display: flex;
    gap: 24px;
}

.input-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--bg-gray);
    border-radius: 8px;
    background-color: var(--bg-light);
    font-family: var(--font-main);
    font-size: 15px;
    color: var(--text-dark);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    background-color: var(--white);
}

.w-100 {
    width: 100%;
}

/* ==== FOOTER ==== */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding-top: 80px;
}

.footer p {
    color: var(--text-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 2px;
}

.brand-col p {
    margin: 20px 0;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 12px;
}

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

.social-links a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.links-col ul li {
    margin-bottom: 12px;
}

.links-col ul li a {
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.links-col ul li a::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free', 'FontAwesome';
    font-weight: 900;
    margin-right: 8px;
    color: var(--secondary);
    transition: var(--transition);
}

.links-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 16px;
    color: var(--text-light);
}

.contact-info li i {
    color: var(--primary-light);
    margin-top: 5px;
}

.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    padding: 24px 0;
    text-align: center;
}

/* ==== ANIMATIONS ==== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* ==== RESPONSIVE ==== */
@media (max-width: 992px) {
    .mt-flex {
        flex-direction: column;
    }
    
    .experience-badge {
        bottom: 20px;
        left: 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-panel {
        padding: 40px 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-md);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); /* Hidden */
        transition: clip-path 0.4s ease-in-out;
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); /* Visible */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--bg-gray);
    }

    .nav-links li a {
        display: block;
        padding: 15px;
    }
    
    .nav-links li a.btn {
        margin: 15px;
        display: inline-flex;
    }

    .form-group.row {
        flex-direction: column;
        gap: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
    }
}
