/*==================================================
                AKKILIÇ GARAJ
                STYLE.CSS
==================================================*/

/*========== DEĞİŞKENLER (CSS VARIABLES) ==========*/

:root{
    --color-bg:#0f1117;
    --color-bg-alt:#111319;
    --color-card:#181b24;
    --color-accent:#ff2d2d;
    --color-accent-dark:#d70000;
    --color-border:rgba(255,255,255,.08);
    --color-text:#ffffff;
    --header-height:80px;
    --header-height-scrolled:66px;
    --transition-base:.35s ease;
    --max-width:1400px;
}

/*========== GENEL AYARLAR ==========*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:var(--color-bg);
    color:var(--color-text);
    overflow-x:hidden;
}

body.no-scroll{
    overflow:hidden;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
}

/* Klavye ile gezinen kullanıcılar için görünür odak halkası */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.hamburger:focus-visible{
    outline:2px solid var(--color-accent);
    outline-offset:3px;
    border-radius:4px;
}

/* Bölüm başlıklarına anchor linklerle atlarken sabit header altında kalmasın */
section[id],
div[id]{
    scroll-margin-top:var(--header-height);
}

/*========== HEADER ==========*/

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:var(--header-height);

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:0 6%;

    background:rgba(15,17,23,.92);
    backdrop-filter:blur(15px);

    border-bottom:1px solid var(--color-border);

    z-index:999;

    transition:height var(--transition-base),background var(--transition-base),box-shadow var(--transition-base);
}

header.scrolled{
    height:var(--header-height-scrolled);
    background:#0b0b0f;
    box-shadow:0 10px 35px rgba(0,0,0,.45);
}

/* Logo */

.logo img{
    width:180px;
    transition:width var(--transition-base);
}

header.scrolled .logo img{
    width:150px;
}

/* Menü */

nav ul{
    display:flex;
    gap:35px;
    list-style:none;
}

nav ul li a{
    position:relative;
    color:#fff;
    font-size:15px;
    font-weight:500;
    transition:color .35s;
}

nav ul li a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-6px;
    width:0;
    height:2px;
    background:var(--color-accent);
    transition:width .35s ease;
}

nav ul li a:hover,
nav ul li a.active{
    color:var(--color-accent);
}

nav ul li a:hover::after,
nav ul li a.active::after{
    width:100%;
}

/* Hamburger (mobil menü butonu) */

.hamburger{
    display:none;
    flex-direction:column;
    justify-content:space-between;
    width:28px;
    height:20px;
    background:transparent;
    border:none;
    cursor:pointer;
    z-index:1001;
}

.hamburger span{
    display:block;
    height:3px;
    width:100%;
    background:#fff;
    border-radius:3px;
    transition:transform .35s ease,opacity .35s ease;
}

