/* ===== CSS Variables ===== */
:root {
    --primary-color: #1a5f7a;
    --primary-light: #2c8faf;
    --secondary-color: #0d466b;
    --accent-color: #ff9f1c;
    --accent-light: #ffc300;
    --text-dark: #1a1a1a;
    --text-light: #555555;
    --bg-light: #f8fafb;
    --white: #ffffff;
    --border-radius: 12px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #1a5f7a 0%, #2c8faf 50%, #1a5f7a 100%);
    --gradient-hero: linear-gradient(135deg, #1a5f7a 0%, #0d466b 50%, #ff9f1c 100%);
}

/* ===== Animation Keyframes ===== */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes subtleGlow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(26, 95, 122, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(26, 95, 122, 0.6), 0 0 10px rgba(255, 159, 28, 0.4);
    }
}

/* ===== Scroll Animation Classes ===== */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.hidden {
    opacity: 0;
    transform: translateY(30px);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ===== Animated Background Shapes ===== */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    animation: gradient-shift 15s ease infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.06) 0%, transparent 45%);
    animation: gradient-shift 12s ease infinite reverse;
}

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

/* ===== Header & Navigation ===== */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 1.9rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 700;
    position: relative;
    transition: transform 0.3s ease, letter-spacing 0.3s ease;
}

.logo h1:hover {
    transform: translateY(-2px);
    letter-spacing: 1px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav a:hover,
.nav a.active {
    color: var(--primary-color);
}

/* ===== Hero Section ===== */
.hero {
    background: var(--gradient-hero);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* ===== Floating Shapes in Hero ===== */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.hero-shape-1 {
    position: absolute;
    top: 10%;
    left: 5%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-shape-2 {
    position: absolute;
    bottom: 15%;
    right: 8%;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    animation: float 7s ease-in-out infinite reverse;
}

.hero-shape-3 {
    position: absolute;
    top: 50%;
    right: 15%;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 5s ease-in-out infinite;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffc300 100%);
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffc300 0%, var(--accent-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 159, 28, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

/* ===== Section Titles ===== */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

/* ===== Services Section ===== */
.services {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

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

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

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

/* ===== About Section ===== */
.about {
    padding: 80px 20px;
    text-align: center;
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ===== Projects Page ===== */
.projects-page {
    padding: 60px 20px;
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

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

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

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.project-card:hover::after {
    transform: scaleX(1);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-card video {
    width: 100%;
    height: 250px;
    object-fit: contain;
    display: block;
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.project-location,
.project-year {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

/* ===== Contact Page ===== */
.contact-page {
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%);
}

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

.contact-info h2,
.map-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.contact-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 2px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 25px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.contact-icon {
    font-size: 2rem;
    margin-right: 20px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.1), rgba(255, 159, 28, 0.1));
    border-radius: 50%;
    width: 50px;
    height: 50px;
    line-height: 1;
}

.contact-item h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-item a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.business-hours {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.05), rgba(255, 159, 28, 0.05));
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}

.business-hours h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.business-hours p {
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* ===== Contact Form Styles ===== */
.contact-form {
    padding: 30px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.contact-form h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 2px;
}

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

.form-group label {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffc300 100%);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
    background: linear-gradient(135deg, #ffc300 0%, var(--accent-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 159, 28, 0.3);
}

.social-links {
    margin-top: 30px;
}

.social-links h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.social-link {
    display: inline-block;
    background-color: var(--bg-light);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    color: var(--text-dark);
    text-decoration: none;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: var(--transition);
}

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

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

/* ===== Footer ===== */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
}

/* ===== Image Modal (Fullscreen) ===== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    display: flex;
    opacity: 1;
}

.image-modal img {
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease;
}

.image-modal img:hover {
    transform: scale(1.02);
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition);
}

.image-modal-close:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* ===== Lightbox for images ===== */
.project-card img,
.hero img {
    cursor: pointer;
    transition: var(--transition);
}

.project-card img:hover,
.hero img:hover {
    opacity: 0.95;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav ul {
        gap: 20px;
        font-size: 0.9rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

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

    .btn {
        padding: 12px 30px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.4rem;
    }

    .tagline {
        font-size: 0.8rem;
    }

    .nav ul {
        gap: 15px;
    }

    .hero {
        padding: 60px 20px;
    }

    .service-card,
    .project-content {
        padding: 20px;
    }
}