:root {
    --primary: #1d3557;
    --secondary: #457b9d;
    --accent: #a8dadc;
    --light: #f1faee;
    --danger: #e63946;
    --text-color: #1d3557;
    --card-bg: #ffffff;
    --gradient: linear-gradient(135deg, #1d3557 0%, #457b9d 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    background: var(--gradient);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(29, 53, 87, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--light);
    font-size: 1.5rem;
    font-weight: bold;
    animation: slideInLeft 1s ease-out;
}

.logo-icon {
    font-size: 2rem;
    margin-right: 10px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
    animation: slideInTop 0.8s ease-out backwards;
}

nav ul li:nth-child(1) { animation-delay: 0.1s; }
nav ul li:nth-child(2) { animation-delay: 0.2s; }
nav ul li:nth-child(3) { animation-delay: 0.3s; }
nav ul li:nth-child(4) { animation-delay: 0.4s; }

nav ul li a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--accent);
}

.hero {
    height: 80vh;
    background: var(--gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light);
    padding: 0 10%;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: slideInLeft 1.2s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: slideInLeft 1.5s ease-out;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--accent);
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--light);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(168, 218, 220, 0.4);
}

section {
    padding: 5rem 10%;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 10px auto;
}

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

.service-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(29, 53, 87, 0.1);
    border-top: 5px solid var(--secondary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: scaleUp 0.8s ease-out backwards;
}

.service-card:nth-child(1) { animation-delay: 0.2s; }
.service-card:nth-child(2) { animation-delay: 0.4s; }
.service-card:nth-child(3) { animation-delay: 0.6s; }

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(29, 53, 87, 0.2);
}

.service-card .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

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

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(29, 53, 87, 0.1);
    transition: transform 0.3s ease;
    animation: fadeIn 1s ease-out backwards;
}

.project-card:hover {
    transform: scale(1.03);
}

.project-img-placeholder {
    height: 200px;
    background: var(--accent);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary);
    background-size: cover;
    background-position: center;
    transition: filter 0.3s ease;
}

.project-card:hover .project-img-placeholder {
    filter: brightness(1.1);
}

.project-info {
    padding: 1.5rem;
}

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

.contact-info p {
    margin-bottom: 1rem;
}

#contact-form input, #contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid var(--accent);
    border-radius: 10px;
    outline: none;
    color: var(--primary);
}

#contact-form button {
    width: 100%;
}

footer {
    background: var(--primary);
    color: var(--light);
    text-align: center;
    padding: 2rem;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Animations */
/* New Dynamic Animations */
@keyframes slideInTop {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

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

@keyframes scaleUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.hero-content {
    animation: fadeIn 1.2s ease-out;
}
