/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

html {
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
}

.sub-heading {
    color: #e63946;
    /* Accent Color - Red/Orange */
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Colors */
:root {
    --primary: #1d3557;
    /* Dark Blue */
    --secondary: #457b9d;
    /* Lighter Blue */
    --accent: #e63946;
    /* Red */
    --light: #f1faee;
    /* Off White */
    --dark: #111;
    --gray: #f4f4f4;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    margin-left: 15px;
}

.btn-outline:hover {
    background: #fff;
    color: var(--dark);
}

.btn-dark {
    background: var(--primary);
    color: #fff;
    margin-top: 20px;
}

.btn-dark:hover {
    background: var(--secondary);
}

.btn-white {
    background: #fff;
    color: var(--primary);
    border: 2px solid #fff;
    margin-top: 20px;
}

.btn-white:hover {
    background: transparent;
    color: #fff;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(90deg, var(--primary) 0%, #2c3e50 100%);
    color: #fff;
    padding: 12px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.contact-info {
    display: flex;
    align-items: center;
    gap: 25px;
}

.contact-info span a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: 0.3s;
}

.contact-info span a:hover {
    color: var(--accent);
}

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

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

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

/* Navbar */
.navbar {
    background: #fff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.logo img {
    height: 60px;
    /* Slightly larger logo for solid nav */
    transition: 0.3s;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
    /* Added for vertical alignment */
}

.nav-links li {
    margin-left: 0;
}

.nav-links a {
    font-weight: 600;
    font-size: 15px;
    color: var(--primary);
    padding: 10px 10px;
    border-radius: 4px;
    transition: 0.3s;
    text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    background: transparent;
}

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

/* CTA Button in Nav */
.nav-cta-btn {
    background: var(--accent);
    color: #fff !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
    transition: 0.3s;
    border: 2px solid var(--accent);
    /* Added for stability */
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.6);
    background: #fff;
    /* White background on hover */
    color: var(--accent) !important;
    /* Red text on hover */
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 30px;
    height: 3px;
    background: var(--primary);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 90vh;
    /* background image moved to inline style in template */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 60px;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

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

/* Features */
.features {
    padding: 60px 0;
    background: #fff;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

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

.feature-card {
    background: #fff;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: 0.3s;
    border-bottom: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--accent);
}

.feature-card i {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

/* About Section */
.about {
    padding: 80px 0;
    background: #f9f9f9;
}

.about-row {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-img {
    flex: 1;
    position: relative;
}

.about-img img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--accent);
    color: #fff;
    padding: 30px;
    border-radius: 5px;
    text-align: center;
}

.experience-badge span {
    font-size: 40px;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-text h2 span {
    color: var(--secondary);
}

.check-list {
    margin: 20px 0;
}

.check-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.check-list i {
    color: var(--accent);
    margin-right: 10px;
}

/* Services Section */
.services {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary);
}

.section-title.white h2 {
    color: #fff;
}

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

.service-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 30px;
    transition: 0.3s;
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 50%;
    margin-bottom: 20px;
    transition: 0.3s;
}

.service-card:hover .service-icon {
    background: var(--accent);
    transform: rotateY(360deg);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: var(--primary);
}

.read-more {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    margin-top: 15px;
    display: inline-block;
}

.read-more i {
    margin-left: 5px;
    transition: 0.3s;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Projects Section */
.projects {
    padding: 80px 0;
    background: var(--primary);
}

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

.project-item {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.project-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(230, 57, 70, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: 0.4s;
}

.project-item:hover .overlay {
    bottom: 0;
}

/* CTA */
.cta {
    /* background image moved to inline style in template */
    padding: 80px 0;
    text-align: center;
    color: #fff;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.cta h2 {
    font-size: 40px;
    margin-bottom: 15px;
}

/* Footer (Updated) */
.footer {
    background: #111;
    color: #bbb;
    padding: 70px 0 20px;
}

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

.footer-col h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 24px;
}

.footer-col h3 span {
    color: var(--accent);
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

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

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

.footer-col a {
    color: #bbb;
}

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

.footer-col i {
    color: var(--accent);
    margin-right: 10px;
}

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

/* Responsive */
@media (max-width: 991px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        transition: 0.4s ease-in-out;
        z-index: 1001;
        /* Ensure above overlay */
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .nav-links a {
        color: var(--primary);
        font-size: 18px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .about-row {
        flex-direction: column;
    }

    .experience-badge {
        right: 0;
        bottom: -20px;
        padding: 15px;
    }
}

/* New Hero Animation */
@keyframes fadeInZoom {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero {
    overflow: hidden;
    /* Ensure zoom doesn't break layout */
    animation: fadeInZoom 1.5s ease-out forwards;
}

.hero-content {
    opacity: 0;
    animation: heroFadeIn 1s ease-out forwards;
    animation-delay: 0.5s;
    transform: translateY(30px);
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar Enhancement */
.navbar {
    border-bottom: 2px solid var(--accent);
    /* Thin accent line */
}


/* Enhanced Hover Effects */

/* Buttons Shine Effect */
.btn-animate {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-animate::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-animate:hover::after {
    left: 100%;
}

/* Feature Cards Glow & Lift */
.feature-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy feel */
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: 0.4s;
}

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

.feature-card:hover::before {
    width: 100%;
}

.icon-box {
    width: 80px;
    height: 80px;
    background: rgba(29, 53, 87, 0.05);
    /* Light primary */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--primary);
    transition: 0.4s;
}

.feature-card:hover .icon-box {
    background: var(--accent);
    color: #fff;
    transform: rotateY(180deg);
}

/* Service Card Hover */
.service-icon {
    transition: all 0.5s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.4);
}

/* ASME Yazilim Credits */
.asme-link {
    color: #888;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.asme-link:hover {
    color: var(--accent);
}


/* Contact Section Update */
.contact-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 25px;
    border: 1px solid #eee;
    margin-bottom: 20px;
    border-radius: 8px;
    transition: 0.3s;
    text-align: left;
    color: inherit;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.contact-box:hover {
    transform: translateX(10px);
    border-left: 5px solid var(--accent);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.contact-box i {
    font-size: 24px;
    color: var(--accent);
    background: rgba(230, 57, 70, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-box h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--primary);
}

.contact-box p {
    font-size: 15px;
    color: #666;
    margin: 0;
}

/* Contact Form */
.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    font-family: inherit;
    transition: 0.3s;
}

.form-control:focus {
    border-color: var(--accent);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

textarea.form-control {
    resize: vertical;
}

/* Mobile Top Bar Styles */
.desktop-view {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.mobile-view {
    display: none;
}

@media (max-width: 991px) {
    .top-bar {
        padding: 5px 0 !important;
    }

    .desktop-view {
        display: none !important;
    }

    .mobile-view {
        display: block !important;
        height: 40px;
        position: relative;
        overflow: hidden;
        width: 100%;
    }

    .top-bar .container {
        display: block;
        /* Override flex */
        padding: 0;
        /* Remove padding if needed */
    }

    .topBarSwiper {
        height: 40px;
        width: 100%;
    }

    .topBarSwiper .swiper-slide {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: #fff;
        font-size: 13px;
        height: 40px;
        width: 100%;
        /* Ensure full width */
    }

    .topBarSwiper .swiper-slide a {
        color: #fff;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
    }

    .topBarSwiper .swiper-slide i {
        font-size: 14px;
        margin-right: 5px;
    }
}