.hamburger.active span:nth-child(1){
    transform:translateY(8.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2){
    opacity:0;
}

.hamburger.active span:nth-child(3){
    transform:translateY(-8.5px) rotate(-45deg);
}

/*================ HERO =================*/

.hero{

    position:relative;
    width:100%;
    height:100vh;
    overflow:hidden;

}

.hero-bg{
    position:absolute;
    top:0;
    right:-180px;
    width:auto;
    height:100%;
    min-width:120%;
    object-fit:cover;
}

.hero-overlay{

    position:absolute;

    inset:0;

    background:linear-gradient(
        90deg,
        rgba(0,0,0,.80) 0%,
        rgba(0,0,0,.45) 45%,
        rgba(0,0,0,.15) 100%
    );

}

.hero-content{

    position:relative;

    z-index:10;

    width:90%;
    max-width:var(--max-width);

    height:100%;

    margin:auto;

    display:flex;

    flex-direction:column;

    justify-content:center;

}

.hero-content span{

    color:var(--color-accent);

    font-weight:700;

    letter-spacing:3px;

}

.hero-content h1{

    font-size:clamp(34px,5.5vw,72px);

    margin:20px 0;

    line-height:1.15;

}

.hero-content p{

    font-size:clamp(16px,1.6vw,22px);

    color:#ddd;

    line-height:1.6;

    margin-bottom:40px;

    max-width:650px;

}

.hero-buttons{

    display:flex;

    gap:20px;

}

.hero-btn,
.hero-btn2{

    padding:18px 35px;

    border-radius:10px;

    font-weight:600;

    text-align:center;

    transition:transform .3s ease,background .3s ease,color .3s ease;

}

.hero-btn{

    background:var(--color-accent);

    color:white;

}

.hero-btn:hover,
.randevu:hover{
    transform:translateY(-5px) scale(1.05);
    background:var(--color-accent-dark);
}

.hero-btn2{

    border:2px solid white;

    color:white;

}

.hero-btn2:hover{
    transform:translateY(-5px) scale(1.05);
    background:#fff;
    color:var(--color-bg);
}

/*==================================================
                HİZMETLER
==================================================*/

.services{
    width:90%;
    max-width:var(--max-width);
    margin:100px auto;
}

.section-title{
    text-align:center;
    margin-bottom:60px;
}

.section-title span{
    color:var(--color-accent);
    font-size:15px;
    font-weight:700;
    letter-spacing:3px;
}

.section-title h2{
    font-size:clamp(30px,4vw,48px);
    margin:15px 0;
}

.section-title p{
    color:#bdbdbd;
    max-width:700px;
    margin:auto;
    line-height:30px;
}

/*==========================
      HİZMET KARTLARI
==========================*/

.service-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.service-card{
    display:block;
    background:var(--color-card);
    border-radius:20px;
    overflow:hidden;
    border:1px solid var(--color-border);
    text-decoration:none;
    color:inherit;
    transition:transform .35s ease,border-color .35s ease,box-shadow .35s ease;
}

.service-card:hover{
    transform:translateY(-10px);
    border-color:var(--color-accent);
    box-shadow:0 20px 40px rgba(255,45,45,.18);
}

/* Resimler */

.service-card img{
    width:100%;
    height:240px;
    object-fit:cover;
}

/* Yazılar */

.service-card h3{
    font-size:24px;
    padding:25px 25px 10px;
}

.service-card p{
    color:#bdbdbd;
    padding:0 25px;
    line-height:28px;
    min-height:85px;
}

.service-card p{
    padding-bottom:25px;
}

/*==========================
        İSTATİSTİKLER
==========================*/

.counter{
    width:90%;
    max-width:var(--max-width);
    margin:120px auto;

    display:grid;
    grid-template-columns:repeat(4,1fr);

    gap:30px;
}

.counter-box{
    background:var(--color-card);
    border-radius:18px;
    padding:45px;
    text-align:center;
    border:1px solid var(--color-border);
    transition:transform .35s ease,border-color .35s ease;
}

.counter-box:hover{
    transform:translateY(-8px);
    border-color:var(--color-accent);
}

.counter-box h2{
    color:var(--color-accent);
    font-size:clamp(34px,4vw,52px);
    margin-bottom:15px;
}

.counter-box p{
    color:#cfcfcf;
}

/*==================================================
                SATILIK ARAÇLAR
==================================================*/

.cars{
    width:90%;
    max-width:var(--max-width);
    margin:120px auto;
}

.car-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.car-card{
    background:var(--color-card);
    border-radius:20px;
    overflow:hidden;
    border:1px solid var(--color-border);
    transition:transform .35s ease,border-color .35s ease,box-shadow .35s ease;
}

.car-card:hover{
    transform:translateY(-10px);
    border-color:var(--color-accent);
    box-shadow:0 20px 40px rgba(255,45,45,.18);
}

.car-card img{
    width:100%;
    height:240px;
    object-fit:cover;
}

.car-info{
    padding:25px;
}

.car-info h3{
    font-size:24px;
    margin-bottom:10px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.car-info p{
    color:#bdbdbd;
    margin-bottom:15px;
    line-height:28px;
}

.car-info h4{
    color:var(--color-accent);
    font-size:30px;
    margin-bottom:20px;
}

.car-info a{
    display:inline-block;
    padding:12px 28px;
    background:var(--color-accent);
    color:#fff;
    border-radius:8px;
    transition:background .3s,transform .3s;
}

.car-info a:hover{
    background:var(--color-accent-dark);
    transform:translateY(-3px);
}

/*==================================================
                İLETİŞİM
==================================================*/

.contact{
    width:90%;
    max-width:var(--max-width);
    margin:120px auto;

    display:grid;
    grid-template-columns:1fr 1fr;

    gap:60px;
}

.contact span{
    color:var(--color-accent);
    font-weight:700;
}

.contact h2{
    font-size:clamp(30px,4vw,48px);
    margin:20px 0;
}

.contact p{
    color:#cfcfcf;
    line-height:32px;
}

.contact-box{
    display:flex;
    gap:20px;
    margin-top:30px;
    align-items:center;
}

.contact-box i{
    width:60px;
    height:60px;
    background:var(--color-accent);
    border-radius:12px;
    flex-shrink:0;

    display:flex;
    justify-content:center;
    align-items:center;
}

.contact form{
    display:flex;
    flex-direction:column;
}

.contact input,
.contact textarea{
    margin-bottom:20px;
    padding:18px;

    background:var(--color-card);
    color:#fff;

    border:1px solid transparent;
    outline:none;

    border-radius:10px;

    transition:border-color .3s;
}

.contact input:focus,
.contact textarea:focus{
    border-color:var(--color-accent);
}

.contact textarea{
    min-height:180px;
    resize:none;
}

.contact button{
    padding:18px;
    background:var(--color-accent);
    color:#fff;
    border:none;
    border-radius:10px;
    cursor:pointer;
    font-weight:600;
    transition:background .3s,transform .3s;
}

.contact button:hover{
    background:var(--color-accent-dark);
    transform:translateY(-3px);
}

/*==================================================
                FOOTER
==================================================*/

footer{
    background:var(--color-bg-alt);
    text-align:center;
    padding:60px 20px;
    border-top:1px solid var(--color-border);
}

footer h3{
    font-size:clamp(24px,3vw,30px);
    margin-bottom:15px;
}

footer p{
    color:#9f9f9f;
    margin-bottom:25px;
}

.footer-grid{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:40px;
    text-align:left;
    width:90%;
    max-width:var(--max-width);
    margin:0 auto 40px;
}

.footer-col{
    display:flex;
    flex-direction:column;
    min-width:0;
}

.footer-col:first-child{
    align-items:flex-start;
    text-align:left;
}

.footer-col:nth-child(2){
    align-items:center;
    text-align:center;
}

.footer-col:last-child{
    align-items:flex-end;
    text-align:right;
}

.footer-col .logo img{
    margin-bottom:20px;
}

.footer-col h4{
    font-size:clamp(20px,2.5vw,24px);
    margin-bottom:15px;
    color:var(--color-text);
}

.footer-col p{
    color:#9f9f9f;
    margin-bottom:12px;
}

.footer-col p i{
    color:var(--color-accent);
    margin-right:8px;
}

.footer-bottom{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    gap:20px;
    text-align:center;
    color:#9f9f9f;
    width:90%;
    max-width:var(--max-width);
    margin:0 auto;
    padding-top:30px;
    border-top:1px solid var(--color-border);
}

.footer-bottom a{
    color:var(--color-accent);
    text-decoration:none;
}

.footer-bottom-spacer{
    display:block;
}

/*---------- Erdoğan Emir Sucu / geliştirici imzası ----------*/

.footer-credit{
    display:flex;
    align-items:center;
    gap:14px;
    justify-self:start;
    text-align:left;
}

.footer-credit-logo{
    width:44px;
    height:auto;
    flex-shrink:0;
    opacity:.92;
}

.footer-credit-text{
    display:flex;
    flex-direction:column;
    line-height:1.35;
}

.footer-credit-tagline{
    font-size:12px;
    font-weight:600;
    letter-spacing:.3px;
    color:#c7c7c7;
    text-transform:uppercase;
}

.footer-credit-sub{
    font-size:11px;
    color:#7c7c7c;
    margin-bottom:4px;
}

.footer-credit-name{
    font-size:12px;
    color:#9f9f9f;
}

.footer-credit-phone{
    font-size:12px;
    color:#9f9f9f;
}

.footer-credit-role{
    font-size:11px;
    color:var(--color-accent);
    font-weight:500;
    margin-top:2px;
}

.footer-copy{
    justify-self:center;
    grid-column:2;
}

.footer-copy p{
    margin:0;
}

.footer-disclaimer{
    font-size:10px !important;
    color:#5c5c5c !important;
    margin-top:6px !important;
}

@media(max-width:768px){
    .footer-grid{
        grid-template-columns:1fr;
        gap:35px;
        text-align:center;
    }

    .footer-col:first-child,
    .footer-col:nth-child(2),
    .footer-col:last-child{
        align-items:center;
        text-align:center;
    }

    .footer-bottom{
        grid-template-columns:1fr;
        justify-items:center;
        gap:24px;
    }

    .footer-credit{
        justify-self:center;
        flex-direction:column;
        text-align:center;
        gap:10px;
    }

    .footer-credit-text{
        align-items:center;
    }

    .footer-copy{
        grid-column:1;
    }

    .footer-bottom-spacer{
        display:none;
    }
}

.social{
    display:flex;
    justify-content:center;
    gap:18px;
}

.social a{
    width:50px;
    height:50px;
    border-radius:50%;

    background:var(--color-card);
    color:#fff;

    display:flex;
    justify-content:center;
    align-items:center;

    transition:background .3s,transform .3s;
}

.social a:hover{
    background:var(--color-accent);
    transform:translateY(-4px);
}

/*==================================================
        SCROLL REVEAL ANİMASYONU
==================================================*/

.hidden{
    opacity:0;
    transform:translateY(40px);
    transition:opacity .8s ease,transform .8s ease;
}

.show{
    opacity:1;
    transform:translateY(0);
}

/*==================================================
        BAŞA DÖN BUTONU (JS ile oluşturulur)
==================================================*/

#backToTop{
    position:fixed;
    bottom:30px;
    right:30px;
    width:50px;
    height:50px;
    border-radius:50%;
    background:var(--color-accent);
    color:#fff;
    border:none;
    font-size:20px;
    line-height:1;
    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;

    opacity:0;
    visibility:hidden;
    transform:translateY(20px);

    transition:opacity .35s ease,transform .35s ease,visibility .35s,background .3s;

    z-index:998;
    box-shadow:0 10px 25px rgba(0,0,0,.35);
}

#backToTop.visible{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

#backToTop:hover{
    background:var(--color-accent-dark);
    transform:translateY(-4px);
}

