/* 
   Kielecka Grupa Mostowa - Main Stylesheet
   Theme: Premium, Engineering, Reliable, Modern
*/

:root {
    --primary-color: #0f172a;
    /* Deep Navy / Slate */
    --secondary-color: #334155;
    /* Lighter Slate */
    --accent-color: #d97706;
    /* Construction Amber/Orange */
    --text-color: #1e293b;
    /* Dark Slate for text */
    --light-bg: #f8fafc;
    /* Very light slate/grey */
    --white: #ffffff;
    --transition: all 0.3s ease;
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Manrope', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* Typography & Utilities */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.section {
    padding: 80px 0;
}

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

.bg-dark {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    /* Increased padding */
    border-radius: 4px;
    font-size: 1.1rem;
    /* Increased font size */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: #b45309;
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
}

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

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

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title .line {
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0 auto;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: padding 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    /* Increased size */
    width: auto;
    transition: var(--transition);
}

.navbar.scrolled .logo img {
    height: 60px;
    /* Slightly smaller on scroll */
}

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

.nav-links a {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
    /* Increased size */
    position: relative;
    opacity: 1;
}

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

.nav-links a:hover {
    opacity: 1;
}

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

.btn-contact {
    border: 1px solid var(--accent-color);
    padding: 12px 30px;
    /* Increased padding */
    font-weight: 600;
    border-radius: 4px;
    color: var(--accent-color) !important;
}

.btn-contact:hover {
    background-color: var(--accent-color);
    color: var(--white) !important;
}

.btn-contact::after {
    display: none;
}

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

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin-bottom: 5px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('../assets/hero_bg_user.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    /* Center the container */
    text-align: center;
    /* Center the text */
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 20px;
    /* Space between p and features list */
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    /* Center the buttons */
}

/* About Section */
.about-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.about-text {
    flex: 1;
    width: 50%;
    /* Ensure it takes half on desktop */
}

.about-text p {
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-size: 1.1rem;
    text-align: justify;
    /* Justify text */
}

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

.features-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary-color);
}

.features-list i {
    color: var(--accent-color);
}

/* Conic Gradient Background creates the slices visually */

/* Experience Section Grid (Buttons style) */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns to stack nicer */
    gap: 20px;
    flex: 1;
    width: 50%;
    /* Ensure it takes half on desktop */
    /* Take up remaining space */
    /* max-width removed to allow full 50% width */
}

/* Main Circle Card Style */
.stat-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: 50%;
    /* Circle shape */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 220px;
    /* Fixed width */
    height: 220px;
    /* Fixed height = width for perfect circle */
    margin: 0 auto;
    /* Center in grid cell if necessary */
    border: 4px solid var(--white);
    /* White border for separation */
    outline: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle outline */
}

/* Remove the top bar effect for circles as it looks odd */
.stat-card::before {
    display: none;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
    /* Highlight border on hover */
}

.stat-card .icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.stat-card .number {
    font-family: 'Manrope', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
    line-height: 1;
}

.stat-card .label {
    font-family: 'Manrope', sans-serif;
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.stat-card .label {
    font-family: 'Manrope', sans-serif;
    color: var(--secondary-color);
    font-size: 0.95rem;
    /* Match Offer p size */
    font-weight: 400;
    /* Match Offer p weight */
    text-transform: none;
    /* Remove Uppercase */
    letter-spacing: normal;
    line-height: 1.5;
}

/* Center circle to make it a donut (optional, but looks better usually) */
/* Center circle to make it a donut (optional, but looks better usually) */


/* Offer Section */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    /* Reduced min-width to fit 5 items */
    gap: 20px;
}

.offer-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.offer-card:hover::before {
    transform: scaleX(1);
}

.offer-card .icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.offer-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.offer-card p {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-img {
    height: 250px;
    background-color: #cbd5e1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: #94a3b8;
    transition: transform 0.5s ease;
}

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

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.9));
    color: var(--white);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.project-item:hover .project-info {
    transform: translateY(0);
}

.project-info h3 {
    font-size: 0.9rem;
    /* Reduced to fit on one line */
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-info p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    gap: 50px;
    background-color: #1e293b;
    padding: 50px;
    border-radius: 12px;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    margin-bottom: 15px;
    color: var(--white);
}

.contact-info>p {
    color: #94a3b8;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-color);
}

.info-item h4 {
    color: var(--white);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-item p {
    color: #cbd5e1;
}

.contact-form-wrapper {
    flex: 1;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    /* ... existing styles ... */
}

/* Awards Section */
.awards-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 20px 0;
}

.award-row {
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: space-between;
}

.award-row.reverse {
    flex-direction: row-reverse;
}

.award-desc {
    flex: 1;
}

.award-desc h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.award-desc p {
    color: var(--secondary-color);
    font-size: 1.1rem;
    line-height: 1.8;
}

.award-btn-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.award-item {
    width: 100%;
    max-width: 400px;
    /* Limit width of the 'button' card */
    height: 250px;
    /* Fixed height match projects */
}

@media (max-width: 768px) {

    .award-row,
    .award-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .award-btn-wrapper {
        width: 100%;
    }
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group ::placeholder {
    color: #64748b;
}

/* Clients Section */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.client-item {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    /* Fixed height for consistency */
}

.client-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.client-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.client-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Footer */
footer {
    background-color: #020617;
    color: #64748b;
    padding: 30px 0;
    font-size: 0.9rem;
}

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

.footer-links a {
    margin-left: 20px;
}

.footer-links a:hover {
    color: var(--white);
}

/* Responsive */
@media (max-width: 900px) {

    .about-content,
    .contact-wrapper {
        flex-direction: column;
    }

    .about-text,
    .experience-grid {
        width: 100%;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .about-stats {
        width: 100%;
        max-width: 400px;
        /* Limit size on mobile */
        height: auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #0f172a;
        width: 100%;
        text-align: center;
        padding: 20px 0;
        transition: right 0.3s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

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

    .hamburger {
        display: block;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-links a {
        margin: 0 10px;
    }
}

/* Awards Section */
.awards-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.award-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: auto;
    min-height: 220px;
    flex: 1;
    min-width: 280px;
    /* Allow to grow */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.award-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.award-card .icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.award-card img {
    max-width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 4px;
}

.award-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.award-card p {
    font-size: 0.95rem;
    color: var(--secondary-color);
    line-height: 1.5;
}

/* Video Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10001;
    /* Higher than navbar and a11y widget */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

.modal-content {
    position: relative;
    background-color: transparent;
    margin: 5% auto;
    padding: 0;
    width: 80%;
    max-width: 900px;
}

.close-modal {
    color: #f1f1f1;
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}