body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    background: #181a20;
    color: #f4f4f4;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Logo SVG and Letterhead styles */
.logo-svg {
    display: flex;
    align-items: center;
    margin-right: 10px;
}
.lh-logo-text {
    font-size: 2.2rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    color: #3e72f9;
    padding-right: 12px;
}
.letterhead {
    background: rgba(24, 26, 32, 0.98);
    box-shadow: 0 2px 22px 0 rgba(0,0,0,0.12);
    padding: 22px 18px 12px 18px;
    border-bottom: 3px solid #3e72f9;
    position: relative;
    z-index: 10;
}
.lh-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1vw;
    justify-content: flex-start;
}
.lh-info {
    font-size: 1.02rem;
    color: #c0c8d6;
    line-height: 1.6;
    margin-left: 18px;
}
.lh-info a {
    color: #2de0a7;
    text-decoration: none;
    transition: color 0.2s;
}
.lh-info a:hover {
    color: #3e72f9;
}
.lh-divider {
    border: none;
    border-top: 1.5px solid #233;
    margin: 12px 0 10px 0;
}
.main-nav {
    display: flex;
    gap: 28px;
    justify-content: center;
    margin-bottom: 6px;
}
.main-nav a {
    color: #f4f4f4;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 1.01rem;
    padding: 6px 4px;
    transition: color 0.2s, border-bottom 0.2s;
    border-bottom: 2.5px solid transparent;
}
.main-nav a:hover, .main-nav a:focus {
    color: #2de0a7;
    border-bottom: 2.5px solid #2de0a7;
}

/* Hero section */
.hero {
    position: relative;
    z-index: 2;
    margin-top: 30px;
    margin-bottom: 0;
}
.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 30px 0 20px 0;
}
.hero-text {
    flex: 1 1 300px;
    min-width: 260px;
}
.hero-text h1 {
    font-size: 2.2rem;
    margin-bottom: 13px;
    color: #3e72f9;
    letter-spacing: 1px;
    animation: fadeInUp 1.1s cubic-bezier(0.4,0,0.2,1);
}
.hero-text p {
    font-size: 1.15rem;
    color: #c0c8d6;
    animation: fadeInUp 1.3s cubic-bezier(0.4,0,0.2,1);
}
.cta-btn {
    display: inline-block;
    margin-top: 18px;
    padding: 12px 28px;
    background: linear-gradient(90deg, #3e72f9 60%, #2de0a7 100%);
    color: #fff;
    font-weight: bold;
    border-radius: 28px;
    font-size: 1.05rem;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 16px #3e72f940;
    animation: fadeInUp 1.5s cubic-bezier(0.4,0,0.2,1);
}
.cta-btn:hover {
    background: linear-gradient(90deg, #2de0a7 20%, #3e72f9 100%);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 4px 24px #2de0a760;
}
.hero-img {
    flex: 1 1 240px;
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-img img {
    max-width: 100%;
    border-radius: 22px;
    box-shadow: 0 4px 32px rgba(62,114,249,0.09);
    animation: fadeIn 2s cubic-bezier(0.4,0,0.2,1);
}

/* About section */
#about {
    margin: 0;
    padding: 0;
}
.about-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 22px;
    margin-bottom: 16px;
}
.about-img {
    flex: 1 1 220px;
    min-width: 160px;
}
.about-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 2px 22px rgba(62,114,249,0.09);
}
.about-text {
    flex: 2 1 340px;
    min-width: 260px;
}
.about-text h2 {
    color: #2de0a7;
    margin-bottom: 8px;
}
.about-text ul {
    margin: 14px 0 0 14px;
    color: #d3e5ff;
    font-size: 1.03rem;
}

/* Services List */
.services-list {
    list-style: disc inside;
    color: #d3e5ff;
    font-size: 1.05rem;
    margin-left: 18px;
    margin-bottom: 0;
    line-height: 1.7;
    padding-left: 0;
}

/* Projects Section */
.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 20px;
}
.project-card {
    flex: 1 1 250px;
    min-width: 220px;
    background: rgba(34,36,44,0.91);
    border-radius: 18px;
    box-shadow: 0 6px 32px 0 rgba(30,40,70,0.10);
    padding: 20px 16px 14px 16px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.project-card img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 10px;
}
.project-card h3 {
    margin: 0 0 7px 0;
    color: #3e72f9;
    font-size: 1.14rem;
}
.project-card p {
    color: #c0c8d6;
    font-size: 0.99rem;
    margin-bottom: 8px;
}
.tag {
    background: #2de0a7;
    color: #181a20;
    border-radius: 10px;
    font-size: 0.90rem;
    padding: 3px 10px;
}

