/* ============================================================
   BERRUNC PORTFOLIO — RESPONSIVE STYLESHEET
   ------------------------------------------------------------
   Tasarım birebir korunmuştur. Bu dosya yalnızca ekran
   genişliğine göre ölçek / yerleşim düzeltmeleri içerir.

   Breakpoints
     <= 1400px   Büyük laptop
     <= 1200px   Küçük laptop
     <=  991px   Tablet   → tek kolon + hamburger menü
     <=  767px   Büyük telefon
     <=  575px   Telefon
     <=  400px   Küçük telefon
   ============================================================ */


/* ============================================================
   <= 1400px — BÜYÜK LAPTOP
   ============================================================ */
@media (max-width: 1400px) {

    .big-title {
        font-size: 76px;
        line-height: 1;
    }

    .about-row {
        gap: 40px;
    }
}


/* ============================================================
   <= 1200px — KÜÇÜK LAPTOP
   ============================================================ */
@media (max-width: 1200px) {

    .hero {
        padding: 76px 5% 0;
    }
    
    .big-title {
        font-size: 64px;
    }

    .about-bio,
    .about-skills {
        font-size: 19px;
        line-height: 32px;
    }

    .about-card h2 {
        font-size: 54px;
    }

    .resume-card,
    .contact-form-main,
    .contact-info-main {
        padding: 26px;
    }

    .skill-card {
        padding: 30px;
    }

    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .contact-info-card a,
    .contact-info-card p {
        font-size: 19px;
    }
}


/* ============================================================
   <= 991px — TABLET (tek kolon + hamburger menü)
   ============================================================ */
@media (max-width: 991px) {

    /* ---------- Header: hamburger ---------- */
    header {
        padding: 16px 20px;
    }

    .nav-toggle {
        width: 46px;
        height: 46px;
        padding: 0 11px;
        position: relative;
        z-index: 1001;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        background-color: transparent;
        border: 1px solid var(--color-accent-line);
        border-radius: 8px;
        cursor: pointer;
        transition: var(--transition-fast);
    }

    .nav-toggle:hover {
        border-color: var(--color-accent);
    }

    .nav-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--color-text);
        border-radius: 2px;
        transition: var(--transition-fast);
    }

    .nav-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* ---------- Header: slide-in panel ---------- */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 82vw);
        height: 100vh;
        height: 100dvh;
        padding: 100px 30px 40px;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        background-color: rgba(8, 8, 8, 0.96);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-left: 1px solid var(--color-accent-line);
        transform: translateX(100%);
        transition: transform var(--transition-slow);
        overflow-y: auto;
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 24px;
    }

    /* Menü açıkken sayfa kaydırmayı kilitle */
    body.nav-open {
        overflow: hidden;
    }

    /* ---------- Hero: dikey yerleşim ---------- */
    .hero {
        min-height: auto;
        padding: 130px 6% 50px;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 30px;
        text-align: center;
    }

    .left,
    .right {
        width: 100%;
    }

    .left h1 {
        font-size: clamp(56px, 12vw, 104px);
        letter-spacing: -2px;
    }

    .hero-bottom {
        justify-content: center;
        gap: 20px;
    }

    .hero-tagline {
        margin: 0 auto;
    }

    .hero-cta-row {
        justify-content: center;
    }

    /* ---------- Hero görseli: akışa dahil ---------- */
    .right {
        height: auto;
    }

    .hero-person-main {
        max-width: 520px;
        margin: 0 auto;
        position: relative;
        right: auto;
        bottom: auto;
        height: auto;
        padding-top: 30px;
    }

    .hero-person-frame {
        width: min(400px, 74vw);
        margin: 0 auto;
    }

    .hero-person-glow {
        width: clamp(260px, 62vw, 440px);
        top: 55%;
        filter: blur(90px);
    }

    /* Badge konumları çerçeveye göre olduğu için
       kırılım başına yeniden tanımlanmaz, sadece ölçek küçülür. */
    .tech-badge {
        padding: 10px 12px;
        font-size: 12px;
        gap: 4px;
    }

    .tech-badge img {
        width: 28px;
        height: 28px;
    }

    /* ---------- Bölümler: tek kolon ---------- */
    .section {
        padding: 60px 24px;
    }

    .sec-clss {
        padding: 60px 24px;
    }

    .about-row {
        flex-direction: column;
        align-items: stretch;
        gap: 34px;
    }

    .about-info {
        flex: none;
        width: 100%;
    }

    .resume-grid {
        margin-top: 36px;
        flex-direction: column;
        gap: 25px;
    }

    .skills-grid {
        flex-direction: column;
        gap: 25px;
    }

    .contact-row {
        margin-top: 40px;
        flex-direction: column;
        gap: 20px;
    }

    .contact-form-main,
    .contact-info-main {
        flex: none;
        width: 100%;
    }

    .contact-social {
        justify-content: center;
    }
}


