:root {
    --primary: #1a5276;
    --secondary: #2e86c1;
    --accent: #f39c12;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --gray: #7f8c8d;
    --success: #27ae60;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Segoe UI Light', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--dark);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo a {
    text-decoration: none;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 400;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--primary);
}

.logo-text span {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    display: block;
    padding: 5px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--primary);
}

/* Submenu Styles */
nav ul li .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border-radius: 8px;
    margin-top: 10px;
    list-style: none;
    padding: 10px 0;
}

nav ul li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

nav ul li .submenu li {
    margin: 0;
    padding: 0;
}

nav ul li .submenu li a {
    padding: 12px 20px;
    color: var(--dark);
    font-size: 0.95rem;
    border-bottom: none;
}

nav ul li .submenu li a::after {
    display: none;
}

nav ul li .submenu li a:hover {
    background: var(--light);
    color: var(--primary);
    padding-left: 25px;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../desktop-wallpaper-engineering-mechanical-drawing.jpg') no-repeat center center/cover;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 90vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 82, 118, 0.3), rgba(46, 134, 193, 0.3));
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(135deg, var(--accent), #e67e22);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(243, 156, 18, 0.6);
}

/* Services Section */
.services {
    padding: 120px 0;
    background-color: white;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(to bottom, var(--light), white);
    z-index: 0;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    z-index: 1;
}

.section-title h2 {
    font-size: 2.8rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    border-radius: 2px;
}

.section-title p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.service-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.service-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 2.5rem;
    padding: 30px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 180px;
}

.service-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.service-content p {
    margin-bottom: 25px;
    color: var(--gray);
    flex-grow: 1;
}

.service-features {
    margin-top: 20px;
    list-style: none;
}

.service-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.service-features li i {
    color: var(--accent);
    margin-right: 10px;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    transition: all 0.3s;
}

.read-more i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.read-more:hover {
    color: var(--secondary);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Stats Section */
.stats {
    padding: 100px 0;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(to right, var(--accent), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-text {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Projects Section */
.projects {
    padding: 120px 0;
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    opacity: 0.05;
    z-index: 0;
}

.projects::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--accent), #e67e22);
    border-radius: 50%;
    opacity: 0.05;
    z-index: 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.project-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 300px;
    transition: all 0.4s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.98));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    opacity: 0;
    transition: opacity 0.5s;
    padding: 30px;
    z-index: 2;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.project-overlay p {
    color: rgba(255, 255, 255, 1);
    margin-bottom: 20px;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.project-overlay .btn {
    margin-top: 0;
    border: none;
    padding: 15px 35px;
    margin-left: 0;
    align-self: flex-start;
    width: auto;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Make project overlay visible on mobile/touch devices */
@media (hover: none) and (pointer: coarse), (max-width: 768px) {
    .project-overlay {
        opacity: 1 !important;
    }
}

/* About Preview Section */
.about-preview {
    padding: 120px 0;
    background-color: white;
}

.about-preview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--gray);
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: var(--light);
    border-radius: 15px;
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-item h4 {
    margin-bottom: 10px;
}

/* Contact CTA Section */
.contact-cta {
    padding: 100px 0;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 80px 0 30px;
    position: relative;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-col p {
    margin-bottom: 20px;
    opacity: 0.8;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.footer-col ul li i {
    margin-right: 10px;
    color: var(--accent);
}

.footer-col ul li a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    margin-top: 25px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 15px;
    color: white;
    transition: all 0.3s;
    font-size: 1.2rem;
    text-decoration: none;
}

.social-icons a:hover {
    background-color: var(--accent);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

.copyright a {
    color: var(--accent);
    text-decoration: none;
}

/* Engineering Sketch Backgrounds */
.sketch-bg {
    position: relative;
}

.sketch-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../pngtree-mechanical-instrument-making-engineer-drawing-picture-image_1809819.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Page Headers */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../desktop-wallpaper-engineering-mechanical-drawing.jpg') no-repeat center center/cover;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 150px 0 80px;
    margin-top: 80px;
    text-align: center;
    position: relative;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 20px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Content Sections */
.content-section {
    padding: 80px 0;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3.2rem;
    }
    
    .about-preview-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .service-card, .project-card {
        max-width: 450px;
        margin: 0 auto;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 40px 40px;
        transition: right 0.4s;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.active {
        right: 0;
    }
    
    nav ul li {
        margin: 15px 0;
        width: 100%;
    }
    
    /* Mobile submenu styles */
    nav ul li .submenu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        background: var(--light);
        margin: 0;
        padding: 0;
        border-radius: 5px;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    nav ul li .submenu.active {
        opacity: 1;
        visibility: visible;
        margin: 10px 0 0 20px;
        padding: 10px 0;
        max-height: 500px;
    }
    
    nav ul li .submenu li {
        margin: 5px 0;
    }
    
    nav ul li .submenu li a {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .hero {
        background-attachment: scroll;
    }
    
    .page-header {
        background-attachment: scroll;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .hero {
        height: 85vh;
        margin-top: 70px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
    
    .services {
        padding: 60px 0;
    }
    
    .services-grid, .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .service-card {
        margin-bottom: 20px;
    }
    
    .service-icon {
        font-size: 2rem;
        padding: 20px;
        min-height: 150px;
    }
    
    .service-content {
        padding: 20px;
    }
    
    .service-content h3 {
        font-size: 1.3rem;
    }
    
    .service-content p {
        font-size: 0.95rem;
    }
    
    .stats {
        padding: 60px 0;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-text {
        font-size: 1rem;
    }
    
    .projects {
        padding: 60px 0;
    }
    
    .project-card {
        height: 250px;
    }
    
    .project-overlay {
        padding: 20px;
    }
    
    .project-overlay h3 {
        font-size: 1.2rem;
    }
    
    .project-overlay p {
        font-size: 0.9rem;
    }
    
    .page-header {
        padding: 120px 0 60px;
        margin-top: 70px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .content-section {
        padding: 50px 0;
    }
    
    .content-section h2 {
        font-size: 1.8rem;
    }
    
    .content-section p {
        font-size: 1rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
    
    .footer-container {
        gap: 30px;
    }
    
    .footer-col h3 {
        font-size: 1.2rem;
    }
    
    nav ul {
        width: 100%;
        right: -100%;
    }
}

/* iPhone 7 specific - 375px width */
@media (max-width: 375px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .service-content h3 {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-text {
        font-size: 0.9rem;
    }
}
