/* CSS Custom Properties for Theme - Donnelly Branding - Updated 16:14 */
:root {
    --primary-color: #1e3a5f;
    --secondary-color: #2d3748;
    --accent-color: #d4af37;
    --gold: #d4af37;
    --light-gold: #f4e79a;
    --navy-blue: #1e3a5f;
    --text-dark: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --gray-300: #e2e8f0;
    --gray-800: #2d3748;
    --gray-900: #1a202c;
    --success: #38a169;
    --warning: #ed8936;
    --danger: #e53e3e;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

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

a:hover {
    color: var(--primary-color);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--navy-blue);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--navy-blue);
    color: var(--gold);
    transform: translateY(-1px);
    box-shadow: var(--box-shadow);
}

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

.btn-secondary:hover {
    background-color: var(--gold);
    color: var(--navy-blue);
}

.btn-outline {
    background: linear-gradient(135deg, var(--gold), #f1c40f);
    color: var(--navy-blue);
    border: 3px solid var(--gold);
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline:hover {
    background: linear-gradient(135deg, #f1c40f, var(--gold));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
    color: var(--navy-blue);
    border-color: #f1c40f;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--gold);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background-color: var(--gold);
    padding: 0.75rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border: 3px solid var(--navy-blue);
    border-radius: 4px;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-blue);
    line-height: 1.1;
    margin: 0;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--navy-blue);
    margin: 0;
    display: block;
    line-height: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--navy-blue);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--navy-blue);
    transition: var(--transition);
}

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

