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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #211f62;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: white;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.navbar {
    padding: 0;
}

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

.nav-logo {
    position: relative;
}

.nav-logo .logo {
    height: 30px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo-white {
    opacity: 1;
}

.logo-dark {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.header.scrolled .logo-white {
    opacity: 0;
}

.header.scrolled .logo-dark {
    opacity: 1;
}

.nav-menu {
    display: flex;
}

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

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    padding: 10px 0;
}

.nav-link:hover,
.nav-link.active {
    color: #ffd700;
}

.header.scrolled .nav-link {
    color: #211f62;
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: #ffd700;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    list-style: none;
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    color: #333;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #211f62;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(33, 31, 98, 0.6);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 40px;
}

.hero-content {
    text-align: right;
    color: white;
    max-width: 600px;
    padding: 0 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-cta {
    display: inline-block;
    background: #ffd700;
    color: #211f62;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background: #ffed4e;
    transform: translateY(-2px);
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #ffd700;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: url('../images/page/about-us-bg.jpg') center/cover no-repeat;
    position: relative;
    min-height: 500px;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(33, 31, 98, 0.8);
    z-index: 1;
}

.about-section .container {
    position: relative;
    z-index: 2;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 400px;
}

.about-content {
    color: white;
}

.about-content h2 {
    font-size: 42px;
    color: white;
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.about-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 35px;
}

.about-read-more {
    display: inline-block;
    background: #ffd700;
    color: #211f62;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
}

.about-read-more:hover {
    background: #ffed4e;
    transform: translateY(-2px);
}

.about-space {
    /* Empty space for design - intentionally left empty */
    min-height: 200px;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: url('../images/services/BG.jpg') center/cover no-repeat;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(33, 33, 40, 0.8);
    z-index: 1;
}

.services .container {
    position: relative;
    z-index: 2;
}

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

.section-header h2 {
    font-size: 36px;
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
}

.services-scroll-container {
    overflow-x: auto;
    padding: 20px 0;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.services-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.services-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.services-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.services-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.services-grid {
    display: flex;
    gap: 30px;
    min-width: max-content;
    padding-bottom: 10px;
    animation: autoScroll 30s linear infinite;
}

.services-grid:hover {
    animation-play-state: paused;
}

@keyframes autoScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.service-card {
    
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    min-width: 383px;
    max-width: 400px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 700px;
}

/* Specific background images for each service card */
.service-card.concept-styling {
    background-image: url('../images/services/Concept-Styling-&-A-Class-Surfacing.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.service-card.plastic-design {
    background-image: url('../images/services/Plastic-Product-Design.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.service-card.cad-services {
    background-image: url('../images/services/CAD-Services.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.service-card.design-validation {
    background-image: url('../images/services/Design-Validation-&-Prototyping.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.service-card.onsite-deployment {
    background-image: url('../images/services/Onsite-Engineering-Deployment.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.service-card.product-engineering {
    background-image: url('../images/services/Product-Engineering-&-Simulation.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.service-card.reverse-engineering {
    background-image: url('../images/services/Reverse-Engineering.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.service-card.technical-documentation {
    background-image: url('../images/services/Technical-Documentation.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.service-card.tool-design {
    background-image: url('../images/services/Tool-Design-mould-Development.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.service-content {
    padding: 30px;
    color: white;
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    margin-top: auto;
}

.service-content h3 {
    font-size: 24px;
    color: white;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.service-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.service-btn {
    display: block;
    background: white;
    color: #211f62;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.service-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: #1a1850;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: #211f62;
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-btn {
    display: inline-block;
    background: #ffd700;
    color: #211f62;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: #ffed4e;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #1a1850;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: #ffd700;
}

.footer-section p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: #ffd700;
}

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

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #211f62;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #1a1850;
    transform: translateY(-2px);
}

/* Page Header Styles */
.page-header {
    background: url('../images/page/about-us-bg.jpg') center/cover no-repeat;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 70px;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(33, 31, 98, 0.8);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-header p {
    font-size: 20px;
    opacity: 0.9;
}

/* About Content Styles */
.about-content {
    padding: 80px 0;
}

.about-intro {
    text-align: center;
    margin-bottom: 60px;
}

.about-intro h2 {
    font-size: 36px;
    color: #211f62;
    margin-bottom: 20px;
    font-weight: 700;
}

.about-intro p {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Founder Section */
.founder-section {
    margin: 80px 0;
    padding: 60px 0;
    background: #f8f9fa;
    border-radius: 15px;
}

.founder-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
}

.founder-text h2 {
    font-size: 32px;
    color: #211f62;
    margin-bottom: 20px;
    font-weight: 700;
}

.founder-text h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.founder-title {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.founder-text p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.key-projects h4 {
    font-size: 20px;
    color: #211f62;
    margin-bottom: 15px;
    font-weight: 600;
}

.key-projects ul {
    list-style: none;
    padding: 0;
}

.key-projects li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #666;
    font-size: 16px;
}

.key-projects li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #211f62;
    font-weight: bold;
}

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

.founder-photo {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Vision & Mission */
.vision-mission {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 80px 0;
}

.vision-card,
.mission-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.vision-card:hover,
.mission-card:hover {
    transform: translateY(-5px);
}

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

.vision-card h3,
.mission-card h3 {
    font-size: 24px;
    color: #211f62;
    margin-bottom: 20px;
    font-weight: 700;
}

.vision-card p,
.mission-card p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

/* Industries Section */
.industries-section {
    margin: 80px 0;
    text-align: center;
}

.industries-section h2 {
    font-size: 36px;
    color: #211f62;
    margin-bottom: 20px;
    font-weight: 700;
}

.industries-section p {
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.industry-item {
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.industry-item:hover {
    transform: translateY(-5px);
}

.industry-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.industry-item h4 {
    font-size: 18px;
    color: #211f62;
    font-weight: 600;
}

/* Services Detailed Page Styles */
.services-detailed {
    padding: 80px 0;
}

.service-detail {
    margin: 0;
    padding: 100px 0;
    border-bottom: none;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-detail:last-child {
    border-bottom: none;
}

/* Alternating background images for service blocks */
.service-detail:nth-child(odd) {
    background-image: url('../images/page/service-bg--01.jpg');
}

.service-detail:nth-child(even) {
    background-image: url('../images/page/service-bg--02.jpg');
}

.service-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 16, 32, 0.72);
    z-index: 1;
}

.service-detail .service-detail-content {
    position: relative;
    z-index: 2;
}

.service-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-detail-content.reverse {
    grid-template-columns: 1fr 1fr;
}

.service-detail-content.reverse .service-detail-image {
    order: 1;
}

.service-detail-content.reverse .service-detail-text {
    order: 2;
}

.service-detail-text h2 {
    font-size: 34px;
    color: #ffffff;
    margin-bottom: 16px;
    font-weight: 700;
}

.service-detail-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 26px;
    line-height: 1.8;
}

.service-detail-text h3 {
    font-size: 20px;
    color: #ffffff;
    margin: 18px 0 12px;
    font-weight: 600;
    opacity: 0.95;
}

.service-detail-text ul {
    list-style: none;
    padding: 0;
    gap: 6px;
}

.service-detail-text li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.service-detail-text li:last-child {
    border-bottom: none;
}

.service-detail-text li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ffd700;
    font-weight: bold;
    font-size: 18px;
}

.service-detail-image {
    text-align: center;
}

.service-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

.service-detail-content {
    /* maintain good readable line-length inside the container */
}

.service-detail-image img:hover {
    transform: scale(1.02);
}

/* Contact Page Styles */
.contact-content {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info h2 {
    font-size: 32px;
    color: #211f62;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-info p {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.8;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 22px;
    width: 28px;
    height: 28px;
    color: #211f62;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-text h3 {
    font-size: 20px;
    color: #211f62;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-text p {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.contact-text a {
    color: #211f62;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: #1a1850;
}

/* Contact Form Styles */
.contact-form-section h2 {
    font-size: 32px;
    color: #211f62;
    margin-bottom: 30px;
    font-weight: 700;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #211f62;
    background: white;
}

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

.submit-btn {
    background: #211f62;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #1a1850;
    transform: translateY(-2px);
}

/* Map Section */
.map-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.map-section h2 {
    font-size: 36px;
    color: #211f62;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}
