@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200..800&display=swap');
/* helpers & reset */
:root {
    --c-brand: #fac562;
    --c-dark: #333;
    --c-light: #f8f8f8;
    --c-body: #666;
    --f-base: "Plus Jakarta Sans", sans-serif;
    --n-height: 100px;
}

*,*::after,*::before {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--c-body);
    font-family: var(--f-base);
    line-height: 1.8;
    font-weight: 400;
}

h1,h2,h3,h4,h5,h6 {
    color: var(--c-dark);
    line-height: 1.2;
    margin-bottom: 10px;
    font-weight: 400;
}

.heading-xl {
    font-size: clamp(44px, 10vw, 70px);
    font-weight: 400;
}

.heading-1 {
    font-size: clamp(32px, 6vw, 54px);
}

.heading-2 {
    font-size: clamp(28px, 4vw, 36px);
}

.heading-3 {
    font-size: 20px;
}

a {
    color: var(--c-dark);
    text-decoration: none;
    transition: all 0.4s ease-in-out;
    cursor: pointer;
}



a:hover {
    color: var(--c-brand);
}

img {
    max-width: 100%;
    width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

section {
    padding: 140px 0;
}

.container{
    max-width: 1366px;
    width: 100%;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.btn{
    display: inline-block;
    background-color: transparent;
    border: 1px solid var(--c-brand);
    font-family: var(--f-base);
    padding: 16px 34px;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
    font-size: 14px;
}

.btn-2{
    display: inline-block;
    background-color: transparent;
    border: 1px solid var(--c-brand);
    font-family: var(--f-base);
    padding: 14px 30px;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
    font-size: 16px;
    color:  white;

}

.btn:hover {
    background-color: var(--c-brand);
    color: white;
}

.btn-2:hover {
    background-color: var(--c-brand);
    color: white;
}

#preloader {
    left: 50%;
    top: 50%;
    width: 50px;
    padding: 8px;
    aspect-ratio: 1;
    border-radius: 50%;
    position: fixed;
    z-index: 100;
    background-size: 50%;
    background: var(--c-light);
    --_m: 
    conic-gradient(#0000 10%,#000),
    linear-gradient(#000 0 0) content-box;
  -webkit-mask: var(--_m);
          mask: var(--_m);
  -webkit-mask-composite: source-out;
          mask-composite: subtract;
  animation: l3 1s infinite linear;


}

@keyframes l3 {to{transform: rotate(1turn)}}


/* navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--n-height);
    display: flex;
    z-index: 999;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}



.brand {
    color: white;
    font-size: 50px;
}

.brand2 {

    font-size: 16px;

}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li:not(:last-child) {
    margin-right: 44px;
}

.nav-links li.active a {
    box-shadow: 0 2px var(--c-brand);
    padding-bottom: 5px;
}

.nav-links li a {
    color: white;
    font-size: 18px;
    /* text-transform: uppercase; */
    letter-spacing: 1px;
    padding-bottom: 5px;
}

.nav-links li a:hover {
    color: var(--c-brand);
}

.hamburger {
    display: block;
    cursor: pointer;
    display: none;
}

.hamburger span {
    display: block;
    width: 34px;
    height: 2px;
    background-color: white;
    margin: 8px auto;
    transition: all 0.4s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    transform: translateY(-5px) rotate(-45deg);
}

.scrolled {
    background-color: white;
}

.scrolled .brand {
    color: var(--c-dark);
}

.scrolled .brand:hover{
    color: var(--c-brand);
}

.scrolled .nav-links li a {
    color: var(--c-dark);
}

.scrolled .nav-links li a:hover {
    color: var(--c-brand);
}

.scrolled .hamburger span {
    background-color: var(--c-dark);
}

.scrolled .btn-2 {
    color: var(--c-dark);
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--n-height);
        left: 0;
        width: 100%;
        flex-direction: column;
        padding: 0 24px;
        transition: all 0.3s ease-in-out;
        height: 0;
        overflow: hidden;
        justify-content: center;
        background-color: white;
        align-items: baseline;
    }

    .nav-links li a {
        color: var(--c-dark);
    }

    .nav-links.active {
        height: 300px;
    }

    .nav-links li {
        padding: 6px 0;
    }

    .hamburger {
        display: block;
    }

    .btn-2 {
        color: var(--c-dark);
    }

    .brand2 {
        display: none;
    }

}

/* Hero */

#main {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.2),rgba(0,0,0,0.2)),url(../images/banner-1.jpg);
    background-position: center;
    block-size: cover;
    display: grid;
    place-content: center;
    text-align: center;
}

#main h1 {
    color: white;
}

@keyframes scrolltodown {
    0% {
        transform: translateY(30%);
        opacity: 0;
    }
    50% {
        transform: translateY(-30%);
        opacity: 1;
    }
    100% {
        transform: translateY(80%);
        opacity: 0;
    }
}

.scroll-to-top {
    display: none; 
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    font-size: 24px;
    border: 1px solid var(--c-brand);
    padding: 0 10px;
    border-radius: 50px;
    color: var(--c-body);
}

.scroll-to-down {
    width: 40px;
    height: 60px;
    display: grid;
    place-content: center;
    font-size: 24px;
    color: var(--c-brand);
    border: 1px solid var(--c-brand);
    border-radius: 100px;
    position: absolute;
    bottom: 24px;
    left: 50%;

}