/* ============================================================
   <= 767px — BÜYÜK TELEFON
   ============================================================ */
@media (max-width: 767px) {

    body {
        font-size: 16px;
    }

    body::before {
        background-size: 1100px 618px;
    }

    .hero {
        padding: 120px 20px 40px;
    }

    .tag {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .tag::before {
        width: 34px;
    }

    .hero-tagline {
        font-size: 16px;
        line-height: 28px;
    }

    .btn-cc {
        padding: 13px 22px;
        font-size: 14px;
    }

    .big-title {
        font-size: 46px;
        line-height: 1.05;
    }

    .section,
    .sec-clss {
        padding: 48px 18px;
    }

    .about-bio,
    .about-skills {
        font-size: 17px;
        line-height: 29px;
    }

    .about-mel-datils {
        gap: 18px;
    }

    .about-mel-datils ul li {
        font-size: 16px;
    }

    .about-card {
        padding: 20px;
        border-radius: 18px;
    }

    .about-card h2 {
        font-size: 44px;
        margin-bottom: 4px;
    }

    .about-card h3 {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .resume-card {
        padding: 22px;
    }

    .resume-title {
        font-size: 22px;
    }

    .resume-desc {
        font-size: 15px;
        line-height: 25px;
    }

    .skill-card {
        padding: 24px;
    }

    .contact-form-main,
    .contact-info-main {
        padding: 24px 20px;
    }

    .contact-info-card {
        gap: 16px;
        padding-bottom: 24px;
        margin-bottom: 24px;
    }

    .footer {
        padding: 30px 20px;
    }
}


/* ============================================================
   <= 575px — TELEFON
   ============================================================ */
@media (max-width: 575px) {

    .nav-logo {
        font-size: 26px;
    }

    .left h1 {
        font-size: clamp(46px, 13vw, 68px);
        letter-spacing: -1px;
    }

    .hero-person-frame {
        width: 66vw;
    }

    .tech-badge {
        padding: 8px 10px;
        font-size: 11px;
    }

    .tech-badge img {
        width: 22px;
        height: 22px;
    }

    .big-title {
        font-size: 38px;
        letter-spacing: 0;
    }

    .about-mel-datils {
        flex-direction: column;
        gap: 12px;
    }

    .about-mel-datils ul li {
        margin-bottom: 12px;
    }

    /* Formda tek kolon */
    .contact-input {
        flex: 1 1 100%;
        margin-bottom: 20px;
    }

    .contact-input textarea {
        height: 150px;
        padding: 18px 18px 0;
    }

    .contact-icon {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }

    .contact-info-card a,
    .contact-info-card p {
        font-size: 17px;
    }

    .contact-social a,
    .contact-social button {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
}


/* ============================================================
   <= 400px — KÜÇÜK TELEFON
   ============================================================ */
@media (max-width: 400px) {

    .hero {
        padding: 110px 16px 36px;
    }

    .section,
    .sec-clss {
        padding: 40px 14px;
    }

    /* Butonlar tam genişlik */
    .hero-cta-row .btn-cc {
        flex: 1 1 100%;
        justify-content: center;
    }

    .big-title {
        font-size: 32px;
    }

    .about-right {
        flex-direction: column;
        gap: 14px;
    }

    .tech-badge {
        padding: 7px 9px;
        font-size: 10px;
    }

    .tech-badge img {
        width: 20px;
        height: 20px;
    }

    .contact-info-card {
        gap: 12px;
    }
}


/* ============================================================
   YATAY TELEFON (düşük yükseklik)
   ============================================================ */
@media (max-width: 991px) and (max-height: 520px) {

    .nav-menu {
        padding-top: 80px;
        gap: 16px;
    }

    .nav-link {
        font-size: 20px;
    }
}


/* ============================================================
   ERİŞİLEBİLİRLİK
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
