:root {
    --bg-color: #121212;
    --section-bg: #161616;
    --card-bg: #1c1c1c;
    --text-primary: #ffffff;
    --text-secondary: #9e9e9e;
    --accent-color: #f26600;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.navbar {
    padding: 2rem 0;
}
.nav-container {
    display: flex;
    justify-content: center; 
    align-items: center;
    position: relative; 
}

.logo {
    position: absolute;
    left: 2rem; 
}

.logo img {
    width: 70px;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1rem;
    transition: color 0.3s ease;
}
.nav-links a:hover {
    color: var(--accent-color);
}
.hamburger {
    display: none;
    cursor: pointer;
    position: absolute;
    right: 2rem; 
    z-index: 100;
}
.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-primary);
    border-radius: 3px;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}
.cta-button:hover {
    background-color: #d15800;
}

.icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-secondary);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}
.icon-link:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.hero-section {
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
    min-height: 70vh;
}
.hero-content {
    flex: 1;
}
.greeting-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}
.main-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.sub-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}
.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}
.hero-actions {
    display: flex;
    align-items: center; 
    gap: 2rem;
    margin-top: 2rem;
}
.stats-card {
    background-color: var(--card-bg);
    display: inline-flex;
    align-items: center;
    padding: 1.2rem 2rem;
    border-radius: 8px;
    gap: 2rem;
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-number {
    color: var(--accent-color);
    font-size: 1.4rem;
    font-weight: bold;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-primary);
}
.stat-divider {
    width: 1px;
    height: 35px;
    background-color: #333;
}
.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}
.image-background-circle {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #252525 0%, #121212 70%);
    border-radius: 90%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
}
.image-background-circle img {
    max-width: 90%;
    height: auto;
}