.quote-btn {
    background: linear-gradient(135deg, var(--gold), #f1c40f);
    color: var(--navy-blue);
    padding: 12px 24px;
    border: 3px solid var(--gold);
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

.quote-btn:hover {
    background: linear-gradient(135deg, #f1c40f, var(--gold));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
    border-color: #f1c40f;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    background: 
        linear-gradient(rgba(30, 58, 95, 0.8), rgba(30, 58, 95, 0.6)),
        url('./attached_assets/Rail_PNG_1756033048163.avif') center/cover no-repeat;
    padding: 90px 0 50px 0;
    box-sizing: border-box;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.layer-1 {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff" points="0,0 1000,300 1000,1000 0,700"/></svg>');
    animation: float 20s ease-in-out infinite;
}

.layer-2 {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff" points="0,300 1000,0 1000,400 0,1000"/></svg>');
    animation: float 15s ease-in-out infinite reverse;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(30, 58, 95, 0.6) 0%, 
        rgba(212, 175, 55, 0.3) 50%, 
        rgba(30, 58, 95, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    color: var(--white);
    padding: 0;
    margin: 20px 0 0 0;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.3;
}

.title-line {
    display: block;
    animation: fadeInUp 1s ease-out forwards;
    opacity: 1;
    transform: translateY(0);
    color: var(--white);
}

.title-line:nth-child(1) { animation-delay: 0.1s; }
.title-line:nth-child(2) { animation-delay: 0.3s; }

.highlight {
    color: var(--gold);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--gold);
    animation: expandWidth 1s ease-out 0.8s forwards;
    transform: scaleX(0);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 1;
    color: var(--white);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 12px;
    position: relative;
    animation: bounce 2s infinite;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--white);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* About Section */
.about {
    background-color: var(--gray-100);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.directors-grid {
    display: grid;
    gap: 1.5rem;
}

.director-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.director-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.director-title {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.director-qualification {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.director-experience {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.director-contact {
    display: flex;
    gap: 1rem;
}

.director-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--gold);
    color: var(--navy-blue);
    border-radius: 50%;
    transition: var(--transition);
}

.director-contact a:hover {
    background-color: var(--navy-blue);
    color: var(--gold);
    transform: scale(1.1);
}

/* Services Section */
.services {
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    height: 350px;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.card-front {
    background-color: var(--gray-900);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.card-back {
    background-color: var(--white);
    transform: rotateY(180deg);
    position: relative;
    overflow: hidden;
}

.service-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.service-title {
    color: var(--white);
    margin-bottom: 1rem;
}

.service-brief {
    color: var(--gray-300);
    margin-bottom: 2rem;
}

.view-more {
    color: var(--gold);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.roads-bg { 
    background-image: 
        linear-gradient(rgba(30, 58, 95, 0.4), rgba(212, 175, 55, 0.3)),
        url('./attached_assets/Roadbridges_PNG_1756033063076.avif'); 
    background-size: cover;
    background-position: center;
}
.rail-bg { 
    background-image: 
        linear-gradient(rgba(30, 58, 95, 0.4), rgba(74, 85, 104, 0.3)),
        url('./attached_assets/Rail_PNG_1756033048163.avif'); 
    background-size: cover;
    background-position: center;
}
.drainage-bg { 
    background-image: 
        linear-gradient(rgba(30, 58, 95, 0.4), rgba(49, 130, 206, 0.3)),
        url('./attached_assets/Specialist engineering_1756051326845.avif'); 
    background-size: cover;
    background-position: center;
}
.energy-bg { 
    background-image: 
        linear-gradient(rgba(30, 58, 95, 0.4), rgba(56, 161, 105, 0.3)),
        url('./attached_assets/Energy_PNG_1756033170138.avif'); 
    background-size: cover;
    background-position: center;
}
.water-bg { 
    background-image: 
        linear-gradient(rgba(30, 58, 95, 0.4), rgba(49, 130, 206, 0.3)),
        url('./attached_assets/Water and waste management_1756051175903.avif'); 
    background-size: cover;
    background-position: center;
}
.demolition-bg { 
    background-image: 
        linear-gradient(rgba(30, 58, 95, 0.4), rgba(229, 62, 62, 0.3)),
        url('./attached_assets/demoliton_1756051245191.avif'); 
    background-size: cover;
    background-position: center;
}
.marine-bg { 
    background-image: 
        linear-gradient(rgba(30, 58, 95, 0.4), rgba(9, 135, 160, 0.3)),
        url('./attached_assets/Screenshot%202025-08-24%20120551_1756033578072.png'); 
    background-size: cover;
    background-position: center;
}
.urban-bg { 
    background-image: 
        linear-gradient(rgba(30, 58, 95, 0.4), rgba(128, 90, 213, 0.3)),
        url('./attached_assets/Marine and coastal protection_1756051263013.avif'); 
    background-size: cover;
    background-position: center;
}
.specialist-bg { 
    background-image: 
        linear-gradient(rgba(30, 58, 95, 0.4), rgba(237, 137, 54, 0.3)),
        url('./attached_assets/Urban Renewal_1756051298225.avif'); 
    background-size: cover;
    background-position: center;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: var(--white);
    text-align: center;
}

.service-overlay h3 {
    margin-bottom: 1rem;
}

.service-overlay p {
    margin-bottom: 2rem;
    color: var(--gray-200);
}

/* Projects Section */
.projects {
    background-color: var(--gray-100);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.project-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    overflow: hidden;
}

.camden-lock-bg {
    background: 
        linear-gradient(rgba(30, 58, 95, 0.5), rgba(30, 58, 95, 0.3)),
        url('./attached_assets/Screenshot 2025-08-24 120551_1756051625738.png') center/cover no-repeat;
}

.dungarvan-harbour-bg {
    background: 
        linear-gradient(rgba(30, 58, 95, 0.5), rgba(30, 58, 95, 0.3)),
        url('./attached_assets/Screenshot 2025-08-24 170822_1756051728030.png') center/cover no-repeat;
}

.quinns-road-bg {
    background: 
        linear-gradient(rgba(30, 58, 95, 0.5), rgba(30, 58, 95, 0.3)),
        url('./attached_assets/Screenshot 2025-08-24 170926_1756051842684.png?v=2') center/cover no-repeat;
}

.loughmore-canal-bg {
    background: 
        linear-gradient(rgba(30, 58, 95, 0.5), rgba(30, 58, 95, 0.3)),
        url('./attached_assets/Screenshot 2025-08-24 170909_1756111036220.png') center/cover no-repeat;
}

.esb-yard-bg {
    background: 
        linear-gradient(rgba(30, 58, 95, 0.5), rgba(30, 58, 95, 0.3)),
        url('./attached_assets/Screenshot 2025-08-24 170943_1756111057139.png') center/cover no-repeat;
}

.ida-kilkenny-bg {
    background: 
        linear-gradient(rgba(30, 58, 95, 0.5), rgba(30, 58, 95, 0.3)),
        url('./attached_assets/Screenshot 2025-08-24 171002_1756051974830.png?v=2') center/cover no-repeat;
}

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

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

.project-category {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-top: 1rem;
}

.project-content {
    padding: 1.5rem;
}

.project-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Careers Section */
.careers {
    background-color: var(--white);
}

.careers-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.careers-intro h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.career-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: var(--gray-100);
    border-radius: var(--border-radius);
}

.benefit i {
    color: var(--accent-color);
    font-size: 1.25rem;
}

.job-listings h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.job-list {
    margin-bottom: 2rem;
}

.job-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--gray-100);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.job-item:hover {
    background-color: var(--gray-200);
}

.job-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.job-location, .job-type {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.apply-btn {
    background-color: var(--gold);
    color: var(--navy-blue);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.apply-btn:hover {
    background-color: var(--navy-blue);
    color: var(--gold);
}

.general-application {
    text-align: center;
    padding: 2rem;
    background-color: var(--light-gold);
    border-radius: var(--border-radius);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--gray-100);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.stars {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.author-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.author-info span {
    color: var(--text-light);
    font-size: 0.875rem;
}

.review-cta {
    text-align: center;
}

/* Partners Section */
.partners {
    background-color: var(--white);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    padding: 1rem;
    background-color: var(--gray-100);
    border-radius: var(--border-radius);
    transition: var(--transition);
    filter: grayscale(100%);
}

.partner-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
    background-color: var(--light-blue);
}

.logo-placeholder {
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    font-size: 0.875rem;
}

/* Contact Section */
.contact {
    background-color: var(--gray-100);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--gold);
    color: var(--navy-blue);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-details h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-details p {
    margin-bottom: 0.25rem;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* Footer */
.footer {
    background-color: var(--gray-900);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-section h4 {
    color: var(--light-blue);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--gray-300);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--light-blue);
}

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

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

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

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 1rem;
    text-align: center;
    color: var(--gray-300);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-300);
}

.modal-header h2 {
    color: var(--primary-color);
    margin: 0;
}

.close {
    color: var(--text-light);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: var(--primary-color);
}

.modal form {
    padding: 1.5rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--accent-color);
    z-index: 2000;
    transition: width 0.1s ease;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    to {
        transform: scaleX(1);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes scroll {
    0% { opacity: 0; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--gold);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--box-shadow);
        padding: 2rem 0;
    }
    
    .nav-logo {
        padding: 0.3rem 0.7rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-subtitle {
        font-size: 0.7rem;
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        padding: 100px 0 60px 0;
        align-items: flex-start;
    }
    
    .hero-content {
        margin: 20px 0 0 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .about-content,
    .careers-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

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

    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .career-benefits {
        grid-template-columns: 1fr;
    }

    .job-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    .container {
        padding: 0 1rem;
    }

    section {
        padding: 3rem 0;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 90px 0 40px 0;
        align-items: flex-start;
    }
    
    .hero-content {
        margin: 10px 0 0 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .stat-number {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-background {
        background-image: 
            linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .back-to-top,
    .progress-bar,
    .modal {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .hero {
        height: auto;
        page-break-after: always;
    }
}
