@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap");
* {
    margin: 0 10px;
    padding: 0;
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
}

body {
    background: linear-gradient(
        to right,
        rgba(70,203,143,.08),
        transparent 35%,
        transparent 65%,
        rgba(70,203,143,.08)
    ),
    linear-gradient(
        rgba(11,20,25,.75),
        rgba(11,20,25,.85)
    ), url(assets/bg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: rgb(136, 136, 136);
    margin: 0 150px;

}

html {
    scroll-behavior: smooth;
}

/* navbar */
nav {
    position: sticky;
    top: 30px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 24, 24, 0.616);
    margin: 30px -30px;
    padding: 10px 20px;
    border-radius: 10px;
}


nav .links {
    display: flex;
    gap: 35px;
    list-style: none;
    align-items: center;
}

nav a {
    text-decoration: none;
}

nav .logo h1{
    font-size: 20px;
    color: rgb(126, 196, 126);
}

nav .links a {
    color: rgb(220, 220, 219);
}

nav .links a:hover{
    color: rgb(126, 196, 126);
}


/* home */

.home{
    margin-top: 150px;
}

.main {
    font-size: 50px;
    color: #46cb8f;
}

.sub{
    color: white;
}

.line {
    font-size: 15px;
    font-style: italic;
}

.divider {
    width: 100%;      /* Length of the line */
    height: 3px;       /* Thickness */
    background: rgba(255, 255, 255, 0.2);
    margin: 30px 0;
}

.section-title{
    text-align:center;
    margin-bottom:70px;
}

.section-title p{
    color:#46cb8f;
    font-weight:600;
}

.section-title h2{
    color:rgba(255, 255, 255, 0.774);
    font-size:2.7rem;
    margin-top:10px;
}

.about-content {
    display: flex;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 2rem;
}

.about-content img {
    width: 300px;
    height: auto;
}

.about-text a {
    color: #46cb8f;
    font-style: italic;
    text-decoration: none;
    border: 1px solid #46cb8f;
    padding: 10px;
}

.about-text a:hover{
    color: white;
    background-color: #46cb8f;
    border: 1px solid black;
}

/* contact section stylings */

.contact {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-card {
    padding: 100px 30px;
    background: #111;
    border: 1px solid rgba(255,255,255,.08);
    margin: 100px auto;
    width: 100%;
}

.section-title {
    margin-bottom: 2rem;
}

.contact-links {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.contact-links a {
    color: #ddd;
    text-decoration: none;
    padding: .75rem 1.2rem;
    border: 1px solid rgba(255,255,255,.08);
}

.contact-links a:hover {
    border-color: #46cb8f;
    color: #46cb8f;
}


/* project section stylings */


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

.project-card {
    background: #111;
    border: 1px solid #46cb8f;
    padding: 2rem;
    transition: transform .3s ease, border-color .3s ease;
    text-align: center;
}

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

.project-card h3 {
    margin-bottom: 1rem;
}

.project-card p {
    color: #9b9b9b;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.project-card a {
    color: #46cb8f;
    text-decoration: none;
    font-weight: 600;
}

.project-card a:hover {
    text-decoration: underline;
}


footer {
    padding: 2rem 8%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

footer p {
    color: #777;
    font-size: 0.9rem;
    margin: 0;
}