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

body {
    font-family: 'Roboto', Arial, sans-serif;
    padding: 10px;
    background-color: #f4f7f6; /* Light Gray */
    color: #333; /* Dark Gray for readability */
}

/* Header */
.header {
    padding: 40px 20px;
    text-align: center;
    background-color: #2980b9; /* A professional blue */
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border-radius: 8px;
    transition: transform 0.5s ease-in-out;
}

.header:hover {
    transform: translateY(-5px); /* Subtle lift on hover */
}

.header h1 {
    font-size: 4em;
    margin-bottom: 10px;
    color: #ecf0f1;
    text-shadow: 4px 4px 0px #3498db, 6px 6px 0px rgba(0, 0, 0, 0.2); /* 3D text effect */
}

.header p {
    font-size: 1.2em;
    color: #ecf0f1;
}

/* Navigation Bar */
.topnav {
    overflow: hidden;
    background-color: #34495e;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border-radius: 5px;
    display: flex; /* Using flexbox for better alignment */
    justify-content: center;
}

.topnav a {
    flex: 1;
    display: block;
    color: white;
    text-align: center;
    padding: 18px 22px;
    text-decoration: none;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.topnav a:hover {
    background-color: #1abc9c;
    color: white;
    transform: scale(1.1); /* Zoom effect on hover */
}

/* Column Layout */
.row::after {
    content: "";
    display: table;
    clear: both;
}

.leftcolumn {
    float: left;
    width: 70%;
    padding-right: 20px;
}

.rightcolumn {
    float: left;
    width: 30%;
    padding-left: 20px;
}

/* Card Effect & Animations */
.card {
    background-color: white;
    padding: 30px;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1.5s ease-in-out; /* Fade-in animation for all cards */
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: scale(1.02); /* Slight scale-up on hover */
}

/* Testimonial Card specific animation */
.testimonial-card p {
    font-style: italic;
    border-left: 3px solid #1abc9c;
    padding-left: 15px;
    margin-left: 0;
    transition: background-color 0.3s ease;
}

.testimonial-card p:hover {
    background-color: #ecf0f1; /* Light hover effect for testimonials */
}

/* Image backgrounds with a professional touch */
.team-img {
    background: url('https://images.unsplash.com/photo-1552581234-26160f608093?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w1NzIyMzl8MHwxfHNlYXJjaHwzfHxlbmdhZ2VkJTIwdGVhbXxlbnwwfHx8fDE3MjI3ODEyNDF8MA&ixlib=rb-4.0.3&q=80&w=1080');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 200px; /* Using height instead of padding */
    border-radius: 5px;
    animation: slideInLeft 1s ease-out; /* Slide-in animation */
}

.repair-img {
    background: url('https://images.unsplash.com/photo-1542831371-29b0f74f9713?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w1NzIyMzl8MHwxfHNlYXJjaHw2fHxjb21wdXRlciUyMHJlcGFpcnxlbnwwfHx8fDE3MjI3ODEwNTB8MA&ixlib=rb-4.0.3&q=80&w=1080');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 200px;
    border-radius: 5px;
    animation: slideInRight 1s ease-out; /* Slide-in animation */
}

.web-design-img {
    background: url('https://images.unsplash.com/photo-1587440938361-b54203ae6121?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w1NzIyMzl8MHwxfHNlYXJjaHw3fHx3ZWIlMjBkZXNpZ258ZW58MHx8fHwxNzIyNzgxMjQxfDA&ixlib=rb-4.0.3&q=80&w=1080');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 200px;
    border-radius: 5px;
    animation: slideInLeft 1s ease-out;
}

.icon-img {
    background: url('https://images.unsplash.com/photo-1510511459019-5da7094ed221?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w1NzIyMzl8MHwxfHNlYXJjaHw1fHx0ZWNoJTIwaWNvbnN8ZW58MHx8fHwxNzIyNzgxNDU1fDA&ixlib=rb-4.0.3&q=80&w=1080');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100px;
    border-radius: 5px;
    animation: slideInRight 1s ease-out;
}

/* Footer */
.footer {
    padding: 30px;
    text-align: center;
    background-color: #2980b9;
    color: white;
    margin-top: 20px;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.footer h2 {
    margin-bottom: 10px;
    color: #ecf0f1;
}

.footer p {
    font-size: 0.9em;
    color: #bdc3c7;
}

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

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive Layout */
@media screen and (max-width: 800px) {
    .leftcolumn,
    .rightcolumn {
        width: 100%;
        padding: 0;
    }
    .rightcolumn {
        margin-top: 20px;
    }
    .card {
        margin-bottom: 20px;
    }
    .topnav a {
        padding: 15px 10px;
    }
}

@media screen and (max-width: 600px) {
    .topnav a {
        float: none;
        width: 100%;
    }
    .header h1 {
        font-size: 3em;
    }
    .header p {
        font-size: 1em;
    }
}