/*==================================================
                RESPONSIVE
==================================================*/

/* Büyük tablet / küçük masaüstü */
@media(max-width:1200px){

    .hero-content h1{
        line-height:1.2;
    }

    .service-grid,
    .car-grid{
        gap:22px;
    }

}

/* Tablet + mobil menü kırılımı */
@media(max-width:1100px){

    header{
        padding:0 20px;
    }

    .hamburger{
        display:flex;
    }

    nav{
        position:absolute;
        top:100%;
        left:0;
        width:100%;
        max-height:0;
        overflow:hidden;
        background:rgba(11,11,15,.98);
        backdrop-filter:blur(15px);
        border-bottom:1px solid var(--color-border);
        transition:max-height .45s ease;
    }

    nav.nav-open{
        max-height:70vh;
        overflow-y:auto;
    }

    nav ul{
        flex-direction:column;
        align-items:flex-start;
        gap:0;
        padding:10px 6% 30px;
    }

    nav ul li{
        width:100%;
    }

    nav ul li a{
        display:block;
        padding:16px 0;
        width:100%;
        border-bottom:1px solid var(--color-border);
    }

    nav ul li a::after{
        display:none;
    }

    .logo img{
        width:150px;
    }

    .service-grid,
    .car-grid,
    .counter{
        grid-template-columns:repeat(2,1fr);
    }

}

