/* General */
:root{
    --bs-dark:#111111;
    --bg-primary: #181D26;
    --bg-secondary:#212834;
    --h-primary: #06B6D4;
    --h-secondary: #734848;
    --bg-third: #99ADBF;
    --bg-fourth:#B8CCD9;
}

h1{
    margin-bottom:2rem;
}

header{
    color:#fff;
    position:relative;
    font-weight:700;
    font-family: 'Arimo', sans-serif;
    letter-spacing: 3px;    
    border-bottom: none;
    background-color:var(--bg-primary);
    padding: 0.5rem 3rem;
    margin-bottom: 0;
    transition: top 0.3s;
}

header .nav-link{
    color:#fff;
}

header div{
    display:flex;
}

section{
    padding:50px 4rem;
}

canvas {
    width:70%;
}

footer{
    padding:0 0 1.5rem 0;
}

footer p{
    margin:0;
}


/* Services */
.grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 2rem;
    }

.service-card {
      background: white;
      border-radius: 1rem;
      padding: 2rem;
      box-shadow: 0 4px 8px rgba(0,0,0,0.05);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

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

    .service-card i {
      font-size: 2rem;
      color: #06B6D4;
      margin-bottom: 1rem;
    }

    .service-card h4 {
      font-size: 1.25rem;
      margin-bottom: 0.5rem;
    }

    .service-card p {
      font-size: 0.95rem;
      color: #475569;
    }

.about-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
      max-width: 800px;
      margin: 2rem auto;
    }

.section-title {
      font-family: monospace;
      color: #06B6D4;
      margin-bottom: 0.5rem;
    }

.section-text {
      font-size: 0.875rem;
      line-height: 1.4;
    }

.gradient-text {
      background: linear-gradient(to right, #06B6D4, #3B82F6);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

#cover p, footer p{
    color:var(--bg-fourth);
}

.fab, .far{
    font-size:1.5rem;
    color:#fff;
}

.bg-primary{
    background-color: var(--bg-primary)!important;
}

.bg-secondary{
    background-color: var(--bg-secondary) !important;
}

.btn-outline-1{
    color:var(--h-primary);
    border-color:var(--h-primary);
}

.btn-outline-1:hover{
    color:#fff;
    background-color:var(--h-primary);
}

.table td{
    border:none;
    padding: 1rem 0.5rem;
}

.table tr{
    border-bottom-width: 1px;
    border-color: #373b3e;
}

.table tr:last-child{
    border:none;
}


/* Section 1 - Cover */
#cover{
    padding-top:calc(6rem + 150px);
    height:100vh;
}

#cover-text{
    display:flex;
    flex-direction: column;
    text-align:left;
    z-index:1;
    margin:auto;
    gap: 1rem;
}

#cover-text h1{
    font-size:60px;
    font-weight:700;
}

#cover-text button{
    padding: 0.8rem 1.5rem;
    margin: 20px 0 0 0;
}

/* Section 2 - About me */
.iconify{
    margin-right:5px;
}

#cover-text h1{
    margin-bottom:0.5rem;
}

.skill-list{
    text-align: left;
    columns: 1;
    -webkit-columns: 1;
    -moz-columns: 1;
    list-style: none;
}

.skill-list li:before {
    content: "\2022";
    color: var(--h-primary);
    margin-left: -1em;
    display: inline-block;
    width: 1em;
    font-weight: bold;
}

.skill-container{
    display:flex;
    margin-top:35px;
}

#image-container{
    display:flex;
    height:100%;
}

#image-container img{
    width:350px;
    margin:auto;
    border-radius: 50%;
}

/* Section 2 - Projects */
.project-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: left;
}

.project-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding: 1rem;
}

.project-description {
    flex: 1;
    max-width: 60%;
}

.project-image {
    flex: 0 0 35%;
    text-align: right;
    padding-left: 0.5rem;
}

.project-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.result{
    font-weight: 700;
    color: var(--h-primary);
    font-size: 1.1rem;
}

/* Section 3 - Competitions */
#competitions a, #achievements a {
    color: var(--h-primary);
}

#competitions a:hover, #achievements a:hover{
    color: #f74a23;
}

#competitions td, #competitions tr{
    --bs-table-bg:var(--bg-primary);
    color: #fff;
} 

#competitions .fab{
    color:var(--h-primary);
}


/* Section 5 - Get-in-touch */
#contact div{
    width:30%;
}

#contact button{
    margin:20px;
    padding: 10px 15px;
}

#social-bar a{
    padding:10px;
}

#social-bar a:hover > .fab, #social-bar a:hover > .far{
    color:#0d6efd;
}

/*** navigation bars (desktop & mobile) ***/
/* desktop nav */
#btn-resume{
    letter-spacing:1.5px;
}

#btn-resume i{
    margin-right:5px;
}

#social-bar{
    display:none;
}

#brand-logo{
    display:flex;
}

.navbar-toggler{
    display:none;
}

.nav-link:hover{
    color:var(--h-primary);
}

