/* 
    Safar Enterprise - Design System & Base Styles
    Corporate Industrial Aesthetic
*/

:root {
    --primary-blue: #0B2E6B;
    --secondary-red: #D62828;
    --white: #FFFFFF;
    --light-grey: #F4F7FA;
    --dark-navy: #081F4D;
    --text-dark: #1A1A1A;
    --text-light: #555555;
    --transition: all 0.3s ease;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    color: var(--text-dark);
    background-color: var(--light-grey);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-red {
    background-color: var(--secondary-red);
    color: var(--white);
}

.btn-red:hover {
    background-color: #b32121;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(214, 40, 40, 0.3);
}

.btn-outline-white {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

/* Header & Nav */
header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

header.sticky {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 70px;
}

header.sticky .nav-links a {
    color: var(--primary-blue);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    height: 50px;
}

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

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 10px;
}

header.sticky .menu-toggle span {
    background: var(--primary-blue);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-red);
}

.nav-right .btn-call {
    background: var(--secondary-red);
    color: var(--white);
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 4px;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(8, 31, 77, 0.7), rgba(8, 31, 77, 0.7)), url('../images/hero-banner.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    color: var(--white);
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.9;
    animation: fadeInUp 0.8s 0.2s ease forwards;
}

.hero-btns {
    display: flex;
    gap: 20px;
    animation: fadeInUp 0.8s 0.4s ease forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Page Header */
.page-header {
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(rgba(8, 31, 77, 0.8), rgba(8, 31, 77, 0.8)), url('../images/hero-banner.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.page-header-content {
    max-width: 800px;
    color: var(--white);
    z-index: 2;
    margin: 0 auto;
    text-align: center;
}

.page-header-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease forwards;
}

.page-header-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s 0.2s ease forwards;
}

/* About Preview */
.about {
    background: var(--white);
    position: relative;
}

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

.about-img {
    position: relative;
    border-left: 10px solid var(--primary-blue);
    padding-left: 20px;
}

.about-img img {
    box-shadow: 20px 20px 0 var(--secondary-red);
}

.section-title {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary-red);
}

.about-content p {
    margin-bottom: 30px;
    color: var(--text-light);
}

.counters {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.counter-item {
    text-align: center;
}

.counter-item h3 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.counter-item p {
    font-weight: 600;
    color: var(--secondary-red);
    margin: 0;
}

/* Services Section */
.services {
    background: var(--light-grey);
}

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

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(11, 46, 107, 0.05);
    border-bottom: 4px solid var(--primary-blue);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(214, 40, 40, 0.05), transparent);
    transition: 0.5s;
    z-index: -1;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-bottom: 4px solid var(--secondary-red);
    box-shadow: 0 20px 40px rgba(11, 46, 107, 0.15);
}

.service-card i {
    font-size: 3.2rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
    display: inline-block;
    transition: all 0.4s ease;
}

.service-card:hover i {
    color: var(--secondary-red);
    transform: rotateY(360deg) scale(1.1);
}

.service-card h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--primary-blue);
    transition: var(--transition);
}

.service-card:hover h4 {
    color: var(--secondary-red);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    transition: var(--transition);
}

.service-card:hover p {
    color: var(--text-dark);
}

/* Why Choose Us */
.why-choose {
    background: var(--primary-blue);
    color: var(--white);
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.why-item {
    display: flex;
    gap: 20px;
}

.why-item i {
    font-size: 2rem;
    color: var(--secondary-red);
}

.why-item h4 {
    margin-bottom: 10px;
}

/* Projects Showcase */
.projects {
    background: var(--white);
}

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

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 46, 107, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
    padding: 20px;
    text-align: center;
}

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

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-overlay h4 {
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: var(--transition);
}

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

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(8, 31, 77, 0.9), rgba(8, 31, 77, 0.9)), url('../images/hero-banner.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    padding: 100px 0;
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info i {
    color: var(--secondary-red);
    margin-right: 15px;
    width: 20px;
}

.contact-item {
    margin-bottom: 25px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

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

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary-blue);
}

/* Footer Redesign */
footer {
    background-color: #051532;
    color: var(--white);
    padding: 100px 0 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-red), var(--primary-blue));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 80px;
    padding-bottom: 80px;
}

.footer-logo-box {
    margin-bottom: 30px;
}

.footer-logo-box .logo-text {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.footer-logo-box .logo-text span {
    color: var(--secondary-red);
}

.footer-logo-box p {
    font-size: 1.1rem;
    opacity: 0.7;
    line-height: 1.8;
}

.footer-col h4 {
    font-size: 1.4rem;
    margin-bottom: 40px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--secondary-red);
}

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

.footer-links a {
    font-size: 1.1rem;
    opacity: 0.6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a::before {
    content: '\f101';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--secondary-red);
    font-size: 0.8rem;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--white);
    transform: translateX(10px);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-card .icon-box {
    width: 50px;
    height: 50px;
    background: rgba(214, 40, 40, 0.1);
    border: 1px solid rgba(214, 40, 40, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: var(--secondary-red);
    font-size: 1.2rem;
    transition: var(--transition);
}

.contact-card:hover .icon-box {
    background: var(--secondary-red);
    color: var(--white);
    transform: rotateY(360deg);
}

.contact-card div h5 {
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 5px;
}

.contact-card div p {
    font-size: 1.05rem;
    font-weight: 500;
}

.footer-social-strip {
    background: rgba(255,255,255,0.03);
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.social-strip-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.social-link-item {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-link-item:hover {
    background: var(--secondary-red);
    border-color: var(--secondary-red);
    transform: translateY(-5px);
}

.brochure-link{
    position: relative;
    display: inline-block;
}

.new-badge{
    /*position: absolute;*/
    top: -8px;
    right: -38px;
    background: #ff0000;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 30px;
    line-height: 1;
    animation: blinkBadge 1s infinite;
    box-shadow: 0 0 10px rgba(255,0,0,0.6);
}

@keyframes blinkBadge{
    0%{
        opacity: 1;
        transform: scale(1);
    }
    50%{
        opacity: .3;
        transform: scale(1.15);
    }
    100%{
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 992px) {
    .nav-container {
        padding: 0 5%;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .social-strip-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--dark-navy);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease;
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

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

    .nav-links a {
        font-size: 1.5rem;
        color: white !important;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .nav-right {
        display: none;
    }

    .section-padding {
        padding: 60px 0;
    }

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

    .counters {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: block !important;
    }

    .text-left-mobile {
        text-align: left !important;
    }
}