/* Contact section */
#contact {
    padding-bottom: 36px;
}
.contact-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
    margin-top: 18px;
}
.contact-info {
    flex: 1 1 240px;
    min-width: 180px;
}
.contact-info h2 {
    color: #2de0a7;
    margin-bottom: 8px;
}
.contact-form {
    flex: 1 1 280px;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.contact-form input, .contact-form textarea {
    border: none;
    border-radius: 10px;
    padding: 10px;
    background: #22242c;
    color: #f4f4f4;
    font-size: 1rem;
    resize: none;
    transition: box-shadow 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px #2de0a7;
}
.contact-form button {
    background: linear-gradient(90deg, #3e72f9 60%, #2de0a7 100%);
    color: #fff;
    border: none;
    border-radius: 22px;
    padding: 10px 0;
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 12px #2de0a7a0;
}
.contact-form button:hover {
    background: linear-gradient(90deg, #2de0a7 20%, #3e72f9 100%);
    box-shadow: 0 4px 24px #3e72f960;
}

/* Footer */
footer {
    background: #1a1c22;
    color: #b2bbcc;
    padding: 15px 0;
    text-align: center;
    font-size: 0.98rem;
    border-top: 2px solid #3e72f9;
    margin-top: 28px;
    position: relative;
    z-index: 2;
}
/* Background Animations */
.background-animations {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.background-gradient {
    position: absolute;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: radial-gradient(circle at 70% 20%, #3e72f9 0%, transparent 68%),
                radial-gradient(circle at 30% 80%, #2de0a7 0%, transparent 65%);
    opacity: 0.28;
    z-index: 1;
    animation: gradientMove 18s ease-in-out infinite alternate;
}

@keyframes gradientMove {
    from {
        transform: scale(1) translate(0, 0);
    }
    to {
        transform: scale(1.05) translate(-20px, 20px);
    }
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.18;
    z-index: 2;
    pointer-events: none;
}

.shape1 {
    width: 180px; height: 180px;
    background: linear-gradient(135deg, #3e72f9 60%, #fff 100%);
    top: 12%; left: 7%;
    animation: float1 13s ease-in-out infinite alternate;
}

@keyframes float1 {
    from { transform: translateY(0) scale(1); }
    to { transform: translateY(24px) scale(1.1); }
}

.shape2 {
    width: 110px; height: 110px;
    background: linear-gradient(135deg, #2de0a7 40%, #fff 100%);
    bottom: 16%; right: 14%;
    animation: float2 9s ease-in-out infinite alternate;
}

@keyframes float2 {
    from { transform: translateY(0) scale(1); }
    to { transform: translateY(-16px) scale(0.92); }
}

.shape3 {
    width: 90px; height: 90px;
    background: linear-gradient(135deg, #3e72f9 60%, #2de0a7 100%);
    top: 58%; left: 78%;
    animation: float3 15s ease-in-out infinite alternate;
}

@keyframes float3 {
    from { transform: translateX(0) scale(1); }
    to { transform: translateX(-30px) scale(1.16); }
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}
/* Fade-in animation for sections */
.fadein {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1), transform 0.9s cubic-bezier(0.4,0,0.2,1);
}
.fadein.show {
    opacity: 1;
    transform: none;
}
.project-card.fadein, .project-card.show {
    opacity: 1 !important;
    transform: none !important;
}

/* Keyframes for general fade-in and up */
@keyframes fadeIn {
    0% {opacity:0;}
    100% {opacity:1;}
}
@keyframes fadeInUp {
    0% { opacity:0; transform:translateY(36px);}
    100% { opacity:1; transform:none;}
}

@media (max-width: 900px) {
    .hero-content, .about-flex, .contact-flex, .projects-grid {
        flex-direction: column;
        gap: 24px;
    }
    .lh-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .main-nav {
        gap: 18px;
    }
    .container {
        width: 98%;
        padding: 0 2vw;
    }
    .project-card {
        min-width: 80vw;
    }
}
@media (max-width: 600px) {
    .letterhead {
        padding: 12px 4vw 10px 4vw;
    }
    .lh-logo-text {
        font-size: 1.3rem;
    }
    .main-nav {
        font-size: 0.95rem;
        gap: 8px;
    }
    .hero-content, .about-flex, .contact-flex, .projects-grid {
        gap: 12px;
    }
    .container {
        width: 100%;
        padding: 0 2vw;
    }
    .fadein, .fadein.show, .project-card, .project-card.fadein, .project-card.show {
    opacity: 1 !important;
    transform: none !important;
}
}