.services-section {
    padding: 5rem 2rem;
    text-align: center;
}
.section-header {
    margin-bottom: 3rem;
}
.section-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.service-card {
    background-color: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    width: calc(33.333% - 1.34rem); 
    text-align: center;
}
.service-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}
.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}
.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.about-section {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 5rem 2rem;
}
.about-image {
    flex: 1;
    background: #1a1a1a;
    border-radius: 300px 300px 0 0;
    overflow: hidden;
    position: relative;
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}
.about-content {
    flex: 1.2;
}
.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}
.about-content p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    text-align: justify;
}
.cv-button {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.skills-section {
    padding: 4rem 2rem;
}
.skills-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem 2rem;
    max-width: 100%; 
}
.skill-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 170px;
}
.skill-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: conic-gradient(var(--accent-color) calc(var(--percentage) * 1%), #333 0);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}
.skill-inner {
    width: 75px;
    height: 75px;
    background-color: var(--section-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: var(--text-primary);
    font-size: 1.2rem;
}
.skill-info {
    display: flex;
    flex-direction: column;
}
.skill-percent {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}
.skill-name {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.site-footer {
    padding: 2rem 0; 
    border-top: 1px solid #222;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-logo {
    flex: 1;
    display: flex;
    justify-content: flex-start; 
}
.footer-logo img {
    width: 70px;
}
.footer-contact {
    flex: 1;
    display: flex;
    justify-content: center; 
}
.footer-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}
.footer-contact a:hover {
    color: var(--text-primary);
}
.footer-social {
    flex: 1;
    display: flex;
    justify-content: flex-end; 
    gap: 1rem;
}

@media (max-width: 992px) {
    .skills-container {
        max-width: 650px !important; 
        margin: 0 auto !important; 
    }
    
    .hamburger { display: block; }
    .nav-links {
        position: absolute; top: calc(100% + 15px); right: 2rem; left: auto; width: 220px;
        background-color: var(--card-bg); border: 1px solid #333; border-radius: 12px;
        flex-direction: column; text-align: center; gap: 0; transition: 0.3s ease;
        opacity: 0; visibility: hidden; transform: translateY(-10px); z-index: 99;
        box-shadow: 0 10px 25px rgba(0,0,0,0.8); padding: 0.5rem 0;
    }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 1rem 0; border-bottom: 1px solid #222; font-size: 1.05rem; }
    .nav-links li:last-child a { border-bottom: none; }
    .nav-links.active { opacity: 1 !important; visibility: visible !important; transform: translateY(0) !important; z-index: 9999 !important; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .hero-section, .about-section { flex-direction: column !important; align-items: center !important; text-align: center !important; }
    .hero-content, .about-content { width: 100% !important; display: flex !important; flex-direction: column !important; align-items: center !important; }

    .hero-image-container { width: 100% !important; display: flex !important; justify-content: center !important; margin-top: 2rem !important; flex: none !important; }
    .image-background-circle { width: 340px !important; height: 340px !important; margin: 0 auto !important; }

    .about-image { 
        width: 340px !important; 
        height: 400px !important; 
        margin: 3rem auto 0 auto !important; 
        display: flex !important; 
        justify-content: center !important; 
        align-items: flex-end !important; 
        border-radius: 170px 170px 0 0 !important; 
        flex: none !important; 
    }
    .about-image img { 
        width: 100% !important; 
        height: 100% !important; 
        object-fit: cover !important; 
    }
    .image-background-circle img { 
        width: 100% !important; 
        height: auto !important; 
        object-fit: cover !important; 
    }

    .service-card { width: 100%; }
    .social-icons { width: 100%; justify-content: center !important; }
    .hero-actions { flex-direction: column; justify-content: center; align-items: center; width: 100%; gap: 1.5rem; }
    .footer-container { flex-direction: column; gap: 1.5rem; }
    .footer-logo, .footer-contact, .footer-social { justify-content: center; }
    .hero-section, .services-section, .about-section, .skills-section { padding: 1.5rem 1.5rem !important; }
    .about-section { gap: 2rem !important; margin-top:-50px !important; }
}

@media (max-width: 767px) {
    .skills-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 2rem 1rem !important;
        max-width: 100% !important; 
    }
    .skill-item {
        width: 100% !important;
        max-width: none !important;
    }
    .skill-item:last-child {
        grid-column: span 2; 
        justify-self: center;
        max-width: 170px !important;
    }

    .image-background-circle { width: 320px !important; height: 320px !important; }
    .about-image { width: 320px !important; height: 380px !important; border-radius: 160px 160px 0 0 !important; }
}

.custom-icon {
    width: 35px;
    height: 35px;
    background-color: var(--text-primary); 
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

.custom-svg-icon {
    width: 35px;
    height: 35px;
    fill: #bcbcbc; 
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 40px 0;
}

@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  background: #111111;
  border: 1px solid #333333;
  border-radius: 12px;
  overflow: hidden; 
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 102, 0, 0.15); 
  border-color: #ff6600;
}

.blog-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #333;
}

.blog-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card h3 {
  margin-top: 0;
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-date {
  font-size: 0.85rem;
  color: #ff6600;
  margin-bottom: 15px;
  font-weight: bold;
}

.blog-card p {
  color: #cccccc;
  line-height: 1.6;
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 20px;
}

.read-more {
  color: #ff6600;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  align-self: flex-start;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #cc5200;
}

#son-bloglar {
    padding: 60px 20px;
    background-color: #121212;
    font-family: Arial, sans-serif;
}

#son-bloglar .container {
    max-width: 1200px;
    margin: 0 auto;
}

.bolum-basligi {
    text-align: center;
    margin-bottom: 40px;
}

.bolum-basligi h2 {
    color: #ffffff;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.bolum-basligi p {
    color: #a0a0a0;
    font-size: 1.1rem;
}

.blog-grid-kartlar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.haber-karti {
    display: flex;
    flex-direction: column;
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 4px;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.haber-karti:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
}

.kart-gorsel img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.kart-baslik {
    padding: 15px 15px 25px 15px;
    flex-grow: 1;
}

.kart-baslik h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.blog-buton-alani {
    text-align: center;
}

.tum-bloglar-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #f97316;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.tum-bloglar-btn:hover {
    background-color: #ea580c;
}

@media (max-width: 960px) and (min-width: 640px) {
    .haber-karti:nth-child(3) {
        grid-column: 1 / -1;
        justify-self: center;
        width: 100%;
        max-width: 380px;
    }
}
#yaziAlani h2 {
    color: #fff;
    font-size: 1.7rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

#yaziAlani h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 10px;
}

.blog-card {
    position: relative;
}

.read-more::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}