
:root {
    --primary: #c1272d;
    --secondary: #434343;
    --accent: #7f8793;
    --dark: #222222;
    --light: #f5f5f5;
    --transition: all 0.3s ease;
}

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

body {
    background-color: var(--light);
    color: #333;
    line-height: 1.6;
}

/* Navigation */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.container1 {
    max-width:85%;
    margin: 0 auto;
    padding: 0 20px;
}


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 65px;
    width: auto;
}

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

.nav-links a {
    text-decoration: none;
    font-size: 20px;
    color: var(--secondary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

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

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(31, 31, 31, 0.2);
    background: rgba(255, 255, 255, 0.72);
    color: #2a2a2a;
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: none;
}

.theme-toggle:hover {
    border-color: rgba(31, 31, 31, 0.36);
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.mobile-menu {
    display: none;
    cursor: pointer;
}

.hero {
    margin-top: 0px;
    padding-bottom: 40px;
    height: calc(100vh);
    background: linear-gradient(135deg, rgba(193, 39, 45, 0.05) 0%, rgba(34, 34, 34, 0.05) 100%);
    display: flex;
    align-items: center;
}

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

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    color: var(--dark);
    line-height: 1.2;
    font-weight: 800;
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #555;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(193, 39, 45, 0.3);
}

.btn a {
    font-size: 1.2rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(193, 39, 45, 0.4);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
    margin-left: 15px;
    box-shadow: 0 4px 15px rgba(51, 51, 51, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 6px 20px rgba(51, 51, 51, 0.4);
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-image { flex: 1; position: relative; height: 600px; }

/* Impact Stats */
.impact-stats {
    margin-top: 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

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

.stat-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(193, 39, 45, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
}

.stat-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #777;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.stat-description {
    color: #777;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* About Section */
.section {
    padding: 80px 0 100px 0;
}

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

.section-header h2 {
    text-align: center;
    font-size: 3rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    font-weight: 700;
}

.section-header h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    font-size: 1.1rem;
    color: #555;
    margin-top: 25px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 100px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-block: 15px;
    color: var(--dark);
    font-weight: 600;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.2rem;
}


.about-image {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 500px;
    perspective: 1000px;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* Improved image styling */
.about-image .arm-container,
.about-image .leg-container {
    position: absolute;
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--bg-color);
    padding: 10px;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.6s ease;
}

.dark .about-image .arm-container,
.dark .about-image .leg-container {
    background-color: #252525;
}

.about-image .arm-container {
    width: 80%;
    top: 0;
    right: 0;
    z-index: 2;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
    animation: float 6s ease-in-out infinite;
    transform: rotate(5deg);
}

.about-image .leg-container {
    width: 70%;
    bottom: 0%;
    left: 0;
    z-index: 1;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
    animation: float 6s ease-in-out 2s infinite;
    transform: rotate(-5deg);
}

.about-image .leg-container:hover {
    z-index: 3; /* instant, but higher layering */
    transform: translateY(-10px) rotate(0deg) scale(1.03);
    box-shadow: 0 20px 40px rgba(93, 92, 222, 0.2);
    opacity: 1;
}

.dark .about-image .arm-container,
.dark .about-image .leg-container {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-image .arm-container:hover,
.about-image .leg-container:hover {
    transform: translateY(-5px) rotate(0deg);
    box-shadow: 0 15px 30px rgba(93, 92, 222, 0.1);
}

/* Animation */
@keyframes float {
    0% { transform: translateY(0) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
    100% { transform: translateY(0) rotate(5deg); }
}

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

/* Responsive styles */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
        gap: 80px;
    }

    .about-image {
        margin-top: 50px;
        order: -1;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .about-text h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0 80px 0;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .about-text h3 {
        font-size: 1.6rem;
    }

    .about-text p {
        font-size: 1.1rem;
    }

    .about-image {
        min-height: 400px;
    }
}

@media (max-width: 576px) {
    .about-image .arm-container,
    .about-image .leg-container {
        position: relative;
        width: 85%;
        margin: 20px auto;
        display: block;
    }

    .about-image .arm-container {
        margin-bottom: -40px;
    }

    .about-image {
        min-height: auto;
        padding: 40px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

/* Features */
.features {
    background-color: #f9f9f9;
}

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

.feature-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(193, 39, 45, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--primary);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-block: 15px;
    padding-top: 10px;
    color: var(--dark);
    font-weight: 600;
}

/* Process */
.process-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    position: relative;
}

.process-steps:before {
    content: '';
    position: absolute;
    width: 95%;
    height: 3.5px;
    background-color: #e0e0e0;
    top: 90px;
    left: 2.5%;
    z-index: -1;
}

.step {
    text-align: center;
    width: 30%;
    position: relative;
}

.step-number {
    width: 70px;
    height: 70px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 20px;
    z-index: 1;
    position: relative;
}

.step:nth-child(2) .step-number {
    background-color: var(--secondary);
    color: white;
}

.step:nth-child(3) .step-number {
    background-color: var(--accent);
}

.step h3 {
    margin-top: 50px;
    margin-bottom: 30px;
    color: var(--dark);
    font-weight: 700;
    font-size: 1.8rem;
}

.process-images {
  display: flex;
  justify-content: space-between; /* keeps even space between items */
  align-items: center;            /* vertically centers them in the row */
  gap: 1rem;                      /* explicit space between each flex item */
  margin-top: 40px;
}

.process-image {
    flex: 3;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: flex;
  justify-content: center;  /* horizontal centering */
  align-items: center;    
}

.process-image img {
    width: 95%;
    height: 350px;
    border-radius: 3%;
    object-fit: cover;
    transition: var(--transition);
}

.process-image:hover img {
    transform: scale(1.05);
}

/* Team */
.team {
    background-color: #f9f9f9;
}

.team-member {
    text-align: center;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-info {
    padding: 20px;
}

.team-info h3 {
    margin-bottom: 5px;
    color: var(--dark);
    font-weight: 600;
}

.team-role {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
}

.team-bio {
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

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

.social-links a:hover {
    background-color: var(--primary);
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: #555;
    transition: var(--transition);
}

.social-links a:hover svg {
    fill: white;
}

/* Partners */
.partners-slider {
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    height: 100px;
}

.slider-track {
    display: flex;
    animation: scroll 40s linear infinite;
}

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

.partner {
    min-width: 200px;
    height: 130px;
    margin: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner img {
    max-height: 100px;
    opacity: 0.9;
    transition: var(--transition);
}

.partner:hover img {
    filter: grayscale(1);
    opacity: 1;
}

/* Impact Stats in Services Section */
.detailed-stats {
    background-color: rgba(193, 39, 45, 0.1);
    border-radius: 10px;
    padding: 40px;
    margin-top: 100px;
}

.detailed-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.detailed-stats-title {
    flex: 2;
}

.detailed-stats-title h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.detailed-stats-title p {
    color: #555;
}

.detailed-stats-cta {
    flex: 1;
    text-align: right;
}

.detailed-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .detailed-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .detailed-stats-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .detailed-stats-cta {
        text-align: center;
    }
}

.detailed-stat-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.detailed-stat-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #777;
    margin-bottom: 10px;
}

.detailed-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.detailed-stat-description {
    font-size: 0.9rem;
    color: #777;
}

/* Contact Section (New) */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

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

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px; /* Minimum for mobile */
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(193, 39, 45, 0.1);
}

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

.form-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
}

.form-submit:hover {
    background-color: #a51d23;
}

.form-success {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #2e7d32;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
}

.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.contact-info-header p {
    color: #555;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-info-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(193, 39, 45, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--primary);
}

.contact-info-content h4 {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.contact-info-content p {
    color: #555;
    font-size: 1.1rem;
}

.contact-social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.contact-social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.contact-social-links a:hover {
    background-color: var(--primary);
}

.contact-social-links svg {
    width: 20px;
    height: 20px;
    fill: #555;
    transition: var(--transition);
}

.contact-social-links a:hover svg {
    fill: white;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 70px;
    width: auto;
}

.footer-about p {
    margin-bottom: 20px;
    color: #ccc;
    line-height: 1.8;
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
    font-weight: 600;
}

.footer-heading:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
    bottom: 0;
    left: 0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #ccc;
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    fill: var(--primary);
    margin-right: 10px;
    margin-top: 3px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text, .hero-image {
        flex: none;
        width: 100%;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text, .about-image {
        flex: none;
        width: 100%;
    }
    
    .process-steps:before {
        display: none;
    }
    
    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .step {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .process-images {
        flex-direction: column;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --light: #222;
        --dark: #f5f5f5;
    }
    
    body {
        background-color: #222;
        color: #f5f5f5;
    }
    
    header {
        background-color: #333;
    }
    
    .feature-card, .contact-form-container, .team-member, .detailed-stat-card, .stat-card {
        background-color: #333;
    }
    
    .features, .team {
        background-color: #2a2a2a;
    }
    
    .form-control {
        background-color: #444;
        border-color: #555;
        color: #fff;
    }
    
    .nav-links a {
        color: #f5f5f5;
    }
    
    footer {
        background-color: #111;
    }
    
    .form-success {
        background-color: rgba(76, 175, 80, 0.1);
        border-color: rgba(76, 175, 80, 0.3);
        color: #81c784;
    }
    
    .contact-info-content h4, .contact-info-header h3, 
    .detailed-stat-value, .stat-value, .detailed-stat-title, .stat-title {
        color: #f5f5f5;
    }
    
    .contact-info-content p, .contact-info-header p,
    .detailed-stat-description, .stat-description {
        color: #ccc;
    }
}

/* Industrial red/white refresh (design-only, no STL logic changes) */
:root {
    --primary: #be1e2d;
    --secondary: #1f1f1f;
    --accent: #8e141f;
    --dark: #171717;
    --light: #f4f4f4;
}

body {
    background:
        linear-gradient(180deg, #ffffff 0%, #f5f5f5 45%, #ffffff 100%);
    color: #1f1f1f;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
    background-image:
        linear-gradient(rgba(190, 30, 45, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(190, 30, 45, 0.045) 1px, transparent 1px);
    background-size: 38px 38px;
}

header {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(190, 30, 45, 0.14);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
}

.nav-links a {
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.hero {
    margin-top: 0;
    min-height: calc(100vh - 80px);
    height: auto;
    padding-top: 100px;
    padding-bottom: 40px;
    background:
        radial-gradient(circle at 78% 22%, rgba(190, 30, 45, 0.14), transparent 42%),
        linear-gradient(125deg, #ffffff 0%, #ececec 100%);
    border-bottom: 1px solid rgba(190, 30, 45, 0.18);
}

.hero-content {
    gap: 56px;
}

.hero-text h1 {
    letter-spacing: -0.02em;
    text-transform: uppercase;
    line-height: 1.05;
    font-size: 4.2rem;
}

.hero-text p {
    max-width: 640px;
}

.hero-image {
    border: none;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    overflow: visible;
}

#stl-canvas {
    width: 100%;
    height: 100%;
    min-height: 520px;
    display: block;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.btn {
    border-radius: 8px;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-secondary {
    border-color: rgba(255, 255, 255, 0.55);
    background-color: #262626;
}

.section {
    border-top: 1px solid rgba(190, 30, 45, 0.08);
}

.section-header h2 {
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.features {
    position: relative;
    background:
        linear-gradient(180deg, #ececec 0%, #f7f7f7 35%, #f2f2f2 100%);
    overflow: hidden;
}

.features::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(190, 30, 45, 0.06) 0%, transparent 40%),
        repeating-linear-gradient(
            90deg,
            rgba(23, 23, 23, 0.03) 0 1px,
            transparent 1px 60px
        );
}

.features .container {
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card,
.detailed-stat-card,
.contact-form-container,
.contact-info-container,
.team-member,
.stat-card {
    border: 1px solid rgba(190, 30, 45, 0.14);
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.feature-card {
    position: relative;
    padding: 28px 26px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(248, 248, 248, 0.94));
    border-color: rgba(190, 30, 45, 0.2);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), #2a2a2a);
}

.feature-card p {
    font-size: 1.03rem;
    line-height: 1.7;
    color: #404040;
}

.feature-card:hover,
.team-member:hover,
.stat-card:hover {
    border-color: rgba(190, 30, 45, 0.35);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 58px;
    height: 58px;
    border: 1px solid rgba(190, 30, 45, 0.24);
    background: linear-gradient(140deg, rgba(190, 30, 45, 0.16), rgba(255, 255, 255, 0.9));
    border-radius: 12px;
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 26px;
    height: 26px;
}

.feature-card h3 {
    margin: 6px 0 12px;
    font-size: 1.32rem;
    font-weight: 700;
    line-height: 1.3;
}

.detailed-stats {
    margin-top: 64px;
}

.process-steps:before {
    background:
        linear-gradient(90deg, rgba(190, 30, 45, 0.55), rgba(31, 31, 31, 0.28));
    height: 4px;
}

.step-number {
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.process-image {
    border: 1px solid rgba(190, 30, 45, 0.2);
    border-radius: 12px;
}

.detailed-stats {
    border: 1px solid rgba(190, 30, 45, 0.2);
    background:
        linear-gradient(160deg, rgba(190, 30, 45, 0.12), rgba(255, 255, 255, 0.8));
}

.contact-social-links a,
.social-links a {
    border: 1px solid rgba(190, 30, 45, 0.18);
}

footer {
    background:
        linear-gradient(140deg, #111111 0%, #1a1a1a 75%);
    border-top: 4px solid var(--primary);
}

@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 3.2rem;
    }

    .hero-image {
        width: 100%;
        max-width: 700px;
        height: 520px;
    }
}

@media (max-width: 768px) {
    .hero {
        margin-top: 0;
        min-height: auto;
        padding: 100px 0 40px;
    }

    .hero-text h1 {
        font-size: 2.35rem;
    }

    .hero-image {
        height: 420px;
    }

    #stl-canvas {
        min-height: 420px;
    }

    .btn {
        margin-bottom: 12px;
    }
}

/* Contact section polish */
#contact {
    background:
        linear-gradient(180deg, #f7f7f7 0%, #eeeeee 100%);
}

#contact .section-header p {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.contact-container {
    gap: 28px;
    align-items: stretch;
}

.contact-form-container,
.contact-info-container {
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(247, 247, 247, 0.95));
    border: 1px solid rgba(190, 30, 45, 0.2);
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
    padding: 28px;
}

.form-label {
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.82rem;
    font-weight: 700;
}

.form-control {
    border: 1px solid #d4d4d4;
    background-color: #fff;
}

.form-submit {
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 18px rgba(190, 30, 45, 0.24);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(190, 30, 45, 0.28);
}

.contact-info-header {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(190, 30, 45, 0.16);
}

.contact-info-header h3 {
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.contact-info-item {
    padding: 14px 0;
    margin-bottom: 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-icon {
    border-radius: 10px;
    border: 1px solid rgba(190, 30, 45, 0.2);
}

.contact-info-content p {
    font-size: 1rem;
    line-height: 1.55;
}

.contact-social-title {
    margin-top: 8px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dark);
}

.contact-social-links a {
    border-radius: 10px;
    background: #ffffff;
}

@media (max-width: 768px) {
    .contact-container {
        gap: 20px;
    }

    .contact-form-container,
    .contact-info-container {
        padding: 22px;
    }
}

/* Cross-device responsive refinement */
.container {
    width: min(1200px, 92vw);
    max-width: none;
    padding: 0;
}

.container1 {
    width: min(1280px, 92vw);
    max-width: none;
    padding: 0;
}

nav {
    min-height: 76px;
}

.hero-content {
    align-items: center;
}

.feature-card {
    height: 100%;
}

@media (max-width: 1200px) {
    .container,
    .container1 {
        width: min(1200px, 94vw);
    }

    .hero-text h1 {
        font-size: clamp(2.75rem, 6.1vw, 4rem);
    }
}

@media (max-width: 992px) {
    .section {
        padding: 68px 0 84px;
    }

    .section-header {
        margin-bottom: 44px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 28px;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image {
        width: 100%;
        max-width: 680px;
        height: clamp(360px, 58vw, 520px);
    }

    #stl-canvas {
        min-height: clamp(340px, 56vw, 520px);
    }

    .btn,
    .btn-secondary {
        margin-left: 0;
    }

    .about-content {
        gap: 56px;
    }

    .process-images {
        gap: 18px;
    }

    .process-image {
        flex: 1;
    }

    .process-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 11;
    }

    .footer-content {
        gap: 28px;
    }
}

@media (max-width: 768px) {
    header .container {
        position: relative;
    }

    nav {
        min-height: 64px;
    }

    .logo img {
        height: 54px;
    }

    .mobile-menu {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .theme-toggle {
        padding: 7px 10px;
        font-size: 0.7rem;
        letter-spacing: 0.03em;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 0;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(190, 30, 45, 0.16);
        border-radius: 12px;
        box-shadow: 0 14px 26px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        z-index: 1002;
    }

    .nav-links a {
        width: 100%;
        padding: 12px 16px;
        font-size: 0.92rem;
        border-bottom: 1px solid rgba(190, 30, 45, 0.09);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links a:after {
        display: none;
    }

    .hero {
        padding-top: 92px;
        padding-bottom: 32px;
    }

    .hero-text h1 {
        font-size: clamp(2rem, 8.6vw, 2.5rem);
        line-height: 1.1;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-image {
        height: clamp(300px, 72vw, 410px);
    }

    #stl-canvas {
        min-height: clamp(300px, 70vw, 400px);
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .section-header h2 {
        font-size: clamp(1.7rem, 8vw, 2.3rem);
    }

    .about-text h3 {
        font-size: 1.45rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .about-image {
        min-height: auto;
        padding: 14px 0 8px;
    }

    .about-image .arm-container,
    .about-image .leg-container {
        position: relative;
        width: min(100%, 360px);
        margin: 0 auto 18px;
        transform: none;
        animation: none;
    }

    .about-image .arm-container:hover,
    .about-image .leg-container:hover {
        transform: none;
    }

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

    .feature-card {
        padding: 22px 20px;
    }

    .detailed-stats {
        padding: 22px 18px;
        margin-top: 40px;
    }

    .process-steps {
        margin-top: 24px;
        gap: 22px;
    }

    .step h3 {
        margin-top: 16px;
        margin-bottom: 12px;
        font-size: 1.45rem;
    }

    .process-images {
        flex-direction: column;
    }

    .process-image {
        width: 100%;
    }

    .portfolio_section1 .container1 {
        width: min(1280px, 94vw);
    }

    .contact-form-container,
    .contact-info-container {
        padding: 20px 18px;
    }

    .contact-info-header h3 {
        font-size: 1.5rem;
    }

    .contact-social-links {
        flex-wrap: wrap;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-about,
    .footer-links-container,
    .footer-contact-container {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .container,
    .container1 {
        width: 92vw;
    }

    .hero {
        padding-top: 88px;
    }

    .hero-text h1 {
        font-size: 1.9rem;
    }

    .btn {
        padding: 12px 18px;
    }

    .step-number {
        width: 58px;
        height: 58px;
        font-size: 1rem;
    }

    .detailed-stat-value {
        font-size: 1.7rem;
    }
}

/* Aesthetic dark mode layer */
html.dark body {
    background:
        radial-gradient(circle at 12% 10%, rgba(190, 30, 45, 0.14), transparent 26%),
        linear-gradient(180deg, #121212 0%, #171717 45%, #121212 100%);
    color: #ececec;
}

html.dark body::before {
    opacity: 0.25;
    background-image:
        linear-gradient(rgba(190, 30, 45, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(190, 30, 45, 0.08) 1px, transparent 1px);
}

html.dark header {
    background: #000000;
    border-bottom: 1px solid rgba(190, 30, 45, 0.36);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
    backdrop-filter: none;
}

html.dark .nav-links a {
    color: #f0f0f0;
}

html.dark .theme-toggle {
    background: rgba(255, 255, 255, 0.07);
    color: #e8e8e8;
    border-color: rgba(255, 255, 255, 0.24);
}

html.dark .theme-toggle:hover {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
}

html.dark .hero {
    background:
        radial-gradient(circle at 78% 22%, rgba(190, 30, 45, 0.18), transparent 42%),
        linear-gradient(125deg, #161616 0%, #1c1c1c 100%);
    border-bottom-color: rgba(190, 30, 45, 0.28);
}

html.dark .hero-text h1,
html.dark .section-header h2,
html.dark .about-text h3,
html.dark .feature-card h3,
html.dark .step h3,
html.dark .contact-info-header h3,
html.dark .detailed-stats-title h3,
html.dark .footer-heading {
    color: #f6f6f6;
}

html.dark .hero-text p,
html.dark .about-text p,
html.dark .feature-card p,
html.dark .step p,
html.dark .contact-info-content p,
html.dark .detailed-stats-title p,
html.dark .detailed-stat-description,
html.dark .footer-about p,
html.dark .footer-links a,
html.dark .footer-contact li {
    color: #c9c9c9;
}

html.dark .features {
    background: linear-gradient(180deg, #171717 0%, #202020 35%, #171717 100%);
}

html.dark .features::before {
    background:
        linear-gradient(120deg, rgba(190, 30, 45, 0.1) 0%, transparent 42%),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.04) 0 1px,
            transparent 1px 60px
        );
}

html.dark .feature-card,
html.dark .detailed-stat-card,
html.dark .contact-form-container,
html.dark .contact-info-container,
html.dark .team-member,
html.dark .stat-card,
html.dark .portfolio_card1 {
    background: linear-gradient(160deg, rgba(33, 33, 33, 0.96), rgba(26, 26, 26, 0.96));
    border-color: rgba(190, 30, 45, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

html.dark .feature-icon,
html.dark .contact-info-icon {
    background: linear-gradient(140deg, rgba(190, 30, 45, 0.32), rgba(25, 25, 25, 0.9));
    border-color: rgba(190, 30, 45, 0.4);
}

html.dark .detailed-stats {
    background: linear-gradient(160deg, rgba(190, 30, 45, 0.18), rgba(25, 25, 25, 0.92));
    border-color: rgba(190, 30, 45, 0.36);
}

html.dark .form-control {
    background-color: #202020;
    border-color: #3a3a3a;
    color: #f3f3f3;
}

html.dark .form-control::placeholder {
    color: #9a9a9a;
}

html.dark .contact-info-item {
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

html.dark .nav-links {
    background: #000000;
    border-color: rgba(190, 30, 45, 0.32);
}

html.dark .nav-links a {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html.dark footer {
    background: linear-gradient(140deg, #0a0a0a 0%, #131313 75%);
}
