/* Enhanced Services Page Styles */
.services-hero {
    background: linear-gradient(135deg, #1a4d7a 0%, #f57c00 50%, #0d2f4d 100%);
    position: relative;
    overflow: hidden;
}

.services-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1));
}

.service-card {
    position: relative;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #f57c00, #ffa726);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(245, 124, 0, 0.25);
    border-color: var(--accent-orange);
}

.service-card .card-icon {
    font-size: 3.5rem;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1a4d7a 0%, #0d2f4d 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card .card-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 167, 38, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.service-card:hover .card-icon {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 10px 30px rgba(245, 124, 0, 0.4);
}

.service-card:hover .card-icon::after {
    width: 200%;
    height: 200%;
}

.service-card h3 {
    transition: all 0.3s ease;
}

.service-card:hover h3 {
    color: var(--accent-orange);
    transform: translateX(5px);
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.service-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: bold;
    transition: all 0.3s ease;
}

.service-card:hover ul li {
    transform: translateX(5px);
}

.service-card .btn {
    margin-top: 1.5rem;
    width: 100%;
    display: block !important;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.service-card .btn:hover::before {
    width: 300%;
    height: 300%;
}

/* Enhanced Projects Page Styles */
.projects-hero {
    background: linear-gradient(135deg, #0d2f4d 0%, #1a4d7a 50%, #f57c00 100%);
    position: relative;
    overflow: hidden;
}

.projects-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 60px 60px;
    opacity: 0.5;
}

.project-card {
    position: relative;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 124, 0, 0.1), rgba(26, 77, 122, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 60px rgba(245, 124, 0, 0.3);
}

.project-image {
    position: relative;
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #1a4d7a 0%, #f57c00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
    overflow: hidden;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    transition: all 0.4s ease;
}

.project-card:hover .project-image::after {
    background: linear-gradient(to bottom, transparent 0%, rgba(245, 124, 0, 0.5) 100%);
}

.project-image span {
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.project-card:hover .project-image span {
    transform: scale(1.2) rotate(10deg);
}

.project-info {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.project-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f57c00 0%, #ffa726 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(245, 124, 0, 0.3);
    transition: all 0.3s ease;
}

.project-card:hover .project-category {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(245, 124, 0, 0.5);
}

.project-info h3 {
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.project-card:hover .project-info h3 {
    color: var(--accent-orange);
}

.project-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--neutral-300);
    font-size: 0.95rem;
    font-weight: 600;
}

.project-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.project-card:hover .project-stats span {
    transform: translateX(5px);
}

/* Enhanced Contact Page Styles */
.contact-hero {
    background: linear-gradient(135deg, #f57c00 0%, #1a4d7a 50%, #0d2f4d 100%);
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 25s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #f57c00, #ffa726, #1a4d7a);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.form-group {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease backwards;
}

.form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.form-group:nth-child(3) {
    animation-delay: 0.3s;
}

.form-group:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--neutral-300);
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 4px rgba(245, 124, 0, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.info-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-orange);
}

.info-item {
    display: flex;
    align-items: start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(10px);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f57c00 0%, #ffa726 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(245, 124, 0, 0.3);
    transition: all 0.3s ease;
}

.info-item:hover .info-icon {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 12px 30px rgba(245, 124, 0, 0.5);
}

.info-content h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
    font-weight: 700;
}

.submit-btn {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f57c00 0%, #ffa726 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(245, 124, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-btn::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.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 124, 0, 0.5);
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* Services Grid View Styles */
.services-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services-list .service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    height: 100%;
}

.services-list .service-card .card-icon {
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.services-list .service-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.services-list .service-content p {
    flex-grow: 1;
}

.services-list .service-card .btn {
    width: 100%;
    display: block !important;
    margin-top: 1.5rem;
}

@media (max-width: 1024px) {
    .services-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-list {
        grid-template-columns: 1fr;
    }
}