.scroll-to-down .las {
    animation: scrolltodown 2s ease infinite;
}


/* section title */
.section-intro {
    margin-bottom: 44px;
}

/* Grid */
.grid {
    display: grid;
    gap: 44px;
}

.two-col-grid {
    grid-template-columns: repeat(2, 1fr);
}

.three-col-grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .grid {
        gap: 24px;
    }

    .two-col-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .three-col-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* service */
#services .grid {
    gap: 0;
}

.service:nth-child(odd) {
    background-color: var(--c-light);
}

.service {
    padding: 44px;
}

.service p {
    font-size: 14px;
}

.service .icon {
    font-size: 70px;
    color: var(--c-brand);
}


/* project */
.project {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 1px 15px rgba(0, 0, 0, 0.1);
}

.project img {
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease-in-out;

}

.project .overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0,0,0,0.8);
    padding: 44px;
    display: flex;
    align-items: flex-end;
    transition: all 0.4s ease-in-out;
    opacity: 0;

}

.project .overlay h2 {
    color: white;
}

.project .overlay p {
    color: rgba(255,255,255,0.6)
}

.project:hover .overlay {
    opacity: 1;
    display: flex;

}

.project:hover img {
    transform: rotate(15deg) scale(1.5);

}

/* Blog */
#blog {
    background-color: var(--c-light);
}

.card-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;

}

.card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 100%;
}

.card-header img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card-body {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 20px;
  min-height: 250px;
}

.tag {
  background-color: #ccc;
  color: #fff;
  border-radius: 50px;
  font-size: 12px;
  margin: 0;
  padding: 2px 10px;
  text-transform: uppercase;
}
.tag-teal {
  background-color: var(--c-brand);
}

.card-body h4 {
  margin: 10px 0;
}
.card-body p {
  font-size: 14px;
  margin: 0 0 40px 0;
  font-weight: 500;
  color: rgb(70, 68, 68);
}

.blog-post h3 {
    margin: 16px;
}

.blog-post img {
    border-radius: 20px;;
}

/* SSS */
.accordion {
    background-color: transparent;
    color: var(--c-body);
    cursor: pointer;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 20px;
    transition: 0.4s;

}

.accordion-icon {
    display: flex;
    justify-content: space-between;

}

.accordion::after {
    color: var(--c-brand);
    font-weight: bold;
    float: right;

}



.panel {
    background-color: transparent;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    margin-bottom: 15px;
    margin-top: 15px;
}

/* contact */
#contact {
    background-color: var(--c-light);
}

#contact .grid {
    grid-template-columns: 1fr 2.5fr;
}

@media (max-width: 768px) {
    #contact .grid {
        grid-template-columns: 1fr;
    }
}

form {
    width: 100%;
}

.contact-widget {
    margin-bottom: 44px;
}

.form-group {
    margin-bottom: 24px;

}

.form-group .form-input {
    display: block;
    width: 100%;
    padding: 16px;
    border-radius: 0;
    border: none;
    font-family: var(--f-base);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    background-color: transparent;
}

.form-group .form-input:focus {
    border-bottom: 1px solid var(--c-brand);
    outline: none;
}
    
/* Footer */
footer {
    padding: 60px 0;
    background-color: var(--c-dark);
}

footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}

footer p,
footer a {
    color: white;
}

footer .social-icons a {
    font-size: 40px;
}

footer .social-icons a:not(:last-child) {
    margin-right: 24px;
}



/* modal */



.panel-wrap {
    position: fixed;
    margin-top: 100px;
    top: 0;
    bottom: 0;
    right: 0;
    width: 60em;
    transition: .3s ease-out;
    z-index: 1000;
}

.modal-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--c-light);
    color: #000;
    overflow: auto;
    padding: 1em;

}

.panel-wrap2 {
    position: fixed;
    margin-top: 100px;
    top: 0;
    bottom: 0;
    right: 0;
    width: 60em;
    transition: .3s ease-out;
    z-index: 1000;
}

.modal-panel2 {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--c-light);
    color: #000;
    overflow: auto;
    padding: 1em;
}

.panel-wrap3 {
    position: fixed;
    margin-top: 100px;
    top: 0;
    bottom: 0;
    right: 0;
    width: 60em;
    transition: .3s ease-out;
    z-index: 1000;
}

.modal-panel3 {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--c-light);
    color: #000;
    overflow: auto;
    padding: 1em;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.modal-header h2 {
    margin: 0;
    font-size: 16px;
    color: var(--c-brand);
}

.modal-message {
    margin: 0;
    font-size: 14px;

}

.modal-message ul {
    list-style: circle;
    margin-left: 10px;
}

.modal-message h2 {
    margin: 0;
    font-size: 16px;
    color: var(--c-brand);
}

.modal-buttons {
    display: flex;
    justify-content: start;
    margin-top: 20px;
}

.modal-header button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 40px;
    margin: 0;
    line-height: 0px;
    color: var(--c-brand);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Karartma efekti */
  z-index: 999;
  display: none; /* Başlangıçta görünmez */
}

@media (max-width: 768px) {
    .panel-wrap{
        width: 30em;
    }

    .panel-wrap2 {
        width: 30em;
    }

    .panel-wrap3 {
        width: 30em;
    }
}