/* Genel Ayarlar */
body {
    padding: 0;
    overflow-x: hidden;

    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #090808;
    color: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    color: #fd0606; /* Sarı - Vurgulu başlık rengi */
}

a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: #ff5f56; /* Kırmızı - Vurgulu bağlantı rengi */
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 5px;
}

.button {
    display: inline-block;
    background-color: #fd0606; /* Kırmızı */
    color: #fff;
    padding: 3px 6px;
    border-radius: 5px;
    margin-top: 10px;
    margin-bottom: 40px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease-in-out;
}

.button:hover {
    background-color: #fd0606;
}

.grid {
    display: grid;
    gap: 20px;
}

.comment-style { color: #a9a9a9; }
.white-text { color: #fff; }
.cyan-text { color: #00ffff; }
.green-text { color: #00ff00; }
.yellow-text { color: #ffff00; }
.magenta-text { color: #ff00ff; }
.red-text { color: #f08080; }
.gray-text { color: #a9a9a9; }

/* --- Açılış Animasyonu --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #090808;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.terminal-output {
    color: #27c93f; /* Yeşil renk */
    font-family: 'Roboto Mono', monospace;
    font-size: 1.2rem;
    white-space: pre-wrap;
    overflow: hidden;
    display: block;
    max-width: 100%;
    margin: 0;
    line-height: 1.5;
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #fd0606; }
}

/* Bu animasyon sadece bir bekleme anı yaratmak için kullanılabilir */
.blinking-cursor {
    animation: blink-caret .75s step-end infinite;
}

#preloader-text {
    animation: blink-caret .75s step-end infinite;
}

/* --- Ana İçerik --- */
#paperPlaneCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* İçeriğin arkasında görünmesi için */
    z-index: -1;
}

#main-content {
    display: none;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

/* Header ve Navigasyon */
header {
    padding: 15px 0;
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #090808;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 100%;
    width: 100%;
    font-family: 'Roboto Mono', monospace;
    font-size: 1.5rem;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    flex-direction: column;
    background-color: #111;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    text-align: center;
    border-top: 1px solid #222;
}

nav ul.open {
    display: flex;
}

nav ul li {
    padding: 15px 0;
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Bölümü */
#hero {
    width: 100%;
    height: 90vh;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    margin-top: 50px;
    padding: 0px 5px;
    /* Canvas'ın bu bölümün içine göre konumlanması için gerekli */
    position: relative;
}

.hero-content {
    padding-bottom: 200px;
    max-width: 700px; /* İçeriği biraz daralttık */
    margin: auto;
}

.hero-title {
    font-size: 20px; /* Başlığı büyüttük */
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-slogan {
    font-size: 14px; /* Sloganı belirginleştirdik */
    color: #ddd;
    margin-bottom: 10px;
}

.hero-subtext {
    font-size: 15px;
    color: #929292;
    margin-bottom: 10px;
    font-style: italic;
}

/* Mobil cihazlar için başlık boyutlarını küçült */
@media (max-width: 768px) {
    #hero {
        padding: 0px 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-slogan {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-slogan {
        font-size: 1.1rem;
    }
}

/* Aşağı kaydırma göstergesi stili */
.scroll-indicator {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 60px;
    border: 3px solid white;
    border-radius: 50px;
    cursor: pointer;
    z-index: 1;
}

/* OK İÇİN GÜNCELLENMİŞ CSS */
.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateY(-5px) translateX(-50%) rotate(45deg); 
    width: 12px;
    height: 12px;
    border-right: 3px solid white;
    border-bottom: 3px solid white;
    animation: scroll-down-arrow 2.5s infinite;
    -webkit-animation: scroll-down-arrow 2.5s infinite; /* Safari için eklenen satır */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* OK ANİMASYONU - Safari uyumluluğu için -webkit-transform eklendi */
@keyframes scroll-down-arrow {
    0%, 20%, 50%, 80%, 100% {
        opacity: 0;
        transform: translateY(-5px) translateX(-50%) rotate(45deg);
        -webkit-transform: translateY(-5px) translateX(-50%) rotate(45deg); /* Safari için eklenen satır */
    }
    40% {
        opacity: 1;
        transform: translateY(10px) translateX(-50%) rotate(45deg);
        -webkit-transform: translateY(10px) translateX(-50%) rotate(45deg); /* Safari için eklenen satır */
    }
    60% {
        opacity: 1;
        transform: translateY(5px) translateX(-50%) rotate(45deg);
        -webkit-transform: translateY(5px) translateX(-50%) rotate(45deg); /* Safari için eklenen satır */
    }
}

/* Diğer Bölümler */
section {
    padding: 60px 0;
    padding-top: 0px;
}

section h2 {
    text-align: center;
    margin-bottom: 10px;
}

#services .grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.service-item {
    background-color: #252525;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

#portfolio .grid.portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.portfolio-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
}

/* Testimonials */
#testimonials {
  padding: 80px 20px;
  background: #111; /* koyu arka plan */
  color: #fff;
  text-align: center;
}

#testimonials h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  font-size: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e60000; /* kırmızı tema uyumu */
}

.testimonial-author h4 {
  margin: 0;
  font-size: 1.1rem;
}

.testimonial-author p {
  margin: 0;
  font-size: 0.9rem;
  color: #aaa;
}


/* İletişim Bölümü */
#contact {
    padding: 60px 0;
}

#contact h2 {
    margin-bottom: 10px;
}

.contact-info {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info a {
    color: #fd0606; /* Sarı - İletişim bağlantı rengi */
    transition: color 0.3s ease-in-out;
}

.contact-info a:hover {
    color: #ff5f56; /* Kırmızı */
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #252525;
    border-top: 1px solid #222;
    font-size: 0.9rem;
}

/* --- Fiyatlandırma Bölümü --- */
#pricing {
    padding: 60px 0;
    padding-top: 0px;
}

#pricing h2 {
    margin-bottom: 20px;
}

.pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.pricing-card {
    background-color: #252525;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fd0606; /* Vurgulu renk */
}

.pricing-card .price {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff5f56; /* Fiyat için farklı vurgulu renk */
    margin-bottom: 20px;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
}

.pricing-card li {
    margin-bottom: 10px;
    color: #a9a9a9;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.pricing-card li::before {
    content: '✓';
    color: #fd0606;
    font-weight: bold;
    margin-right: 10px;
}

.pricing-card .button {
    width: 100%;
    text-align: center;
    padding: 5px 10px;
    box-sizing: border-box;
}

/* Fiyatlandırma Bilgilendirme Metni */
.pricing-disclaimer {
    text-align: center;
    font-size: 0.9rem;
    color: #a9a9a9;
    margin-top: 20px;
    font-style: italic;
}

/* --- Büyük Ekranlar İçin (768px ve üzeri) --- */
@media (min-width: 768px) {
    header .container {
        padding: 0 20px;
    }

    nav {
        display: block;
    }

    nav ul {
        display: flex !important;
        flex-direction: row;
        position: static;
        width: auto;
        background-color: transparent;
        border-top: none;
        gap: 15px;
    }

    .menu-toggle {
        display: none;
    }

    .hero-content {
        text-align: left;
    }

    #hero {
        padding-left: 0;
        padding-right: 0;
    }

    .project-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}