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

body {
    background-color: #020617;
    color: #e5e7eb;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 60px;
    background: #020617;
    border-bottom: 1px solid #1e293b;
    z-index: 100;
}

.nav-left a {
    margin-right: 30px;
    text-decoration: none;
    color: #e5e7eb;
    transition: color 0.3s;
}

.nav-left a:hover {
    color: #38bdf8;
}

.nav-right {
    font-size: 20px;
    font-weight: bold;
    color: #38bdf8;
}

/* Sections */
section {
    padding: 100px 60px;
}

.section-divider {
    width: 80%;
    height: 1px;
    background-color: #1e293b;
    margin: 0 auto;
}

/* Home */
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.home-content h1 {
    font-size: 47px;
}

.home-content h2 {
    font-size: 21px;
}

.home-content span {
    color: #38bdf8;
}

.home-content p {
    margin: 15px 0 30px;
    max-width: 500px;
}

.home-content {
    max-width: 550px;
}

.home-image img {
    max-width: 480px;
    width: 100%;
    opacity: 0.95;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 34px;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #020617;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.25);
}

.btn span {
    color: #020617;
    font-size: 17px;
    transition: transform 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.4);
}

.btn:hover span {
    transform: translateX(6px);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(56, 189, 248, 0.3);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(56, 189, 248, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }
}

.btn-primary {
    animation: pulse 2.5s infinite;
}

.home-image img {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }
}


/* About */
.about {
    background: #020617;
}

/* Projects */
.projects {
    background: #020617;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.project-card {
    background: #020617;
    border: 1px solid #1e293b;
    padding: 25px;
    border-radius: 10px;
    transition: transform 0.3s, border 0.3s;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: #38bdf8;
}

.project-card h3 {
    margin-bottom: 10px;
}

.project-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: transparent;
    color: #38bdf8;
    border: 1px solid #38bdf8;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
}

.project-btn:hover {
    background: #38bdf8;
    color: #020617;
}


/* Contact */
.contact {
    text-align: center;
    padding: 120px 60px;
}

.contact h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.contact-subtext {
    color: #9ca3af;
    max-width: 500px;
    margin: 0 auto 40px;
}

.contact-card {
    display: inline-block;
    padding: 30px 40px;
    border: 1px solid #1e293b;
    border-radius: 12px;
    background: #020617;
}

.contact-email {
    font-size: 18px;
    margin-bottom: 20px;
}

.contact-email a {
    color: #38bdf8;
    text-decoration: none;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.contact-links a {
    font-size: 22px;
    color: #e5e7eb;
    width: 48px;
    height: 48px;
    border: 1px solid #1e293b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-links a:hover {
    color: #38bdf8;
    border-color: #38bdf8;
    transform: translateY(-4px);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.contact-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #38bdf8;
    transition: width 0.3s ease;
}

.contact-links a:hover::after {
    width: 100%;
}


/* Footer */
footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #1e293b;
}

@media (max-width: 900px) {
    .home {
        flex-direction: column;
        text-align: center;
    }

    .home-image img {
        max-width: 350px;
        margin-top: 30px;
    }
}