/* mobile nav */
.third-button{
    float:right;
}

#nav-mobile{
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    background-color: #212834;
    overflow-x: hidden;
    padding-top: 80px;
    transition: 0.5s; 
}

#nav-mobile.close{
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    background-color: #212834;
    overflow-x: hidden;
    padding-top: 80px;
    transition: 0.5s;
  }

#nav-mobile .fas{
    margin-right:10px;
}

#nav-mobile li{
    width: 100%;
    border-bottom: 1px solid #fff;
}

#nav-mobile .nav-link{
    padding:1.5rem 2rem;
    font-size: 26px;
}


/* hamburger menu */
.animated-icon3 {
    width: 30px;
    height: 20px;
    position: relative;
    margin: 0px;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    cursor: pointer;
    z-index:101;
}
    
.animated-icon3 span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
}
    
.animated-icon3 span {
    background: #f3e5f5;
}
        
.animated-icon3 span:nth-child(1) {
    top: 0px;
    -webkit-transform-origin: left center;
    -moz-transform-origin: left center;
    -o-transform-origin: left center;
    transform-origin: left center;
}
    
.animated-icon3 span:nth-child(2) {
    top: 10px;
    -webkit-transform-origin: left center;
    -moz-transform-origin: left center;
    -o-transform-origin: left center;
    transform-origin: left center;
}
    
.animated-icon3 span:nth-child(3) {
    top: 20px;
    -webkit-transform-origin: left center;
    -moz-transform-origin: left center;
    -o-transform-origin: left center;
    transform-origin: left center;
}
    
.animated-icon3.open span:nth-child(1) {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
    top: 0px;
    left: 8px;
}
    
.animated-icon3.open span:nth-child(2) {
    width: 0%;
    opacity: 0;
}
    
.animated-icon3.open span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
    top: 21px;
    left: 8px;
}


/* Side menu */
#side-bar{
    left:0;
    top:0;
    width:auto;
    height:100%;
    position:fixed;
    z-index:2;
    background-color: var(--bg-primary);
}

#side-bar div{
    bottom:50px;
    margin:0;
    flex-direction: column;
}

#side-bar a{
    padding:10px;
    margin-bottom:20px;
    text-align:center;
}

#side-bar a:hover > .fab, #side-bar a:hover > .far{
    color:var(--h-primary);
    transform: translateY(-5px);
    transition-duration: 0.4s;
}


/* css for mobile clients */
@media (min-width: 992px) and (max-width: 1366px) {
    canvas{
        width:55%;
    }

    #cover-text h1{
        font-size:50px;
    }

    #cover{
        padding-top: calc(6rem + 70px);
        height: auto;
    }
}

@media screen and (max-width: 992px) {
    header{
        padding: 0.5rem 1.5rem;
        margin-bottom: 1.5rem;
    }

    tr{
        vertical-align: middle;
    }

    footer p{
        margin:20px 0 0 0;
    }

    canvas{
        width:65%;
    }

    .table td {
        padding: 0.5rem;
    }

    #image-container img{
        margin-top:50px;
        margin-bottom:0!important;
    }
    
    #competitions table{
        font-size:13px;
    }

    #competitions tr:last-child{
        border-color:#fff;
    }

    #side-bar, #nav-desktop {
        display: none!important;
    }

    #achievements{
        font-size:14px;
    }

    #achievements tr:last-child{
        border-color:#fff;
    }

    .navbar-toggler, header div{
        display:block!important;
    }

    #contact div {
        width:initial;
    }

    #brand-logo{
        display:initial;
    }

    #cover{
        padding-top:100px;
        padding-left:1rem;
    }

    #cover-text{
        margin-top:20px;
    }

    #cover-text h1{
        font-size:40px;
    }

    #cover-text p:first-child{
        margin-bottom:0;
    }

    #cover .col{
        flex:initial;
    }

    #cover .row{
        display:flex;
        flex-direction: column-reverse;
        justify-content: space-between;
        height: 100%;
    }

    #nav-mobile li:last-child{
        border-bottom:none;
        margin:25px;
    }

    #btn-resume{
        font-size:22px;
        background-color: #fff;
        color: #111;
    }

    #btn-resume:active{
        background-color:#111;
        color: #fff;
    }

    #social-bar{
        display:block;
    }

    .desktop{
        display:none;
    }

    .skill-list{
        font-size:14px;
        padding-left:10px;
    }

    .skill-list h6{
        font-size:0.9rem;
    }

    .image-col{
        flex:initial;
    }

    #about .row{
        flex-wrap: wrap;
        flex-direction: column-reverse;
    }
}

@media (max-width: 768px) {
    .project-container {
        gap: 3rem;
    }
    .project-item {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    .project-description {
        max-width: 100%;
        text-align: center;
    }

    .project-image {
        flex: none;
        padding-left: 0;
        margin-top: 1rem;
    }
}

@media screen and (max-width: 400px) {
    #cover{
        height:initial;
    }
    
    #image-container img{
        margin-top:30px;
        width:300px;
    }
}