* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
}

.main {
    width: 100%;
    background: url(pic/bg.jpg) no-repeat center;
    background-size: cover;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 7%;
    gap: 3rem;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 7%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 100;
}

.navbar .logo {
    width: 160px;
    cursor: pointer;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.navbar ul li a {
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    color: darkslategray;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: rgb(230, 104, 59);
}

.info {
    max-width: 600px;
    flex: 1;
    margin-top: 6%;
}

.info h1 {
    font-size: 3.5rem;
    color: rgb(36, 32, 30);
}

.info h3 {
    font-size: 1.2rem;
    letter-spacing: 1px;
    line-height: 1.5;
    color: #333;
    margin-top: 10px;
}

.info span {
    color: rgb(230, 104, 59);
}

.info a {
    text-decoration: none;
    color: #fff;
    background: rgb(36, 32, 30);
    margin: 26px 0;
    padding: 12px 22px;
    border-radius: 10px;
    display: inline-block;
    transition: background 0.4s ease;
    font-weight: 600;
}

.info a:hover {
    background: rgb(59, 174, 209);
}

.image {
    flex: 1;
    position: relative;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.image img {
    max-height: 100%;
    max-width: 100%;
    border-radius: 15px;
    transition: transform 0.5s ease;
}

.image:hover img {
    transform: translateX(10%);
}

.icons {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.icons a {
    color: #000;
    font-size: 36px;
    transition: color 0.3s ease;
}

.icons a:hover {
    color: rgb(59, 174, 209);
}

/* About, Projects, Contact Sections */
.about, .projects, .contact {
    padding: 80px 7%;
    background-color: #fff;
    margin: 40px auto;
    max-width: 1100px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about h2, .projects h2, .contact h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: rgb(36, 32, 30);
    text-align: center;
}

.about p, .contact p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.about h3 {
    font-size: 1.5rem;
    color: rgb(230, 104, 59);
    margin-top: 20px;
    margin-left: 10%;
}

.about ul {
    max-width: 600px;
    margin-left: 12%;
    margin-top: 15px;
}

.about ul li {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

/* Project Cards */
.project-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.project-card h3 {
    color: rgb(230, 104, 59);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.project-card p {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 15px;
}

.project-card a {
    text-decoration: none;
    background: rgb(36, 32, 30);
    color: white;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    display: inline-block;
}

.project-card a:hover {
    background: rgb(59, 174, 209);
}

body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background: #f7f7f7;
    color: #333;
}

.navbar ul {
    display: flex;
    list-style: none;
    justify-content: center;
    background: #fff;
    padding: 15px 0;
    margin: 0;
    gap: 25px;
}

.navbar ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: rgb(230, 104, 59);
}

.main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 10%;
    flex-wrap: wrap;
    background: url('pic/background.jpg') no-repeat center center/cover;
    color: #fff;
}

.info {
    max-width: 600px;
}

.info h1 span.typing-text {
    color: rgb(230, 104, 59);
}

.hire-btn {
    display: inline-block;
    padding: 12px 25px;
    margin-top: 20px;
    background-color: rgb(230, 104, 59);
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.hire-btn:hover {
    background-color: rgb(59, 174, 209);
    transform: scale(1.05);
}

/* Typing Effect */
.typing-text {
    font-size: 28px;
    font-weight: 600;
    border-right: 2px solid rgb(230, 104, 59);
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Social Icons */
.social-icon {
    width: 36px;
    height: 36px;
    margin: 0 10px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    filter: brightness(1.3);
}

.contact-info p a {
    text-decoration: none;
    color: rgb(230, 104, 59);
}

.contact-info p a:hover {
    color: rgb(59, 174, 209);
}

.social-icons {
    margin-top: 15px;
    text-align: center;
}

.social-icons a {
    margin: 0 15px;
    font-size: 36px;
    color: #000;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: rgb(59, 174, 209);
}

/* Responsive */
@media screen and (max-width: 900px) {
    .main {
        flex-direction: column;
        padding: 40px 5%;
    }

    .image {
        margin-top: 20px;
        display: flex;
        justify-content: center;
    }

    .image img {
        max-height: 300px;
        max-width: 100%;
    }

    .navbar ul {
        flex-wrap: wrap;
        gap: 15px;
    }
}