/* Contact bölümü tek sütuna düşer */
@media(max-width:900px){

    .contact{
        grid-template-columns:1fr;
        gap:40px;
    }

}

/* Tablet dikey / büyük telefon */
@media(max-width:768px){

    .services,
    .counter,
    .cars,
    .contact{
        margin:70px auto;
    }

    .service-grid,
    .car-grid,
    .counter{
        grid-template-columns:1fr;
    }

    .hero-bg{
        right:0;
        min-width:100%;
        object-position:center;
    }

    .hero-overlay{
        background:rgba(0,0,0,.65);
    }

    .hero-content p{
        margin-bottom:30px;
    }

    .section-title{
        margin-bottom:40px;
    }

    #backToTop{
        width:44px;
        height:44px;
        bottom:20px;
        right:20px;
    }

}

/* Telefon */
@media(max-width:480px){

    header{
        padding:0 16px;
    }

    .logo img{
        width:130px;
    }

    .hero-buttons{
        flex-direction:column;
        width:100%;
    }

    .hero-btn,
    .hero-btn2{
        width:100%;
    }

    .service-card h3,
    .car-info h3{
        font-size:20px;
    }

    .service-card p{
        min-height:0;
    }

    .counter-box{
        padding:30px;
    }

    .contact input,
    .contact textarea{
        padding:14px;
    }

}

/* Hareket azaltma tercihi olan kullanıcılar için */
@media(prefers-reduced-motion:reduce){

    *,
    *::before,
    *::after{
        animation-duration:.01ms !important;
        animation-iteration-count:1 !important;
        transition-duration:.01ms !important;
        scroll-behavior:auto !important;
    }

}