*{
    margin:0;
    padding:0;
    box-sizing: border-box;
    text-decoration: none;
    border:none;
    outline:none;
    scroll-behavior: smooth;
    font-family: Montserrat, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root{
    /*https://colorhunt.co/palette/f9f5f0f2ead3f4991a344f1f*/
    --main-color:#257180;
    --extra-color: #CB6040;
    --bg-color:#F2E5BF;
    --bg-color2: #eecdbc;
    --text-color: #000;
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
}

body{
    background: var(--bg-color);
    color: var(--text-color);
}

section{
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.skip-link{
    position: absolute;
    top:-100px;
    background: #00f;
    color: #fff;
    padding: 8px;
    z-index: 100;
}
.skip-link:focus {
    top:0;
}

/* Header */
.header{
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 5%;
    background: var(--main-color);
    transition: all 0.3s ease;
}

.ahj{
    font-size: 2rem;
    color: var(--bg-color);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.ahj:hover{
    transform: scale(1.05);
}

.navbar a{
    font-size: 1.9rem;
    color: var(--bg-color);
    margin-left: 4rem;
    font-weight: 700;
    transition: 0.3s ease;
}

.navbar a:hover,
.navbar a.active{
    color: var(--text-color);
}

#menu-icon{
    font-size: 3.6rem;
    color: var(--bg-color);
    cursor: pointer;
    display: none;
}

/* Home */
.home{
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img img{
    width: 17vw;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.1s ease;
    border: 0.1rem solid var(--main-color);
}

.home-img img:hover {
    border-width: 0.3rem ;
    transform: scale(1.02);
}

.home-content{
    margin-left: 5rem;
}

.home-content h3{
    font-size: 3.7rem;
    font-weight: 700;
}

.home-content h3:nth-of-type(2)
{
    margin-bottom: 2rem;
}
span{
    color: var(--extra-color);
}

.home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content p{
    font-size: 1.6rem;
}

.logo a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
}

.logo a:hover{
    transform: scale(1.3);
    background-color: var(--main-color);
    color: var(--bg-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: none;
    font-size: 1.6rem;
    color: var(--bg-color);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    box-shadow: 0 0 1.6rem var(--main-color);
}


/* About */
.about {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: var(--bg-color2);
}

.about-img img {
    width: 22vw;
    border-radius: 15%;
    cursor: pointer;
    transition: 0.1s ease;
    border: 0.1rem solid var(--main-color);
}

.about-img img:hover {
    border-width: 0.3rem ;
    transform: scale(1.02);
}


.heading{
    font-size: 6rem;
    text-align: center;
}

.about-content{
    padding: 0 4rem;
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 3rem;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}

/* CV */
.cv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.cv-card {
    background-color: var(--bg-color2);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 0.2rem solid var(--main-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.cv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}


.current-job {
    grid-column: span 2; 
    background-color: #fff; 
    border-color: var(--extra-color);
}

.tall-card { grid-row: span 2; } 


.card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 1rem;
}

.icon-bg {
    font-size: 3rem;
    color: var(--main-color);
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 50%;
}

.meta {
    display: flex;
    flex-direction: column;
}

.meta .date {
    font-size: 1.2rem;
    color: var(--extra-color);
    font-weight: 700;
    text-transform: uppercase;
}

.cv-card h3 {
    font-size: 1.8rem;
    margin: 0.2rem 0;
}

.cv-card h4 {
    font-size: 1.4rem;
    font-style: italic;
    opacity: 0.8;
}

.cv-card ul {
    list-style: none;
    padding-left: 1rem;
}

.cv-card li {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.cv-card li::before {
    content: "▹";
    color: var(--extra-color);
    position: absolute;
    left: 0;
}

/* Portfolio */
.portfolio h2 {
    margin-bottom: 5rem;
}

.portfolio-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem; 
}

.portfolio-container .portfolio-box {
    flex: 1 1 30rem;
    background: var(--bg-color2);
    padding: 1rem;
    border-radius: 2rem;
    border: 0.3rem solid var(--bg-color);
    transition: 0.3s ease;
    max-width: 500px;
    position: relative;
    overflow: hidden;
    
}

.portfolio-box a,
.portfolio-box img{
    display: block;
    width: 100%;
    height: 100%;
}

.portfolio-box img{
    object-fit: cover;
    border-radius: 2rem;
}

.portfolio-box h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;

    font-size: 2.2rem;
    text-shadow: 0 0 2.5px var(--bg-color),
                 0 0 2.5px var(--bg-color),
                 0 0 2.5px var(--bg-color);
                 
    opacity: 0;
    text-align: center;   
    transition: 0.3s ease;
    
}

.portfolio-container .portfolio-box:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
    cursor: pointer;
}

.portfolio-container .portfolio-box:hover h3 {
    opacity: 1;
    pointer-events: none;
}

/*Dialog*/
.dialog{
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    background: rgba(0,0,0,0.5); 
    justify-content: center; 
    align-items: center; 
    z-index: 1000;
}

.dialog-frame{
    border-radius: 16px; 
    width: 40vw; 
    height: 70vh; 
    background: transparent;
    min-width: 390px;
}

.dialog-body{ 
    border-radius: inherit;
    border: 0.3rem solid var(--bg-color);
    overflow: hidden;
    font-size: 1.6rem;
    padding: 2rem;
}

.dialog-body .btn {
  position: absolute;
  top: 10px; right: 20px;
  cursor: pointer;
  font-size: 1rem; 
}

.dialog-body ul{
    list-style: none;
    font-style:italic
}

.dialog-body flexbox{
flex: 1 1 30rem;
}

.dialog-body h2{
    font-size: 3rem;
    border-bottom: 1px solid var(--main-color);
    padding-bottom: 0.5rem;
}

.dialog-body h3{
    color: var(--main-color);
    font-size: 2rem;
    line-height: 2;
}

.technologies span{
    display: inline-block;
    padding: 1rem 2.8rem;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    margin: 1rem 1rem 3rem 0;
    border-radius: 4rem;
    background: var(--extra-color);
    transition: 0.3s ease;
    color: var(--bg-color)
}

.technologies span:hover{
    transform: scale(1.1);
}

.dialog-body .external-btn {
    background: var(--main-color);
    color: var(--bg-color);
    padding: 1rem 2rem;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 0.8rem;
    box-shadow: 0 4px 12px rgba(37, 113, 128, 0.3);
    transition: all 0.3s ease;
    display: block;
    margin: 1.5rem auto;
    width: fit-content;
    cursor: pointer;
}

.dialog-body .external-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 113, 128, 0.5);
}

