/* 
   AVY Structural Steel Detailing and Estimates - Custom CSS
   This stylesheet contains custom styling for the website
*/

/* Global Styles */
:root {
    --primary-color: #ffd700; /* Gold/Yellow from the logo */
    --secondary-color: #003366; /* Dark blue from the logo */
    --dark-color: #212529; /* Bootstrap dark */
    --light-color: #f8f9fa; /* Bootstrap light */
    --gray-color: #6c757d; /* Bootstrap gray */
    --white-color: #ffffff;
    --black-color: #000000;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.section-title {
    position: relative;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0.5rem auto 0;
}

.section-subtitle {
    color: var(--gray-color);
    margin-bottom: 2rem;
}

/* Consistent section styling for sections with background images */
section[style*="background-image"] {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

section[style*="background-image"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 0;
}

section[style*="background-image"].bg-dark::before {
    background-color: rgba(0, 0, 0, 0.7);
}

section[style*="background-image"] .container {
    position: relative;
    z-index: 1;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--black-color);
    font-weight: 600;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #e6c200; /* Darker gold */
    border-color: #e6c200;
    color: var(--black-color);
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    max-height: 60px;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--white-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-toggler {
    border: 1px solid var(--white-color);
    padding: 0.25rem 0.5rem;
}

/* Hero Section */
.hero-section {
    padding: 8rem 0;
    background-color: var(--dark-color);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white-color);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

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

.hero-content h1 {
    margin-bottom: 1rem;
    font-size: 3.5rem;
    font-weight: 800;
}

.hero-content h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

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

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 0;
}

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

.service-card {
    background-color: var(--white-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.service-icon {
    margin-bottom: 1.5rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    max-height: 80px;
    max-width: 100%;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.service-card p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.read-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

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

/* Team Section */
.team-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.team-card {
    background-color: var(--white-color);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary-color);
}

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

.team-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.team-card .position {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.team-card .description {
    color: var(--gray-color);
}

/* Vision Section */
.vision-section {
    padding: 5rem 0;
    background-color: var(--secondary-color);
}

.vision-section .section-title {
    color: var(--white-color);
}

.vision-section .section-title::after {
    background-color: var(--primary-color);
}

.vision-statement {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.vision-statement {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* What We Deliver Section */
.what-we-deliver-section {
    padding: 5rem 0;
}

.delivery-card {
    background-color: var(--white-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.delivery-icon {
    margin-bottom: 1.5rem;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.delivery-icon img {
    max-height: 70px;
    max-width: 100%;
}

.delivery-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.delivery-card p {
    color: var(--gray-color);
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background-color: var(--light-color);
    position: relative;
}

.about-content h2 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--gray-color);
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Page Header */
.page-header {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 10rem 0 8rem;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    border-bottom: 5px solid var(--primary-color);
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.3"/></svg>'), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="150" height="150" viewBox="0 0 150 150"><circle cx="75" cy="75" r="1.5" fill="%23ffffff" opacity="0.2"/></svg>');
    background-position: 0 0, 50px 50px;
    pointer-events: none;
    z-index: 1;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.85) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.page-header h1:hover {
    transform: scale(1.05);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.page-header h1:hover::after {
    width: 120px;
}

.page-header .lead {
    margin-top: 1.5rem;
    font-size: 1.3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* Header Animations */
.animate-header h1 {
    animation: fadeInDown 1s ease-out;
}

.animate-header .lead {
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: both;
}

.animate-header .header-icons {
    animation: fadeIn 1.5s ease-out 0.6s;
    animation-fill-mode: both;
}

.header-icons i {
    transition: all 0.3s ease;
}

.header-icons i:hover {
    transform: scale(1.2) rotate(15deg);
    color: #fff !important;
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Services Detailed */
.services-detailed {
    padding: 5rem 0;
}

.service-card {
    border: 1px solid #eee;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.commitment-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Software Section */
.software-section {
    padding: 5rem 0;
}

.software-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Expertise Areas */
.expertise-areas {
    padding: 5rem 0;
}

.expertise-card {
    transition: transform 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-10px);
}

.expertise-icon img {
    transition: transform 0.3s ease;
}

.expertise-card:hover .expertise-icon img {
    transform: scale(1.1);
}

/* Project Types */
.project-types {
    padding: 5rem 0;
}

.project-type-card {
    background-color: var(--white-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Approach Section */
.approach-section {
    padding: 5rem 0;
}

.approach-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Contact Section */
.contact-section {
    padding: 5rem 0;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.contact-info p i {
    margin-right: 0.75rem;
    color: var(--primary-color);
    margin-top: 5px;
    font-size: 1.2rem;
}

.contact-form .form-control {
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

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

.contact-form .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    width: 100%;
    background-color: var(--primary-color);
    border: none;
    transition: all 0.3s ease;
}

.contact-form .btn:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-3px);
}

/* Quote Section */
.quote-section {
    padding: 5rem 0;
}

.quote-feature {
    font-weight: 500;
}

/* Footer */
footer {
    padding: 5rem 0 2rem;
    background-color: var(--dark-color);
    color: var(--white-color);
    position: relative;
}

footer[style*="background-image"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 0;
}

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

.footer-logo img {
    max-width: 180px;
    margin-bottom: 1.5rem;
}

.footer-contact {
    margin-bottom: 1.5rem;
}

.footer-contact p {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}

.footer-contact p i {
    margin-right: 0.75rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.footer-links ul {
    list-style: none;
    padding-left: 0;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: var(--white-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.copyright {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Expertise Section */
.expertise-section {
    padding: 5rem 0;
}

.expertise-card {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.expertise-icon {
    margin-bottom: 1.5rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expertise-icon img {
    max-height: 80px;
    max-width: 100%;
}

.expertise-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.expertise-card p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    color: var(--gray-color);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .navbar-brand img {
        max-height: 50px;
    }
    
    .hero-section {
        padding: 6rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .page-header {
        padding: 8rem 0 6rem;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header .lead {
        font-size: 1.1rem;
    }
    
    .header-icons i {
        font-size: 1.5rem;
    }
    
    .service-card, .team-card, .delivery-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        margin-bottom: 2rem;
    }

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

    .hero-content h2 {
        font-size: 1.4rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .vision-statement {
        font-size: 1.8rem;
    }

    .footer-links {
        margin-top: 2rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 4rem 0;
    }

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

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

    .hero-content h2 {
        font-size: 1.2rem;
    }
}