.dialog-body .external-btn:active {
    transform: translateY(-1px);
}



/* Contact */
.contact {
    background: var(--bg-color);
}

.contact .heading {
    text-align: center;
}
.contact h2{
    margin-bottom: 3rem;
    color: var(--text-color);
}

.contact form {
    max-width: 80rem;
    margin: 1rem auto;
    text-align: center;
}

.contact form .input-box {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--bg-color);
    border-radius: 0.8rem;
    border: 0.25rem solid var(--main-color);
    margin: 0.7rem 0;
    resize: none;
}

.contact form .input-box input {
    width:49%;
    margin: 0.7rem 0.35rem;
}

.contact form .btn {
    margin-top: 2rem;
}

/* Footer */
.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: var(--bg-color2);
}

.footer .logo {
    text-align: center;
    padding-bottom: 25px;
    color: var(--main-color);
}

.footer .logo a{
    font-size: 25px;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    width: 42px;
    height: 42px;
    line-height: 42px;
    display: inline-block;
    border-radius: 50%;
    margin: 0 10px;
    transition: 0.3s ease;
}

.footer .logo a:hover {
    transform: scale(1.3);
    background-color: var(--main-color);
    color: var(--bg-color);
}

.footer .madeByA {
    margin-top: 20px;
    text-align: center;
    font-size: 16px;
    color: var(--text-color);
}

/* Responsiveness*/


@media (max-width:991px){
    .header{
        padding: 2rem 3%;
    }
    section {
        padding: 10rem 3%;
    }
    .portfolio {
        padding: 7rem;
    }
    .contact form .input-box input {
        width: 100%;
    }
    .footer{
        padding: 2rem 3%;
    }
    
    #menu-icon {
        display: block; 
    }
    .navbar {
        position: absolute;
        top: 100%;
        right: -100%;
        width: 255px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        background: var(--main-color);
        transition: all 0.5s ease;
        backdrop-filter: blur(10px);
    }
    .navbar a{
        display: block;
        padding: 17px;
        font-size: 22px;
    }
    .navbar.active {
        right: 0;
    }
    .home {
        flex-direction: column;
    }
    .home-content h3{
        font-size: 2.6rem;
    }
    .home-content h1 {
        font-size: 5rem;
    }
    .home-content {
        order:2;
        margin-left: 1rem;
    }
    .home-img img {
        width: 25vw;
        margin: 0 0 2rem;
    }
    .about {
        flex-direction: column-reverse;
    }
    .about-img img{
        width: 30vw;
        margin-top: 4rem;
    }
    .services h2{
        margin-bottom: 3rem;
    }
    .cv-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .current-job {
        grid-column: span 2;
    }
    
}

@media (max-width: 617px){
    .home-img img {
        width: 50vw;
        margin: 2rem 0 6rem;
    }
    .about-img img{
        width: 50vw;
        margin: 4rem 0;
    }
    
    html{
        font-size: 50%;
    }

    .cv-grid {
        grid-template-columns: 1fr;
    }
   
    .current-job {
        grid-column: span 1;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .icon-bg {
        margin-bottom: 1rem;
    }
}

@media (max-width: 440px)
{
    .dialog-body h2{
    margin-top: 2.5rem; 
   }
}


